Adaptive Parameter Compression for Language Models

Jeremias Bohn, Frederic Mrozinski, Georg GrohNAACL 2025

Introduction

The rapid advancement of Large Language Models (LLMs) has triggered a computational "arms race," resulting in models with hundreds of billions of parameters. This growth imposes significant environmental costs—training GPT-3, for instance, emitted approximately 550 tons of $CO_2$. Furthermore, the massive size of these models creates a "hardware wall," restricting cutting-edge AI research to organizations with vast resources.

Adaptive Parameter Compression (APC) is introduced as a hardware-independent algorithm designed to shrink Transformer models without the drawbacks of traditional pruning or quantization. By "rewiring" models with trainable projection matrices, APC achieves high compression ratios while maintaining, or even exceeding, the performance of industry-standard distilled models.

Methodology: The APC Mechanism

APC is a projection-based compression algorithm. Unlike unstructured pruning, which simply deletes weights and requires specialized hardware for acceleration, APC inserts two small trainable matrices ($U$ and $D$) around a layer to create a bottleneck.

The APC projection mechanism featuring trainable matrices U and D, alongside corrective biases.

Technical Innovations

  • Corrective Biases: To minimize reconstruction error, APC introduces a "corrective weight bias" ($B$) and additional bias terms ($b_U, b_D$). These allow the compressed layer to mimic the original high-dimensional output more accurately.
  • Component-Specific Strategies: The algorithm applies tailored compression to different Transformer components, including Feed-Forward Networks (FFN), Attention heads (keys, queries, and values), and Embeddings.
  • Smart Initialization: The authors found that initialization is critical. Using "Neuron Sensitivity Pruning" to prime the projection matrices significantly boosts initial accuracy and convergence speed compared to random initialization.

Experimental Insights

The researchers evaluated APC using BERT-base as a primary model, pre-training on Wikipedia and BooksCorpus, and evaluating on the GLUE benchmark (SST-2, MNLI, RTE, and MRPC).

The "U-Shaped" Importance

A key discovery was the non-uniform importance of layers. Analysis using Fisher information and layer-dropping metrics revealed a "U-shaped" importance curve: the first and last layers of BERT are critical for accuracy, while the middle layers (layers 5–9) are highly compressible. This allows for aggressive compression in the model's center without sacrificing performance.

Generalization of Pruning

Mathematically, APC serves as a generalization of existing techniques like neuron pruning and merging. By tuning the projection matrices, the model effectively learns whether to merge similar neurons or eliminate unimportant ones dynamically.

Key Results and Efficiency

The standout configuration, APC-50-ff (compressing Feed-Forward layers by 50%), demonstrated superior efficiency and performance compared to existing baselines.

Comparison of model parameters, computational cost (GFLOPs), and inference time across BERT variants.

As shown in the results, APC-50-ff achieved an average GLUE score of 80.9, outperforming DistilBERT (80.2). Remarkably, APC-50-ff reached full convergence in just 90 minutes on a single Nvidia A40, whereas DistilBERT typically requires over 90 hours of training on more robust hardware. Because APC results in a standard "dense" model with smaller dimensions, it offers hardware-independent speedups, making it suitable for everything from high-end servers to mobile devices.

Limitations and Future Directions

While effective, APC currently requires manual selection of compression architectures. Future work aims to automate this through neural architecture search. Additionally, the authors plan to scale APC to larger models like Llama or GPT-4 and investigate global reconstruction error optimization to prevent error propagation in deeper networks.

Summary updated

BibTeX
@inproceedings{bohn2025adaptive,
  author = {Jeremias Bohn and Frederic Mrozinski and Georg Groh},
  title = {{Adaptive Parameter Compression for Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.406},
}
Figure