LampAttention: Look-Ahead Mixed-Precision FlashAttention for Dedicated Accelerators
Stanislav Budzinskiy, Marian Gloser, Tolunay Yilmaz, Ying Hong Tham, Yuanyi Lin, Wenyi Fang, Fan Wu, Philipp Petersen
Key points
From the paper's conclusion- We introduce a novel hardware-algorithm co-design in the form of mixed-precision FlashAttention.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DeCo-Attention: Decompose to Compensate for Low-Precision AttentionarXiv · 2026
- TileMix: Tile-Centric Mixed-Precision Attention for LLM Inference AccelerationarXiv · 2026
- Elastic Precision: Software-Hardware Co-Design of a Mixed-Precision Architecture for Long-Context LLM InferencearXiv · 2026
- AutoEMatic: Runtime-Adaptive Mixed-Precision LLM Inference via Automatic Exponent-Mantissa RefinementarXiv · 2026
- TriAttention: Unified Sparse Mixed-Precision Attention for Long-Context LLM InferencearXiv · 2026
- Folding Attention Biases into Keys Makes Compacted KV Caches Run on Standard KernelsarXiv · 2026