atlas

Research map / Architectures and efficiency / Attention and transformers

Hymba: A Hybrid-head Architecture for Small Language Models

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse attention for long-context LLMs · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Hymba, a family of sub-2B small language models whose layers fuse parallel attention and SSM (Mamba) heads, plus learnable meta tokens and KV-cache optimizations, achieving SOTA small-LM accuracy with much smaller cache and higher throughput.

Problem

Small language models face a tradeoff: attention gives high-resolution recall but large KV cache and slow inference, while SSMs are efficient but weak at memory recall; sequential hybrids can create information bottlenecks.

Approach

Fuse attention heads and SSM heads in parallel within the same layer (normalized, re-scaled, averaged), add learnable meta tokens prepended to all inputs that act as learned cache initialization, and reduce the KV cache via mostly sliding-window attention with a few global layers and cross-layer KV sharing.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fuse attention and SSM heads in parallel rather than sequentially (ablation)Hymba 300M · Commonsense reasoningaccuracy: +1.08%Helped
Fuse attention and SSM heads in parallel rather than sequentially (ablation)Hymba 300M · Recallaccuracy: 4.74%Helped
Add attention heads to Mamba (ablation)Hymba 300M · Recallaccuracy: 19.23 -> 44.65Helped
Increase the attention-head count from 4 to 8 (ablation)Hymba 300M · Recallaccuracy: 44.65 -> 52.53Helped
Increase the attention-head count from 8 to 16 (ablation)Hymba 300M · Commonsense reasoningaccuracy: 44.95 -> 45.08No clear effect
Replace global attention in all layers with sliding-window attention (ablation)Hymba 300M · Recallaccuracy: 48.79 -> 29.78Hurt
Retain selected full-attention layers alongside sliding-window attention (ablation)Hymba 300M · Recallaccuracy: 29.78 -> 48.79Helped
Add cross-layer KV sharing (ablation)Hymba 300M · Commonsense reasoningaccuracy: +0.60%Helped
Replace mean fusion with concatenation (ablation)Hymba 300M · Commonsense reasoningaccuracy: 45.16 -> 44.56Hurt
Add meta tokens to the hybrid model (ablation)Hymba 300M · Recallaccuracy: 48.04 -> 51.79Helped
Add meta tokens to the hybrid model (ablation)Hymba 300M · Commonsense reasoningaccuracy: 45.16 -> 45.53Helped
Apply the same KV-cache optimizations to a pure Transformer (ablation)Llama-style 300M model · Recallaccuracy: 39.98 -> 28.18Hurt

Surprising findings

Limitations

Experimental setup

Datasets: DCLM-Baseline-1.0 SmolLM-Corpus FineWeb RoleBench SQuAD GSM8K

Benchmarks: MMLU ARC-C ARC-E PIQA HellaSwag Winogrande SQuAD-C SWDE GSM8K GPQA IFEval BFCLv2

Metrics: accuracy throughput (tokens/sec) cache size (MB) perplexity

Baselines: Llama-3.2-1B Llama-3.2-3B SmolLM2-1.7B Qwen2.5-1.5B Phi-1.5 h2o-danube2-1.8B Rene-v0.1 Samba

Builds on: Mamba Mamba-2 Samba DoRA DPO

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy