Skip to main content
QUICK REVIEW

[论文解读] Designing Large Foundation Models for Efficient Training and Inference: A Survey

Dong Liu, Yu, Yanxuan|arXiv (Cornell University)|Sep 3, 2024
Topic ModelingComputer Science被引用 5
一句话总结

本综述回顾了当代大语言模型的模型压缩技术,重点关注量化、知识蒸馏、剪枝,以及系统级设计,以实现高效的训练和推理。

ABSTRACT

This paper focuses on modern efficient training and inference technologies on foundation models and illustrates them from two perspectives: model and system design. Model and System Design optimize LLM training and inference from different aspects to save computational resources, making LLMs more efficient, affordable, and more accessible. The paper list repository is available at https://github.com/NoakLiu/Efficient-Foundation-Models-Survey.

研究动机与目标

  • Motivate the need for efficient deployment of large language models on diverse hardware and devices.
  • Summarize three mainstream model compression techniques: quantization, knowledge distillation, and pruning.
  • Discuss system-level design approaches that optimize memory usage and KV-cache management for LLMs.
  • Highlight recent advances and representative methods that reduce resource consumption while preserving performance.

提出的方法

  • Explain quantization approaches such as AWQ (activation-aware quantization) and integer-arithmetic-only inference.
  • Describe knowledge distillation including traditional forward KD and the reverse KD approach (MiniLLM).
  • Outline pruning strategies exemplified by LLMPrunner and structural pruning concepts.
  • Discuss system-design innovations like PagedAttention for non-contiguous KV cache and StreamingLLM for cache eviction and attention sinks.

实验结果

研究问题

  • RQ1What are the main techniques for compressing large language models and how do they trade off accuracy for efficiency?
  • RQ2How do quantization, distillation, and pruning contribute to smaller, faster LLMs with lower memory usage?
  • RQ3What system-level design strategies enable efficient memory management and faster inference for LLMs?
  • RQ4What evidence exists for the effectiveness of these techniques in reducing resource requirements while preserving performance?

主要发现

  • Activation-aware weight quantization (AWQ) helps reduce quantization loss by selecting salient weights based on activation magnitude and learning a channel scaling factor.
  • Integer-arithmetic-only inference with 8-bit quantization can achieve comparable performance to floating-point inference on various hardware.
  • Knowledge distillation, including MiniLLM, enables smaller models to mimic teacher outputs, with reverse KD addressing distribution biases in forward KD.
  • LLMPrunner shows that pruning can achieve 20% parameter reduction while retaining 90% of original performance.
  • System designs like PagedAttention save up to 9.79% of memory during parallel sampling and up to 55.16% during beam search.
  • StreamingLLM reduces memory usage by changing KV-cache eviction strategy and stabilizing attention sink tokens, achieving 22.2x per-token inference speed improvements.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。