LRCC: Generalizing Low-Rank Compression with Conditional Computation
Thomas Vaitses Fontanari, Maximo Eduardo Rulli, Federico Alvetreti, Donatella Genovese, Simone Scardapane
Abstract
Low-rank compression reduces the cost of pretrained language models by replacing linear transformations with low-rank factorizations. However, conventional methods use a fixed rank allocation during inference, assigning the same amount of compute regardless of the input token. We introduce Low-Rank Conditional Computation (LRCC), which adds token-dependent computation to pretrained models by training one lightweight router per Transformer block to select among a small set of nested low-rank paths. During training, the low-rank factors remain frozen, and only the routers are optimized. We evaluate LRCC on Llama and Qwen models for language modeling and zero-shot downstream tasks. Within the same average active-parameter budget, LRCC improves the predictive performance over static low-rank compression, including a 7.6 percentage-point gain in average downstream accuracy on Llama-2-7B over static methods. At matched batch-size-1 decoding latency, LRCC improves both perplexity and downstream accuracy on Llama-3.2-1B and remains competitive on Llama-2-7B, without specialized kernels. Finally, we assess the usefulness of assigning a token-wise path by analyzing the routers' path choices.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI, cs.LG
Related papers
Adaptive Utilization of Low-Rank Adaptation via Conditioned Gating
Shared title terminologycs.CLGuang Yang, Changhao Guan, Chao Huang et al.
LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches
Shared title terminologycs.CLShaokun Zhang, Yifan Zhang, Jian Hu et al.
Localizing Cross-Lingual Generalization in Parameter Space
Shared title terminologycs.CLYeoreum Lee, Jaeseong Lee, Seung-won Hwang
Lossy Compressive Text Autoencoders
Shared title terminologycs.CLVinko Sabolčec, Angelos Katharopoulos, David Grangier
EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory
Shared title terminologycs.CLHongru Cai, Ran Wei, Wenjie Wang et al.
Judging in Latent Space: Efficient Generative Reward Modeling via Semantics-Preserving Compression
Shared title terminologycs.CLMingqing Yuan, Xiaobo Liang, Junwei Yang et al.