atlas

Research map / Architectures and efficiency / Attention and transformers

Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Linear attention approximations · 0 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.

Selects per-layer feature dimensions for linear attention distilled from softmax attention using statistical degrees of freedom of the attention kernel, and trains PRF features layerwise.

Problem

Distilling pre-trained softmax attention into linear attention requires choosing a feature dimension that governs approximation quality, but existing methods use one fixed dimension across all layers.

Approach

Uses the statistical degrees of freedom tr(Σ(Σ+λI)^-1) of the attention kernel, estimated from queries and keys via a Gram matrix, to allocate a layer-specific feature dimension under a fixed average compute budget, and learns positive random features per layer with L2 or softmax losses instead of end-to-end training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DoF-selected dimensions instead of fixed dimensions with direct loss (ablation)GPT-2 distilled linear attention · Downstream tasks (Average)accuracy: 0.4141 -> 0.4182Helped
Use DoF-selected dimensions instead of fixed dimensions with softmax loss (ablation)GPT-2 distilled linear attention · Downstream tasks (Average)accuracy: 0.3958 -> 0.4190Helped
Use DoF-selected dimensions instead of fixed dimensions with L2 loss (ablation)GPT-2 distilled linear attention · Downstream tasks (Average)accuracy: 0.3980 -> 0.3965No clear effect
Cap DoF-selected feature dimensions at the head size, using direct loss (ablation)GPT-2 distilled linear attention · Downstream tasks (Average)accuracy: 0.4141 -> 0.4223Helped
Cap DoF-selected feature dimensions at the head size, using softmax loss (ablation)GPT-2 distilled linear attention · Downstream tasks (Average)accuracy: 0.3958 -> 0.4182Helped
Cap DoF-selected feature dimensions at the head size, using L2 loss (ablation)GPT-2 distilled linear attention · Downstream tasks (Average)accuracy: 0.3980 -> 0.4079Helped
Use layerwise softmax loss instead of direct end-to-end training (ablation)GPT-2 distilled linear attention with DoF dimensions · Downstream tasks (Average)accuracy: 0.4182 -> 0.4190No clear effect
Use layerwise L2 loss instead of direct end-to-end training (ablation)GPT-2 distilled linear attention with DoF dimensions · Downstream tasks (Average)accuracy: 0.4182 -> 0.3965Hurt
Use DoF-selected dimensions instead of fixed dimensions (ablation)Pythia-1B distilled linear attention with softmax loss · Downstream tasks (Average)accuracy: 0.4014 -> 0.4118Helped
Apply DoF + Clip instead of Fix (ablation)GPT-2 inference · 1,000-token sequencesspeed (sec/sequence): 15.589 -> 14.662Helped
Use DoF dimensions instead of fixed dimensions (ablation)GPT-2 inference · 1,000-token sequencesspeed (sec/sequence): 15.589 -> 15.579No clear effect
Use layerwise softmax loss instead of direct loss (ablation)Feature training · Training samplesspeed (ms/sample): 109.4 -> 90.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: Wikipedia PiQA logiQA ARC-E ARC-C Winogrande MMLU WSC

Benchmarks: PiQA logiQA ARC-E ARC-C Winogrande MMLU WSC

Metrics: accuracy next-token prediction loss inference time per sequence

Baselines: Performer DiJiang Fix (uniform feature dimension) direct end-to-end loss

Builds on: Performer DiJiang positive random features Bochner's theorem

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