Transformer MLP Gate Thresholds Are Couplings to a Carried Reference Direction
cs.CL, cs.LG
Submitted: 2026-09-25
Updated: 2026-09-25
Comments: 18 pages, 4 tables. Code and data: https://github.com/EvidentSolutions/llm-interp/tree/main/background. An earlier version of this paper is archived on Zenodo, doi:10.5281/zenodo.21498411; this version supersedes it and corrects several reported values
Code: https://github.com/EvidentSolutions/llm-interp
License: http://creativecommons.org/licenses/by/4.0/
The gist: The corpus-mean direction of a transformer's residual stream is a component shared across all inputs, and is commonly removed by mean-centering before representational analysis.
Terminology
Abstract
The corpus-mean direction of a transformer's residual stream is a component shared across all inputs, and is commonly removed by mean-centering before representational analysis. We present evidence that it is a functional component: the reference against which the MLP gate population sets its operating point. In Phi-2, an exact decomposition of resting gate pre-activations shows that at mid-stack layers the resting inhibition of >99.9% of gates is carried by the coupling w times b L to the carried mean direction, at 48-56 times the explicit bias parameter, and the coupling is direction-specific: a random direction at matched norm orders the population's firing rates at Spearman ρ at most 0.09 where the reference reaches 0.95. (That 0.95 is near-tautological on its own; the paper derives its null.) Causally, removing the stream's projection on the reference multiplies above-threshold firing by about 9 times, dose-monotonically, at 23-59 times a norm-matched control; a random-initialised twin is flat, and replacement tests show that the direction carries the function and the magnitude does not. A direction-matched control makes the same point: noise injected along the reference costs 8-42 times the same energy along a random direction. The decomposition replicates on four further families spanning both gate types (GELU with an explicit gate bias, bias-free SwiGLU), and the dose-response on two of them. Across an eight-model scan the mechanism is present in every GELU and SiLU family and absent only in OPT, where an opposing LayerNorm bias cancels the carried reference. Gate thresholds are implemented as couplings to a constant the network builds for the distribution it is reading, with the bias parameters contributing little; how much of that constant is carried in the stream and how much in parameters depends on the architecture.
Sources
- The Discrete Charm of the MLP: Binary Routing of Continuous Signals in Transformer Feed-Forward Layers
- SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model
- The Curse and Blessing of Mean Bias in FP4-Quantized LLM Training
- Massive Spikes in LLMs are Bias Vectors: Mechanistic Uncovering and Spike-Free Quantization
- PaLM: Scaling Language Modeling with Pathways
- Hidden Dynamics of Massive Activations in Transformer Training
- Understanding Gated Neurons in Transformers from Their Input-Output Functionality
- Transient Reserves, Sink Dampers, and the Failure of Eigenvalue Reasoning in the Attention Propagator
- The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers
- Not a nuisance but a useful heuristic: Outlier dimensions favor frequent tokens in language models
- Steered LLM Activations are Non-Surjective
- A Refined Analysis of Massive Activations in LLMs
- A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training
- Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coin
- Qwen2.5 Technical Report
- A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Models
- Bug or Feature$^2$: Weight Drift, Activation Sparsity and Spikes
- On the Relationship Between Activation Outliers and Feature Death in Sparse Autoencoders
- Massive Activations in Large Language Models
- The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering