Lillama: Large Language Models Compression via Low-Rank Feature Distillation
Yaya Sy, Christophe Cerisara, Irina Illina
TL;DR
Lillama presents a data-efficient, one-shot compression framework that blends SVD-based initialization with a local, activation-aware distillation objective (Teacher+Student) to compress large language models. By distilling low-rank weight factors per layer and employing a bottom-first strategy, it achieves substantial parameter reductions with minimal zero-shot performance loss across diverse architectures, including Mixtral, Mistral, Phi, and Mamba, on modest calibration data. The method yields fast convergence, reduced memory, and up to ~20% speedups on A100 GPUs, while enabling larger context lengths and broad applicability beyond Transformers. These findings underscore a practical, hardware-friendly path to deploying large models at smaller scales without extensive retraining or data requirements.
Abstract
Current LLM structured pruning methods typically involve two steps: (1) compression with calibration data and (2) costly continued pretraining on billions of tokens to recover lost performance. This second step is necessary as the first significantly impacts model accuracy. Prior research suggests pretrained Transformer weights aren't inherently low-rank, unlike their activations, which may explain this drop. Based on this observation, we propose Lillama, a compression method that locally distills activations with low-rank weights. Using SVD for initialization and a joint loss combining teacher and student activations, we accelerate convergence and reduce memory use with local gradient updates. Lillama compresses Mixtral-8x7B within minutes on a single A100 GPU, removing 10 billion parameters while retaining over 95% of its original performance. Phi-2 3B can be compressed by 40% with just 13 million calibration tokens, resulting in a small model that competes with recent models of similar size. The method generalizes well to non-transformer architectures, compressing Mamba-3B by 20% while maintaining 99% performance.
