Softpick: No Attention Sink, No Massive Activations with Rectified Softmax

Zayd M. K. Zuhri, Erland Hilman Fuadi, Alham Fikri Aji
4/29/2025
cs.LG

Official code: zaydzuhri/softpick-attention (92 stars, last commit 2025-09-12).

Abstract

We introduce softpick, a rectified, not sum-to-one, drop-in replacement for softmax in transformer attention mechanisms that eliminates attention sink and massive activations. Our experiments with 340M and 1.8B parameter models demonstrate that softpick achieves 0\% sink rate consistently. The softpick transformers produce hidden states with significantly lower kurtosis and creates sparse attention maps. Quantized models using softpick outperform softmax on standard benchmarks, with a particularly pronounced advantage at lower bit precisions. Our analysis and discussion shows how softpick has the potential to open new possibilities for quantization, low-precision training, sparsity optimization, pruning, and interpretability. Code: https://github.com/zaydzuhri/softpick-attention.

View on arXivView PDF

Code Implementations(1)

Landing repository for the paper "Softpick: No Attention Sink, No Massive Activations with Rectified Softmax"

925PythonApr 29, 20251 years ago

Similar Papers

Cite this paper

@article{zuhri2025softpick,
  title  = {Softpick: No Attention Sink, No Massive Activations with Rectified Softmax},
  author = {Zayd M. K. Zuhri and Erland Hilman Fuadi and Alham Fikri Aji},
  year   = {2025},
  eprint = {2504.20966},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.20966v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.20966.svg)](https://codeofpaper.com/paper/2504.20966)

Discussion