Triangle attention (TriAttn) and triangle multiplication (TriMul) are core operations in protein structure models, but their cubic scaling limits training and inference on large biomolecules. We introduce TriHyena, a gated FFT-based triangle mixer with O(L^2 logL) compute complexity. At sequence length 2048, TriHyena trains 3.2 - 7.0x faster than TriAttn and 1.5 - 1.7x faster than TriMul across NVIDIA B300, B200, H200, H100, and A100 GPUs, with further gains at wider pair representations. In reduced-scale RoseTTAFold3 (RF3) ablations, replacing TriAttn with TriHyena preserves baseline protein and protein-protein interface lDDT. Replacing both TriAttn and TriMul with TriHyena, yielding an all-TriHyena model, retains baseline lDDT for monomers and is close in lDDT (-0.04) for protein interfaces. In protein generation with Genie2, replacing TriMul with TriHyena yields comparable designability and diversity. TriHyena is thus an efficient substitute for TriAttn and TriMul, and a basis for architectures that further reduce computational cost. Code: https://github.com/NVIDIA-BioNeMo/nvSubquadratic .
翻译:暂无翻译