arXiv paper· machine learning — language model interpretability· empirical study (new measurement instrument + cross-model anatomy)

Function Lives Where Variance Doesn't: Task-Weighted Charts of a Language Model's Computation

Alexandre Quemy

cs.AI

Quick verdict

认为下一个 Token 的函数需要 70-90% 的残差宽度,而方差不包含其中任何一部分;实验工具具有说服力,但核心数值取决于容忍度的选择。

Summary

本文探讨了 Transformer 的残差流中有多少维度是其计算实际消耗的,并认为在指定一个消费者(“泛函数”)之前,这个问题是不适定的(ill-posed)。它引入了任务加权图表(task-weighted charts):即训练用于在所选泛函数的高斯-牛顿(Fisher)度量下保留该泛函数的 k 维瓶颈,通过目标白化将蒸馏转化为最小二乘法;图表由两阶段变量投影拟合的因式分解字典构建,并采用 Matryoshka 嵌套风格,并针对具有已知 ground truth 的合成数据进行了验证 (§4)。在六个模型(GPT-2 small/medium, Pythia-70m, Qwen2.5-0.5B/7B, Qwen3-0.6B)中,为了保持在完整困惑度(intact perplexity)的 5% 以内,下一个 Token 的预测需要 70-90% 的残差流宽度,且没有明显的拐点(Tables 1, 5),而方差几何结构无法预测这一点:GPT-2 的前两个方向承载了 90% 的方差,但在匹配范数下,沿着它们进行导向(steering)对输出的影响比 Fisher 方向小约 50 倍(Fig. 2)。需求维度取决于泛函数(熵:~3-32 个坐标;完整分布:256-512;Table 2),并且随深度增长,而 TwoNN 固有维度保持不变。在紧凑的预算下,Fisher 度量优于基于方差和最优线性的压缩(Table 3);通过狭窄瓶颈的块替换由于“夹紧效应”(pinch effect)而失败(Table 4)。局限性:训练机制在 0.6B 处停止,仅限于单一语料库家族,使用 3 个随机种子,且未说明代码发布。

Review complete

Assessment at a glance

machine learning — language model interpretability

5

risk flags identified

● high 0

● medium 3

● low 2

Reproducibility readinessmedium
Code & data availablenot stated
Review confidencehigh
AI text signal0/20 passages flagged
Deep research viableCode-reproducible

5 strengths · 5 weaknesses · 5 author questions

AI text signal = Binoculars zero-shot detector score over 20 sampled passages (Fast-DetectGPT co-reported) — absence does not prove human authorship, and a flag does not imply misconduct.

Levels reflect verification complexity — not a quality score. Evolve never rates your paper.

Key claims under review

  • Across six models from three families (70m–7B), next-token prediction needs 70–90% of the residual stream's width to stay within 5% of intact perplexity, with smoothly declining, elbow-free curves.
  • Variance structure predicts none of the functional requirement: GPT-2's top two directions carry 90% of final-layer activation variance yet are causally near-inert (0.12 vs 6.0 nats of output movement for top-8 Fisher directions at matched norm).
  • Requirement dimension is a property of the named functional — from ~3 coordinates for next-token entropy to 384–512 for the full predictive distribution on the same activations — and grows with depth while TwoNN intrinsic dimension stays flat.
  • At tight budgets, training charts under the consumer's Fisher metric preserves prediction better than variance-based or optimal linear compression in all six models.
  • Narrow-bottleneck block replacement fails because of state width, not training quality (the 'pinch effect'): widening the identical machinery from k=32 to k≈384 recovers most of the gap.

Strengths

  • Instrument validated against known ground truth

    §4 fits a frozen random MLP embedding d latents into R^D and shows charts recover d=2 with R²=0.999 and d=4 exactly via greedy knockout; even documents a +1 overshoot when the task uses only 2 of 4 latents — a rigor rarely seen in intrinsic-dimension studies.

  • Causal, not merely correlational, evidence for the dissociation

    §5/Fig. 2 steering at matched 5%-of-median-norm: top-8 Fisher eigendirections move the output 6.0 nats KL vs 0.56 for random and 0.12 for the top-8 variance directions — variance directions are five times less potent than random, directly supporting 'function lives where variance doesn't'.

  • Unusually honest error accounting

  • Cross-family replication under a frozen protocol

  • Clean conceptual framing

Weaknesses

  • Requirement dimension has no lower-bound certification

  • Headline number is the tightest tolerance, unstated in the abstract

  • Scale coverage is thin where the trained machinery matters

  • Fisher metric estimated from only 4,096 states

  • Single corpus family and no code release statement

Full Review Report

$1.99 · one-time

Unlock the complete preliminary analysis Evolve produced for this paper.

Report preview

Scope & Claims

The paper reframes 'how many dimensions does an LM use?' as ill-posed until a **consumer (functional)** is named — the unembedding head for the final layer, the remaining blocks for middle layers. Its contributions: (1) an instrument, **task-weighted charts**: k-dimensional bottlenecks trained to preserve a chosen functional under the functional's Gauss–Newton (Fisher) metric, with target whitening reducing distillation to least squares over a factorized-Gaussian dictionary fit by two-stage variable projection (§3); (2) a cross-family anatomy of the residual stream (§5–7); (3) the finding that the training metric governs tight-budget survival (§6.3); (4) mechanistically explained negative results (App. D). Headline claims: next-token prediction needs 70–90% of width within 5% of intact perplexity in all six models, elbow-free (Table 1, Fig. 3); variance geometry predicts none of it (GPT-2: top-2 directions = 90% of variance, steering potency 0.12 vs 6.0 nats for Fisher directions, Fig. 2); requirement dimension is functional-relative (entropy 3–32 vs full distribution 256–512, Table 2) and depth-growing while TwoNN stays flat; narrow replacement fails via the 'pinch effect' (Table 4).

The remaining sections cover Methodology Assessment, Statistical Evidence, Results & Reproducibility, Limitations & Risks, and Verdict & Recommendations.

  • All 5 strengths & 5 weaknesses, analyzed in detail
  • 5 risk flags with severity, section & reviewer questions
  • Methods & statistical evidence assessment
  • 5 questions a peer reviewer would ask
  • Full six-dimension evaluation report & recommendations

One-time purchase · this paper only

One-time purchase, this paper only. AI-generated preliminary analysis — not peer review.

Frequently asked questions

How many dimensions does GPT-2 actually use?

According to this paper it depends on what you ask the model to preserve. Reading out its full next-token distribution within 5% of intact perplexity requires roughly 640 of GPT-2 small's 768 residual-stream dimensions (384–512 at a looser 15% tolerance), while the model's own next-token entropy can be predicted from as few as 3–32 coordinates. Because the curves decline smoothly with no elbow, there is no single 'true' dimension — the number depends on the tolerance you accept, which the paper tabulates at three levels.

What is a task-weighted chart?

A low-dimensional coordinate system (a k-dimensional bottleneck) trained to preserve a chosen 'functional' of a hidden state — such as the model's full next-token distribution — under that functional's own Fisher (Gauss–Newton) metric. Whitening the reconstruction target by the square root of the metric makes the training loss equal a second-order KL divergence, so distillation reduces to ordinary least squares, solved by two-stage variable projection over a dictionary of Gaussian atoms. The paper validates the instrument on synthetic data where the true dimension is known.

Do the top PCA directions matter for what a transformer computes?

Mostly no, per this paper: GPT-2's top two principal directions carry 90% of final-layer activation variance, yet deleting their variation (mean preserved) costs essentially nothing in perplexity, and perturbing along them moves the output about 50 times less than the top Fisher directions at the same norm. Function concentrates in hundreds of low-variance tail directions. This is reconciled with the massive-activations literature because the experiments preserve the mean state and remove only variation around it.

Can this method help compress language models?

The paper's 'pinch effect' is mostly a caution: replacing a transformer block through a narrow bottleneck fails regardless of training quality unless the bottleneck width approaches what downstream consumers require (e.g., k≈384 for GPT-2's last block, versus catastrophic results at k=32). The authors' practical lessons are to compress the computation between states rather than the state itself, and, when budgets are tight, to train any compressor under the consumer's Fisher metric — which beat variance-based and optimal linear compression in all six models tested.

About this review

This is an AI-generated preliminary review by Evolve.Pub, produced from the openly available text of the paper. It is not peer review and does not represent the authors' views. The canonical record of the paper is at the publisher link above.

  • Figures are recoverable only from captions and extracted axis labels; heatmap content (Figs. 1, 6) and exact curve shapes could not be independently verified.
  • The text appears complete (§1–8 plus Appendices A–F and references), but truncation or OCR noise in table values cannot be fully excluded (e.g., Table 4's '337k').
  • No code repository link appears in the extracted text; a release may exist outside the paper body, so codeAvailable=false reflects the paper as provided.

Go deeper on this paper

Wrote a paper? Stress-test it before reviewers do.

Upload your manuscript for the same structured scrutiny — reasoning, statistics, evidence, figures, and reproducibility.

Scan your paper
Function Lives Where Variance Doesn't: Task-Weighted Charts of a Language Model's Computation | Evolve.Pub