Posts by Zhihui Du
geometric-nn-ops: Triton Kernels for Protein-Folding Triangle Operations on ROCm
- 04 December 2026
AlphaFold3-style co-folding models such as OpenFold3, Boltz, and Protenix update an N×N pair representation, one feature vector per pair of the complex’s N tokens, with two triangle operations in every trunk block: triangle attention and the triangle multiplicative update. Both update each pair (i, j) by summing over a third token k, so their cost grows as N³ while the rest of the trunk grows as N². Doubling the size of a complex multiplies the work of the triangle operations by up to eight and that of everything else by up to four, so on large complexes these two operations dominate the trunk.