Physics-Inspired All-Pair Interaction Learning for 3D Dynamics Modeling

Kai Yang, Yuqi Huang, Junheng Tao, Wanyu Wang, Qitian Wu

TL;DR

PAINET (Physics-inspired All-pair Interactions Network) is a novel neural architecture designed to model 3D dynamics by uncovering "hidden" interactions between particles that standard graph-based models often miss. By deriving its attention mechanism from the principle of energy minimization, PAINET achieves up to 41.5% better accuracy than state-of-the-art models across human motion, molecular, and protein simulations.

The Challenge of Unobserved Interactions

Predicting how objects move in 3D space—whether they are human joints, atoms in a drug molecule, or stars in a galaxy—is a cornerstone of physical simulation. Recently, Graph Neural Networks (GNNs) have become the go-to tool for this task, treating particles as nodes and their interactions as edges.

However, most GNNs rely on an explicitly observed structure (e.g., a chemical bond between two atoms or a physical link between joints). This creates a major gap: in the real world, "unobserved" interactions are everywhere. Long-range forces like Van der Waals interactions or the complex folding mechanisms of a protein involve particles that aren't "connected" in a traditional graph but still exert massive influence on each other. Existing models often ignore these all-pair interactions or struggle to model them while maintaining physical symmetries, such as ensuring a prediction doesn't change just because you rotated the coordinate system.

Introducing PAINET

The authors introduce PAINET, which moves beyond fixed graphs to learn all-pair interactions through a rigorously grounded architecture:

PAINET Architecture
  1. Physics-Inspired Attention Network: Instead of using standard "black-box" attention, the authors derive their update rule from the minimization of an energy function. They use a potential form inspired by the Landau-Ginzburg theory, a famous framework in physics for describing phase transitions. Mathematically, they prove that their attention mechanism is equivalent to taking a gradient descent step toward a state of "internal consistency" or equilibrium in the latent space.
  2. Adaptive Pairwise Mappings: To handle different types of particles (e.g., a carbon-carbon interaction vs. a carbon-hydrogen one), the model uses learnable coefficients ($\Phi$ and $\Psi$) that adjust the interaction strength based on particle identities.
  3. Parallel SE(3)-Equivariant Decoder: To keep the model fast and physically grounded, they use a parallel decoder based on Equivariant Graph Neural Networks (EGNN). This ensures the model respects SE(3)-equivariance—meaning the physics remains consistent regardless of how the system is rotated or translated in 3D space—while allowing the model to predict multiple future time steps simultaneously.

Key Insights

  • Attention as Energy Minimization: The most elegant conceptual leap is the realization that the iterative updates in a transformer-like attention layer can be framed as a physical system seeking its lowest energy state. This provides a rigorous theoretical justification for using attention in physics modeling.
  • Beyond Local Neighborhoods: By allowing every particle to "talk" to every other particle in the latent space (all-pair interaction), the model captures the "long-tail" forces that local GNNs miss.
  • Equivariance is Non-Negotiable: The paper reinforces that for 3D dynamics, maintaining geometric symmetries (equivariance) isn't just a bonus—it's a strict requirement for stable, long-term trajectory prediction.

Experimental Results

The model was evaluated on several diverse benchmarks to prove its generality, including CMU Motion Capture (human walking/running), MD17 (small organic molecules), MD22 (larger, flexible molecules), and Adk (large-scale protein simulation).

PAINET consistently outperformed state-of-the-art baselines like EGNO and GF-NODE across the board:

  • Human Motion: Achieved a 40.5% error reduction in the "Walk" task and 31.2% in "Run" compared to the best previous models.
  • Molecular Dynamics: On the MD17 dataset, it reduced errors by up to 18.0%.
  • Protein Dynamics: Showed superior stability in long-term simulations, where other models typically see error "explosions" as time progresses.
  • Efficiency: Despite modeling all-pair interactions, the parallel decoder allows PAINET to maintain computation costs (time and memory) comparable to models that only look at local neighbors.
Molecular Dynamics Trajectory Comparison

Limitations and Future Work

While highly effective, PAINET has a few limitations that pave the way for future research:

  • Computational Complexity: While the authors demonstrate linear scalability in their specific tests, all-pair attention is theoretically $O(N^2)$ relative to the number of particles. For systems with millions of atoms, further optimizations or hierarchical attention might be necessary.
  • Static Particle Types: The current model assumes particle types (like atomic numbers) are fixed. Future work could extend this to systems where particle properties change over time, such as chemical reactions where bonds break and form.
  • Integration with ODE Solvers: While PAINET uses a discrete-step approach, the authors suggest that integrating their energy-based attention into continuous-time Neural ODE frameworks could be a promising next step.

Summary updated

BibTeX
@inproceedings{yang2026physics,
  author = {Kai Yang and Yuqi Huang and Junheng Tao and Wanyu Wang and Qitian Wu},
  title = {{Physics-Inspired All-Pair Interaction Learning for 3D Dynamics Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=haQ0QIor4J},
}
Figure