Abstention and Noise Filtering: Two Missing Primitives of Softmax Attention
Organizations: St. John Fisher University, Rochester, New York, USA.
Abstract
Softmax attention has two structural gaps. A head cannot abstain, because its weights sum to one, so it outputs something even when nothing is relevant. Nor can it filter what it reads, because its output is a weighted average of value vectors, passing interference as faithfully as signal. We call these missing primitives abstention and noise filtering. Recent studies report that gating the value pathway improves pretraining but attribute the gain to different causes. We show that a value gate partly supplies both primitives, which unifies the reported causes as views of one gain. We give each primitive its own mechanism in matched models of 10M to 350M parameters and measure what each contributes. The gain from gating is almost entirely abstention at 10M, whereas by 350M filtering contributes as much as abstention, so what a study observes depends on its scale. The two benefits are largely additive, with a small overlap. A gate determined by each value alone leaves the attention sink in place, whereas a query-controlled mechanism removes it. Injecting interference into the value reads shows that abstention and filtering protect against it in distinguishable ways. The same patterns appear in pretrained models up to 20B parameters.
Figures & tables
| Variant | 10M | 50M | 124M | 350M |
|---|---|---|---|---|
| Improvement over the baseline | ||||
| sink logit | ||||
| norm gate | – | |||
| projection gate | – | |||
| sink+norm | ||||
| sink+proj | ||||
| Tier | Sink | Gate | Both | Overlap | Filter | Share |
|---|---|---|---|---|---|---|
| Norm gate | ||||||
| 10M | ||||||
| 50M | ||||||
| 124M | ||||||
| 350M | – | – | ||||
| Projection gate | ||||||
| mass (%) | loss increase at dose | |||||
| Variant | quiet | phantom | 0.2 | 0.4 | 0.8 | 1.6 |
| 124M | ||||||
| baseline | ||||||
| sink logit | ||||||
| norm gate | ||||||
| projection gate | ||||||
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Tier | Layers | Heads | Width | Context | Batch | Iterations | Warmup | Tokens |
|---|---|---|---|---|---|---|---|---|
| 10M | 6 | 6 | 384 | 512 | 6,000 | 200 | 0.20B | |
| 50M | 10 | 10 | 640 | 1024 | 29,000 | 500 | 0.95B | |
| 124M | 12 | 12 | 768 | 1024 | 48,800 | 800 | 1.60B | |
| 350M | 24 | 16 | 1024 | 1024 | 177,000 | 2,000 | 5.80B |
| Variant | Abstention | Filter | Params |
|---|---|---|---|
| baseline | none | none | 0 |
| offbyone | phantom, fixed | none | 0 |
| sinklogit | phantom, learned | none | |
| sinktoken | token, approximate | none | |
| normgate | none; scaling | norm threshold | |
| projgate | none; scaling | learned direction |
| Variant | 10M | 50M | 124M | 350M |
|---|---|---|---|---|
| Baseline loss | ||||
| baseline | ||||
| Improvement over baseline (paired per seed) | ||||
| off-by-one | – | – | – | |
| sink token | – | – | – | |
| sink logit | ||||
| Tier | Variant | seed 0 | seed 1 | seed 2 | seed 3 | seed 4 | mean |
|---|---|---|---|---|---|---|---|
| FineWeb 10M | baseline | – | – | ||||
| off-by-one | – | – | |||||
| sink token | – | – | |||||
| sink logit | – | – | |||||
| norm gate | – | – | |||||
| projection gate | – | – |
| Tier | improvement over baseline | mean gate value | reads below |
|---|---|---|---|
| 10M | |||
| 50M | |||
| 124M |
| Tier | Junk type (cutoff) | Variant | ||||
|---|---|---|---|---|---|---|
| FineWeb 10M | structured (other context) (q25) | baseline | ||||
| sink logit | ||||||
| norm gate | ||||||
| projection gate | ||||||
| sink+norm | ||||||
| sink+proj |
| Tier | Junk type (cutoff) | Variant | ||||
|---|---|---|---|---|---|---|
| 124M | structured (other context) (q25) | baseline | ||||
| sink logit | ||||||
| norm gate | ||||||
| projection gate | ||||||
| sink+norm | ||||||
| sink+proj |
| 50M | 124M | 350M | |||||||
| Variant | median | q25 | phantom | median | q25 | phantom | median | q25 | phantom |
| baseline | – | – | – | ||||||
| sink logit | |||||||||
| norm gate | – | – | – | – | – | ||||
| projection gate | – | – | – | – | – | ||||
| sink+norm | |||||||||
| Variant | LAMBADA acc | HellaSwag acc | WikiText-2 ppl |
|---|---|---|---|
| baseline | |||
| sink logit | |||
| norm gate | |||
| projection gate | |||
| sink+norm | |||
| sink+proj |
| Model | Junk | ||||
|---|---|---|---|---|---|
| Pythia-160M | other context | ||||
| same context | |||||
| Gaussian | |||||
| Pythia-410M | other context | ||||
| same context | |||||
| Gaussian |
| Layer type | phantom mass | mass on position 0 | ratio |
|---|---|---|---|
| sliding-window layers (12) | |||
| full-attention layers (12) |
| 124M | 350M | |||||
|---|---|---|---|---|---|---|
| Variant | pos. 0 (%) | phantom (%) | norm ratio | pos. 0 (%) | phantom (%) | norm ratio |
| baseline | ||||||
| norm gate | – | – | – | |||
| projection gate | – | – | – | |||
| sink logit | ||||||
| sink+norm | ||||||