pith. sign in

arxiv: 2309.08586 · v2 · pith:LINTUUTQnew · submitted 2023-09-15 · 💻 cs.CV · cs.LG

Replacing softmax with ReLU in Vision Transformers

classification 💻 cs.CV cs.LG
keywords transformersvisiondegradationrelureplacingsoftmaxwhenaccuracy
0
0 comments X
read the original abstract

Previous research observed accuracy degradation when replacing the attention softmax with a point-wise activation such as ReLU. In the context of vision transformers, we find that this degradation is mitigated when dividing by sequence length. Our experiments training small to large vision transformers on ImageNet-21k indicate that ReLU-attention can approach or match the performance of softmax-attention in terms of scaling behavior as a function of compute.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 7 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. A Unifying View of Attention Sinks: Two Algorithms, Two Solutions

    cs.LG 2026-06 unverdicted novelty 7.0

    Attention sinks reflect either adaptive nop or broadcast mechanisms, with distinct traces, synthetic diagnostics, and complementary interventions via gating plus registers.

  2. Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention

    cs.LG 2026-05 unverdicted novelty 7.0

    Multi-head self-attention is modeled as a gradient flow with a non-decreasing energy functional under conditions on score matrices, yielding closed-form clustering thresholds in simplified regimes and monotonic entrop...

  3. Efficient Implementation of an Adaptive Transformer Accelerator for Massive MIMO Outdoor Localization

    cs.AR 2026-05 unverdicted novelty 6.0

    An FPGA accelerator for a sparsity-exploiting adaptive Transformer achieves up to 2x speedup and sub-2ms latency for massive MIMO localization with under 10% accuracy loss on real measurements.

  4. On the global convergence of gradient descent for wide shallow models with bounded nonlinearities

    math.OC 2026-05 unverdicted novelty 6.0

    Gradient descent on wide shallow models with bounded nonlinearities converges globally in the mean-field limit as non-global critical points are unstable under the dynamics.

  5. Cubit: Token Mixer with Kernel Ridge Regression

    cs.LG 2026-05 unverdicted novelty 6.0

    Cubit replaces Transformer attention with Kernel Ridge Regression token mixing and shows potential gains on longer sequences.

  6. Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention

    cs.LG 2026-05 unverdicted novelty 6.0

    Multi-head self-attention dynamics admit a non-decreasing energy functional under suitable score-matrix conditions, with closed-form clustering thresholds and monotonic entropy production in simplified regimes.

  7. Cubit: Token Mixer with Kernel Ridge Regression

    cs.LG 2026-05 unverdicted novelty 5.0

    Cubit replaces Transformer's attention with a closed-form Kernel Ridge Regression token mixer and reports larger gains as training sequence length increases.