MoDeGPT: Modular Decomposition for Large Language Model Compression

Chi-Heng Lin, Shangqian Gao, James Seale Smith, Abhishek Patel, Shikhar Tuli, Yilin Shen, Hongxia Jin, Yen-Chang Hsu · DOI

Introduction

Large Language Models (LLMs) have revolutionized natural language processing but remain computationally expensive to deploy, especially on resource-constrained edge devices. Traditional compression techniques like pruning and quantization often require significant fine-tuning or introduce additional parameter overhead. Structured matrix decomposition, such as Singular Value Decomposition (SVD), offers a training-free alternative but typically suffers from severe accuracy degradation at high compression ratios or requires external "adapters" (e.g., SliceGPT) that complicate the inference path.

MoDeGPT addresses these challenges by introducing a training-free, modular compression framework. It jointly decomposes pairs of weight matrices within Transformer blocks, allowing for structured compression without adding parameter overhead. By optimizing at the module level rather than the matrix level, MoDeGPT achieves significant model size reduction with minimal impact on performance.

Methodology

The core innovation of MoDeGPT is its shift from independent matrix-level decomposition to module-level joint decomposition. Instead of treating each weight matrix in isolation, the framework groups consecutive matrices into three functional modules based on their role in the Transformer architecture:

  1. Type I (MLP): Up/Gate and Down projection matrices.
  2. Type II (Attention Key-Query): Query and Key projection matrices.
  3. Type III (Attention Value-Output): Value and Output projection matrices.
Comparison of MoDeGPT with standard decomposition methods like SVD and SliceGPT.

By jointly optimizing these pairs, MoDeGPT can "fold" the decomposition back into the original weights, effectively reducing the hidden dimensions within the module without external adapters. The choice of decomposition algorithm is tailored to the number of non-linearities within each module type:

Summary of module types and their associated decomposition algorithms.
  • Type I (MLP): Uses Nyström Approximation to leverage activation correlations across the non-linear activation function.
  • Type II (Key-Query): Employs Column-Row (CR) Decomposition for the interaction between Query and Key projections.
  • Type III (Value-Output): Utilizes standard SVD for the linear mapping between Value and Output projections.

Furthermore, MoDeGPT employs a Global Sparsity Allocation strategy. Using "Block Influence" scores and entropic regularization, the framework automatically identifies layers with higher redundancy—typically the middle layers—and allocates higher compression rates to them while preserving critical early and late layers.

Experimental Setup

MoDeGPT was evaluated across a variety of model families, including OPT (125M to 6.7B), LLaMA-1 (7B), LLaMA-2 (7B, 13B, 70B), and LLaMA-3 (8B).

  • Calibration: A small set of 128 samples (2048 tokens each) from WikiText-2 or Alpaca was used to estimate activation correlations.
  • Evaluation Metrics: Model performance was assessed using perplexity on WikiText-2 and zero-shot accuracy across a suite of benchmarks, including ARC, PIQA, HellaSwag, MMLU, and LAMBADA.

Results and Discussion

MoDeGPT demonstrates superior performance retention and efficiency compared to existing training-free methods:

  • Performance Retention: At 25-30% structured compression, MoDeGPT retains 90-95% of the original zero-shot accuracy on LLaMA-2 and LLaMA-3 models. It consistently outperforms SliceGPT and standard SVD, particularly as compression ratios increase beyond 40%.
  • Inference Speedup: The framework delivers up to a 46% increase in inference throughput (tokens/sec) on an A100 GPU by reducing the effective size of the weight matrices.
  • Computational Efficiency: MoDeGPT is highly efficient, requiring 98% less compute than gradient-based methods like LLM Surgeon. For instance, a 13B parameter model can be compressed on a single GPU in approximately 8 hours.

Analysis of the global sparsity allocation confirms that LLMs exhibit significant redundancy in their middle layers. In a LLaMA-2 70B model, some middle layers could be compressed by over 80% with negligible impact on final output quality.

Conclusion

MoDeGPT provides a robust, training-free solution for structured LLM compression. By leveraging modular joint decomposition and tailored mathematical approximations, it achieves significant size and speed gains without the overhead of external adapters or expensive gradient calculations. Future work will focus on optimizing GPU kernels for low compression rates and integrating MoDeGPT with quantization techniques to further push the boundaries of efficient LLM deployment.

Summary updated

BibTeX
@inproceedings{lin2025modegpt,
  author = {Chi-Heng Lin and Shangqian Gao and James Seale Smith and Abhishek Patel and Shikhar Tuli and Yilin Shen and Hongxia Jin and Yen-Chang Hsu},
  title = {{MoDeGPT: Modular Decomposition for Large Language Model Compression}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=8EfxjTCg2k},
}
Figure