This work introduces a novel hardware-algorithm co-design in the form of mixed-precision FlashAttention, which accumulates key-query products and evaluates their exponentials in 8-bit formats, then adaptively identifies sensitive sub-blocks and recomputes them in 16-bit formats.
Abstract
While most attention logits can be computed in low precision without degrading numerical stability, current attention kernels fail to exploit this phenomenon. We introduce a novel hardware-algorithm co-design in the form of mixed-precision FlashAttention. Our method accumulates key-query products and evaluates their exponentials in 8-bit formats, then adaptively identifies sensitive sub-blocks and recomputes them in 16-bit formats. We propose the specifications for a dedicated accelerator capable of executing this pipeline efficiently. Simulated experiments with Qwen3 and Gemma 3 show that rerouting a selective minority of sub-blocks to high precision is sufficient to recover the baseline model performance.
Attention remains a substantial computational cost in Transformer training, particularly at long context lengths. NVIDIA Blackwell GPUs provide high-throughput low-precision matrix multiplication, but exploiting it in attention requires addressing quantization overhead, causal information leakage through shared scales,...
Quantization reduces the memory and bandwidth demands of large language model (LLM) inference but can degrade accuracy; offloading higher-precision data can instead stall generation. We introduce StrataFlux, a framework that challenges this tradeoff by recovering accuracy lost to low-bit weight and key-value (KV) cache...
Jake Hyun, Zi-Yu Zhao, Jae-sun Seo et al.· 0 citations
Transformer models have shown outstanding performance in natural language processing and computer vision. However, their attention mechanism incurs substantial computation and memory overhead that grows rapidly with sequence length. Although studies have shown that attention distributions are often sparse, dynamically...
Wen-Tao Xu, Yuxuan Zhang, Rong-Zhou Zhu et al.· IEEE Transactions on Very La...· 0 citations
Synthetic text, images, and video are rising. Software-only detectors are power-hungry, too slow, and costly, and do not scale with demand. When software cannot scale, historically hardware often comes to the rescue. We perform the first reverse engineering of a compression accelerator--Intel QuickAssist Technology (QA...
Darsh Asher, Joshua Kalyanapu, Kaushal Mhapsekar et al.· 0 citations
Related blog posts
Microsoft Research Blog· microsoft.comNov 30, 2026
When AI “forgets,” is the information really gone? Standard tests can suggest an AI model has successfully forgotten specific information. A controlled Microsoft Research study found a different picture when researchers changed the questions and used strategic prompts. The findings point to a gap between looking like information is forgotten and making it resistant to recovery. The post Forgotten, or just hidden? Stress testing how AI models unlearn appeared first on Microsoft Research.
MIT News · Artificial Intelligence· news.mit.eduNov 17, 2026
By studying the computational foundations of language learning, Associate Professor Jacob Andreas builds intelligent systems that can communicate effectively with humans.
Microsoft Research Blog· microsoft.comNov 16, 2026
AI coding agents are increasingly help developers fix bugs and build features largely on their own, but every interaction with their models consumes tokens. In each session, an agent sends instructions, tool descriptions, and session history to its model. Most efforts to reduce this cost focus on individual tasks. Yet developers return to the same […] The post TokenEconomizer: Learning from Experience to Make AI Coding Agents More Efficient appeared first on Microsoft Research.
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.