Compressing Language Models for Specialized Domains

Miles Williams, George Chrysostomou, Vitor Jeronymo, Nikolaos Aletras
2/25/2025
cs.CL

No official code found. Best implementation: mlsw/domain-compression (2 stars, last commit 2025-02-25).

Abstract

Compression techniques such as pruning and quantization offer a solution for more efficient deployment of language models (LMs), albeit with small performance drops in benchmark performance. However, general-purpose LM compression methods can negatively affect performance in specialized domains (e.g. biomedical or legal). Recent work has sought to address this, yet requires computationally expensive full-parameter fine-tuning. To this end, we propose cross-calibration, a novel training-free approach for improving the domain performance of compressed LMs. Our approach effectively leverages Hessian-based sensitivity to identify weights that are influential for both in-domain and general performance. Through extensive experimentation, we demonstrate that cross-calibration substantially outperforms existing approaches on domain-specific tasks, without compromising general performance. Notably, these gains come without additional computational overhead, displaying remarkable potential towards extracting domain-specialized compressed models from general-purpose LMs.

View on arXivView PDF

Code Implementations(1)

Compressing Language Models for Specialized Domains

20Feb 25, 20251 years ago

Similar Papers

Cite this paper

@article{williams2025compressing,
  title  = {Compressing Language Models for Specialized Domains},
  author = {Miles Williams and George Chrysostomou and Vitor Jeronymo and Nikolaos Aletras},
  year   = {2025},
  eprint = {2502.18424},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.18424v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.18424.svg)](https://codeofpaper.com/paper/2502.18424)

Discussion