mlsanityData to 14 Oct 2026

MegaFold: Efficient Training of Next-Generation 3D Attention Protein Models on Cross-Platform GPUs

arXiv 2506.20686 ↗First posted 24 Jun 2025q-bio.BM cs.DC cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Recent advances in biomolecular modeling have been catalyzed by models such as AlphaFold3 (AF3), which introduce science-informed changes to the transformer architecture. Unlike transformers, a defining characteristic of AF3-style models is their 3D attention over 2D pairwise representations which produces tensors whose computation and memory costs scale cubically with sequence length. As a result, despite moderate parameter counts, AF3-style models are far more expensive to train than size-equivalent transformers, and are severely constrained by GPU memory capacity. Our characterization shows 3D attention fundamentally changes the training workload, causing massive 3D attention maps, complex inter-operator dependencies, kernel fragmentation, and heavy host-side data pipelines which differ substantially from LLM training, leading to poor utilization on modern GPU systems. Moreover, existing GPU optimizations do not adequately address these challenges due to complex cross-layer inter-operator dependencies introduced by 3D attention. Motivated by these challenges, we introduce MegaFold, a novel cross-platform system for efficient training of next-generation 3D-attention protein models. MegaFold combines a memory-efficient 3D-attention kernel, a communication-efficient sharding strategy for quadratic representations, fused operator implementations for critical execution paths, and a determinism-aware host-device pipeline that eliminates preprocessing stalls. Evaluation on both NVIDIA H200 and AMD MI250 GPUs shows that MegaFold enables training with up to 3.36× longer sequence lengths on 32 GPUs while reducing end-to-end execution time by up to 1.73× (NVIDIA) and 1.62× (AMD).

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 29 of its 57 references that are in the map. First posted on arXiv 24 Jun 2025.

Builds on

29 of 57 references.

References · 29

  1. 2017Attention Is All You Needcited by 60,361
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  6. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  7. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
  8. 2020GLU Variants Improve Transformercited by 1,804
  9. 2019Root Mean Square Layer Normalizationcited by 1,480
  10. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  11. 2016Training Deep Nets with Sublinear Memory Costcited by 848
  12. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 660
17 more
  1. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 632
  2. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 519
  3. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
  4. 2023ClimaX: A foundation model for weather and climatecited by 337
  5. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 302
  6. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 258
  7. 2021Large-Scale Chemical Language Representations Capture Molecular Structure and Propertiescited by 206
  8. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  9. 2018Online normalizer calculation for softmaxcited by 162
  10. 2024Liger Kernel: Efficient Triton Kernels for LLM Trainingcited by 130
  11. 2022Benchmarking Graphormer on Large-Scale Molecular Modeling Datasetscited by 64
  12. 2023FFCV: Accelerating Training by Removing Data Bottleneckscited by 49
  13. 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 41
  14. 2023DeepSpeed4Science Initiative: Enabling Large-Scale Scientific Discovery through Sophisticated AI System Technologiescited by 15
  15. 2022FastFold: Reducing AlphaFold Training Time from 11 Days to 67 Hourscited by 14
  16. 2024ScaleFold: Reducing AlphaFold Initial Training Time to 10 Hourscited by 8
  17. 2025Blockbuster, Part 1: Block-level AI Operator Fusioncited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.