Skip to main content
QUICK REVIEW

[Paper Review] Designing Large Foundation Models for Efficient Training and Inference: A Survey

Dong Liu, Yu, Yanxuan|arXiv (Cornell University)|Sep 3, 2024
Topic ModelingComputer Science5 citations
TL;DR

This survey reviews contemporary model compression techniques for large language models, focusing on quantization, knowledge distillation, pruning, and system-level design to enable efficient training and inference.

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.

Motivation & Objective

  • 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.

Proposed method

  • 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.

Experimental results

Research questions

  • 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?

Key findings

  • 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.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.