Large Language Model
On Codex Prompt Engineering for OCL Generation: An Empirical Study
Abukhalaf, Seif, Hamdaqa, Mohammad, Khomh, Foutse
The Object Constraint Language (OCL) is a declarative language that adds constraints and object query expressions to MOF models. Despite its potential to provide precision and conciseness to UML models, the unfamiliar syntax of OCL has hindered its adoption. Recent advancements in LLMs, such as GPT-3, have shown their capability in many NLP tasks, including semantic parsing and text generation. Codex, a GPT-3 descendant, has been fine-tuned on publicly available code from GitHub and can generate code in many programming languages. We investigate the reliability of OCL constraints generated by Codex from natural language specifications. To achieve this, we compiled a dataset of 15 UML models and 168 specifications and crafted a prompt template with slots to populate with UML information and the target task, using both zero- and few-shot learning methods. By measuring the syntactic validity and execution accuracy metrics of the generated OCL constraints, we found that enriching the prompts with UML information and enabling few-shot learning increases the reliability of the generated OCL constraints. Furthermore, the results reveal a close similarity based on sentence embedding between the generated OCL constraints and the human-written ones in the ground truth, implying a level of clarity and understandability in the generated OCL constraints by Codex.
TaskMatrix.AI: Completing Tasks by Connecting Foundation Models with Millions of APIs
Liang, Yaobo, Wu, Chenfei, Song, Ting, Wu, Wenshan, Xia, Yan, Liu, Yu, Ou, Yang, Lu, Shuai, Ji, Lei, Mao, Shaoguang, Wang, Yun, Shou, Linjun, Gong, Ming, Duan, Nan
Artificial Intelligence (AI) has made incredible progress recently. On the one hand, advanced foundation models like ChatGPT can offer powerful conversation, in-context learning and code generation abilities on a broad range of open-domain tasks. They can also generate high-level solution outlines for domain-specific tasks based on the common sense knowledge they have acquired. However, they still face difficulties with some specialized tasks because they lack enough domain-specific data during pre-training or they often have errors in their neural network computations on those tasks that need accurate executions. On the other hand, there are also many existing models and systems (symbolic-based or neural-based) that can do some domain-specific tasks very well. However, due to the different implementation or working mechanisms, they are not easily accessible or compatible with foundation models. Therefore, there is a clear and pressing need for a mechanism that can leverage foundation models to propose task solution outlines and then automatically match some of the sub-tasks in the outlines to the off-the-shelf models and systems with special functionalities to complete them. Inspired by this, we introduce TaskMatrix.AI as a new AI ecosystem that connects foundation models with millions of APIs for task completion. Unlike most previous work that aimed to improve a single AI model, TaskMatrix.AI focuses more on using existing foundation models (as a brain-like central system) and APIs of other AI models and systems (as sub-task solvers) to achieve diversified tasks in both digital and physical domains. As a position paper, we will present our vision of how to build such an ecosystem, explain each key component, and use study cases to illustrate both the feasibility of this vision and the main challenges we need to address next.
ChatGPT or academic scientist? Distinguishing authorship with over 99% accuracy using off-the-shelf machine learning tools
Desaire, Heather, Chua, Aleesa E., Isom, Madeline, Jarosova, Romana, Hua, David
ChatGPT has enabled access to AI-generated writing for the masses, and within just a few months, this product has disrupted the knowledge economy, initiating a culture shift in the way people work, learn, and write. The need to discriminate human writing from AI is now both critical and urgent, particularly in domains like higher education and academic writing, where AI had not been a significant threat or contributor to authorship. Addressing this need, we developed a method for discriminating text generated by ChatGPT from (human) academic scientists, relying on prevalent and accessible supervised classification methods. We focused on how a particular group of humans, academic scientists, write differently than ChatGPT, and this targeted approach led to the discovery of new features for discriminating (these) humans from AI; as examples, scientists write long paragraphs and have a penchant for equivocal language, frequently using words like but, however, and although. With a set of 20 features, including the aforementioned ones and others, we built a model that assigned the author, as human or AI, at well over 99% accuracy, resulting in 20 times fewer misclassified documents compared to the field-leading approach. This strategy for discriminating a particular set of humans writing from AI could be further adapted and developed by others with basic skills in supervised classification, enabling access to many highly accurate and targeted models for detecting AI usage in academic writing and beyond.
SmallCap: Lightweight Image Captioning Prompted with Retrieval Augmentation
Ramos, Rita, Martins, Bruno, Elliott, Desmond, Kementchedjhieva, Yova
Recent advances in image captioning have focused on scaling the data and model size, substantially increasing the cost of pre-training and finetuning. As an alternative to large models, we present SmallCap, which generates a caption conditioned on an input image and related captions retrieved from a datastore. Our model is lightweight and fast to train, as the only learned parameters are in newly introduced cross-attention layers between a pre-trained CLIP encoder and GPT-2 decoder. SmallCap can transfer to new domains without additional finetuning and can exploit large-scale data in a training-free fashion since the contents of the datastore can be readily replaced. Our experiments show that SmallCap, trained only on COCO, has competitive performance on this benchmark, and also transfers to other domains without retraining, solely through retrieval from target-domain data. Further improvement is achieved through the training-free exploitation of diverse human-labeled and web data, which proves to be effective for a range of domains, including the nocaps benchmark, designed to test generalization to unseen visual concepts.
Why True Artificial General Intelligence is going to be within the next 5 years.
I have been working on AI Training models for nearly a decade and usually the conversation that I have with people on the predicitive timeline for AGI is always "never within our timeline". I always refute back with that such technology is an exponential acceleration on top of an exponential curve. Most people do not believe until they see it. Let me propose to you in this article that we are only a few short problems steps from AGI and the steps necessary to achieve it. The current training technique that ChatGPT-4 uses is large parameter networks and it is amazing, but the cost to do it is expensive.
Learn how to deploy ChatGPT in your business with this $20 training
Over these past couple of months, ChatGPT has been all over the news. Many businesses are already leveraging the technology to get ahead of the competition. The Complete ChatGPT Artificial Intelligence OpenAI Training Bundle helps you follow suit, with four courses that showcase the hidden power of this AI platform. The training is worth a total of $800, but you can grab all four courses today for only $19.97 in a special price drop at TechRepublic Academy. Although ChatGPT has only just exploded onto the scene, the technology has had a massive impact.
Council Post: Is ChatGPT A Silver Bullet For Cybercriminals?
By now, you've heard of ChatGPT--or more likely, you've heard that it's coming to take your job whether you're a programmer, journalist, musician or almost anything else. The OpenAI chatbot has been accessible to all for mere months, yet it has already amassed millions of users, impressing with its ability to write everything from code to essays and lyrics. You may have also heard that ChatGPT is about to set a fire under an already bubbling-hot cyber threat landscape, helping scammers write engaging, convincing and grammatically correct phishing emails or perfect malware code in seconds. While ChatGPT is certainly impressive, do we really need to worry about it upping the ante on already menacing threats? In short, the answer is no--but there's little to celebrate about that.
Is ChatGPT an RNN?. How I am using ChatGPT for…
Before I get onto the main crux of explaining ChatGPT's similarities with RNNs, it's important to view hallucination from a human point of view. I would like to think of Hallucination as something very common. Imagine you are sitting for an Senior Research Scientist interview, and you are somewhat unqualified despite your wealth of knowledge in different domains. I'm sure you have tried constructing an answer from little to no information (the second route) multiple times. The latter route means that you have personal experience with Hallucination.
AI Is Exposing Who Really Has Power in Silicon Valley
Silicon Valley churns out new products all the time, but rarely does one receive the level of hype that has surrounded the release of GPT-4. The follow-up to ChatGPT can ace standardized tests, tell you why a meme is funny, and even help do your taxes. Since the San Francisco start-up OpenAI introduced the technology earlier this month, it has been branded as "remarkable but unsettling," and has led to grandiose statements about how "things will never be the same." But actually trying out these features for yourself--or at least the ones that have already been publicly released--does not come cheap. Unlike ChatGPT, which captivated the world because it was free, GPT-4 is currently only available to non-developers through a premium service that costs $20 a month.