Abstract
Current artificial intelligence models often struggle with physical reasoning, requiring vast amounts of data and failing to generalize to novel scenarios. Researchers from Peking University have introduced Neural Force Field (NFF), a framework that enables AI to learn generalized physical principles from just a few examples. By representing complex object interactions as continuous, explicit force fields integrated via an ODE solver, NFF achieves human-like out-of-distribution (OOD) generalization and outperforms state-of-the-art models using up to 260x less data.
Introduction
While humans can observe a single physical event—like a ball bouncing—and immediately grasp the underlying rules of gravity and collision, AI models like Graph Neural Networks (GNNs) or Transformers are often brittle. These models tend to overfit to specific trajectories, learning what happens rather than the underlying physical why. Consequently, they often fail in OOD scenarios involving different object counts or novel environment layouts. The challenge lies in creating a representation that is flexible enough to learn from minimal data yet grounded in physics to ensure broad generalization.
Methodology
The core innovation of this work is the Neural Force Field (NFF). Rather than predicting discrete frames or latent states, the model learns to map object interactions to a continuous vector field of forces.
Neural Operator Force Fields
NFF utilizes a neural operator, specifically the DeepONet architecture, to process object states (position, velocity, geometry) and output the forces acting upon them. This approach allows for a continuous representation of physics.
ODE Integration and Compositionality
The predicted forces are processed by a second-order Ordinary Differential Equation (ODE) solver. This ensures that trajectories adhere to $F=ma$, making them physically consistent rather than merely visually plausible. Furthermore, because forces are additive, NFF handles multi-object scenes by summing force vectors generated by each interaction on a dynamic graph.
Planning Capabilities
The model supports both forward and backward planning. As a simulator, it can test action sequences (forward). Because the ODE formulation is differentiable and invertible, it can also "run time backward" to determine the initial conditions required to reach a specific goal state.
Experimental Evaluation
The authors evaluated NFF across three challenging benchmarks: I-PHYRE (complex puzzles), N-body Dynamics (gravitational laws), and PHYRE (vision-based goal-oriented puzzles).
Key Results
NFF demonstrated superior generalization in "cross-scenario" tests, consistently yielding lower error rates than baselines like Interaction Networks (IN) and SlotFormer. In N-body tasks, NFF's backward integration allowed for planning initial conditions 10 times faster than traditional optimization methods. On the I-PHYRE task, NFF with interactive refinement approached human-level success rates, whereas baseline models often performed worse than random sampling in OOD settings.
Key Insights
A primary advantage of NFF is its use of Physics as a Regularizer. By forcing the network to output forces instead of positions, the laws of motion are effectively baked into the architecture, preventing the model from memorizing specific paths.
Furthermore, NFF excels in Few-Shot Learning. It can learn fundamental concepts like "support" or "containment" from as few as 10–100 trajectories. In the PHYRE benchmark, it achieved state-of-the-art results using 267 times less data than previous methods. The model also supports Interactive Refinement, adapting through trial and error by using failed predictions to refine its internal force field parameters in real-time.
Conclusion and Future Work
NFF represents a significant advancement in grounding AI in physical principles. However, current limitations include a focus on rigid bodies in deterministic environments. Future work aims to extend NFF to stochastic environments, soft bodies, and fluids, as well as grounding these force fields in real-world video using vision foundation models to handle perceptual noise.
Summary updated