Abstention and Noise Filtering: Two Missing Primitives of Softmax Attention

TL;DR

Introducing abstention and noise filtering in softmax enhances language model performance, especially at 350M parameters.

cs.LG 🔴 Advanced 2026-09-19 22 views
Richard Zhe Wang
attention mechanism language model noise filtering abstention deep learning

Key Findings

Methodology

The study introduces abstention and noise filtering into softmax attention, implemented via a learned per-head sink logit and gating on each value. Experiments conducted on matched models ranging from 10M to 350M parameters validate the effectiveness of these primitives.

Key Results

  • At 10M parameters, abstention accounts for nearly all gains, while at 350M, noise filtering contributes most gains.
  • The best model at each scale incorporates both primitives.
  • Controlled interference injection confirms the gate's ability to remove interference and reveals characteristic blind spots of each gate form.

Significance

This research addresses long-standing structural deficiencies in softmax attention by introducing abstention and noise filtering, significantly improving training efficiency and performance of language models, especially in large-scale models.

Technical Contribution

The technical contribution lies in the novel identification and separation of abstention and noise filtering mechanisms, validated through experiments, providing new insights for improving attention mechanisms.

Novelty

This study is the first to introduce abstention and noise filtering in softmax attention, differing from previous works that focused on single mechanism improvements.

Limitations

  • Limited gains from noise filtering in small-scale models.
  • Experiments focus on specific model scales, not covering larger or smaller scales.

Future Work

Future work could explore applications in larger-scale models and applicability in other types of deep learning models.

AI Executive Summary

In the field of deep learning, softmax attention mechanisms are widely used, particularly in language model pretraining. However, traditional softmax attention has two structural deficiencies: inability to output null values and a linear value pathway, leading to inefficiencies in handling irrelevant information.

This study proposes addressing these issues by introducing two primitives: abstention and noise filtering. Abstention allows an attention head to output nothing, bypassing the requirement that attention weights must sum to one; noise filtering suppresses interference via gating on each value. Experiments on models ranging from 10M to 350M parameters validate these primitives' effectiveness, showing increased noise filtering benefits with model scale.

These findings not only provide new insights for improving existing attention mechanisms but also point to future research directions. While gains are limited in small-scale models, the significant improvements in large-scale models suggest broad application potential.

Deep Analysis

Background

Softmax attention mechanisms are a staple in deep learning, particularly in language models. However, traditional softmax attention faces limitations in handling complex information due to its inability to output null values and a linear value pathway.

Core Problem

The core problem is the inefficiency of softmax attention mechanisms in handling irrelevant information, leading to performance degradation with complex inputs. Solving this is crucial for improving training efficiency and performance.

Innovation

The core innovation lies in introducing two primitives: abstention and noise filtering. Abstention allows attention heads to output null values, bypassing the sum-to-one constraint; noise filtering suppresses interference via gating on each value.

Methodology

  • �� Introduce a learned per-head sink logit in softmax for abstention.
  • �� Implement gating on each value for noise filtering.
  • �� Conduct experiments on models ranging from 10M to 350M parameters to validate the effectiveness of these primitives.

Experiments

Experiments were conducted on matched models ranging from 10M to 350M parameters, using the same architecture, data order, and optimizer. Controlled interference injection confirmed the gate's ability to remove interference.

Results

At 10M parameters, abstention accounts for nearly all gains, while at 350M, noise filtering contributes most gains. The best model at each scale incorporates both primitives.

Applications

This method can be directly applied to language model pretraining, with significant effects in large-scale models. It also holds potential value for other deep learning models handling complex information.

Limitations & Outlook

Limited gains from noise filtering in small-scale models. Experiments focus on specific model scales, not covering larger or smaller scales.

Plain Language Accessible to non-experts

Imagine a chef in a kitchen. Traditional softmax attention is like a chef who can only use one pot for all dishes, having to put all ingredients in, even if some are unnecessary. Abstention is like giving the chef an extra pot, allowing them to choose not to include certain ingredients. Noise filtering is like a sieve, filtering out unwanted impurities, making the dish purer.

ELI14 Explained like you're 14

Hey there! Imagine you're playing a game where your character has a backpack that can hold lots of stuff. Softmax attention is like this backpack, but there's a catch: you have to put everything in, even if some of it is junk! Abstention is like giving you a trash can to throw away what you don't need. Noise filtering is like a sieve that helps you filter out unwanted stuff, keeping your backpack neat. Cool, right?

Glossary

Softmax Attention

A mechanism used in deep learning models to compute the importance of different inputs.

Used in language models to compute the importance of each word.

Abstention

The ability to allow an attention head to output null values, bypassing the sum-to-one constraint.

Implemented via a learned per-head sink logit.

Noise Filtering

The ability to suppress interference by gating on each value.

Validated for effectiveness in experiments.

Sink Logit

A technique used to implement abstention by introducing a learned per-head sink logit in softmax.

Used in experiments to implement abstention.

Gate

A mechanism to control information flow, implemented by adjusting weights.

Used in noise filtering to suppress interference.

Open Questions Unanswered questions from this research

  • 1 How to effectively apply abstention and noise filtering in larger-scale models?
  • 2 Are these primitives equally effective in other types of deep learning models?

Applications

Immediate Applications

Language Model Pretraining

Enhance training efficiency and performance of language models by introducing abstention and noise filtering, especially effective in large-scale models.

Long-term Vision

Deep Learning Model Optimization

Applying these primitives in other types of deep learning models may lead to significant performance improvements.

Abstract

Gating the value pathway of attention reportedly improves language model pretraining, and prior studies disagree on why. We argue and provide experimental evidence that such gates supply two different things that softmax attention lacks: abstention and noise filtering. The first is abstention, which allows an attention head to output nothing, bypassing the requirement that attention weights must sum to one. The second is noise filtering, which allows the value pathway of an attention head to suppress interference from superposed features in the residual stream. In our experiments in matched models from 10M to 350M parameters, we supply abstention through a learned per-head sink logit in the softmax and noise filtering through a gate on each value. We report three empirical findings. First, the benefit of abstention, measured as the reduction in validation loss relative to a matched baseline, declines as models grow, whereas the benefit of noise filtering increases with scale. In particular, abstention accounts for nearly all of the gain from gating at 10M and filtering for most of it at 350M. Second, the best model at every scale is the one with both primitives built in. Third, injecting controlled interference into the values a head reads confirms that the gate removes such interference, and reveals that each of the two gate forms we study has a characteristic blind spot. Supplying both primitives adds negligible parameters and remains compatible with the key-value cache.

cs.LG cs.CL