SwiftMax: Reducing Training Time for Learnable Softmax Alternative in Customized Acceleration
Haoxiang Sun, Yiqi liu, Zhangwenbo, Baozhenshan
ICLR 2026 submission
Abstract. Softmax's row-wise max and sum impose an 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 , removing the length- dependency in the normalizer while leaving and value mixing unchanged. SwiftMax is enabled by a \emph{layer-wise replace-and-tune} schedule that updates only on top of a frozen pretrained model; initialization is guided by the output statistics of the Softmax normalizer (distributions of and ). 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 in our setting). On AMD ACAP, eliminating the row dependency enables up to 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 paperadd · history
Loading the discussion…