Awesome
Efficient Large Language Models: A Survey
Efficient Large Language Models: A Survey [arXiv] (Version 1: 12/06/2023; Version 2: 12/23/2023; Version 3: 01/31/2024; Version 4: 05/23/2024, camera ready version of Transactions on Machine Learning Research)
Zhongwei Wan<sup>1</sup>, Xin Wang<sup>1</sup>, Che Liu<sup>2</sup>, Samiul Alam<sup>1</sup>, Yu Zheng<sup>3</sup>, Jiachen Liu<sup>4</sup>, Zhongnan Qu<sup>5</sup>, Shen Yan<sup>6</sup>, Yi Zhu<sup>7</sup>, Quanlu Zhang<sup>8</sup>, Mosharaf Chowdhury<sup>4</sup>, Mi Zhang<sup>1</sup>
<sup>1</sup>The Ohio State University, <sup>2</sup>Imperial College London, <sup>3</sup>Michigan State University, <sup>4</sup>University of Michigan, <sup>5</sup>Amazon AWS AI, <sup>6</sup>Google Research, <sup>7</sup>Boson AI, <sup>8</sup>Microsoft Research Asia
β‘News: Our survey has been officially accepted by Transactions on Machine Learning Research (TMLR), May 2024. Camera ready version is available at: [OpenReview]
@article{wan2023efficient,
title={Efficient large language models: A survey},
author={Wan, Zhongwei and Wang, Xin and Liu, Che and Alam, Samiul and Zheng, Yu and others},
journal={arXiv preprint arXiv:2312.03863},
volume={1},
year={2023},
publisher={no}
}
β€οΈ Community Support
This repository is maintained by <ins>tuidan</ins> (wang.15980@osu.edu), <ins>SUSTechBruce</ins> (wan.512@osu.edu), <ins>samiul272</ins> (alam.140@osu.edu), and <ins>mi-zhang</ins> (mizhang.1@osu.edu). We welcome feedback, suggestions, and contributions that can help improve this survey and repository so as to make them valuable resources to benefit the entire community.
We will actively maintain this repository by incorporating new research as it emerges. If you have any suggestions regarding our taxonomy, find any missed papers, or update any preprint arXiv paper that has been accepted to some venue, feel free to send us an email or submit a pull request using the following markdown format.
Paper Title, <ins>Conference/Journal/Preprint, Year</ins> [[pdf](link)] [[other resources](link)].
π What is This Survey About?
Large Language Models (LLMs) have demonstrated remarkable capabilities in many important tasks and have the potential to make a substantial impact on our society. Such capabilities, however, come with considerable resource demands, highlighting the strong need to develop effective techniques for addressing the efficiency challenges posed by LLMs. In this survey, we provide a systematic and comprehensive review of efficient LLMs research. We organize the literature in a taxonomy consisting of three main categories, covering distinct yet interconnected efficient LLMs topics from <b>model-centric</b>, <b>data-centric</b>, and <b>framework-centric</b> perspective, respectively. We hope our survey and this GitHub repository can serve as valuable resources to help researchers and practitioners gain a systematic understanding of the research developments in efficient LLMs and inspire them to contribute to this important and exciting field.
π€ Why Efficient LLMs are Needed?
Although LLMs are leading the next wave of AI revolution, the remarkable capabilities of LLMs come at the cost of their substantial resource demands. Figure 1 (left) illustrates the relationship between model performance and model training time in terms of GPU hours for LLaMA series, where the size of each circle is proportional to the number of model parameters. As shown, although larger models are able to achieve better performance, the amounts of GPU hours used for training them grow exponentially as model sizes scale up. In addition to training, inference also contributes quite significantly to the operational cost of LLMs. Figure 2 (right) depicts the relationship between model performance and inference throughput. Similarly, scaling up the model size enables better performance but comes at the cost of lower inference throughput (higher inference latency), presenting challenges for these models in expanding their reach to a broader customer base and diverse applications in a cost-effective way. The high resource demands of LLMs highlight the strong need to develop techniques to enhance the efficiency of LLMs. As shown in Figure 2, compared to LLaMA-1-33B, Mistral-7B, which uses grouped-query attention and sliding window attention to speed up inference, achieves comparable performance and much higher throughput. This superiority highlights the feasibility and significance of designing efficiency techniques for LLMs.
π Table of Content
- π€ Model-Centric Methods
- π’ Data-Centric Methods
- π§βπ» System-Level Efficiency Optimization and LLM Frameworks
π€ Model-Centric Methods
Model Compression
Quantization
Post-Training Quantization
Weight-Only Quantization
- I-LLM: Efficient Integer-Only Inference for Fully-Quantized Low-Bit Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intact, <ins>arXiv, 2024</ins> [Paper]
- OmniQuant: OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models, <ins>ICLR, 2024</ins> [Paper] [Code]
- OneBit: Towards Extremely Low-bit Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- GPTQ: Accurate Quantization for Generative Pre-trained Transformers, <ins>ICLR, 2023</ins> [Paper] [Code]
- QuIP: 2-Bit Quantization of Large Language Models With Guarantees, <ins>arXiv, 2023</ins> [Paper] [Code]
- AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration, <ins>arXiv, 2023</ins> [Paper] [Code]
- OWQ: Lessons Learned from Activation Outliers for Weight Quantization in Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression, <ins>arXiv, 2023</ins> [Paper] [Code]
- FineQuant: Unlocking Efficiency with Fine-Grained Weight-Only Quantization for LLMs, <ins>NeurIPS-ENLSP, 2023</ins> [Paper]
- LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale, <ins>NeurlPS, 2022</ins> [Paper] [Code]
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning, <ins>NeurIPS, 2022</ins> [Paper] [Code]
- QuantEase: Optimization-based Quantization for Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
Weight-Activation Co-Quantization
- Rotation and Permutation for Advanced Outlier Management and Efficient Quantization of LLMs, <ins>NeurIPS, 2024</ins> [Paper]
- OmniQuant: OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Models, <ins>ICLR, 2024</ins> [Paper] [Code]
- Intriguing Properties of Quantization at Scale, <ins>NeurIPS, 2023</ins> [Paper]
- ZeroQuant-V2: Exploring Post-training Quantization in LLMs from Comprehensive Study to Low Rank Compensation, <ins>arXiv, 2023</ins> [Paper] [Code]
- ZeroQuant-FP: A Leap Forward in LLMs Post-Training W4A8 Quantization Using Floating-Point Formats, <ins>NeurIPS-ENLSP, 2023</ins> [Paper] [Code]
- OliVe: Accelerating Large Language Models via Hardware-friendly Outlier-Victim Pair Quantization, <ins>ISCA, 2023</ins> [Paper] [Code]
- RPTQ: Reorder-based Post-training Quantization for Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Outlier Suppression+: Accurate Quantization of Large Language Models by Equivalent and Optimal Shifting and Scaling, <ins>arXiv, 2023</ins> [Paper] [Code]
- QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Models, <ins>arXiv, 2023</ins> [Paper]
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models, <ins>ICML, 2023</ins> [Paper] [Code]
- ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformers, <ins>NeurIPS, 2022</ins> [Paper]
Evaluation of Post-Training Quantization
- Evaluating Quantized Large Language Models, <ins>arXiv, 2024</ins> [Paper]
Quantization-Aware Training
- The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bits, <ins>arXiv, 2024</ins> [Paper]
- FP8-LM: Training FP8 Large Language Models, <ins>arXiv, 2023</ins> [Paper]
- Training and inference of large language models using 8-bit floating point, <ins>arXiv, 2023</ins> [Paper]
- BitNet: Scaling 1-bit Transformers for Large Language Models, <ins>arXiv, 2023</ins> [Paper]
- LLM-QAT: Data-Free Quantization Aware Training for Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Compression of Generative Pre-trained Language Models via Quantization, <ins>ACL, 2022</ins> [Paper]
Parameter Pruning
Structured Pruning
- Compact Language Models via Pruning and Knowledge Distillation, <ins>arXiv, 2024</ins> [Paper]
- A deeper look at depth pruning of LLMs, <ins>arXiv, 2024</ins> [Paper]
- Perplexed by Perplexity: Perplexity-Based Data Pruning With Small Reference Models, <ins>arXiv, 2024</ins> [Paper]
- Plug-and-Play: An Efficient Post-training Pruning Method for Large Language Models, <ins>ICLR, 2024</ins> [Paper]
- BESA: Pruning Large Language Models with Blockwise Parameter-Efficient Sparsity Allocation, <ins>arXiv, 2024</ins> [Paper]
- ShortGPT: Layers in Large Language Models are More Redundant Than You Expect, <ins>arXiv, 2024</ins> [Paper]
- NutePrune: Efficient Progressive Pruning with Numerous Teachers for Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- SliceGPT: Compress Large Language Models by Deleting Rows and Columns, <ins>ICLR, 2024</ins> [Paper] [Code]
- LoRAShear: Efficient Large Language Model Structured Pruning and Knowledge Recovery, <ins>arXiv, 2023</ins> [Paper]
- LLM-Pruner: On the Structural Pruning of Large Language Models, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning, <ins>Β NeurIPS-ENLSP, 2023</ins> [Paper] [Code]
- LoRAPrune: Pruning Meets Low-Rank Parameter-Efficient Fine-Tuning, <ins>arXiv, 2023</ins> [Paper]
- LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models, <ins>ICML, 2024</ins> [Paper][Code]
Unstructured Pruning
- MaskLLM: Learnable Semi-Structured Sparsity for Large Language Models, <ins>NIPS, 2024</ins> [Paper]
- Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMs, <ins>ICLR, 2024</ins> [Paper]
- SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot, <ins>ICML, 2023</ins> [Paper] [Code]
- A Simple and Effective Pruning Approach for Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- One-Shot Sensitivity-Aware Mixed Sparsity Pruning for Large Language Models, <ins>arXiv, 2023</ins> [Paper]
Low-Rank Approximation
- SVD-LLM: Singular Value Decomposition for Large Language Model Compression, <ins>arXiv, 2024</ins> [Paper] [Code]
- ASVD: Activation-aware Singular Value Decomposition for Compressing Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Language model compression with weighted low-rank factorization, <ins>ICLR, 2022</ins> [Paper]
- TensorGPT: Efficient Compression of the Embedding Layer in LLMs based on the Tensor-Train Decomposition, <ins>arXiv, 2023</ins> [Paper]
- LoSparse: Structured Compression of Large Language Models based on Low-Rank and Sparse Approximation, <ins>ICML, 2023</ins> [Paper] [Code]
Knowledge Distillation
White-Box KD
- DDK: Distilling Domain Knowledge for Efficient Large Language Models <ins>arXiv, 2024</ins> [Paper]
- Rethinking Kullback-Leibler Divergence in Knowledge Distillation for Large Language Models <ins>arXiv, 2024</ins> [Paper]
- DistiLLM: Towards Streamlined Distillation for Large Language Models, <ins>arXiv, 2024</ins> [Paper] [Code]
- Towards the Law of Capacity Gap in Distilling Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Baby Llama: Knowledge Distillation from an Ensemble of Teachers Trained on a Small Dataset with no Performance Penalty, <ins>arXiv, 2023</ins> [Paper]
- Knowledge Distillation of Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- GKD: Generalized Knowledge Distillation for Auto-regressive Sequence Models, <ins>arXiv, 2023</ins> [Paper]
- Propagating Knowledge Updates to LMs Through Distillation, <ins>arXiv, 2023</ins> [Paper] [Code]
- Less is More: Task-aware Layer-wise Distillation for Language Model Compression, <ins>ICML, 2023</ins> [Paper]
- Token-Scaled Logit Distillation for Ternary Weight Generative Language Models, <ins>arXiv, 2023</ins> [Paper]
Black-Box KD
- Zephyr: Direct Distillation of LM Alignment, <ins>arXiv, 2023</ins> [Paper]
- Instruction Tuning with GPT-4, <ins>arXiv, 2023</ins> [Paper] [Code]
- Lion: Adversarial Distillation of Closed-Source Large Language Model, <ins>arXiv, 2023</ins> [Paper] [Code]
- Specializing Smaller Language Models towards Multi-Step Reasoning, <ins>ICML, 2023</ins> [Paper] [Code]
- Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes, <ins>ACL, 2023</ins> [Paper]
- Large Language Models Are Reasoning Teachers, <ins>ACL, 2023</ins> [Paper] [Code]
- SCOTT: Self-Consistent Chain-of-Thought Distillation, <ins>ACL, 2023</ins> [Paper] [Code]
- Symbolic Chain-of-Thought Distillation: Small Models Can Also "Think" Step-by-Step, <ins>ACL, 2023</ins> [Paper]
- Distilling Reasoning Capabilities into Smaller Language Models, <ins>ACL, 2023</ins> [Paper] [Code]
- In-context Learning Distillation: Transferring Few-shot Learning Ability of Pre-trained Language Models, <ins>arXiv, 2022</ins> [Paper]
- Explanations from Large Language Models Make Small Reasoners Better, <ins>arXiv, 2022</ins> [Paper]
- DISCO: Distilling Counterfactuals with Large Language Models, <ins>arXiv, 2022</ins> [Paper] [Code]
Parameter-Sharing
- MobiLlama: Towards Accurate and Lightweight Fully Transparent GPT, <ins>arXiv, 2024</ins> [Paper]
Efficient Pre-Training
Mixed Precision Training
- Bfloat16 Processing for Neural Networks, <ins>ARITH, 2019</ins> [Paper]
- A Study of BFLOAT16 for Deep Learning Training, <ins>arXiv, 2019</ins> [Paper]
- Mixed Precision Training, <ins>ICLR, 2018</ins> [Paper]
Scaling Models
- lemon: lossless model expansion, <ins>ICLR, 2024</ins> [Paper]
- Preparing Lessons for Progressive Training on Language Models, <ins>AAAI, 2024</ins> [Paper]
- Learning to Grow Pretrained Models for Efficient Transformer Training, <ins>ICLR, 2023</ins> [Paper] [Code]
- 2x Faster Language Model Pre-training via Masked Structural Growth, <ins>arXiv, 2023</ins> [Paper]
- Reusing Pretrained Models by Multi-linear Operators for Efficient Training, <ins>NeurIPS, 2023</ins> [Paper]
- FLM-101B: An Open LLM and How to Train It with $100 K Budget, <ins>arXiv, 2023</ins> [Paper] [Code]
- Knowledge Inheritance for Pre-trained Language Models, <ins>NAACL, 2022</ins> [Paper] [Code]
- Staged Training for Transformer Language Models, <ins>ICML, 2022</ins> [Paper] [Code]
Initialization Techniques
- Deepnet: Scaling transformers to 1,000 layers, <ins>arXiv, 2022</ins> [Paper] [Code]
- ZerO Initialization: Initializing Neural Networks with only Zeros and Ones, <ins>TMLR, 2022</ins> [Paper] [Code]
- Rezero is All You Need: Fast Convergence at Large Depth, <ins>UAI, 2021</ins> [Paper] [Code]
- Batch Normalization Biases Residual Blocks Towards the Identity Function in Deep Networks, <ins>NeurIPS, 2020</ins> [Paper]
- Improving Transformer Optimization Through Better Initialization, <ins>ICML, 2020</ins> [Paper] [Code]
- Fixup Initialization: Residual Learning without Normalization, <ins>ICLR, 2019</ins> [Paper]
- On Weight Initialization in Deep Neural Networks, <ins>arXiv, 2017</ins> [Paper]
Training Optimizers
- Towards Optimal Learning of Language Models, <ins>arXiv, 2024</ins> [Paper] [Code]
- Symbolic Discovery of Optimization Algorithms, <ins>arXiv, 2023</ins> [Paper]
- Sophia: A Scalable Stochastic Second-order Optimizer for Language Model Pre-training, <ins>arXiv, 2023</ins> [Paper] [Code]
Efficient Fine-Tuning
Parameter-Efficient Fine-Tuning
Adapter-based Tuning
- OpenDelta: A Plug-and-play Library for Parameter-efficient Adaptation of Pre-trained Models, <ins>ACL Demo, 2023</ins> [Paper] [Code]
- LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Models, <ins>EMNLP, 2023</ins> [Paper] [Code]
- Compacter: Efficient Low-Rank Hypercomplex Adapter Layers, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning, <ins>NeurIPS, 2022</ins> [Paper] [Code]
- Meta-Adapters: Parameter Efficient Few-shot Fine-tuning through Meta-Learning, <ins>AutoML, 2022</ins> [Paper]
- AdaMix: Mixture-of-Adaptations for Parameter-efficient Model Tuning, <ins>EMNLP, 2022</ins> [Paper] [Code]
- SparseAdapter: An Easy Approach for Improving the Parameter-Efficiency of Adapters, <ins>EMNLP, 2022</ins> [Paper] [Code]
Low-Rank Adaptation
- HydraLoRA: An Asymmetric LoRA Architecture for Efficient Fine-Tuning, <ins>NeurIPS, 2024</ins> [Paper]
- LOFIT: Localized Fine-tuning on LLM Representations, <ins>Arxiv, 2024</ins> [Paper]
- Mixture-of-Subspaces in Low-Rank Adaptation, <ins>Arxiv, 2024</ins> [Paper] [Code]
- MEFT: Memory-Efficient Fine-Tuning through Sparse Adapter, <ins>ACL, 2024</ins> [Paper]
- LoRA Meets Dropout under a Unified Framework, <ins>arXiv, 2024</ins> [Paper]
- STAR: Constraint LoRA with Dynamic Active Learning for Data-Efficient Fine-Tuning of Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- LoRA+: Efficient Low Rank Adaptation of Large Models, <ins>arXiv, 2024</ins> [Paper]
- LoRA-FA: Memory-efficient Low-rank Adaptation for Large Language Models Fine-tuning, <ins>arXiv, 2023</ins> [Paper]
- LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition, <ins>arXiv, 2023</ins> [Paper] [Code]
- LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Multi-Head Adapter Routing for Cross-Task Generalization, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Adaptive Budget Allocation for Parameter-Efficient Fine-Tuning, <ins>ICLR, 2023</ins> [Paper]
- DyLoRA: Parameter-Efficient Tuning of Pretrained Models using Dynamic Search-Free Low Rank Adaptation, <ins>EACL, 2023</ins> [Paper] [Code]
- Tied-Lora: Enhacing Parameter Efficiency of LoRA with Weight Tying, <ins>arXiv, 2023</ins> [Paper]
- LoRA: Low-Rank Adaptation of Large Language Models, <ins>ICLR, 2022</ins> [Paper] [Code]
Prefix Tuning
- LLaMA-Adapter: Efficient Fine-tuning of Language Models with Zero-init Attention, <ins>arXiv, 2023</ins> [Paper] [Code]
- Prefix-Tuning: Optimizing Continuous Prompts for Generation <ins>ACL, 2021</ins> [Paper] [Code]
Prompt Tuning
- Compress, Then Prompt: Improving Accuracy-Efficiency Trade-off of LLM Inference with Transferable Prompt, <ins>arXiv, 2023</ins> [Paper]
- GPT Understands, Too, <ins>AI Open, 2023</ins> [Paper] [Code]
- Multi-Task Pre-Training of Modular Prompt for Few-Shot Learning <ins>ACL, 2023</ins> [Paper] [Code]
- Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learning, <ins>ICLR, 2023</ins> [Paper]
- PPT: Pre-trained Prompt Tuning for Few-shot Learning, <ins>ACL, 2022</ins> [Paper] [Code]
- Parameter-Efficient Prompt Tuning Makes Generalized and Calibrated Neural Text Retrievers, <ins>EMNLP-Findings, 2022</ins> [Paper] [Code]
- P-Tuning v2: Prompt Tuning Can Be Comparable to Finetuning Universally Across Scales and TasksοΌ<ins>ACL-Short, 2022</ins> [Paper] [Code]
- The Power of Scale for Parameter-Efficient Prompt Tuning, <ins>EMNLP, 2021</ins> [Paper]
Memory-Efficient Fine-Tuning
- A Study of Optimizations for Fine-tuning Large Language Models, <ins>arXiv, 2024/ins> [Paper]
- Sparse Matrix in Large Language Model Fine-tuning, <ins>arXiv, 2024/ins> [Paper]
- GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection, <ins>arXiv, 2024/ins> [Paper]
- ReFT: Representation Finetuning for Language Models, <ins>arXiv, 2024/ins> [Paper]
- LISA: Layerwise Importance Sampling for Memory-Efficient Large Language Model Fine-Tuning, <ins>arXiv, 2024/ins> [Paper]
- BitDelta: Your Fine-Tune May Only Be Worth One Bit, <ins>arXiv, 2024/ins> [Paper]
- Winner-Take-All Column Row Sampling for Memory Efficient Adaptation of Language Model, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Memory-Efficient Selective Fine-Tuning, <ins>ICML Workshop, 2023</ins> [Paper]
- Full Parameter Fine-tuning for Large Language Models with Limited Resources, <ins>arXiv, 2023</ins> [Paper] [Code]
- Fine-Tuning Language Models with Just Forward Passes, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Memory-Efficient Fine-Tuning of Compressed Large Language Models via sub-4-bit Integer Quantization, <ins>NeurIPS, 2023</ins> [Paper]
- LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- QLoRA: Efficient Finetuning of Quantized LLMs, <ins>NeurIPS, 2023</ins> [Paper] [Code1] [Code2]
MoE-Efficient-Supervised-Fine-Tuning
- Let the Expert Stick to His Last: Expert-Specialized Fine-Tuning for Sparse Architectural Large Language Models, <ins>arXiv, 2024</ins> [Paper]
Efficient Inference
Parallel Decoding
- CLLMs: Consistency Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- Encode Once and Decode in Parallel: Efficient Transformer Decoding, <ins>arXiv, 2024</ins> [Paper]
Speculative Decoding
- MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decoding, <ins>arXiv, 2024</ins> [Paper]
- DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inference, <ins>arXiv, 2024</ins> [Paper]
- LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding, <ins>arXiv, 2024</ins> [Paper]
- TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decoding, <ins>arXiv, 2024</ins> [Paper]
- REST: Retrieval-Based Speculative Decoding, <ins>arXiv, 2024</ins> [Paper]
- Tandem Transformers for Inference Efficient LLMs, <ins>arXiv, 2024</ins> [Paper]
- PaSS: Parallel Speculative Sampling, <ins>NeurIPS Workshop, 2023</ins> [Paper]
- Accelerating Transformer Inference for Translation via Parallel Decoding, <ins>ACL, 2023</ins> [Paper] [Code]
- Medusa: Simple Framework for Accelerating LLM Generation with Multiple Decoding Heads, <ins>Blog, 2023</ins> [Blog] [Code]
- Fast Inference from Transformers via Speculative Decoding, <ins>ICML, 2023</ins> [Paper]
- Accelerating LLM Inference with Staged Speculative Decoding, <ins>ICML Workshop, 2023</ins> [Paper]
- Accelerating Large Language Model Decoding with Speculative Sampling, <ins>arXiv, 2023</ins> [Paper]
- Speculative Decoding with Big Little Decoder, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- SpecInfer: Accelerating Generative LLM Serving with Speculative Inference and Token Tree Verification, <ins>arXiv, 2023</ins> [Paper] [Code]
- Inference with Reference: Lossless Acceleration of Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- SEED: Accelerating Reasoning Tree Construction via Scheduled Speculative Decoding, <ins>arXiv, 2024</ins> [Paper]
KV-Cache Optimization
- vl-cache: sparsity and modality-aware kv cache compression for vision-language model inference acceleration, <ins>arXiv, 2024</ins> [Paper]
- MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention, <ins>arXiv, 2024</ins> [Paper]
- KVSharer: Efficient Inference via Layer-Wise Dissimilar KV Cache Sharing, <ins>arXiv, 2024</ins> [Paper]
- DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads, <ins>arXiv, 2024</ins> [Paper]
- LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inference, <ins>arXiv, 2024</ins> [Paper]
- Palu: Compressing KV-Cache with Low-Rank Projection, <ins>arXiv, 2024</ins> [Paper] [Code]
- LOOK-M: Look-Once Optimization in KV Cache for Efficient Multimodal Long-Context Inference, <ins>arXiv, 2024</ins> [Paper]
- D2O: Dynamic Discriminative Operations for Efficient Generative Inference of Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- QUEST: Query-Aware Sparsity for Efficient Long-Context LLM Inference, <ins>ICML, 2024</ins> [Paper]
- Reducing Transformer Key-Value Cache Size with Cross-Layer Attention, <ins>arXiv, 2024</ins> [Paper]
- SnapKV : LLM Knows What You are Looking for Before Generation, <ins>arXiv, 2024</ins> [Paper]
- Anchor-based Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- kvquant: Towards 10 million context length llm inference with kv cache quantization, <ins>arXiv, 2024</ins> [Paper]
- GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLM, <ins>arXiv, 2024</ins> [Paper]
- Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference, <ins>arXiv, 2024</ins> [Paper]
- No Token Left Behind: Reliable KV Cache Compression via Importance-Aware Mixed Precision Quantization, <ins>arXiv, 2024</ins> [Paper]
- Get More with LESS: Synthesizing Recurrence with KV Cache Compression for Efficient LLM Inference, <ins>arXiv, 2024</ins> [Paper]
- WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains More, <ins>arXiv, 2024</ins> [Paper]
- On the Efficacy of Eviction Policy for Key-Value Constrained Generative Language Model Inference, <ins>arXiv, 2024</ins> [Paper]
- KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache, <ins>arXiv, 2024</ins> [Paper] [Code]
- Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs, <ins>ICLR, 2024</ins> [Paper]
- SkipDecode: Autoregressive Skip Decoding with Batching and Caching for Efficient LLM Inference, <ins>arXiv, 2023</ins> [Paper]
- H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models, <ins>NeurIPS, 2023</ins> [Paper]
- Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time, <ins>NeurIPS, 2023</ins> [Paper]
- Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformers, <ins>arXiv, 2023</ins> [Paper]
Efficient Architecture
Efficient Attention
Sharing-based Attention
- LoMA: Lossless Compressed Memory Attention, <ins>arXiv, 2024</ins> [Paper]
- MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Cases, <ins>arXiv, 2024</ins> [Paper]
- GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints, <ins>EMNLP, 2023</ins> [Paper]
- Fast Transformer Decoding: One Write-Head is All You Need, <ins>arXiv, 2019</ins> [Paper]
Feature Information Reduction
- NystrΓΆmformer: A nystrΓΆm-based algorithm for approximating self-attention, <ins>AAAI, 2021</ins> [Paper] [Code]
- Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing, <ins>NeurIPS, 2020</ins> [Paper] [Code]
- Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks, <ins>ICML, 2019</ins> [Paper]
Kernelization or Low-Rank
- Loki: Low-Rank Keys for Efficient Sparse Attention, <ins>ICML Workshop, 2023</ins> [Paper]
- Sumformer: Universal Approximation for Efficient Transformers, <ins>ICML Workshop, 2023</ins> [Paper]
- FLuRKA: Fast fused Low-Rank & Kernel Attention, <ins>arXiv, 2023</ins> [Paper]
- Scatterbrain: Unifying Sparse and Low-rank Attention, <ins>NeurlPS, 2021</ins> [Paper] [Code]
- Rethinking Attention with Performers, <ins>ICLR, 2021</ins> [Paper] [Code]
- Random Feature Attention, <ins>ICLR, 2021</ins> [Paper]
- Linformer: Self-Attention with Linear Complexity, <ins>arXiv, 2020</ins> [Paper] [Code]
- Lightweight and Efficient End-to-End Speech Recognition Using Low-Rank Transformer, <ins>ICASSP, 2020</ins> [Paper]
- Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention, <ins>ICML, 2020</ins> [Paper] [Code]
Fixed Pattern Strategies
- Simple linear attention language models balance the recall-throughput tradeoff, <ins>arXiv, 2024</ins> [Paper]
- Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models, <ins>arXiv, 2024</ins> [Paper] [Code]
- Faster Causal Attention Over Large Sequences Through Sparse Flash Attention, <ins>ICML Workshop, 2023</ins> [Paper]
- Poolingformer: Long Document Modeling with Pooling Attention, <ins>ICML, 2021</ins> [Paper]
- Big Bird: Transformers for Longer Sequences, <ins>NeurIPS, 2020</ins> [Paper] [Code]
- Longformer: The Long-Document Transformer, <ins>arXiv, 2020</ins> [Paper] [Code]
- Blockwise Self-Attention for Long Document Understanding, <ins>EMNLP, 2020</ins> [Paper] [Code]
- Generating Long Sequences with Sparse Transformers, <ins>arXiv, 2019</ins> [Paper]
Learnable Pattern Strategies
- MoA: Mixture of Sparse Attention for Automatic Large Language Model Compression, <ins>arXiv, 2024</ins> [Paper]
- HyperAttention: Long-context Attention in Near-Linear Time, <ins>arXiv, 2023</ins> [Paper] [Code]
- ClusterFormer: Neural Clustering Attention for Efficient and Effective Transformer, <ins>ACL, 2022</ins> [Paper]
- Reformer: The Efficient Transformer, <ins>ICLR, 2022</ins> [Paper] [Code]
- Sparse Sinkhorn Attention, <ins>ICML, 2020</ins> [Paper]
- Fast Transformers with Clustered Attention, <ins>NeurIPS, 2020</ins> [Paper] [Code]
- Efficient Content-Based Sparse Attention with Routing Transformers, <ins>TACL, 2020</ins> [Paper] [Code]
Mixture of Experts
MoE-based LLMs
- Self-MoE: Towards Compositional Large Language Models with Self-Specialized Experts, <ins>arXiv, 2024</ins> [Paper]
- Lory: Fully Differentiable Mixture-of-Experts for Autoregressive Language Model Pre-training, 2024</ins> [Paper]
- JetMoE: Reaching Llama2 Performance with 0.1M Dollars, 2024</ins> [Paper]
- An Expert is Worth One Token: Synergizing Multiple Expert LLMs as Generalist via Expert Token Routing, 2024</ins> [Paper]
- Mixture-of-Depths: Dynamically allocating compute in transformer-based language models, 2024</ins> [Paper]
- Branch-Train-MiX: Mixing Expert LLMs into a Mixture-of-Experts LLM, 2024</ins> [Paper]
- Mixtral of Experts, <ins>arXiv, 2024</ins> [Paper] [Code]
- Mistral 7B, <ins>arXiv, 2023</ins> [Paper] [Code]
- PanGu-Ξ£: Towards Trillion Parameter Language Model with Sparse Heterogeneous Computing, <ins>arXiv, 2023</ins> [Paper]
- Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity, <ins>JMLR, 2022</ins> [Paper] [Code]
- Efficient Large Scale Language Modeling with Mixtures of Experts, <ins>EMNLP, 2022</ins> [Paper] [Code]
- BASE Layers: Simplifying Training of Large, Sparse Models, <ins>ICML, 2021</ins> [Paper] [Code]
- GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding, <ins>ICLR, 2021</ins> [Paper]
Algorithm-Level MoE Optimization
- SEER-MoE: Sparse Expert Efficiency through Regularization for Mixture-of-Experts, <ins>arXiv, 2024/ins> [Paper]
- Scaling Laws for Fine-Grained Mixture of Experts, <ins>arXiv, 2024/ins> [Paper]
- Lifelong Language Pretraining with Distribution-Specialized Experts, <ins>ICML, 2023</ins> [Paper]
- Mixture-of-Experts Meets Instruction Tuning:A Winning Combination for Large Language Models, <ins>arXiv, 2023</ins> [Paper]
- Mixture-of-Experts with Expert Choice Routing, <ins>NeurIPS, 2022</ins> [Paper]
- StableMoE: Stable Routing Strategy for Mixture of Experts, <ins>ACL, 2022</ins> [Paper] [Code]
- On the Representation Collapse of Sparse Mixture of Experts, <ins>NeurIPS, 2022</ins> [Paper]
Long Context LLMs
Extrapolation and Interpolation
- Two Stones Hit One Bird: Bilevel Positional Encoding for Better Length Extrapolation, <ins>ICML, 2024</ins> [Paper]
- β-Bench: Extending Long Context Evaluation Beyond 100K Tokens, <ins>arXiv, 2024</ins> [Paper]
- Resonance RoPE: Improving Context Length Generalization of Large Language Models, <ins>arXiv, 2024</ins> [Paper] [Code]
- LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens, <ins>arXiv, 2024</ins> [Paper]
- E^2-LLM:Efficient and Extreme Length Extension of Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- Scaling Laws of RoPE-based Extrapolation, <ins>arXiv, 2023</ins> [Paper]
- A Length-Extrapolatable Transformer, <ins>ACL, 2023</ins> [Paper] [Code]
- Extending Context Window of Large Language Models via Positional Interpolation, <ins>arXiv, 2023</ins> [Paper]
- NTK Interpolation, <ins>Blog, 2023</ins> [Reddit post]
- YaRN: Efficient Context Window Extension of Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- CLEX: Continuous Length Extrapolation for Large Language Models, <ins>arXiv, 2023</ins> [Paper][Code]
- PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Training, <ins>arXiv, 2023</ins> [Paper][Code]
- Functional Interpolation for Relative Positions Improves Long Context Transformers, <ins>arXiv, 2023</ins> [Paper]
- Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation, <ins>ICLR, 2022</ins> [Paper] [Code]
- Exploring Length Generalization in Large Language Models, <ins>NeurIPS, 2022</ins> [Paper]
Recurrent Structure
- Retentive Network: A Successor to Transformer for Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Recurrent Memory Transformer, <ins>NeurIPS, 2022</ins> [Paper] [Code]
- Block-Recurrent Transformers, <ins>NeurIPS, 2022</ins> [Paper] [Code]
- β-former: Infinite Memory Transformer, <ins>ACL, 2022</ins> [Paper] [Code]
- Memformer: A Memory-Augmented Transformer for Sequence Modeling, <ins>AACL-Findings, 2020</ins> [Paper] [Code]
- Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context, <ins>ACL, 2019</ins> [Paper] [Code]
Segmentation and Sliding Window
- XL3M: A Training-free Framework for LLM Length Extension Based on Segment-wise Inference, <ins>arXiv, 2024</ins> [Paper]
- TransformerFAM: Feedback attention is working memory, <ins>arXiv, 2024</ins> [Paper]
- Naive Bayes-based Context Extension for Large Language Models, <ins>NAACL, 2024</ins> [Paper]
- Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention, <ins>arXiv, 2024</ins> [Paper]
- Training LLMs over Neurally Compressed Text, <ins>arXiv, 2024</ins> [Paper]
- LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- Training-Free Long-Context Scaling of Large Language Models, <ins>arXiv, 2024</ins> [Paper] [Code]
- Long-Context Language Modeling with Parallel Context Encoding, <ins>arXiv, 2024</ins> [Paper] [Code]
- Soaring from 4K to 400K: Extending LLMβs Context with Activation Beacon, <ins>arXiv, 2024</ins> [Paper] [Code]
- LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuning, <ins>arXiv, 2024</ins> [Paper] [Code]
- Extending Context Window of Large Language Models via Semantic Compression, <ins>arXiv, 2023</ins> [Paper]
- Efficient Streaming Language Models with Attention Sinks, <ins>arXiv, 2023</ins> [Paper] [Code]
- Parallel Context Windows for Large Language Models, <ins>ACL, 2023</ins> [Paper] [Code]
- LongNet: Scaling Transformers to 1,000,000,000 Tokens, <ins>arXiv, 2023</ins> [Paper] [Code]
- Efficient Long-Text Understanding with Short-Text Models, <ins>TACL, 2023</ins> [Paper] [Code]
Memory-Retrieval Augmentation
- InfLLM: Unveiling the Intrinsic Capacity of LLMs for Understanding Extremely Long Sequences with Training-Free Memory, <ins>arXiv, 2024</ins> [Paper]
- Landmark Attention: Random-Access Infinite Context Length for Transformers, <ins>arXiv, 2023</ins> [Paper] [Code]
- Augmenting Language Models with Long-Term Memory, <ins>NeurIPS, 2023</ins> [Paper]
- Unlimiformer: Long-Range Transformers with Unlimited Length Input, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Focused Transformer: Contrastive Training for Context Scaling, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Retrieval meets Long Context Large Language Models, <ins>arXiv, 2023</ins> [Paper]
- Memorizing Transformers, <ins>ICLR, 2022</ins> [Paper] [Code]
Transformer Alternative Architecture
State Space Models
- Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality, <ins>arXiv, 2024</ins> [Paper]
- MoE-Mamba: Efficient Selective State Space Models with Mixture of Experts, <ins>arXiv, 2024</ins> [Paper]
- DenseMamba: State Space Models with Dense Hidden Connection for Efficient Large Language Models, <ins>arXiv, 2024</ins> [Paper] [Code]
- MambaByte: Token-free Selective State Space Model, <ins>arXiv, 2024</ins> [Paper]
- Sparse Modular Activation for Efficient Sequence Modeling, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Mamba: Linear-Time Sequence Modeling with Selective State Spaces, <ins>arXiv, 2023</ins> [Paper] [Code]
- Hungry Hungry Hippos: Towards Language Modeling with State Space Models, <ins>ICLR 2023</ins> [Paper] [Code]
- Long Range Language Modeling via Gated State Spaces, <ins>ICLR, 2023</ins> [Paper]
- Block-State Transformers, <ins>NeurIPS, 2023</ins> [Paper]
- Efficiently Modeling Long Sequences with Structured State Spaces, <ins>ICLR, 2022</ins> [Paper] [Code]
- Diagonal State Spaces are as Effective as Structured State Spaces, <ins>NeurIPS, 2022</ins> [Paper] [Code]
Other Sequential Models
- Differential Transformer, <ins>arXiv, 2024</ins> [Paper]
- Scalable MatMul-free Language Modeling, <ins>arXiv, 2024</ins> [Paper]
- You Only Cache Once: Decoder-Decoder Architectures for Language Models, <ins>arXiv, 2024</ins> [Paper]
- MEGALODON: Efficient LLM Pretraining and Inference with Unlimited Context Length, <ins>arXiv, 2024</ins> [Paper]
- DiJiang: Efficient Large Language Models through Compact Kernelization, <ins>arXiv, 2024</ins> [Paper]
- Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models, <ins>arXiv, 2024</ins> [Paper]
- PanGu-Ο: Enhancing Language Model Architectures via Nonlinearity Compensation, <ins>arXiv, 2023</ins> [Paper]
- RWKV: Reinventing RNNs for the Transformer Era, <ins>EMNLP-Findings, 2023</ins> [Paper]
- Hyena Hierarchy: Towards Larger Convolutional Language Models, <ins>arXiv, 2023</ins> [Paper]
- MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformers, <ins>arXiv, 2023</ins> [Paper]
π’ Data-Centric Methods
Data Selection
Data Selection for Efficient Pre-Training
- MATES: Model-Aware Data Selection for Efficient Pretraining with Data Influence Models, <ins>arXiv, 2024</ins> [Paper]
- DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining, <ins>NeurIPS, 2023</ins> [Paper]
- Data Selection for Language Models via Importance Resampling, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- NLP From Scratch Without Large-Scale Pretraining: A Simple and Efficient Framework, <ins>ICML, 2022</ins> [Paper] [Code]
- Span Selection Pre-training for Question Answering, <ins>ACL, 2020</ins> [Paper] [Code]
Data Selection for Efficient Fine-Tuning
- Show, Donβt Tell: Aligning Language Models with Demonstrated Feedback, <ins>arXiv, 2024</ins> [Paper]
- Synthetic Data (Almost) from Scratch: Generalized Instruction Tuning for Language Models, <ins>arXiv, 2024</ins> [Paper]
- AutoMathText: Autonomous Data Selection with Language Models for Mathematical Texts, <ins>arXiv, 2024</ins> [Paper] [Code]
- What Makes Good Data for Alignment? A Comprehensive Study of Automatic Data Selection in Instruction Tuning, <ins>ICLR, 2024</ins> [Paper] [Code]
- How to Train Data-Efficient LLMs, <ins>arXiv, 2024</ins>[Paper]
- LESS: Selecting Influential Data for Targeted Instruction Tuning, <ins>arXiv, 2024</ins> [Paper] [Code]
- Superfiltering: Weak-to-Strong Data Filtering for Fast Instruction-Tuning, <ins>arXiv, 2024</ins> [Paper] [Code]
- One Shot Learning as Instruction Data Prospector for Large Language Models, <ins>arXiv, 2023</ins> [Paper]
- MoDS: Model-oriented Data Selection for Instruction Tuning, <ins>arXiv, 2023</ins> [Paper] [Code]
- From Quantity to Quality: Boosting LLM Performance with Self-Guided Data Selection for Instruction Tuning, <ins>arXiv, 2023</ins> [Paper] [Code]
- Instruction Mining: When Data Mining Meets Large Language Model Finetuning, <ins>arXiv, 2023</ins> [Paper]
- Data-Efficient Finetuning Using Cross-Task Nearest Neighbors, <ins>ACL, 2023</ins> [Paper] [Code]
- Data Selection for Fine-tuning Large Language Models Using Transferred Shapley Values, <ins>ACL SRW, 2023</ins> [Paper] [Code]
- Maybe Only 0.5% Data is Needed: A Preliminary Exploration of Low Training Data Instruction Tuning, <ins>arXiv, 2023</ins> [Paper]
- AlpaGasus: Training A Better Alpaca with Fewer Data, <ins>arXiv, 2023</ins> [Paper] [Code]
- LIMA: Less Is More for Alignment, <ins>arXiv, 2023</ins> [Paper]
Prompt Engineering
Few-Shot Prompting
Demonstration Organization
Demonstration Selection
- Unified Demonstration Retriever for In-Context Learning, <ins>ACL, 2023</ins> [Paper] [Code]
- Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learning, <ins> NeurIPS, 2023</ins> [Paper] [Code]
- In-Context Learning with Iterative Demonstration Selection, <ins>arXiv, 2022</ins> [Paper]
- Dr.ICL: Demonstration-Retrieved In-context Learning, <ins>arXiv, 2022</ins> [Paper]
- Learning to Retrieve In-Context Examples for Large Language Models, <ins>arXiv, 2022</ins> [Paper]
- Finding Supporting Examples for In-Context Learning, <ins>arXiv, 2022</ins> [Paper]
- Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Ordering, <ins>ACL, 2023</ins> [Paper] [Code]
- Selective Annotation Makes Language Models Better Few-Shot Learners, <ins>ICLR, 2023</ins> [Paper] [Code]
- What Makes Good In-Context Examples for GPT-3? <ins>DeeLIO, 2022</ins> [Paper]
- Learning To Retrieve Prompts for In-Context Learning, <ins>NAACL-HLT, 2022</ins> [Paper] [Code]
- Active Example Selection for In-Context Learning, <ins> EMNLP, 2022</ins> [Paper] [Code]
- Rethinking the Role of Demonstrations: What makes In-context Learning Work? <ins> EMNLP, 2022</ins> [Paper] [Code]
Demonstration Ordering
- Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivity, <ins>ACL, 2022</ins> [Paper]
Template Formatting
Instruction Generation
- Large Language Models as Optimizers, <ins>arXiv, 2023</ins> [Paper]
- Instruction Induction: From Few Examples to Natural Language Task Descriptions, <ins>ACL, 2023</ins> [Paper] [Code]
- Large Language Models Are Human-Level Prompt Engineers, <ins>ICLR, 2023</ins> [Paper] [Code]
- TeGit: Generating High-Quality Instruction-Tuning Data with Text-Grounded Task Design, <ins>arXiv, 2023</ins> [Paper]
- Self-Instruct: Aligning Language Model with Self Generated Instructions, <ins>ACL, 2023</ins> [Paper] [Code]
Multi-Step Reasoning
- Training Language Models to Self-Correct via Reinforcement Learning, <ins>arXiv, 2024</ins> [Paper]
- Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters, <ins>arXiv, 2024</ins> [Paper]
- Learning to Reason with LLMs, <ins>Website, 2024</ins> [Html]
- Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking, <ins>arXiv, 2024</ins> [Paper]
- From Explicit CoT to Implicit CoT: Learning to Internalize CoT Step by Step, <ins>ICLR, 2024</ins> [Paper]
- Automatic Chain of Thought Prompting in Large Language Models, <ins>ICLR, 2023</ins> [Paper] [Code]
- Measuring and Narrowing the Compositionality Gap in Language Models, <ins>EMNLP, 2023</ins> [Paper] [Code]
- ReAct: Synergizing Reasoning and Acting in Language Models, <ins>ICLR, 2023</ins> [Paper] [Code]
- Least-to-Most Prompting Enables Complex Reasoning in Large Language Models, <ins>ICLR, 2023</ins> [Paper]
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Tree of Thoughts: Deliberate Problem Solving with Large Language Models, <ins>NeurIPS, 2023</ins> [Paper] [Code]
- Self-Consistency Improves Chain of Thought Reasoning in Language Models, <ins>ICLR, 2023</ins> [Paper]
- Graph of Thoughts: Solving Elaborate Problems with Large Language Models, <ins>arXiv, 2023</ins> [Paper] [Code]
- Contrastive Chain-of-Thought Prompting, <ins>arXiv, 2023</ins> [Paper] [Code]
- Everything of Thoughts: Defying the Law of Penrose Triangle for Thought Generation, <ins>arXiv, 2023</ins> [Paper]
- Chain-of-Thought Prompting Elicits Reasoning in Large Language Models, <ins>NeurIPS, 2022</ins> [Paper]
Parallel Generation
- Better & Faster Large Language Models via Multi-token Prediction, <ins>arXiv, 2023</ins> [Paper]
- Skeleton-of-Thought: Large Language Models Can Do Parallel Decoding, <ins>arXiv, 2023</ins> [Paper] [Code]
Prompt Compression
- LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression, <ins>arXiv, 2024</ins> [Paper]
- PCToolkit: A Unified Plug-and-Play Prompt Compression Toolkit of Large Language Models, <ins>arXiv, 2024</ins> [Paper]
- Compressed Context Memory For Online Language Model Interaction, <ins>ICLR, 2024</ins> [Paper]
- Learning to Compress Prompts with Gist Tokens, <ins>arXiv, 2023</ins> [Paper]
- Adapting Language Models to Compress Contexts, <ins>EMNLP, 2023</ins> [Paper] [Code]
- In-context Autoencoder for Context Compression in a Large Language Model, <ins>arXiv, 2023</ins> [Paper] [Code]
- LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression, <ins>arXiv, 2023</ins> [Paper] [Code]
- Discrete Prompt Compression with Reinforcement Learning, <ins>arXiv, 2023</ins> [Paper]
- Nugget 2D: Dynamic Contextual Compression for Scaling Decoder-only Language Models, <ins>arXiv, 2023</ins> [Paper]
Prompt Generation
- TempLM: Distilling Language Models into Template-Based Generators, <ins>arXiv, 2022</ins> [Paper] [Code]
- PromptGen: Automatically Generate Prompts using Generative Models, <ins>NAACL Findings, 2022</ins> [Paper]
- AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts, <ins>EMNLP, 2020</ins> [Paper] [Code]
π§βπ» System-Level Efficiency Optimization and LLM Frameworks
System-Level Efficiency Optimization
System-Level Pre-Training Efficiency Optimization
- MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUs, <ins>arXiv, 2024</ins> [Paper]
- CoLLiE: Collaborative Training of Large Language Models in an Efficient Way, <ins>EMNLP, 2023</ins> [Paper] [Code]
- An Efficient 2D Method for Training Super-Large Deep Learning Models, <ins>IPDPS, 2023</ins> [Paper] [Code]
- PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel, <ins>VLDB, 2023</ins> [Paper]
- Bamboo: Making Preemptible Instances Resilient for Affordable Training, <ins>NSDI, 2023</ins> [Paper] [Code]
- Oobleck: Resilient Distributed Training of Large Models Using Pipeline Templates, <ins>SOSP, 2023</ins> [Paper] [Code]
- Varuna: Scalable, Low-cost Training of Massive Deep Learning Models, <ins>EuroSys, 2022</ins> [Paper] [Code]
- Unity: Accelerating DNN Training Through Joint Optimization of Algebraic Transformations and Parallelization, <ins>OSDI, 2022</ins> [Paper] [Code]
- Tesseract: Parallelize the Tensor Parallelism Efficiently, <ins>ICPP, 2022</ins>, [Paper]
- Alpa: Automating Inter- and Intra-Operator Parallelism for Distributed Deep Learning, <ins>OSDI, 2022</ins>, [Paper][Code]
- Maximizing Parallelism in Distributed Training for Huge Neural Networks, <ins>arXiv, 2021</ins> [Paper]
- Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism, <ins>arXiv, 2020</ins> [Paper]
- Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM, <ins>SC, 2021</ins> [Paper] [Code]
- ZeRO-Infinity: breaking the GPU memory wall for extreme scale deep learning, <ins>SC, 2021</ins> [Paper]
- ZeRO-Offload: Democratizing Billion-Scale Model Training, <ins>USENIX ATC, 2021</ins> [Paper] [Code]
- ZeRO: Memory Optimizations Toward Training Trillion Parameter Models, <ins>SC, 2020</ins> [Paper] [Code]
System-Level Serving Efficiency Optimization
Serving System Design
- LUT TENSOR CORE: Lookup Table Enables Efficient Low-Bit LLM Inference Acceleration, <ins>arXiv, 2024</ins> [Paper]
- TurboTransformers: an efficient GPU serving system for transformer models, <ins>PPoPP, 2021</ins> [Paper]
- Orca: A Distributed Serving System for Transformer-Based Generative Models, <ins>OSDI, 2022</ins> [Paper]
- FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU, <ins>ICML, 2023</ins> [Paper] [Code]
- Efficiently Scaling Transformer Inference, <ins>MLSys, 2023</ins> [Paper]
- DeepSpeed-Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scale, <ins>SC, 2022</ins> [Paper]
- Efficient Memory Management for Large Language Model Serving with PagedAttention, <ins>SOSP, 2023</ins> [Paper] [Code]
- S-LoRA: Serving Thousands of Concurrent LoRA Adapters, <ins>arXiv, 2023</ins> [Paper] [Code]
- Petals: Collaborative Inference and Fine-tuning of Large Models, <ins>arXiv, 2023</ins> [Paper]
- SpotServe: Serving Generative Large Language Models on Preemptible Instances, <ins>arXiv, 2023</ins> [Paper]
Serving Performance Optimization
- KV-Runahead: Scalable Causal LLM Inference by Parallel Key-Value Cache Generation, <ins>arXiv, ICML</ins> [Paper]
- CacheGen: KV Cache Compression and Streaming for Fast Language Model Serving, <ins>arXiv, 2024</ins> [Paper]
- Predictive Pipelined Decoding: A Compute-Latency Trade-off for Exact LLM Decoding, <ins>TMLR, 2024</ins> [Paper]
- Flash-LLM: Enabling Cost-Effective and Highly-Efficient Large Generative Model Inference with Unstructured Sparsity, <ins>arXiv, 2023</ins> [Paper]
- S3: Increasing GPU Utilization during Generative Inference for Higher Throughput, <ins>arXiv, 2023</ins> [Paper]
- Fast Distributed Inference Serving for Large Language Models, <ins>arXiv, 2023</ins> [Paper]
- Response Length Perception and Sequence Scheduling: An LLM-Empowered LLM Inference Pipeline, <ins>arXiv, 2023</ins> [Paper]
- SARATHI: Efficient LLM Inference by Piggybacking Decodes with Chunked Prefills, <ins>arXiv, 2023</ins> [Paper]
- FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance, <ins>arXiv, 2023</ins> [Paper]
- Prompt Cache: Modular Attention Reuse for Low-Latency Inference, <ins>arXiv, 2023</ins> [Paper]
- Fairness in Serving Large Language Models, <ins>arXiv, 2023</ins> [Paper]
Algorithm-Hardware Co-Design
- FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision, <ins>arXiv, 2024</ins> [Paper]
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness, <ins>NeurIPS, 2022</ins> [Paper] [Code]
- FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning, <ins>arXiv, 2023</ins> [Paper] [Code]
- Flash-Decoding for Long-Context Inference, <ins>Blog, 2023</ins> [Blog]
- FlashDecoding++: Faster Large Language Model Inference on GPUs, <ins>arXiv, 2023</ins> [Paper]
- PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU, <ins>arXiv, 2023</ins> [Paper] [Code]
- LLM in a flash: Efficient Large Language Model Inference with Limited Memory, <ins>arXiv, 2023</ins> [Paper]
- Chiplet Cloud: Building AI Supercomputers for Serving Large Generative Language Models, <ins>arXiv, 2023</ins> [Paper]
- EdgeMoE: Fast On-Device Inference of MoE-based Large Language Models, <ins>arXiv, 2022</ins> [Paper]
LLM Frameworks
<div align="center">Efficient Training | Efficient Inference | Efficient Fine-Tuning | |
---|---|---|---|
DeepSpeed [Code] | β | β | β |
Megatron [Code] | β | β | β |
ColossalAI [Code] | β | β | β |
Nanotron [Code] | β | β | β |
MegaBlocks [Code] | β | β | β |
FairScale [Code] | β | β | β |
Pax [Code] | β | β | β |
Composer [Code] | β | β | β |
OpenLLM [Code] | β | β | β |
LLM-Foundry [Code] | β | β | β |
vLLM [Code] | β | β | β |
TensorRT-LLM [Code] | β | β | β |
TGI [Code] | β | β | β |
RayLLM [Code] | β | β | β |
MLC LLM [Code] | β | β | β |
Sax [Code] | β | β | β |
Mosec [Code] | β | β | β |