Large language models (LLMs) have demonstrated remarkable performance across a wide range of industrial applications, from search and recommendation systems to generative tasks. Although scaling laws indicate that larger models generally yield better generalization and performance, their substantial computational requirements often render them impractical for many real-world scenarios at scale. In this paper, we present a comprehensive set of insights for training and deploying small language models (SLMs) that deliver high performance for a variety of industry use cases. We focus on two key techniques: (1) knowledge distillation and (2) model compression via structured pruning and quantization. These approaches enable SLMs to retain much of the quality of their larger counterparts while significantly reducing training/serving costs and latency. We detail the impact of these techniques on a variety of use cases in a large professional social network platform and share deployment lessons, including hardware optimization strategies that improve speed and throughput for both predictive and reasoning-based applications in Recommendation Systems.
@article{arxiv.2502.14305,
title = {Scaling Down, Serving Fast: Compressing and Deploying Efficient LLMs for Recommendation Systems},
author = {Kayhan Behdin and Ata Fatahibaarzi and Qingquan Song and Yun Dai and Aman Gupta and Zhipeng Wang and Shao Tang and Hejian Sang and Gregory Dexter and Sirou Zhu and Siyu Zhu and Tejas Dharamsi and Vignesh Kothapalli and Zhoutong Fu and Yihan Cao and Pin-Lun Hsu and Fedor Borisyuk and Natesh Pillai and Luke Simon and Rahul Mazumder},
journal= {arXiv preprint arXiv:2502.14305},
year = {2025}
}
Comments
Accepted to EMNLP 2025 Industry Track - Oral Presentation