QFlash: Bridging Quantization and Memory Efficiency in Vision Transformer Attention
Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 1496-1504.
https://doi.org/10.24963/ijcai.2026/167
Keywords
- Computer Vision: Efficiency and Optimization
Abstract
FlashAttention improves efficiency through tiling, but its online softmax still relies on floating-point arithmetic for numerical stability, making full quantization difficult.
We identify three main obstacles to integer-only FlashAttention: (1) scale explosion during tile-wise accumulation, (2) inefficient shift-based exponential operations on GPUs, and (3) quantization granularity constraints requiring uniform scales for integer comparison.
To address these challenges, we propose QFlash, an end-to-end integer FlashAttention design that performs softmax entirely in the integer domain and runs as a single Triton kernel.
On seven attention workloads from ViT, DeiT, and Swin models, QFlash achieves up to 6.73x speedup over I-ViT and up to 8.69x speedup on Swin, while reducing energy consumption by 18.8% compared to FP16 FlashAttention, without sacrificing Top-1 accuracy on ViT/DeiT and remaining competitive on Swin under per-tensor quantization.
Our code is publicly available at https://github.com/EfficientCompLab/qflash.
@inproceedings{ijcai2026p167,
title = {QFlash: Bridging Quantization and Memory Efficiency in Vision Transformer Attention},
author = {Oh, Sehyeon and Kwon, Yongin and Lee, Jemin},
booktitle = {Proceedings of the Thirty-Fifth International Joint Conference on
Artificial Intelligence, {IJCAI-26}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Diego Calvanese},
pages = {1496--1504},
year = {2026},
month = {8},
note = {Main Track},
doi = {10.24963/ijcai.2026/167},
url = {https://doi.org/10.24963/ijcai.2026/167},
}
TY - CPAPER TI - QFlash: Bridging Quantization and Memory Efficiency in Vision Transformer Attention AU - Oh, Sehyeon AU - Kwon, Yongin AU - Lee, Jemin T2 - Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2026 SP - 1496 EP - 1504 DO - 10.24963/ijcai.2026/167 UR - https://doi.org/10.24963/ijcai.2026/167 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: