Goto

Collaborating Authors

 Large Language Model


Deploying a 1.3B GPT-3 Model with NVIDIA NeMo Megatron

#artificialintelligence

Large language models (LLMs) are some of the most advanced deep learning algorithms that are capable of understanding written language. Many modern LLMs are built using the transformer network introduced by Google in 2017 in the Attention Is All You Need research paper. NVIDIA NeMo Megatron is an end-to-end GPU-accelerated framework for training and deploying transformer-based LLMs up to a trillion parameters. In September 2022, NVIDIA announced that NeMo Megatron is now available in Open Beta, allowing you to train and deploy LLMs using your own data. With this announcement, several pretrained checkpoints have been uploaded to HuggingFace, enabling anyone to deploy LLMs locally using GPUs.


Prompter: Utilizing Large Language Model Prompting for a Data Efficient Embodied Instruction Following

arXiv.org Artificial Intelligence

Embodied Instruction Following (EIF) studies how mobile manipulator robots should be controlled to accomplish long-horizon tasks specified by natural language instructions. While most research on EIF are conducted in simulators, the ultimate goal of the field is to deploy the agents in real life. As such, it is important to minimize the data cost required for training an agent, to help the transition from sim to real. However, many studies only focus on the performance and overlook the data cost -- modules that require separate training on extra data are often introduced without a consideration on deployability. In this work, we propose FILM++ which extends the existing work FILM with modifications that do not require extra data. While all data-driven modules are kept constant, FILM++ more than doubles FILM's performance. Furthermore, we propose Prompter, which replaces FILM++'s semantic search module with language model prompting. Unlike FILM++'s implementation that requires training on extra sets of data, no training is needed for our prompting based implementation while achieving better or at least comparable performance. Prompter achieves 42.64% and 45.72% on the ALFRED benchmark with high-level instructions only and with step-by-step instructions, respectively, outperforming the previous state of the art by 6.57% and 10.31%.


Momentum-based Weight Interpolation of Strong Zero-Shot Models for Continual Learning

arXiv.org Artificial Intelligence

Large pre-trained, zero-shot capable models have shown considerable success both for standard transfer and adaptation tasks, with particular robustness towards distribution shifts. In addition, subsequent fine-tuning can considerably improve performance on a selected downstream task. However, through naive fine-tuning, these zero-shot models lose their generalizability and robustness towards distribution shifts. This is a particular problem for tasks such as Continual Learning (CL), where continuous adaptation has to be performed as new task distributions are introduced sequentially. In this work, we showcase that where fine-tuning falls short to adapt such zero-shot capable models, simple momentum-based weight interpolation can provide consistent improvements for CL tasks in both memory-free and memory-based settings. In particular, we find improvements of over $+4\%$ on standard CL benchmarks, while reducing the error to the upper limit of jointly training on all tasks at once in parts by more than half, allowing the continual learner to inch closer to the joint training limits.


On the Domain Adaptation and Generalization of Pretrained Language Models: A Survey

arXiv.org Artificial Intelligence

Recent advances in NLP are brought by a range of large-scale pretrained language models (PLMs). These PLMs have brought significant performance gains for a range of NLP tasks, circumventing the need to customize complex designs for specific tasks. However, most current work focus on finetuning PLMs on a domain-specific datasets, ignoring the fact that the domain gap can lead to overfitting and even performance drop. Therefore, it is practically important to find an appropriate method to effectively adapt PLMs to a target domain of interest. Recently, a range of methods have been proposed to achieve this purpose. Early surveys on domain adaptation are not suitable for PLMs due to the sophisticated behavior exhibited by PLMs from traditional models trained from scratch and that domain adaptation of PLMs need to be redesigned to take effect. This paper aims to provide a survey on these newly proposed methods and shed light in how to apply traditional machine learning methods to newly evolved and future technologies. By examining the issues of deploying PLMs for downstream tasks, we propose a taxonomy of domain adaptation approaches from a machine learning system view, covering methods for input augmentation, model optimization and personalization. We discuss and compare those methods and suggest promising future research directions.


Thinking about GPT-3 In-Context Learning for Biomedical IE? Think Again

arXiv.org Artificial Intelligence

The strong few-shot in-context learning capability of large pre-trained language models (PLMs) such as GPT-3 is highly appealing for application domains such as biomedicine, which feature high and diverse demands of language technologies but also high data annotation costs. In this paper, we present the first systematic and comprehensive study to compare the few-shot performance of GPT-3 in-context learning with fine-tuning smaller (i.e., BERT-sized) PLMs on two highly representative biomedical information extraction tasks, named entity recognition and relation extraction. We follow the true few-shot setting to avoid overestimating models' few-shot performance by model selection over a large validation set. We also optimize GPT-3's performance with known techniques such as contextual calibration and dynamic in-context example retrieval. However, our results show that GPT-3 still significantly underperforms compared to simply fine-tuning a smaller PLM. In addition, GPT-3 in-context learning also yields smaller gains in accuracy when more training data becomes available. Our in-depth analyses further reveal issues of the in-context learning setting that may be detrimental to information extraction tasks in general. Given the high cost of experimenting with GPT-3, we hope our study provides guidance for biomedical researchers and practitioners towards more promising directions such as fine-tuning small PLMs.


GitHub Copilot - Wikipedia

#artificialintelligence

GitHub Copilot is a cloud-based artificial intelligence tool developed by GitHub and OpenAI to assist users of Visual Studio Code, Visual Studio, Neovim, and JetBrains integrated development environments (IDEs) by autocompleting code.[1] Currently available by subscription to individual developers, the tool was first announced by GitHub on 29 June 2021, and works best for users coding in Python, JavaScript, TypeScript, Ruby, and Go.[2] On 29 June 2021, GitHub announced GitHub Copilot for technical preview in the Visual Studio Code development environment.[1][3] On 26 October 2021, GitHub Copilot was released as a plugin on the JetBrains marketplace.[4] On 27 October 2021, GitHub released the GitHub Copilot Neovim plugin as a public repository.[5] On 29 March 2022, GitHub officially announced Copilot's availability for the Visual Studio 2022 IDE.[6]


Can A.I. Write Recipes Better Than Humans? We Put It to the Ultimate Test.

#artificialintelligence

Before we get to the verdict, let's explain the science. Designed by OpenAI, one of the world's most ambitious artificial intelligence labs, GPT-3 is a neural network, a mathematical system that can learn skills by analyzing enormous amounts of data. Some systems study images; in September, an A.I.-generated work took the top prize at a state-fair art contest. GPT-3 analyzes digital text, including books, Wikipedia articles, tweets, chat logs, computer programs and, yes, recipes. It can identify billions of distinct patterns in the way people connect words, numbers and symbols, and then use that knowledge to generate its own content -- like a Thanksgiving menu of original recipes.


Preparing for the future of foundation models

#artificialintelligence

In a seminal paper published two years ago, OpenAI introduced GPT-3, their 175 billion parameter text generation model. Soon afterwards, a fully trained GPT-3 was made available via API, allowing researchers, media and the public to witness the extraordinary breadth of capabilities offered by this model class – from generating Shakespearian sonnets to turning plain English instructions into HTML. Since then, large language models have played a predominant role in the public discourse around leading-edge artificial intelligence and helped to popularise important concepts such as unsupervised learning. The term'large models' has begun to give way to'foundation models' which better describes their broad utility and the potential to create specialised derivations. Large is also a relative concept and, as we will discuss later, foundation models don't necessarily have to keep increasing in size, even though that has been the trend thus far.


The (In)Effectiveness of Intermediate Task Training For Domain Adaptation and Cross-Lingual Transfer Learning

arXiv.org Artificial Intelligence

Transfer learning from large language models (LLMs) has emerged as a powerful technique to enable knowledge-based fine-tuning for a number of tasks, adaptation of models for different domains and even languages. However, it remains an open question, if and when transfer learning will work, i.e. leading to positive or negative transfer. In this paper, we analyze the knowledge transfer across three natural language processing (NLP) tasks - text classification, sentimental analysis, and sentence similarity, using three LLMs - BERT, RoBERTa, and XLNet - and analyzing their performance, by fine-tuning on target datasets for domain and cross-lingual adaptation tasks, with and without an intermediate task training on a larger dataset. Our experiments showed that fine-tuning without an intermediate task training can lead to a better performance for most tasks, while more generalized tasks might necessitate a preceding intermediate task training step. We hope that this work will act as a guide on transfer learning to NLP practitioners.


More Generative AI Tools, More APIs, More Problems

#artificialintelligence

A lot has transpired within a span of just a few months – that's the speed of AI for you. From tech that seemed gimmicky at first, generative AI tools have made AI infrastructure more accessible. What seemed far-flung from mainstream society is now cheap, fast and easy to build for developers across the spectrum. Several startups have either cropped up or pivoted to building platforms anchored around these open-source and closed-source models from companies like OpenAI. Important LLMs like OpenAI's GPT-3 and other foundational models like Stable Diffusion have been made commercially available via API across applications.