EfficientLLM: Efficiency in Large Language Models

Zhengqing Yuan, Weixiang Sun, Yixin Liu, Huichi Zhou, Rong Zhou, Yiyang Li, Zheyuan Zhang, Wei Song, Yue Huang, Haolong Jia, Keerthiram Murugesan, Yu Wang, Lifang He, Jianfeng Gao, Lichao Sun, Yanfang YearXiv 2025 · DOI

TL;DR

This paper introduces EfficientLLM, the first large-scale, end-to-end benchmark for evaluating LLM efficiency across architecture, fine-tuning, and inference. It reveals that efficiency is a complex trade-off, with no single technique being universally optimal, and provides crucial guidance for practitioners.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly powerful but come with a massive computational, energy, and financial cost. Training and deploying these models requires immense resources, making them inaccessible for many and raising environmental concerns. While many techniques exist to improve LLM efficiency, there's a lack of comprehensive, large-scale empirical studies that compare these methods under realistic conditions across different stages of the LLM lifecycle. This leaves practitioners without clear guidance on how to choose the most effective efficiency strategies for their specific needs.

Methods

The EfficientLLM benchmark systematically evaluates efficiency techniques across three key areas:

  1. Architecture Pretraining: This involves testing efficient attention mechanisms (like MQA, GQA, MLA, NSA) and sparse Mixture-of-Experts (MoE) models to reduce computational load during model design.
  2. Fine-Tuning: The study benchmarks various Parameter-Efficient Fine-Tuning (PEFT) methods (e.g., LoRA, RSLoRA, DoRA) to see how effectively they adapt pre-trained models to new tasks with minimal parameter updates.
  3. Inference: This section focuses on bit-width quantization (int4, float16) to reduce model size and speed up deployment without retraining.

To quantify efficiency, the authors introduce six fine-grained metrics: Average Memory Utilization (AMU), Peak Compute Utilization (PCU), Average Latency (AL), Token Throughput (TT), Average Energy Consumption (AEC), and Model Compression Rate (MCR). These metrics aim to provide a holistic view of resource usage, performance, and environmental impact. The experiments were conducted on a production-class cluster with NVIDIA GH200 and H200 GPUs.

Datasets

The paper utilizes several datasets for its evaluations:

  • FineWeb-Edu (350B): An educationally focused subset of the FineWeb crawl, used for pre-training.
  • OpenO1-SFT: A benchmark for assessing LLMs' chain-of-thought reasoning capabilities.
  • Medical-01-reasoning-SFT: A benchmark for evaluating deductive abilities in the medical domain.
  • O1-SFT Dataset: Used for assessing training and tuning efficiency.
  • Disney Organized Dataset & WikiArt Sargent Dataset: Used for evaluating PEFT methods on Large Vision Models (LVMs).
  • ChatQA Dataset: Used for evaluating PEFT methods on Vision-Language Models (VLMs).

The paper's contribution includes the EfficientLLM benchmark framework itself, which is open-sourced to provide a standardized way to evaluate LLM efficiency.

Key Insights and Ideas

  • Efficiency is a Multi-Objective Trade-off: There's no "one-size-fits-all" solution. Every technique improves some metrics while degrading others. For example, MoE models reduce FLOPs but increase VRAM, and int4 quantization drastically cuts memory/energy but slightly impacts accuracy.
  • Task and Scale Matter: The optimal efficiency technique depends heavily on the specific task and the model's size. For instance, MQA is great for memory-constrained devices, while MLA excels in quality-critical tasks. PEFT methods like LoRA are best for smaller models, but RSLORA becomes more efficient for larger ones.
  • Techniques Generalize Across Modalities: Efficiency strategies validated on LLMs (like efficient attention and PEFT) transfer effectively to Large Vision Models (LVMs) and Vision-Language Models (VLMs), demonstrating broad applicability.

Key Results

  • MoE Models: Can increase VRAM usage by ~40% but offer significant performance gains.
  • Int4 Quantization: Achieves up to 3.9x model compression and memory/energy reduction with only a 3-5% average task score drop.
  • Attention Variants: MQA offers the best memory-latency trade-off, MLA provides the lowest perplexity, and NSA is most energy-efficient.
  • PEFT Methods: LoRA and its variants are effective for smaller models (1-3B parameters), while RSLORA shows superior efficiency for models over 14B parameters. Parameter freezing offers the lowest latency for interactive fine-tuning.
  • bfloat16 vs. float16: On modern GPUs (like Hopper), bfloat16 generally outperforms float16 in latency and energy consumption due to hardware acceleration.

Limitations and Future Work

  • Limited Technique Coverage: The study didn't cover all possible efficiency techniques, such as those specifically for ultra-long context models or advanced KV-cache optimizations.
  • Hardware Specificity: Experiments were conducted on a specific GPU cluster, and results might vary on different hardware (e.g., TPUs, CPUs).
  • Model and Task Scope: While diverse, the selection of models and tasks doesn't encompass every existing architecture or specialized application.
  • Static Metrics: The current metrics are averaged over time; dynamic metrics capturing real-time fluctuations could offer deeper insights.
  • No Economic Analysis: The study focused on computational and energy efficiency, not explicit economic costs (hardware acquisition, cloud pricing).

Future work could explore:

  • Multi-objective Scaling Laws: Developing scaling laws that balance multiple objectives (latency, memory, energy) beyond just FLOPs.
  • Heterogeneous-Quality Corpora: Better methods for handling diverse data quality and dynamic importance sampling.
  • Curriculum Design for Long Contexts: Principled strategies for training on extremely long sequences, addressing memory and gradient challenges.
  • Sparse Routing under Memory Constraints: Unified frameworks for dynamically balancing compute and memory in MoE models.
  • PEFT for Multimodal Models: Designing adapters that generalize across different modalities.
  • Robust Quantization for Long Contexts: Developing quantizers that handle activation outliers in long sequences.
  • Holistic, End-to-End Evaluation: Creating standardized benchmarking frameworks across diverse hardware and software.
  • Continual and Federated Pretraining: Addressing privacy constraints and on-premises data handling.
  • Hardware-Aware Training Schedules: Developing auto-schedulers for heterogeneous GPU clusters.

Summary updated

BibTeX
@misc{yuan2025efficientllm,
  author = {Zhengqing Yuan and Weixiang Sun and Yixin Liu and Huichi Zhou and Rong Zhou and Yiyang Li and Zheyuan Zhang and Wei Song and Yue Huang and Haolong Jia and Keerthiram Murugesan and Yu Wang and Lifang He and Jianfeng Gao and Lichao Sun and Yanfang Ye},
  title = {{EfficientLLM: Efficiency in Large Language Models}},
  year = {2025},
  eprint = {2505.13840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13840},
}
Figure