Protein Folding with Neural Ordinary Differential Equations
Arielle Sanford, Shuo Sun, Christian B. Mendl
TL;DR
This work tackles the computational burden of AlphaFold 2's Evoformer by replacing the 48 discrete blocks with a Neural ODE that evolves the MSA and pair representations over a continuous depth $t\in[0,1]$, enabling constant memory via the adjoint method. The proposed Evoformer ODE defines a vector field $f_\theta(m,z,t)$ that reconstitutes core Evoformer operations with gating functions $\sigma_m(t)$ and $\sigma_z(t)$, and uses an RK4 solver to integrate the dynamics. Training relies on ground-truth trajectories derived from OpenFold, employing a two-phase scheme to learn the full transformation from input to the final Evoformer block output, achieving substantial speedups (≈$4.85$ s per protein on a single GPU) while preserving broad structural features such as $\alpha$-helices. The results demonstrate a promising, lightweight, and interpretable alternative for biomolecular modeling, with future work pointing toward larger MSAs, higher-capacity representations, adaptive solvers, and longer sequences to close the gap with the traditional block-based model.
Abstract
Recent advances in protein structure prediction, such as AlphaFold, have demonstrated the power of deep neural architectures like the Evoformer for capturing complex spatial and evolutionary constraints on protein conformation. However, the depth of the Evoformer, comprising 48 stacked blocks, introduces high computational costs and rigid layerwise discretization. Inspired by Neural Ordinary Differential Equations (Neural ODEs), we propose a continuous-depth formulation of the Evoformer, replacing its 48 discrete blocks with a Neural ODE parameterization that preserves its core attention-based operations. This continuous-time Evoformer achieves constant memory cost (in depth) via the adjoint method, while allowing a principled trade-off between runtime and accuracy through adaptive ODE solvers. Benchmarking on protein structure prediction tasks, we find that the Neural ODE-based Evoformer produces structurally plausible predictions and reliably captures certain secondary structure elements, such as alpha-helices, though it does not fully replicate the accuracy of the original architecture. However, our model achieves this performance using dramatically fewer resources, just 17.5 hours of training on a single GPU, highlighting the promise of continuous-depth models as a lightweight and interpretable alternative for biomolecular modeling. This work opens new directions for efficient and adaptive protein structure prediction frameworks.
