An open API service indexing awesome lists of open source software.

awesome-transformer-nlp

A curated list of NLP resources focused on Transformer networks, attention mechanism, GPT, BERT, ChatGPT, LLMs, and transfer learning.
https://github.com/cedrickchee/awesome-transformer-nlp

Last synced: 9 days ago
JSON representation

AI Safety

Tutorials

Articles

Additional Reading

Attention Concept

Attention Mechanism

BERT and Transformer

Generative Pre-Training Transformer (GPT)

Large Language Model (LLM)

  • ChatGPT among the LLMs
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • Fun and Dystopia With AI-Based Code Generation Using GPT-J-6B - Prior to GitHub Copilot tech preview launch, Max Woolf, a data scientist tested GPT-J-6B's code "writing" abilities.
  • GPT-NeoX-20B - A 20 billion parameter model trained using EleutherAI’s GPT-NeoX framework. They expect it to perform well on many tasks. You can try out the model on GooseAI playground.
  • BigScience's BLOOM-176B - BLOOM is a 175-billion parameter model for language processing, able to generate text much like GPT-3 and OPT-175B. It was developed to be multilingual, being deliberately trained on datasets containing 46 natural languages and 13 programming languages.
  • bitsandbytes-Int8 inference for Hugging Face models - You can run BLOOM-176B/OPT-175B easily on a single machine, without performance degradation. If true, this could be a game changer in enabling people outside of big tech companies being able to use these LLMs.
  • WeLM: A Well-Read Pre-trained Language Model for Chinese (paper)
  • Teaching Small Language Models to Reason (paper) - They finetune a student model on the chain of thought (CoT) outputs generated by a larger teacher model. For example, the accuracy of T5 XXL on GSM8K improves from 8.11% to 21.99% when finetuned on PaLM-540B generated chains of thought.
  • ALERT: Adapting Language Models to Reasoning Tasks (paper) - They introduce ALERT, a benchmark and suite of analyses for assessing language models' reasoning ability comparing pre-trained and finetuned models on complex tasks that require reasoning skills to solve. It covers 10 different reasoning skills including logistic, causal, common-sense, abductive, spatial, analogical, argument and deductive reasoning as well as textual entailment, and mathematics.
  • Evaluating Human-Language Model Interaction (paper) - They find that non-interactive performance does not always result in better human-LM interaction and that first-person and third-party metrics can diverge, suggesting the importance of examining the nuances of human-LM interaction.
  • Unnatural Instructions: Tuning Language Models with (Almost) No Human Labor (paper) - instructions)] - Fine-tuning a T5 on a large dataset collected with virtually no human labor leads to a model that surpassing the performance of models such as T0++ and Tk-Instruct across various benchmarks. These results demonstrate the potential of model-generated data as a cost-effective alternative to crowdsourcing for dataset expansion and diversification.
  • Rethinking with Retrieval: Faithful Large Language Model Inference (paper) - They shows the potential of enhancing LLMs by retrieving relevant external knowledge based on decomposed reasoning steps obtained through chain-of-thought (CoT) prompting. I predict we're going to see many of these types of retrieval-enhanced LLMs in 2023.
  • REPLUG: Retrieval-Augmented Black-Box Language Models (paper) - TL;DR: Enhancing GPT-3 with world knowledge — a retrieval-augmented LM framework that combines a frozen LM with a frozen/tunable retriever. It improves GPT-3 in language modeling and downstream tasks by prepending retrieved documents to LM inputs. [Tweet]
  • Progressive Prompts: Continual Learning for Language Models (paper) - Current LLMs have hard time with catastrophic forgetting and leveraging past experiences. The approach learns a prompt for new task and concatenates with frozen previously learned prompts. This efficiently transfers knowledge to future tasks. [code]
  • Large Language Models Can Be Easily Distracted by Irrelevant Context (paper) - Adding the instruction "Feel free to ignore irrelevant information given in the questions." consistently improves robustness to irrelevant context.
  • Toolformer: Language Models Can Teach Themselves to Use Tools (paper) - A smaller model trained to translate human intention into actions (i.e. decide which APIs to call, when to call them, what arguments to pass, and how to best incorporate the results into future token prediction).
  • ERNIE 3.0 Titan: Exploring Larger-scale Knowledge Enhanced Pre-training for Language Understanding and Generation (paper) - ERNIE 3.0 Titan is the latest addition to Baidu's ERNIE (Enhanced Representation through kNowledge IntEgration) family. It's inspired by the masking strategy of Google's BERT. ERNIE is also a unified framework. They also proposed a controllable learning algorithm and a credible learning algorithm. They apply online distillation technique to compress their model. To their knowledge, it is the largest (260B parameters) Chinese dense pre-trained model so far. [article]
  • Characterizing Attribution and Fluency Tradeoffs for Retrieval-Augmented Large Language Models (paper) - Despite recent progress, it has been difficult to prevent semantic hallucinations in generative LLMs. One common solution to this is augmenting LLMs with a retrieval system and making sure that the generated output is attributable to the retrieved information.
  • Augmented Language Models (ALMs): a Survey (paper) - Augmenting language models with reasoning skills and the ability to use various, non-parametric external modules for context processing and outperform traditional LMs on several benchmarks. This new research direction has the potential to address interpretability, consistency and scalability issues.
  • A Comprehensive Survey on Pretrained Foundation Models: A History from BERT to ChatGPT (paper) - My remarks: this paper raises a lot of questions around the term "foundation models", i.e., what's the model bare minimum number of parameters to qualify as foundation? It sounds to me foundation models are an "invented" concept that doesn't have good validity.
  • Multimodal Chain-of-Thought Reasoning in Language Models (paper) - The model outperform GPT-3.5 by 16% on the ScienceQA benchmark. This work is the first to study CoT reasoning in different modalities, language (text) and vision (images). Unfortunately, they never provide ablation study on how much of that performance gain was caused by the new modalities. [code]
  • RECITE: Recitation-Augmented Language Models (paper) - How can ChatGPT-like models achieve greater factual accuracy without relying on an external retrieval search engine? This paper shows that recitation can help LLMs generate accurate factual knowledge by reciting relevant passages from their own memory (by sampling) before producing final answers. The core idea is motivated by the intuition: recite-step that recollects relevant knowledge pieces helps answer-step (generation) better output. That's a recite-answer paradigm: first ask the LLM to generate the support paragraphs that contain the answer (knowledge-recitation) and then use it as additional prompt, along with the question to ask the LLM to generate the answer. They verify the effectiveness on four LLMs. They also show that recitation can be more effective than retrieval. This is important since having a retriever may lead to unpredictable behavior (i.e., Bing/Sydney). [code]
  • LLaMA: Open and Efficient Foundation Language Models (paper) - A collection of language models ranging from 7B to 65B parameters. LLaMA-13B outperforms GPT-3 (175B) on most benchmarks, and LLaMA-65B is competitive with the best models, Chinchilla70B and PaLM-540B. This shows that smaller models trained with more data can outperform larger models. This is not contradictory to anything in the Chinchilla paper, because it's not compute-optimally trained. GPU hours for training 7B model=82,432, 65B model=1,022,362 😱. Total time spent for all models: 2048 A100-80GB GPU for a period of approximately 5 months. The 65B model cost something in the range of ~$1-4M. Access to the model will be granted on a case-by-case basis though. People interested can apply for access. (Mar 2: they just approved access to the models, llama-7B works in Colab cedrickchee/llama) [Takeaways: Tweet]
  • Language Is Not All You Need: Aligning Perception with Language Models (paper) - They introduce KOSMOS-1, a Multimodal Large Language Model (MLLM) that can perceive general modalities, learn in context (i.e., few-shot), and follow instructions (i.e., zero-shot). The total number of parameters is about 1.6B.
  • Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedback - LLM-Augmenter significantly reduces ChatGPT's hallucinations without sacrificing the fluency and informativeness of its responses. The architecture and data flow: 1) Retrieve evidence from external knowledge. 2) Context and reasoning chains. 3) Give to LLM (i.e., ChatGPT). 4) Verify hallucinations. 5) If hallucinate, give feedback and revise.
  • UL2: Unifying Language Learning Paradigms (paper) - UL2 is a unified framework for pretraining models that are universally effective across datasets and setups. Takeaways: Objective matters way more than architecture. Mixture-of-Denoisers (MoD) is effective if you care about doing well on more than one type of tasks/settings. UL2 frames different objective functions for training language models as denoising tasks, where the model has to recover missing sub-sequences of a given input. During pre-training it uses Mixture-of-Denoisers (MoD) that samples from a varied set of such objectives, each with different configurations. MoD combines diverse pre-training paradigms together. They demonstrated that models trained using the UL2 framework perform well in a variety of language domains, including prompt-based few-shot learning and models fine-tuned for down-stream tasks. They open sourced UL2 20B model and checkpoints back in 2022. In 2023, they open sourced Flan-UL2 20B and released the weights. Check out: [blog post, Tweet]. I'm excited to see what the community does with this new model.
  • Larger language models do in-context learning (ICL) differently (paper) - Overriding semantic priors when presented with enough flipped labels is an emergent ability of scale. LLMs learn better mappings when ICL labels are semantically unrelated to inputs (i.e., apple/orange, negative/positive). Fine-tuning to follow instruction helps both. [Tweet]
  • The BigScience ROOTS Corpus: A 1.6TB Composite Multilingual Dataset (paper) - Documents the data creation and curation efforts of Responsible Open-science Open-collaboration Text Source (ROOTS) corpus, a dataset used to train BLOOM. [Tweet]
  • PanGu-Σ: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computing (paper) - They develop a system that trained a trillion-parameter language model on a cluster of Ascend 910 AI processors and MindSpore framework. This resulted in a 6.3x increase in training throughput through heterogeneous computing.
  • Context-faithful Prompting for Large Language Models (paper)
  • Llama 2: Open Foundation and Fine-Tuned Chat Models (paper) - Llama 2 pretrained models are trained on 2 trillion tokens, and have double the context length than Llama 1. Its fine-tuned models have been trained on over 1 million human annotations. It outperforms other open source language models on many benchmarks. License: The model and weights are available for free for research and commercial use. It is not an open source model, rather an open approach model — for commercial use, your product cannot have more than 700 million monthly active users and requires a form to get access. Llama-2-chat is the new addition and is created through using supervised fine-tuning and then iteratively refined using RLHF. [Nathan Lambert's summary of the paper]
  • Code Llama: Open Foundation Models for Code (paper) - Code Llama is a family of LLMs for code based on Llama 2 providing SoTA performance among open models, infilling capabilities, support for large input contexts, and zero-shot instruction following ability for programming tasks. It is capable of generating code, and natural language about code, from both code and natural language prompts. It's available in three models: foundation models (Code Llama), Python specializations (Code Llama - Python), and instruction-following models (Code Llama - Instruct) with 7B, 13B and 34B parameters each. It outperformed publicly available LLMs benchmark on code tasks. They release it under the same permissive license (community license) as Llama 2.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • Introducing Llama 3: The most capable openly available LLM to date (article) - In the coming months, they’ll share the Llama 3 research paper. [Code]
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.
  • Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context - The Gemini 1.5 model family technical report. Highlights: Gemini 1.5 Pro is now Google's most capable model (surpassing 1.0 Ultra), Gemini 1.5 models achieve near-perfect recall on long-context retrieval tasks across modalities, improvement in next-token prediction and near-perfect retrieval (>99%) up to at least 10M tokens.
  • GPT-J-6B - Can't access GPT-3? Here's GPT-J — its open-source cousin.