Language Modeling Reading List (to Start Your Paper Club)
Eugene Yan делится списком для чтения по языковому моделированию, составленным в рамках еженедельного клуба статей. Подборка включает около 50 фундаментальных работ — от Attention Is All You Need и серии GPT до RAG, LoRA, DPO, FlashAttention и Mixture of Experts. Каждая статья снабжена однострочным саммари в ироничном формате «X — это всё, что вам нужно». Список охватывает ключевые направления: архитектуры трансформеров, законы масштабирования, дообучение с подкреплением на основе обратной связи (RLHF), retrieval-augmented generation, эффективный инференс и генерацию изображений. Автор предлагает использовать этот список как основу для запуска собственного клуба статей на целый год.
Language Modeling Reading List (to Start Your Paper Club)
Список литературы по языковому моделированию (чтобы запустить свой клуб статей)
Some friends and I started a weekly paper club to read and discuss fundamental papers in language modeling. By pooling together our shared knowledge, experience, and questions, we learned more as a group than we could have individually. To encourage others to do the same, here’s a year’s worth of language modelingpapers and a one-sentence summary for each. (Also, why and how to read papers.)
Мы с друзьями запустили еженедельный клуб статей, чтобы читать и обсуждать фундаментальные работы по языковому моделированию. Объединив наши знания, опыт и вопросы, мы узнали в группе больше, чем смогли бы поодиночке. Чтобы вдохновить остальных сделать то же самое, вот подборка статей по языковому моделированию на целый год с кратким описанием каждой в одно предложение. (А ещё — зачем и как читать научные статьи.)
See an error or have a paper to suggest? Raise a PR or issue here!
Нашли ошибку или хотите предложить статью? Создайте PR или issue здесь!
• • •
• • •
Attention Is All You Need: Query, Key, and Value are all you need* (*Also position embeddings, multiple heads, feed-forward layers, skip-connections, etc.)
GPT: Improving Language Understanding by Generative Pre-Training: Decoder is all you need* (*Also, pre-training + finetuning)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding: Encoder is all you need*. Left-to-right language modeling is NOT all you need. (*Also, pre-training + finetuning)
T5: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer: Encoder-only or decoder-only is NOT all you need, though text-to-text is all you need* (*Also, pre-training + finetuning)
GPT2: Language Models are Unsupervised Multitask Learners: Unsupervised pre-training is all you need?!
GPT3: Language Models are Few-Shot Learners: Unsupervised pre-training + a few* examples is all you need. (*From 5 examples, in Conversational QA, to 50 examples in Winogrande, PhysicalQA, and TriviaQA)
Scaling Laws for Neural Language Models: Larger models trained on lesser data* are what you you need. (*10x more compute should be spent on 5.5x larger model and 1.8x more tokens)
Chinchilla: Training Compute-Optimal Large Language Models: Smaller models trained on more data* are what you need. (*10x more compute should be spent on 3.2x larger model and 3.2x more tokens)
LLaMA: Open and Efficient Foundation Language Models: Smoler models trained longer—on public data—is all you need
InstructGPT: Training language models to follow instructions with human feedback: 40 labelers are all you need* (*Plus supervised fine-tuning, reward modeling, and PPO)
LoRA: Low-Rank Adaptation of Large Language Models: One rank is all you need
QLoRA: Efficient Finetuning of Quantized LLMs: 4-bit is all you need* (*Plus double quantization and paged optimizers)
DPR: Dense Passage Retrieval for Open-Domain Question Answering: Dense embeddings are all you need* (*Also, high precision retrieval)
RAG: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks: Semi-parametric models* are all you need (*Dense vector retrieval as non-parametric component; pre-trained LLM as parametric component)
RETRO: Improving language models by retrieving from trillions of tokens: Retrieving based on input chunks and chunked cross attention are all you need
Internet-augmented language models through few-shot prompting for open-domain question answering: Google Search as retrieval is all you need
HyDE: Precise Zero-Shot Dense Retrieval without Relevance Labels: LLM-generated, hypothetical documents are all you need
FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness: For-loops in SRAM are all you need
ALiBi; Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation: Constant bias on the query-key dot-product is all you need* (*Also hyperparameter m and cached Q, K, V representations)
Codex: Evaluating Large Language Models Trained on Code: Finetuning on code is all you need
Layer Normalization: Consistent mean and variance at each layer is all you need
On Layer Normalization in the Transformer Architecture: Pre-layer norm, instead of post-layer norm, is all you need
PPO: Proximal Policy Optimization Algorithms: Clipping your surrogate function is all you need
WizardCoder: Empowering Code Large Language Models with Evol-Instruct: Asking the model to make the question harder is all you need* (*Where do they get the responses to these harder questions though?!)
Llama 2: Open Foundation and Fine-Tuned Chat Models: Iterative finetuning, PPO, rejection sampling, and ghost attention is all you need* (*Also, 27,540 SFT annotations and more than 1 million binary comparison preference data)
RWKV: Reinventing RNNs for the Transformer Era: Linear attention during inference, via RNNs, is what you need
RLAIF - Constitutional AI: Harmlessness from AI Feedback: A natural language constitution* and model feedback on harmlessness is all you need (*16 different variants of harmlessness principles)
Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer: Noise in your softmax and expert regularization are all you need
CLIP: Learning Transferable Visual Models From Natural Language Supervision: *A projection layer between text and image embeddings is all you need (*Also, 400 million image-text pairs)
ViT; An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: Flattened 2D patches are all you need
Generative Agents: Interactive Simulacra of Human Behavior: Reflection, memory, and retrieval are all you need
Out-of-Domain Finetuning to Bootstrap Hallucination Detection: Open-source, permissive-use data is what you need
DPO; Direct Preference Optimization: Your Language Model is Secretly a Reward Model: A separate reward model is NOT what you need
Consistency Models: Mapping to how diffusion adds gaussian noise to images is all you need
LCM; Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference: Consistency modeling in latent space is all you need* (*Also, a diffusion model to distill from)
LCM-LoRA: A Universal Stable-Diffusion Acceleration Module: Combining LoRAs is all you need
Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Models: Asking the LLM to reflect on retrieved documents is all you need
Emergent Abilities of Large Language Models: The Bitter Lesson is all you need
Q-Transformer: Scalable Offline Reinforcement Learning via Autoregressive Q-Functions: The Bellman equation and replay buffers are all you need
Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations: Classification guidelines and the multiple-choice response are all you need
\(\text{REST}^{EM}\); Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Models: Synthetic data and a reward function are all you need
Mixture of Experts Explained: Conditional computation and sparsity are all you need
SPIN: Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models: Generator and discriminator are all you need.
Self-Instruct: Aligning Language Models with Self-Generated Instructions: 54% valid instruction-input-output tuples is all you need.
Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling: Well documented, publicly available model checkpoints are all you need.
Self-Rewarding Language Models: Asking the model to evaluate itself is all you need.
Building Your Own Product Copilot - Challenges, Opportunities, and Needs: Prompt engineering LLMs is NOT all you need.
Matryoshka Representation Learning: Aggregated losses across \(2^n\)-dim embeddings is all you need.
Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems: Bigger GPUs is not all you need.
How to Generate and Use Synthetic Data for Finetuning: Synthetic data is almost all you need.
Whisper: Robust Speech Recognition via Large-Scale Weak Supervision: 680k hrs of audio and multitask formulated as a sequence is all you need.
Attention Is All You Need: Query, Key и Value — это всё, что вам нужно* (*А ещё позиционные эмбеддинги, множественные головы внимания, полносвязные слои, skip-соединения и т. д.) GPT: Improving Language Understanding by Generative Pre-Training: Декодер — это всё, что вам нужно* (*А ещё предобучение + дообучение) BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding: Энкодер — это всё, что вам нужно*. Языковое моделирование слева направо — это НЕ всё, что вам нужно. (*А ещё предобучение + дообучение) T5: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer: Только энкодер или только декодер — это НЕ всё, что вам нужно, зато формат text-to-text — это всё, что нужно* (*А ещё предобучение + дообучение) GPT2: Language Models are Unsupervised Multitask Learners: Неконтролируемое предобучение — это всё, что вам нужно?! GPT3: Language Models are Few-Shot Learners: Неконтролируемое предобучение + несколько* примеров — это всё, что вам нужно. (*От 5 примеров в Conversational QA до 50 примеров в Winogrande, PhysicalQA и TriviaQA) Scaling Laws for Neural Language Models: Более крупные модели, обученные на меньшем объёме данных* — вот что вам нужно. (*10-кратное увеличение вычислений следует направить на модель в 5,5 раз больше и в 1,8 раза больше токенов) Chinchilla: Training Compute-Optimal Large Language Models: Модели поменьше, обученные на большем количестве данных* — вот что вам нужно. (*10-кратное увеличение вычислений следует направить на модель в 3,2 раза больше и в 3,2 раза больше токенов) LLaMA: Open and Efficient Foundation Language Models: Модели поменьше, обученные подольше — на открытых данных — это всё, что вам нужно InstructGPT: Training language models to follow instructions with human feedback: 40 аннотаторов — это всё, что вам нужно* (*Плюс supervised fine-tuning, моделирование награды и PPO) LoRA: Low-Rank Adaptation of Large Language Models: Один ранг — это всё, что вам нужно QLoRA: Efficient Finetuning of Quantized LLMs: 4 бита — это всё, что вам нужно* (*Плюс двойная квантизация и paged-оптимизаторы) DPR: Dense Passage Retrieval for Open-Domain Question Answering: Плотные эмбеддинги — это всё, что вам нужно* (*А ещё высокоточный поиск) RAG: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks: Полупараметрические модели* — это всё, что вам нужно (*Плотный векторный поиск как непараметрическая компонента; предобученный LLM как параметрическая компонента) RETRO: Improving language models by retrieving from trillions of tokens: Поиск по входным чанкам и chunked cross attention — это всё, что вам нужно Internet-augmented language models through few-shot prompting for open-domain question answering: Google Search в качестве поиска — это всё, что вам нужно HyDE: Precise Zero-Shot Dense Retrieval without Relevance Labels: Гипотетические документы, сгенерированные LLM, — это всё, что вам нужно FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness: Циклы for в SRAM — это всё, что вам нужно ALiBi; Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation: Постоянное смещение в скалярном произведении query-key — это всё, что вам нужно* (*А ещё гиперпараметр m и кешированные представления Q, K, V) Codex: Evaluating Large Language Models Trained on Code: Дообучение на коде — это всё, что вам нужно Layer Normalization: Стабильные среднее и дисперсия на каждом слое — это всё, что вам нужно On Layer Normalization in the Transformer Architecture: Pre-layer norm вместо post-layer norm — это всё, что вам нужно PPO: Proximal Policy Optimization Algorithms: Клиппинг суррогатной функции — это всё, что вам нужно WizardCoder: Empowering Code Large Language Models with Evol-Instruct: Попросить модель усложнить вопрос — это всё, что вам нужно* (*Но откуда берутся ответы на эти усложнённые вопросы?!) Llama 2: Open Foundation and Fine-Tuned Chat Models: Итеративное дообучение, PPO, rejection sampling и ghost attention — это всё, что вам нужно* (*А ещё 27 540 SFT-аннотаций и более 1 миллиона бинарных сравнительных предпочтений) RWKV: Reinventing RNNs for the Transformer Era: Линейное внимание при инференсе через RNN — вот что вам нужно RLAIF - Constitutional AI: Harmlessness from AI Feedback: Конституция на естественном языке* и обратная связь от модели по безвредности — это всё, что вам нужно (*16 различных вариантов принципов безвредности) Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer: Шум в softmax и регуляризация экспертов — это всё, что вам нужно CLIP: Learning Transferable Visual Models From Natural Language Supervision: *Проекционный слой между текстовыми и графическими эмбеддингами — это всё, что вам нужно (*А ещё 400 миллионов пар изображение-текст) ViT; An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale: Выровненные 2D-патчи — это всё, что вам нужно Generative Agents: Interactive Simulacra of Human Behavior: Рефлексия, память и поиск — это всё, что вам нужно Out-of-Domain Finetuning to Bootstrap Hallucination Detection: Открытые данные с разрешительной лицензией — вот что вам нужно DPO; Direct Preference Optimization: Your Language Model is Secretly a Reward Model: Отдельная модель награды — это НЕ то, что вам нужно Consistency Models: Отображение того, как диффузия добавляет гауссовский шум к изображениям, — это всё, что вам нужно LCM; Latent Consistency Models: Synthesizing High-Resolution Images with Few-Step Inference: Моделирование согласованности в латентном пространстве — это всё, что вам нужно* (*А ещё диффузионная модель для дистилляции) LCM-LoRA: A Universal Stable-Diffusion Acceleration Module: Комбинирование LoRA — это всё, что вам нужно Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Models: Попросить LLM проанализировать извлечённые документы — это всё, что вам нужно Emergent Abilities of Large Language Models: «Горький урок» — это всё, что вам нужно Q-Transformer: Scalable Offline Reinforcement Learning via Autoregressive Q-Functions: Уравнение Беллмана и буферы воспроизведения — это всё, что вам нужно Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations: Руководства по классификации и формат ответа с множественным выбором — это всё, что вам нужно \(\text{REST}^{EM}\); Beyond Human Data: Scaling Self-Training for Problem-Solving with Language Models: Синтетические данные и функция награды — это всё, что вам нужно Mixture of Experts Explained: Условные вычисления и разреженность — это всё, что вам нужно SPIN: Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models: Генератор и дискриминатор — это всё, что вам нужно. Self-Instruct: Aligning Language Models with Self-Generated Instructions: 54% валидных троек инструкция-вход-выход — это всё, что вам нужно. Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling: Хорошо задокументированные, публично доступные чекпоинты моделей — это всё, что вам нужно. Self-Rewarding Language Models: Попросить модель оценить саму себя — это всё, что вам нужно. Building Your Own Product Copilot - Challenges, Opportunities, and Needs: Промпт-инжиниринг для LLM — это НЕ всё, что вам нужно. Matryoshka Representation Learning: Агрегированные функции потерь по эмбеддингам размерности \(2^n\) — это всё, что вам нужно. Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems: Более мощные GPU — это не всё, что вам нужно. How to Generate and Use Synthetic Data for Finetuning: Синтетические данные — это почти всё, что вам нужно. Whisper: Robust Speech Recognition via Large-Scale Weak Supervision: 680 тыс. часов аудио и мультизадачность, оформленная как последовательность, — это всё, что вам нужно.
If you found this useful, please cite this write-up as:
Если этот материал оказался полезным, пожалуйста, цитируйте его так:
Yan, Ziyou. (Jan 2024). Language Modeling Reading List (to Start Your Paper Club). eugeneyan.com. https://eugeneyan.com/writing/llm-reading-list/.
Yan, Ziyou. (Jan 2024). Language Modeling Reading List (to Start Your Paper Club). eugeneyan.com. https://eugeneyan.com/writing/llm-reading-list/.
or
или
@article{yan2024default,
title = {Language Modeling Reading List (to Start Your Paper Club)},
author = {Yan, Ziyou},
journal = {eugeneyan.com},
year = {2024},
month = {Jan},
url = {https://eugeneyan.com/writing/llm-reading-list/}
}
@article{yan2024default, title = {Language Modeling Reading List (to Start Your Paper Club)}, author = {Yan, Ziyou}, journal = {eugeneyan.com}, year = {2024}, month = {Jan}, url = {https://eugeneyan.com/writing/llm-reading-list/} }
Join 11,800+ readers getting updates on machine learning, RecSys, LLMs, and engineering.
Присоединяйтесь к 11 800+ читателям, получающим обновления о машинном обучении, рекомендательных системах, LLM и инженерии.