Simplicity Bias of Transformers to Learn Low Sensitivity Functions

Bhavya Vasudeva, Deqing Fu, Tianyi Zhou, Elliott Kau, Youqi Huang, Vatsal Sharan · DOI

Abstract

Despite the widespread adoption of Transformer architectures, the specific inductive biases that distinguish them from traditional models like CNNs or LSTMs remain a subject of intense study. This paper proposes that Transformers possess a unique "simplicity bias" toward learning low-sensitivity functions—functions whose outputs remain remarkably stable even when input tokens are randomly perturbed. Through theoretical analysis and extensive empirical evaluation across vision and language tasks, the authors demonstrate that this low-sensitivity bias explains the superior robustness of Transformers, their convergence to flatter minima, and provides a hidden metric for monitoring model generalization during training.

Introduction: The Sensitivity Gap

While Vision Transformers (ViTs) and Residual Networks (ResNets) can achieve identical accuracy on standard benchmarks, they often diverge significantly when faced with out-of-distribution (OOD) data. The authors suggest that the missing link in understanding this divergence is sensitivity, a metric traditionally used for Boolean functions that measures how likely a model's output is to change given a small "jiggle" in the input.

Methodology

To study this phenomenon in high-dimensional, real-valued domains, the researchers developed a new sensitivity metric. Instead of flipping bits, they inject Gaussian noise into specific "tokens"—such as image patches in ViTs or word embeddings in language models—and measure the resulting change in prediction probability.

Illustration of the sensitivity metric. A model is considered sensitive if adding noise to a single input patch (e.g., an image of an albatross) causes a change in the predicted class.

The investigation followed three primary tracks:

  1. Theoretical Analysis: Proving that Transformers with linear attention exhibit a "weak spectral bias," prioritizing the learning of simpler, low-degree function components.
  2. Empirical Comparison: Training diverse architectures (ViTs, CNNs, MLPs, LSTMs, ConvMixers) on standard benchmarks like CIFAR-10, ImageNet, and GLUE to track sensitivity throughout the learning process.
  3. Interventional Study: Applying sensitivity regularization to the loss function to explicitly force models toward lower sensitivity and observing the impact on generalization.

Key Insights

The Stability of Attention

Across nearly every test, Transformers learned functions with significantly lower sensitivity than CNNs or LSTMs. Crucially, this is not merely a byproduct of patch-based processing. When testing ConvMixer—which uses patches but lacks self-attention—the authors found it remained highly sensitive. This suggests that the self-attention mechanism itself is the primary driver of functional stability.

A New Lens for Grokking

"Grokking" describes the phenomenon where a model suddenly masters a task long after its training loss has plateaued. The authors discovered that while accuracy remains flat during this period, sensitivity continues to drop smoothly. This suggests that sensitivity acts as a "hidden" indicator of progress, showing that the model is simplifying its internal logic before the final jump in performance occurs.

Key Results and Robustness

Training accuracy and sensitivity dynamics across various architectures. Transformers (ViT) maintain significantly lower sensitivity throughout training compared to CNNs (DenseNet, ResNet).
  • Quantitative Gap: At the conclusion of training on CIFAR-10, the sensitivity for a DenseNet-121 was measured at 0.3673, whereas a ViT-small recorded a mere 0.0050. This massive disparity highlights a fundamental difference in how these architectures perceive data.
  • Corrupted Data Performance: Lower sensitivity directly correlates with better performance on corrupted datasets (e.g., CIFAR-10-C). Models trained with sensitivity regularization achieved higher robustness than those using standard training protocols.
  • Flatter Minima: Models with lower sensitivity were found to converge to flatter regions of the loss landscape, a characteristic widely associated with superior generalization in deep learning theory.

Limitations and Future Directions

While the results are compelling, the authors note that the theoretical proofs currently rely on linear attention simplifications. Furthermore, the study primarily focuses on models trained from scratch; the impact of massive-scale pre-training on sensitivity remains an open question. Future work may explore how this bias influences emergent properties in large language models (LLMs) and whether new architectures can be designed to maximize this inherent stability.

Summary updated

BibTeX
@inproceedings{vasudeva2025simplicity,
  author = {Bhavya Vasudeva and Deqing Fu and Tianyi Zhou and Elliott Kau and Youqi Huang and Vatsal Sharan},
  title = {{Simplicity Bias of Transformers to Learn Low Sensitivity Functions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=4ikjWBs3tE},
}
Figure