arXiv AI

Why Low-Precision Transformer Training Fails: An Analysis on Flash Attention

arXiv:2510. 04212v4 Announce Type: replace-cross Abstract: The pursuit of computational efficiency has driven the adoption of low-precision formats for training transformer models.

arXiv Machine Learning
Oct 19

Pretraining Transformers with Quantized Softmax in Attention

The paper investigates how quantizing the softmax operation in Transformer attention affects pretraining. It explores K‑interval attention, varying grid calibration, interpolation versus hard rounding, and surrogate placement relative to normalization, deriving backward rules for each case. Experiments on a 124M‑parameter model show that choices like fixed‑window calibration with a post‑normalization surrogate or a pre‑normalization surrogate can reduce validation loss gaps compared to standard softmax.

By Shangzhen Zhu, Muyan Hu, Tomasz Kozlowski
arXiv Machine Learning
Oct 16

ABNAT: Attention-Based Noise-Aware Training for Robust Transformers on Analog Compute-in-Memory Systems

ABNAT introduces an attention-based noise-aware training framework for Transformer models on analog compute-in-memory systems. It focuses on preserving clean teacher attention routes during noisy training, addressing the increased divergence in deeper layers and overconfidence issues of conventional NAT. Experiments across vision, language, and multimodal Transformers show up to 11.28% accuracy improvement and 85.77% reduction in attention deviation.

By Wenshuai Yao, Wenyong Zhou, Hanyong Shao, Zhiyuan Ning, Yizhe Chen, Yuannuo Feng, Kechao Tang, Ru Huang
arXiv Machine Learning
Oct 15

Your Transformer Is Secretly Elastic

The paper presents a retraining‑free technique that transforms pre‑trained transformers into elastic models capable of adapting to any computational budget on the fly. By jointly ranking every MLP neuron and attention head on a common scale and applying soft pruning across multiple sparsity targets, the method achieves smooth performance degradation up to 60% sparsity while outperforming one‑shot baselines. Experiments on 27 vision and text transformer encoders show significant parameter reductions with minimal accuracy loss and notable throughput and latency gains on GPUs, all produced in minutes.

By Walter Simoncini, Dheeraj Varghese, Gertjan J. Burghouts, Cees G. M. Snoek
arXiv Machine Learning
Oct 19

What Accuracy Hides In Learned Transformer Programs

The paper investigates Transformer Programs (TP), a constrained Transformer architecture that outputs readable Python code. It shows that token‑level accuracy can mask incorrect full‑sequence outputs, and that inspecting the generated programs reveals failures missed by standard tests. By using program inspection to guide data augmentation, the authors achieved higher sequence accuracy on several algorithmic tasks, demonstrating the value of program‑level analysis for training TP models.

By Jonathan Lee, Narmeen Oozeer, Philip Quirke