Predicting the future state of a physical system—like a solar system or a cluster of bouncing balls—is a fundamental capability of human intelligence, yet it remains notoriously difficult for traditional neural networks. This paper introduces the Interaction Network (IN), a seminal framework in the field of graph neural networks and physical reasoning. By explicitly separating object dynamics from relational interactions, the IN acts as a "learnable physics engine" capable of predicting future states and inferring abstract properties across diverse physical domains.
The Challenge of Physical Reasoning
The primary hurdle in modeling physical systems is combinatorial complexity: a scene can contain any number of objects arranged in an infinite variety of ways.
Standard "black-box" neural networks, such as simple Multi-Layer Perceptrons (MLPs), struggle with this because they expect fixed-size inputs. They do not inherently understand that the same "rules of physics" apply regardless of how many objects are present or how they are ordered. While Convolutional Neural Networks (CNNs) handle spatial relationships well, they are tied to rigid pixel grids and struggle with long-range or non-spatial interactions. The authors sought a model that could decompose a scene into distinct objects and relations, reasoning about their consequences just as a physics simulator does.
The Interaction Network Architecture
The Interaction Network represents a physical system as a graph, where nodes represent objects and edges represent the relations between them. The architecture consists of two main learnable components, typically implemented as MLPs:
- The Relational Model ($f_R$): This model examines "triplets" consisting of a sender object, a receiver object, and their relationship attributes. It predicts the "effect" ($e$) that the sender has on the receiver. Because the exact same $f_R$ function is applied to every pair of interacting objects, the model learns universal rules of interaction (such as gravity or spring forces).
- The Object Model ($f_O$): This model takes an object’s current state, any external forces (like global gravity), and the sum of all interaction effects calculated by $f_R$. It then predicts the object's next state (e.g., its new velocity or position).
A crucial technical detail is the aggregation function. By summing the effects from all neighbors before passing them to the object model, the network becomes "permutation invariant." It can handle a variable number of neighbors, allowing it to scale to larger systems than those it was trained on.
Experimental Domains and Key Insights
The authors evaluated the IN on three simulated 2D physical domains generated by a standard physics engine:
- N-body systems: Objects interacting via gravitational attraction (all-to-all relations).
- Bouncing balls: Rigid-body collisions between balls and against static walls.
- Strings: Masses connected by springs, which also collide with a large rigid cylinder.
Zero-Shot Generalization and Compositionality
Because the model reasons about pairs of objects, it can handle combinatorially many arrangements without needing to see every possible configuration during training. The most striking insight is its zero-shot generalization: an IN trained on a 6-body system can immediately perform well on a 12-body system. The "laws of physics" it learned are local and do not change based on the total number of objects.
Accuracy and Long-Term Stability
In all domains, the IN achieved Mean Squared Errors (MSE) that were orders of magnitude lower than MLP baselines. For example, in the "Balls" domain, the IN achieved an MSE of 0.0020 compared to the baseline's 0.072.
Furthermore, even though the model was only trained to predict the next single time step, it could be "rolled out" for thousands of steps. The resulting trajectories remained physically plausible and visually indistinguishable from ground-truth simulations. Beyond predicting motion, a slightly modified version of the IN could accurately estimate abstract quantities like the total potential energy of a system, proving it captures deep underlying physical properties.
Limitations and Future Work
While powerful, the Interaction Network has a few limitations:
- Computational Scaling: The current implementation uses all-to-all interactions for some domains, which scales at $O(n^2)$. For very large systems, future iterations might need to "cull" interactions that have negligible effects.
- State Observation: The model requires the exact state (position, velocity, mass) of objects as input. Applying this to real-world scenarios requires a "perceptual front-end" to extract these states from raw sensory data like video.
- Deterministic Nature: The model is deterministic. Future work could involve making it probabilistic to handle uncertainty in complex or chaotic physical systems.
Ultimately, the Interaction Network serves as a vital bridge between structured symbolic reasoning (like classical physics) and the flexible, powerful learning capabilities of deep neural networks.
Summary updated