mlsanityData to 14 Oct 2026

TurboPairFormer: Fast and Stable Protein Folding Model Training with an Optimized Triangle Attention Kernel

arXiv 2610.05854 ↗First posted 5 Oct 2026cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Triangular attention is a core computation in AlphaFold3-style biomolecular models, with cubic cost in token count. Its shared pair bias adds a gradient reduction across attention slices to the usual reductions over queries and keys. The open-source backends we examine handle these reductions through repeated probability recomputation, floating-point atomics, or full score-gradient storage. Separately, computing the softmax backward correction from BF16-rounded forward outputs loses numerical precision. We present TurboPairFormer, a triangular attention implementation for NVIDIA Hopper GPUs that addresses both issues. Our key-tile-parallel backward algorithm recomputes each probability tile once for the query, key, value, and pair-bias gradients, using ordered partial reductions for deterministic accumulation without floating-point atomics or full score-gradient storage. Output-residual compensation retains a BF16 approximation of the output-rounding residual to compute the backward correction more accurately in FP32, without changing the BF16 output. With BF16 inputs at crop sizes 384, 640, and 768 and head dimensions 16 and 32, TurboPairFormer achieves the lowest mean query, key, and pair-bias gradient RMSE against an FP64 reference among the implementations compared in this paper. Residual compensation reduces these RMSE values by 28-47% in controlled ablations. All four gradients are bitwise identical across five repeated calls in all 600 input cases under fixed execution conditions. Integrated into OpenFold3 with our triangle multiplication kernels, TurboPairFormer achieves the lowest GPU computation time per optimizer step among the evaluated backend configurations on 16 H100 GPUs, with speedups of 1.73× over OpenFold3's Triton backend and 1.13× over cuEquivariance at crop size 768.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 33 references that are in the map. First posted on arXiv 5 Oct 2026.

Builds on

19 of 33 references.

References · 19

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  4. 2017Mixed Precision Trainingcited by 1,156
  5. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  6. 2018Online normalizer calculation for softmaxcited by 162
  7. 2021Self-attention Does Not Need O(n2) Memorycited by 154
  8. 2026FlashAttention-4: Algorithm and Kernel Pipelining Co-Design for Asymmetric Hardware Scalingcited by 66
  9. 2021Nondeterminism and Instability in Neural Network Optimizationcited by 48
  10. 2023DeepSpeed4Science Initiative: Enabling Large-Scale Scientific Discovery through Sophisticated AI System Technologiescited by 15
  11. 2022FastFold: Reducing AlphaFold Training Time from 11 Days to 67 Hourscited by 14
  12. 2025Why Low-Precision Transformer Training Fails: An Analysis on Flash Attentioncited by 12
7 more
  1. 2025FlashBias: Fast Computation of Attention with Biascited by 11
  2. 2024Collage: Light-Weight Low-Precision Strategy for LLM Trainingcited by 10
  3. 2024ScaleFold: Reducing AlphaFold Initial Training Time to 10 Hourscited by 8
  4. 2026Attn-QAT: 4-Bit Attention With Quantization-Aware Trainingcited by 8
  5. 2024NeuralPLexer3: Accurate Biomolecular Complex Structure Prediction with Flow Modelscited by 5
  6. 2026DASH: Deterministic Attention Scheduling for High-throughput Reproducible LLM Trainingcited by 4
  7. 2025MegaFold: Efficient Training of Next-Generation 3D Attention Protein Models on Cross-Platform GPUscited by 1

Built on by

Not cited yet.