1
FlyWheel: Attention Kernels Built for the TPU
1 Nov · Zishuo Bao, Zeshen Zhang, Linkun Chen +1 · arXiv:2611.01426
Attention kernels on Tensor Processing Units (TPUs) often underutilize their matrix units (MXUs) because of repeated matrix operand loads, vector-intensive computation, and dependencies that leave MXUs idle. We present FlyWheel, a set of fast TPU kernels for both softmax and linear attention. FlyWheel reformulates softmax and triangular inversion to reduce vector work, while coordinating data layouts to improve…