potentialpaper

SwiftMax: Reducing Training Time for Learnable Softmax Alternative in Customized Acceleration

Haoxiang Sun, Yiqi liu, Zhangwenbo, Baozhenshan

ICLR 2026 submission

Edit this page

Or clone it with git

The page gets its repository with its first edit, so start in the web editor.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Softmax's row-wise max and sum impose an O(n)O(n) normalizer substep inside self-attention, creating latency and bandwidth bottlenecks on modern accelerators. We introduce \textbf{SwiftMax}, a drop-in, learnable alternative that replaces these reductions with per-layer scalars β,γ\beta,\gamma, removing the length-nn dependency in the normalizer while leaving QK⊤QK^\top and value mixing unchanged. SwiftMax is enabled by a \emph{layer-wise replace-and-tune} schedule that updates only β,γ\beta,\gamma on top of a frozen pretrained model; initialization is guided by the output statistics of the Softmax normalizer (distributions of zmax⁡z_{\max} and ∑jezj−zmax⁡\sum_j e^{z_j-z_{\max}}). On BERT-base across GLUE, SwiftMax matches the Softmax baseline within 1--3 accuracy points on SST-2/MNLI/QQP; compared with approaches that retrain all parameters to learn these scalars (e.g., ConSmax-style training), SwiftMax cuts end-to-end training time by orders of magnitude (up to 2,250×2{,}250\times in our setting). On AMD ACAP, eliminating the row dependency enables up to 23×23\times speedup for the self-attention normalizer and substantial module-level gains, alleviating pipeline stalls and memory traffic. Taken together, SwiftMax offers a practical path to hardware-friendly attention with minimal accuracy loss and without full retraining, bridging the gap between pretrained models and custom acceleration.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…