Injecting noise into pre-softmax attention scores, goal and risk?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Noise on pre-softmax scores regularizes attention against winner take all collapse. Too much noise flattens softmax into uniform mixing and destroys the ability to focus.
Imagine a kid given a single bag of mixed candy and told to grab their favorite. Every time, the kid grabs the same chocolate, ignoring the rest. To teach the kid to try new things, you blindfold them slightly with a thin scarf, just enough that their reach wobbles. Sometimes they still pick chocolate, sometimes a gummy, sometimes something else. Now they learn that several candies are interesting. But if you blindfold them too tight, their reach is purely random and they have no preference at all. Attention noise during training works the same way: a small wobble keeps the model open to alternatives; too much wobble turns it into a coin flip.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6-8 min: pre-softmax score noise mechanism + over-peaked attention failure mode + entropy regularization framing + risk of over-flattening + relation to attention dropout and Entmax.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Confusing attention noise with FFN dropout or with sampling temperature at the output. Attention noise specifically targets the pre-softmax scores inside the attention layer.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.