HydraLLM: Adaptive Width Slicing for Elastic Text and Vision-Language Models

Oscar Kemme, Janek Haberer, Ali Hojjat, Olaf Landsiedel
10/16/2026
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

LLMs and LVLMs are increasingly deployed across heterogeneous hardware, ranging from data-center GPUs to resource-constrained edge devices. Their fixed-size architectures limit the ability to reuse a single model across deployment settings with different compute, latency, and model-size targets.

Show full abstract

We introduce HydraLLM, an elastic MQA-based architecture. Its number of active attention heads determines the effective widths of the embeddings, attention projections, feed-forward layers, and the output head, forming a nested family of subnetworks within a single parameter set. We introduce a static-to-elastic conversion pipeline that, starting from a pre-trained model checkpoint, includes importance-driven weight reordering and stochastic subnetwork training with knowledge distillation. We extend this principle to multimodal inference through an elastic projection module whose output width follows the active text width. HydraLLM covers a wider range of active parameter configurations than FFN-only elastic architectures. With 75% of heads active, HydraLLM achieves 2.2 percentage points higher TriviaQA accuracy than a state-of-the-art nested baseline configuration which has 17.25% more parameters. With 50% of heads active, our multimodal model achieves a CLIPScore comparable to that of the 7$\times$ larger Gemma 3 4B model. With only 25% of heads active, HydraLLM increases token-generation throughput by 75.3% over the full-width configuration.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kemme2026hydrallm,
  title  = {HydraLLM: Adaptive Width Slicing for Elastic Text and Vision-Language Models},
  author = {Oscar Kemme and Janek Haberer and Ali Hojjat and Olaf Landsiedel},
  year   = {2026},
  eprint = {2610.23455},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.23455v1}
}

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

Discussion