← Latest papers
🤖 machine learning

Size Doesn't Matter: Cosine-Scored Sparse Autoencoders

This paper argues that replacing the standard inner-product scoring in sparse autoencoders with a learned blend of cosine similarity and magnitude prevents high-norm tokens from dominating feature selection, thereby enabling the discovery of more human-interpretable concepts on normalized representations.

Original authors: Silen Naihin, Lev Stambler

Published 2026-06-16
📖 4 min read☕ Coffee break read

Original authors: Silen Naihin, Lev Stambler

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Loud Voice" Mistake

Imagine you are trying to understand a conversation in a crowded room. You have a team of 65,000 tiny detectives (called features) listening to the speakers. Each detective is trained to spot a specific idea, like "politics," "coding," or "sadness."

In the standard way these detectives work (using Inner Product), they get excited based on two things:

  1. What is being said: Does the topic match their specialty?
  2. How loud the speaker is: Is the speaker shouting or whispering?

The problem is that in modern AI models, the "volume" of a word (its mathematical size, or norm) varies wildly. Some words are naturally huge, and some are tiny.

Because the standard detectives care about volume, a loud word (like a rare, complex token) makes every detective scream "I found it!" at the same time, even if the topic doesn't match. It's like a fire alarm going off because someone dropped a heavy box, not because there is a fire.

The AI model itself doesn't actually care about the volume; it only cares about the direction of the conversation (the meaning). But the standard detectives are wasting their time shouting about volume, leaving them no room to actually listen to the meaning.

The Solution: The "Cosine" Detective

The authors propose a new type of detective that ignores the volume and only listens to the direction (the angle) of the words. They call this Cosine Scoring.

Think of it like this:

  • Standard Detective: "I'm excited because the speaker is shouting AND they are talking about cats!"
  • Cosine Detective: "I'm excited only because they are talking about cats. I don't care if they are whispering or screaming."

To make this work, the authors created a flexible system where the detective can learn exactly how much to care about volume. They gave the detectives a "volume knob" (a parameter called aa).

  • If a=1a=1, they care about volume (the old way).
  • If a=0a=0, they ignore volume completely (pure cosine).

What Happened When They Tried It?

The authors trained these new detectives on a massive language model (Qwen3-8B) and compared them to the old ones. Here is what they found:

1. The "Volume Knob" Turned Down
Even though the detectives were allowed to keep caring about volume, the training process automatically turned the volume knob down to almost zero. The system learned that direction is what matters, and volume is just noise. No single detective ever decided to care about volume more than 50%.

2. Better at Finding Real Ideas
When tested on whether the detectives could identify human concepts (like "programming" or "geography"), the new Cosine Detectives were 14.9% better than the old ones.

  • The Old Way: Many of the detectives were "volume detectors." They only fired when a word was loud, regardless of what the word meant. They wasted their slots.
  • The New Way: Because they stopped shouting about volume, they had room to find actual concepts. They filled the "dictionary" with useful ideas instead of just loud noises.

3. The "High-Norm" Trap
The paper found that the old system was terrible at handling "loud" words (high-norm tokens). When a loud word came in, the old system would reconstruct the sentence with a volume 9.5 times larger than reality, effectively breaking the model's understanding. The new system handled these loud words perfectly, keeping the volume realistic.

4. It's Not Just About "More Data"
The authors proved that this wasn't just because the new system was bigger or trained longer. Even when they gave the old system three times as many detectives, it still failed to find good concepts because its "scoring rule" was broken. The problem was the geometry of how they listened, not their capacity.

The Bottom Line

The paper argues that for AI models that use a specific type of normalization (called RMSNorm), the standard way of detecting features is flawed because it confuses loudness with meaning.

By switching to a Cosine Score (which measures alignment rather than magnitude), we get a dictionary of features that:

  • Matches the model's reconstruction quality (it doesn't break the model).
  • Finds human-recognizable concepts much more often.
  • Stops wasting space on "volume detectors."

The authors conclude that for any AI model using these normalized representations, Cosine Scoring should be the default setting, as it aligns the dictionary learning with what the model actually "reads."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →