atlas

Research map / Architectures and efficiency / Attention and transformers

Mixture of Hidden-Dimensions: Not All Hidden-States’ Dimensions are Needed in Transformer

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design

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 MoHD, a sparse architecture that routes hidden-state dimensions into shared and token-specialized sub-dimensions, enabling hidden-dimension expansion at constant activated parameters, and evaluates it by pretraining LLaMA2-style models from scratch.

Problem

Scaling Transformer hidden dimensions increases parameters and compute uniformly for all tokens; the sparsity of hidden-dimension activations has not been exploited to scale hidden dimensions at controllable cost.

Approach

Observes that a small subset of hidden dimensions is highly activated, with some shared across tokens and some token-specific; partitions hidden dimensions into sub-dimensions, always activates shared ones and top-K routes specialized ones per token, then restores activation magnitude via sub-dimension scaling and a Monarch-based grouped fusion layer.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Expand hidden dimensions 3× with MOHDLLaMA2-1.13B architecture · 10-task averageaverage score: 44.2 -> 47.9Helped
Use 75% hidden-dimension activation with MOHDLLaMA2-1.13B architecture · 10-task averageaverage score: 44.2 -> 46.0Helped
Use 50% hidden-dimension activation with MOHDLLaMA2-355M architecture · 10-task averageaverage score: 42.7 -> 42.3Hurt
Replace shared-and-specialized mixed activation with fully specialized sub-dimensions (ablation)MOHD ×2 -710M · Eval setperplexity: 10.25 -> 11.08 (+0.83)Hurt
Add balance loss (ablation)MOHD ×2 -710M · Eval setperplexity: 10.41 -> 10.25 (+0.16)Helped
Add group fusion layer (ablation)MOHD ×2 -710M · Eval setperplexity: 10.47 -> 10.25 (+0.22)Helped
Add sub-dimension scaling (ablation)MOHD ×2 -710M · Eval setperplexity: 11.41 -> 10.25 (+1.16)Helped
Apply MOHD to FFN at 50% while keeping Attention at 100% (ablation)LLaMA2-355M · Eval setperplexity: 11.61 -> 11.31 (-0.30)Helped
Apply MOHD to Attention at 50% while keeping FFN at 100% (ablation)LLaMA2-355M · Eval setperplexity: 11.61 -> 12.25 (+0.64)Hurt
Apply MOHD to both Attention and FFN at 50% (ablation)LLaMA2-355M · Eval setperplexity: 11.61 -> 12.05 (+0.44)Hurt
Apply MOHD to FFN at 25% while keeping Attention at 100% (ablation)LLaMA2-355M · Eval setperplexity: 11.61 -> 12.24 (+0.63)Hurt
Apply MOHD to Attention at 25% while keeping FFN at 100% (ablation)LLaMA2-355M · Eval setperplexity: 11.61 -> 14.31 (+2.70)Hurt

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama

Benchmarks: SciQ PIQA WinoGrande ARC-Easy ARC-Challenge HellaSwag LogiQA BoolQ LAMBADA MMLU

Metrics: accuracy perplexity

Baselines: LLaMA2-355M LLaMA2-495M LLaMA2-1.13B LLaMA2-2.7B DeepSeek-V2 MoE

Builds on: LLaMA2 DeepSeek-V2 MoE Sheared-LLaMA Monarch matrices

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