Adaptive Rank Allocation: Speeding Up Modern Transformers with RaNA Adapters

Roberto Garcia, Jerry Liu, Daniel Sorvisto, Sabri Eyuboglu
3/23/2025
cs.LG

No official code found. Best implementation: Roberto09/RaNA (3 stars, MIT, last commit 2025-03-01).

Abstract

Large Language Models (LLMs) are computationally intensive, particularly during inference. Neuron-adaptive techniques, which selectively activate neurons in Multi-Layer Perceptron (MLP) layers, offer some speedups but suffer from limitations in modern Transformers. These include reliance on sparse activations, incompatibility with attention layers, and the use of costly neuron masking techniques. To address these issues, we propose the Adaptive Rank Allocation framework and introduce the Rank and Neuron Allocator (RaNA) adapter. RaNA adapters leverage rank adapters, which operate on linear layers by applying both low-rank matrix decompositions and adaptive masking to efficiently allocate compute without depending on activation sparsity. This enables RaNA to be generally applied to MLPs and linear components of attention modules, while eliminating the need for expensive maskers found in neuron-adaptive methods. Notably, when compared to neuron adapters, RaNA improves perplexity by up to 7 points and increases accuracy by up to 8 percentage-points when reducing FLOPs by $\sim$44% in state-of-the-art Transformer architectures. These results position RaNA as a robust solution for improving inference efficiency in modern Transformer architectures.

View on arXivView PDF

Code Implementations(1)

Roberto09/RaNACommunity100%
MIT

๐Ÿธ Code for RaNA [ICLR-2025] ๐Ÿธ

30Shell, PythonMar 1, 20251 years agoMIT

Similar Papers

Cite this paper

@article{garcia2025adaptive,
  title  = {Adaptive Rank Allocation: Speeding Up Modern Transformers with RaNA Adapters},
  author = {Roberto Garcia and Jerry Liu and Daniel Sorvisto and Sabri Eyuboglu},
  year   = {2025},
  eprint = {2503.18216},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.18216v2},
  journal = {ICLR 2025 2025}
}

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/2503.18216.svg)](https://codeofpaper.com/paper/2503.18216)

Discussion