Abstract
Large Language Models (LLMs) have demonstrated remarkable capabilities in important tasks such as natural language understanding and language generation, and thus have the potential to make a substantial impact on our society. Such capabilities, however, come with the considerable resources they demand, highlighting the strong need to develop effective techniques for addressing their efficiency challenges. 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 model-centric, data-centric, and framework-centric perspective, respectively.
Introduction: The Efficiency Wall
The "Scaling Laws" of AI have proven that more parameters and more data generally lead to better performance. However, this has created a massive resource gap. For context, training LLaMA-2 70B required roughly 71,680 GPU days on Nvidia A100s. Beyond training, inference is plagued by high latency and the "memory wall"—specifically the KV-cache bottleneck, where storing the context of a conversation consumes more memory than the model weights themselves. This survey addresses the research aimed at breaking these barriers to make LLMs accessible without "Google-scale" infrastructure.
A Taxonomy of Efficiency
The authors organize the vast literature into a three-pillared taxonomy: model-centric, data-centric, and framework-centric methods. This structure allows for a holistic view of optimization across the entire model lifecycle.
1. Model-Centric Methods
Model-centric approaches focus on optimizing the model architecture and parameters themselves to reduce their footprint and computational cost.
- Compression: Techniques like Quantization (reducing 16-bit weights to 4-bit or even 2-bit using GPTQ or AWQ), Pruning (removing redundant neurons), and Knowledge Distillation (teaching a "student" model to mimic a "teacher").
- Efficient Fine-Tuning: Moving beyond full-parameter updates to Parameter-Efficient Fine-Tuning (PEFT) like LoRA, which only trains a tiny fraction of the model's weights.
- Efficient Inference: Using Speculative Decoding (using a tiny model to draft tokens that a large model verifies) and KV-Cache optimization to handle long sequences.
2. Data-Centric Methods
- Data Selection: Instead of training on the whole internet, researchers use importance resampling (e.g., DSIR) to find the most "informative" data, significantly cutting training time.
- Prompt Engineering: Techniques like Prompt Compression (summarizing long contexts into "gist tokens") reduce the computational cost of every user query.
3. Framework-Centric Methods
The paper reviews specialized software stacks like vLLM (which uses PagedAttention to manage memory like an OS), DeepSpeed, and Nvidia’s TensorRT-LLM that optimize how models actually run on hardware.
Key Insights and Results
- The KV-Cache Bottleneck: In modern inference, the bottleneck isn't just the math (FLOPs); it's the memory bandwidth required to load the "keys" and "values" of previous tokens. This has led to the rise of Grouped-Query Attention (GQA), now standard in models like LLaMA-3.
- Orthogonality: Many of these techniques are "orthogonal," meaning they can be stacked. For example, QLoRA combines 4-bit quantization with LoRA fine-tuning, allowing a 65B parameter model to be fine-tuned on a single consumer GPU.
- Throughput Gains: Systems like Orca and vLLM demonstrate up to 36.9x improvement in throughput compared to naive implementations by using iteration-level scheduling.
- Compression Limits: Research shows that LLMs can be compressed to 3 or 4 bits with negligible accuracy loss, and cutting-edge methods like QuIP are pushing toward 2-bit weights.
Limitations and Future Work
Despite rapid progress, several challenges remain. There is a notable Hardware-Algorithm Mismatch, where theoretically efficient algorithms (like unstructured pruning) run slowly on current GPUs optimized for dense matrix multiplication. Additionally, there is a lack of study on how efficiency techniques affect model safety, bias, and hallucinations. Finally, while we can run 7B models on phones, running "frontier" models (100B+) on consumer edge devices remains an unsolved challenge requiring further breakthroughs in hardware-software co-design.
Summary updated