---
title: "Graph networks as learnable physics engines for inference and"
description: "How graph networks learn physical dynamics, infer hidden system properties, and support control across simulated systems and a real robot arm."
canonical: "https://research.elamur.ai/free/en/papers/gonzalez-2018-graph-networks-as-learnable-physics/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/gonzalez-2018-graph-networks-as-learnable-physics/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Graph networks as learnable physics engines for inference and control

# Graph networks as learnable physics engines for inference and control

Paper · 2018 · Álvaro Sánchez‐González, Nicolas Heess, Jost Tobias Springenberg et al.

**Authors:** [Álvaro Sánchez‐González](https://md.research.elamur.ai/free/en/authors/alvaro-sanchez-gonzalez/), [Nicolas Heess](https://md.research.elamur.ai/free/en/authors/nicolas-heess/), [Jost Tobias Springenberg](https://md.research.elamur.ai/free/en/authors/jost-tobias-springenberg/), Josh Merel, [Martin Riedmiller](https://md.research.elamur.ai/free/en/authors/martin-riedmiller/), [Raia T. Hadsell](https://md.research.elamur.ai/free/en/authors/raia-t-hadsell/) and [Peter Battaglia](https://md.research.elamur.ai/free/en/authors/peter-battaglia/) · **Year:** 2018 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**259** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2804072623) · arXiv (Cornell University) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [arXiv 1806.01242](https://arxiv.org/abs/1806.01242)
- [OpenAlex](https://openalex.org/W2804072623)

## Deep dive: Graph networks as learnable physics engines for inference and control

How graph networks learn physical dynamics, infer hidden system properties, and support control across simulated systems and a real robot arm. · about 37 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Predicting a machine’s movement becomes harder when its parts, dimensions, or physical properties change. A predictor trained on one articulated body might fail on another, even when both are assembled from familiar components. This paper asks whether learning can exploit that shared construction. Its answer is to represent a physical system as a graph: bodies become nodes, joints become edges, and system-wide quantities occupy a global representation. Shared computations then describe how bodies behave and how connected bodies affect each other. The aim is to learn reusable dynamics instead of a separate description of every complete machine.

The authors develop graph networks for three connected tasks. A forward predictor estimates the next physical state from the current state, system properties, and actions. A recurrent inference network observes motion and produces a latent description of properties that were not directly measured. Differentiable prediction then supports control: an optimizer can adjust a proposed action sequence according to its predicted consequences, or improve a policy through gradients passing through the learned dynamics. These capabilities use related graph-based machinery, but answer different questions: what happens next, what kind of system is being observed, and which actions should be chosen?

The experiments cover seven simulated systems and a real JACO robotic arm. For single-system prediction, the graph approach produces lower error than a multilayer perceptron baseline in 6 of the 7 simulated environments. Its advantage is especially apparent when many components have similar roles, as in an articulated swimmer. A shared predictor also handles changes in physical parameters and graph structure. Training on swimmers with 3-6 and 8-9 links supports prediction on previously unseen sizes, including 7 and 10-15 links, although accuracy deteriorates toward the larger held-out systems. On real robot recordings, recurrence improves prediction over the feed-forward graph architecture, suggesting that recent history contains information missing from an instantaneous observation.

The control results establish a further practical use for these predictions. In Swimmer6, graph-based planning approaches strong baselines that either know the simulator’s dynamics or learn a policy directly. Training the predictor on both random-action trajectories and trajectories from a learned controller makes its planning performance comparable to those baselines. A jointly trained graph predictor and stochastic policy also learns more effectively than the corresponding policy-learning method without learned dynamics. The conclusions have boundaries: parameter sharing helps unevenly across systems, long predictions still accumulate error, and the real robot experiments demonstrate prediction rather than physical robot control. The paper’s central contribution is therefore a reusable way to organize learned dynamics, supported by experiments in prediction, hidden-property inference, and simulated control.

### Ideas worth borrowing

Share rules across components. The graph architecture applies the same body computation at every node and the same interaction computation at every edge. This makes repeated structure useful during learning: evidence about one suitable component can improve the computation used for another. The idea is attractive whenever a problem contains many entities with comparable roles, instead of a fixed collection of unrelated input positions. Its value depends on choosing a representation in which sharing makes sense. The swimmer results support that condition particularly clearly; the weaker results on less repetitive systems show why sharing should be treated as a design hypothesis instead of an automatic benefit.

Separate persistent properties from changing state. The paper distinguishes quantities such as mass and joint configuration from instantaneous position and velocity. That separation allows a description of the system to remain available while its state evolves. It also creates a natural place for information inferred from earlier observations. Elsewhere, the same pattern could distinguish a stable environment description from the events occurring within it, or a persistent configuration from a running process. The useful principle is to give information with different lifetimes different representational roles, so that each need not be reconstructed whenever the other changes.

Infer what prediction needs. The identification network does not have to output named physical parameters. It produces a latent graph whose usefulness is judged through subsequent prediction. This avoids requiring direct supervision for every hidden property. The inferred representation must explain enough about observed behavior to help predict other behavior of the same system. That approach could be useful when hidden causes matter operationally but their exact measurement is unavailable. Its limitation travels with the idea: a representation that improves prediction is not automatically an interpretable estimate of mass, length, or another human-defined quantity.

Train identification away from its immediate continuation. During joint training, the observation sequence used for identification and the transition used for prediction are sampled separately from the same system trajectory. The inference network therefore cannot succeed merely by preparing to extend the last observed state. It is encouraged to encode something more persistent about the system. This is a reusable training design for separating context from momentary state. Whenever an inferred context should apply across different situations, evaluating it on a separate example can help distinguish reusable information from a short-lived summary.

Teach recovery from imperfect states. A rollout feeds predictions back into the predictor, so its later inputs can differ from the physically valid states present in recorded data. The authors address part of that problem by perturbing training inputs. The network must learn both a transition and a correction toward configurations consistent with the joints. This is useful beyond physical simulation whenever repeated prediction exposes a system to its own small mistakes. The important detail is that the perturbations target a concrete failure mechanism: articulated bodies can become slightly displaced relative to their constraints.

Evaluate the representation under changed structure and behavior. The paper tests more than an ordinary held-out trajectory split. It varies physical parameters, withholds graph sizes, and evaluates trajectories generated by a learned policy after training on random control. Those comparisons ask different questions about generalization. A predictor may handle new states while failing on a new arrangement of parts, or handle a new arrangement while failing under purposeful actions. This evaluation pattern is worth borrowing whenever a claim of reuse depends on changes in composition or usage, rather than merely fresh samples from familiar conditions.

### How Mova uses it

For Mova, a small transparent language system implemented in Rust, the most relevant contribution is the discipline of making entities, relations, and persistent context explicit. The paper does not investigate language processing or a Rust implementation. It therefore supplies an architectural analogy and possible research directions, rather than evidence of a working Mova integration. Any use in Mova should preserve that distinction: the physical experiments establish what happens in articulated dynamical systems, while a language application would need its own representation, learning objective, and evaluation.

A possible adaptation would represent a structured linguistic analysis as a graph. Nodes could correspond to entities or linguistic units, edges to relations between them, and a global record to shared context. This would connect naturally to [knowledge representation and reasoning](https://md.research.elamur.ai/free/en/concepts/knowledge-representation/), where the organization of information affects which inferences can be expressed and inspected. The lesson is not that linguistic relations behave like mechanical joints. It is that computations can be attached to explicit relational roles, so that adding another suitable entity does not require inventing an entirely separate computation for its position in an input vector.

The paper’s separation of static and dynamic graphs offers another concrete design possibility. Mova could keep persistent descriptive information apart from the current state of an analysis or interaction. A reusable context representation might then accompany several processing steps instead of being rebuilt at each step. The physical identification experiments explain why such separation can be useful: inferred system information remains available when the starting state changes. For language, however, deciding what counts as persistent context is a separate problem. Nothing in the physical results establishes that the same division will be appropriate for discourse, grammar, or lexical meaning.

Transparency also requires caution about the identification mechanism. Its output is latent and optimized for prediction; it is not required to expose recognizable physical parameters. A direct adoption would therefore add a learned internal representation whose meaning might be difficult to inspect. For Mova’s emphasis on [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/), explicit graph structure could be helpful while the latent features still require separate examination. Making the connections visible does not, by itself, make every computation understandable. A plausible adaptation would distinguish human-readable fields from learned features and evaluate what each contributes, but that remains a proposed design choice.

The strongest immediate use is methodological. Mova could test whether a shared relational computation works on unfamiliar combinations of familiar components, compare it with a flattened representation, and check whether inferred context remains useful on a separate task instance. These are concrete experimental patterns drawn from the paper. They do not require claiming that language is a physical simulator, or that a graph automatically improves accuracy. No implemented Mova capability is established by these experiments; what they offer is a precise set of hypotheses about reuse, context, and generalization that a transparent language system could investigate.

### The problem and its context

#### Why complete-system learning becomes difficult

An articulated system can produce a large variety of configurations and trajectories from a comparatively small collection of parts. Adding joints creates more possible arrangements; repeated interactions create more possible futures. A learner that treats every complete configuration as an unrelated case faces a difficult generalization problem. It must connect observations across situations whose underlying mechanisms may be similar even when their overall appearances differ.

The paper proposes organizing that similarity around objects and relations. Here, an object means an entity in a representation, not exclusively a tangible item. In the physical experiments, the entities are bodies and the relations are joints. The essential assumption is that useful computations can be reused at those levels. A rule describing one body’s response need not be tied permanently to that body’s location in a fixed input vector.

The authors compare this ambition with the flexibility of conventional physical simulation. A simulator can generate many scenes because it applies reusable descriptions of bodies and interactions under different conditions. The graph approach seeks a related kind of compositional flexibility through learning. It does not begin with prescribed physical laws. Instead, its structure determines where learned computations are shared, and supervised transitions determine what those computations become.

That distinction matters for the paper’s claim. The contribution is not an alternative set of hand-written equations for an articulated machine. Nor is it a system that discovers its own entities and connectivity from unrestricted observations. The experiments provide structured descriptions of bodies, joints, and state. Learning occurs within that supplied organization.

#### Prediction, identification, and control

The paper treats prediction as a foundation for action. If a system can estimate the consequences of proposed controls, it can compare possible futures before executing an action. Such a predictor is useful only to the extent that its errors remain manageable under the states and actions encountered during planning. Accurate prediction under random controls is therefore informative, but not sufficient evidence of successful control.

A second problem arises when important physical properties are hidden. Observing position and velocity does not directly reveal every quantity that determines future motion. A controller may know how a body is moving without knowing the relevant mass, stiffness, or other parameters. System identification addresses that gap by using behavior to infer something about the underlying system.

The authors choose implicit identification. Their inference network produces features that help another network predict motion, instead of an explicit inventory of named physical quantities. This allows identification and prediction to be trained together. It also changes how the result should be interpreted: success means that observed history supplies useful predictive information, not necessarily that the hidden physical parameters have been recovered in a directly readable form.

Control then uses either supplied static properties or their inferred replacement. The paper investigates planning an action sequence for the present situation and training a policy that selects actions across situations. Both exploit differentiability, but optimize different things. In planning, the adjustable variables are the proposed controls. In policy learning, the adjustable variables belong to the function that produces controls.

#### The earlier research the paper builds on

The authors place their approach alongside cognitive research that treats generative descriptions of the world as important for perception, [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/), and action. This motivates the broader ambition: an intelligent system should be able to use knowledge of how a scene behaves, rather than only associate observations with immediate responses. The experiments themselves concern learned physical prediction and control, not a direct comparison with human cognition.

The architectural background is graph neural computation. The related-work discussion includes methods for processing graph-structured information, learning physical interactions, and passing information between connected entities. Interaction networks are an especially direct predecessor. The present architecture extends that organization with global features, outputs attached to edges, and blocks that can be composed while preserving graph structure.

Earlier learned-dynamics research supplies another part of the context. The paper cites neural approaches to physical animation, object-centered dynamics, prediction from visual information, and learned physical transitions. Its own emphasis is a graph-based predictor that works across articulated systems with varying properties and, in some experiments, varying structure. The authors describe their contribution as a general-purpose learned physics engine for complex physical systems, with generality grounded in the tested families and representations.

The identification work is connected to research on adaptation to unknown properties, policies robust to variation, and exploration under uncertainty. The control work draws on trajectory optimization with prescribed dynamics, learned approaches to control, and methods that train a predictor alongside a policy. The authors also discuss concurrent work, NerveNet, which uses graph computation for a policy. That is complementary to their emphasis on graph-based dynamics and inference: similar relational organization can be placed in different parts of a control system.

These connections explain the paper’s particular combination. Graph processing provides a reusable computational structure. Supervised transitions teach physical prediction. Recurrent observation supplies information about hidden properties. Differentiable control turns the resulting predictions into choices of action. The contribution lies in bringing those pieces together and testing whether their shared structure supports useful generalization.

### The method, step by step

#### Represent the physical system as a directed graph

The representation distinguishes information attached to the entire system, information attached to individual bodies, and information attached to their connections. The graph is directed, so each edge identifies a sender and a receiver.

```
G = (g, {nᵢ}ᵢ₌₁…Nₙ, {(eⱼ, sⱼ, rⱼ)}ⱼ₌₁…Nₑ)
```

Here, G denotes the graph. The vector g contains global features. Each nᵢ contains the features of node i, and Nₙ is the number of nodes. Each eⱼ contains the features of edge j, while Nₑ is the number of edges. The indices sⱼ and rⱼ identify that edge’s sending and receiving nodes. Connectivity is therefore recorded separately from the numerical features stored on an edge.

The authors use separate graphs for persistent properties and instantaneous state. The static graph, Gₛ, includes global quantities such as gravity and the simulation timestep, body quantities such as mass and inertia, and joint or actuator properties. The dynamic graph, G_d, holds the current body states and actions. Separating them makes the same system description usable across many successive states.

For simulated bodies, the dynamic node representation contains 3 position variables, a quaternion orientation represented by 4 variables, 3 linear-velocity variables, and 3 angular-velocity variables. The paper refers to these collectively as 13 variables per body. Dynamic edge features include the action magnitude associated with a joint. The graph thus records both what the system is doing and where control is applied.

The choice of full body states is deliberate. Generalized coordinates describe only a system’s available degrees of freedom and can enforce some joint constraints through the representation itself. However, the appropriate coordinates depend on those constraints. Full body states provide a more consistent interface for sharing computations across different systems. The cost is that the representation can express configurations in which connected bodies have become incorrectly separated.

The static description is extensive. It includes selected simulator settings, body properties, joint restrictions, and actuator characteristics. Most listed quantities do not vary across all environments, but the authors retain them for completeness. They do not supply geometry descriptions such as shape and size directly; they suggest that mass and inertia contain some relevant information. That is a representational limitation as well as an implementation choice.

#### Update edges, then nodes, then the global representation

A graph-network block accepts a graph and returns another graph with the same connectivity. Its numerical features change, while the identity of connected components remains intact. The block contains an edge function, a node function, and a global function, denoted fₑ, fₙ, and f_g. In these experiments, each is implemented with a multilayer perceptron.

The update order gives the block a clear computational interpretation. Edge computations process interactions first. Node computations then incorporate information associated with connected edges. The global computation produces a system-level representation after those local updates. The paper relates one such pass to message passing: information moves through the supplied relational structure rather than through an arbitrary fixed ordering of all inputs.

Sharing is the central constraint. The architecture does not learn an unrelated edge function for every joint or an unrelated node function for every body. It reuses the appropriate function across graph elements. The number of applications can therefore change when the graph changes, while the learned function itself remains available.

From structured observations to prediction and control The steps in order.

This sequence describes the main information path, with identification included when static properties are unavailable. The exact predictor differs between the feed-forward and recurrent variants, and policy learning uses the prediction machinery differently from online planning.

#### Compose graph blocks into a forward predictor

The main feed-forward predictor uses two graph-network blocks with separate parameters. The first transforms an input graph into a latent graph. Its output is then combined with the original input before the second block predicts the state change.

Graph concatenation has a specific meaning here. Corresponding global features are concatenated, as are corresponding node and edge features. The operation assumes matching graph structure. It does not add bodies or reconnect joints. The skip connection gives the later block access both to the original physical description and to features computed by the earlier block.

The authors’ reason for using two blocks is communication through the global representation. The first block can construct a system-level feature vector, which the next block can use when updating local elements. This provides a route for dependencies that span more than an immediate connection. The swimmer ablation later tests the importance of that route.

The implementation sizes vary by component. Edge perceptrons have 2 or 3 hidden layers, with 256 to 512 cells in each layer. Both the node perceptron and the global perceptron have two hidden layers, each containing between 128 and 256 cells. Updated edge, node, and global representations have size 128. Internal layers use ReLU activations, while output layers do not.

These settings describe capacity within the shared functions, not a separate capacity allocation for every body. That distinction helps explain how the same architecture can process graphs of varying sizes. A larger graph requires more applications of the shared computations, but does not require a newly sized flat input layer.

#### Predict changes and update the state

The forward network learns state changes instead of predicting every absolute state coordinate directly. Position and velocity updates add the predicted change to the current value. Orientation requires a different operation because the predicted quantity is a relative rotation.

The predicted rotation quaternion is constrained to unit norm. The next orientation is obtained through the Hamilton product with the input orientation. This preserves the intended interpretation of the output as a rotation instead of treating quaternion coordinates as ordinary position coordinates.

For position and velocity features, training uses an L2 discrepancy between expected and predicted normalized changes. Normalization helps prevent features with larger numerical scales from dominating the objective. Orientation needs special treatment because a quaternion and its negative describe the same physical orientation.

```
L_orientation = 1 − cos²(qₑ · qₚ)
```

L_orientation is the orientation-loss expression written by the authors. The vectors qₑ and qₚ denote the expected and predicted rotation quaternions. The centered dot indicates their dot product; cos² means the squared cosine. The paper introduces this expression in connection with orientation discrepancy and the equivalent orientations represented by opposite quaternion signs. It should be distinguished from the ordinary L2 losses used for the other state features.

To make a trajectory prediction, the system repeatedly applies the one-step predictor. Each predicted absolute state becomes the next input, accompanied by the externally specified action for that step. Later predictions therefore depend on earlier predictions. This is why a good one-step score and a good rollout score are related but different achievements.

#### Normalize without fixing the graph size

Input normalization applies linear transformations so that individual feature distributions have zero mean and unit variance. Crucially, the same transformation is used across nodes of the same feature representation and across edges. There is no separate normalizer tied to each body’s index.

This matters for structural reuse. A normalizer that required a dedicated parameter for every body position would complicate application to an unfamiliar graph size. Shared normalization preserves the same basic interface as shared graph computation. Output normalization similarly allows the predictor to work in standardized coordinates before its output is transformed back.

The normalization statistics are estimated during training from accumulated counts, sums, and squared sums. For inferred static features, the authors apply no corresponding normalization at the inference output or forward-prediction input. Those features already occupy a learned latent space instead of a fixed collection of physical measurements.

For individual translation-invariant systems, including Swimmer, the authors recenter the state around 0 before prediction and restore its location afterward. They also apply this treatment to Cheetah and Walker2d when trained individually. They do not use that recentering procedure for jointly trained multiple-system predictors. As a result, translation handling is part of the experimental setup instead of a universal property of every graph configuration.

#### Train on transitions and teach constraint recovery

For an individual fixed simulated system, the training data contain 10,000 trajectories, each lasting 100 steps. Validation and test data each contain 1000 trajectories. Parameterized environments use 20,000 training trajectories, with 5000 trajectories in each of the validation and test splits. Random controls are produced through spline interpolation of randomly generated values, from which control sequences are selected.

When several environments are trained together, batches mix their respective datasets in equal proportions. This gives a shared predictor experience from multiple system families rather than allowing the largest dataset to determine the mixture automatically.

The authors add normally distributed noise to dynamic node inputs during training. Its magnitude is a hyper-parameter. The motivation follows directly from the full-body representation: because the network can express joint-inconsistent states, it must learn to recover from small dislocations. Perturbed training examples encourage outputs that return toward allowed configurations.

This procedure is particularly relevant to rollouts. A predictor trained exclusively on exact simulator states might never learn what to do when its own previous output slightly violates a joint constraint. Input noise creates related cases during supervised learning. It does not eliminate accumulated error, but targets an important source of instability.

Training uses Adam, batches of 200 graphs or graph sequences, and a single GPU. The learning-rate decay factor is 0.975, applied every 50,000 or 200,000 steps according to the training configuration. Validation rollouts over 20 steps guide stopping or convergence decisions. The more complex shared, parameterized settings benefit from slower training over 1-3 weeks, whereas simpler configurations usually require less time.

#### Add recurrence when an instantaneous state is insufficient

The recurrent forward predictor places recurrent components over edge, node, and global features before combining them with a graph-network block. These components are gated recurrent units, which carry information from earlier inputs. The recurrent state graph uses feature size 20 at the node, edge, and global levels.

This architecture is used for the real JACO recordings. Its training examples contain 21 successive states. The first 20 serve as inputs and the last 20 as their corresponding next-state targets. During training, the predictor receives the observed input at each step while retaining its recurrent state, a procedure known as teacher forcing.

Recurrence has a different role here from repeated rollout. A rollout repeatedly feeds predicted states through a transition function. Recurrent prediction additionally maintains internal memory. That memory may contain information not recoverable from the current measured state alone, which is why it is relevant to the paper’s discussion of possible lag and hysteresis.

#### Infer hidden properties from an observation sequence

The inference network receives dynamic graphs and actions without explicit access to the hidden static parameters. Its recurrent computation combines the current observation with a hidden graph. A graph block processes that combination, and its output is split into an updated hidden graph and an output representation.

```
G*(T)
```

G* denotes the inference network’s output graph, and T is the number of observed timesteps. The expression identifies the representation available after the observation sequence. That graph is concatenated with a dynamic graph before forward prediction. It supplies learned information about persistent system properties in place of an explicitly measured static description.

The inferred static graph has feature size 10 for nodes, edges, and globals. Nothing requires those features to align individually with mass, length, or another named quantity. Their supervision comes from how much they improve prediction.

Training links the inference network and forward predictor through one prediction objective. A random 20-step observation segment supplies identification evidence. A separately sampled supervised transition from the same 100-step trajectory supplies the prediction task. This separation encourages the inferred graph to describe the system rather than merely the observation segment’s endpoint.

After identification, the latent graph can be stored and reused. A new starting state does not require a new identification sequence if the underlying system remains the same. This is an important architectural distinction from a single recurrent predictor that must rebuild useful history whenever a new trajectory begins.

#### Optimize actions through predicted trajectories

For planning, the authors roll the learned dynamics forward under a proposed sequence of actions and compute a known reward along the resulting trajectory. Because the prediction is differentiable, gradients indicate how to change the actions to improve predicted reward.

Planning operates in a receding horizon. The optimizer proposes a sequence, the controller executes its first action, and planning then repeats from the updated situation. The previous sequence is shifted and reused as an initialization. The implementation typically uses between 3 and 51 optimization iterations per state, with additional work at the initial state to improve a random starting action sequence.

The ground-truth planning baseline uses a finite-horizon cost objective.

```
J(x₀, U) = Σₜ₌₀ᵀ⁻¹ ℓ(xₜ, uₜ) + ℓ(x_T)
```

J is the total cost. The initial state is x₀, U is the proposed control sequence, and uₜ is its action at time t. The state reached at that time is xₜ. The function ℓ measures cost, while ℓ(x_T) is the terminal-state cost. T specifies the horizon. This formula describes the baseline’s optimization objective rather than a learned physical law.

```
xₜ₊₁ = f(xₜ, uₜ)
```

The function f maps state xₜ and action uₜ to the next state xₜ₊₁. The baseline assumes deterministic dynamics. In the graph planner, a learned forward predictor supplies the corresponding transition calculation; the baseline instead has access to the actual Mujoco description.

#### Use learned dynamics to train a policy

The reinforcement-learning experiments optimize expected discounted reward. The paper expresses the action-value objective as follows.

```
Q(x, a) = E[Σₜ₌₀∞ γᵗ r(x, a)]
```

Q denotes expected return associated with state x and action a. E denotes expectation, r is per-step reward, γ is the discount factor, and t indexes successive steps. The displayed expression uses the paper’s compact notation for state and action within the accumulated reward. A policy, π, specifies how actions are selected.

Experience is collected into a replay buffer, B, and training uses sampled stored transitions. The DDPG baseline learns a deterministic policy μ with parameters θ and an action-value estimator with parameters φ. Its value-learning gradient is based on a squared discrepancy from a bootstrapped target.

```
∇φ L(φ) = E_(xₜ,aₜ,xₜ₊₁,rₜ)∈B[∇φ(Qφ^μ(xₜ, aₜ) − y)²]
```

L is the value-learning loss, and ∇φ is its gradient with respect to φ. A stored transition contains state xₜ, action aₜ, resulting state xₜ₊₁, and reward rₜ. Qφ^μ is the estimated action value under policy μ. The target y is defined separately.

```
y = rₜ + γ Qφ′^μ(xₜ₊₁, μθ′(xₜ₊₁))
```

The primed parameters φ′ and θ′ belong to target copies of the value estimator and policy. The target combines observed reward with a discounted estimate of future value. The authors update these target copies every 1000 gradient steps.

```
∇θ Lᴰᴾᴳ(θ) = E_xₜ∈B[−∇θ Qθ^μ(xₜ, μθ(xₜ))]
```

Lᴰᴾᴳ denotes the deterministic policy objective, and ∇θ differentiates with respect to policy parameters. The negative sign makes minimizing the objective correspond to seeking actions with larger estimated value. The paper’s displayed expression uses θ on the value term; the surrounding description separately assigns φ to the value estimator.

The stochastic baseline replaces a single deterministic action with a distribution over actions.

```
∇θ Lˢⱽᴳ(θ) = −∇θ E_xₜ∈B, a∼πθ(·|xₜ)[Qθ^π(xₜ, ·)]
```

Lˢⱽᴳ is the stochastic value-gradient objective. The notation a∼πθ means that action a is sampled from policy πθ given state xₜ. The dot marks the action argument evaluated under that sampling. The experiments use a Gaussian policy and compute the relevant gradient through reparameterization.

The learned-dynamics variant inserts a predicted transition into policy optimization.

```
∇θ Lˢⱽᴳ⁽ᴺ⁾(θ) = −∇θ E[rₜ(xₜ, aₜ) + γ Qθ^π(xₜ₊₁, aₜ) | xₜ₊₁ = g(xₜ, aₜ)]
```

Lˢⱽᴳ⁽ᴺ⁾ denotes the objective for an N-step learned-dynamics horizon. The function g is the graph-based transition predictor. The expectation covers replay-buffer states and actions sampled from the stochastic policy, including the subsequent action described in the paper’s sampling notation. As written, the displayed value term uses aₜ. The operational point is that policy gradients pass through the predicted next state rather than relying only on the current-state action-value estimate.

For Swimmer6 policy learning, the graph is constructed from the environment’s observation and actions rather than the complete body-state representation used elsewhere. The observation has 25 features and the action has 5 components. Directed edges are duplicated to represent both directions, with direction indicated by an additional feature. Thus the reinforcement-learning experiment also tests a particular observation-to-graph conversion, not simply the unchanged full-state predictor.

### Experiments and results

#### Data coverage and comparison conditions

The simulated experiments include articulated systems with different structures and control characteristics. Pendulum and Cartpole provide relatively compact cases. Acrobot and Swimmer introduce connected-body dynamics, while Cheetah and Walker2d provide additional locomotion settings. A simulated JACO arm adds a robotic manipulation structure. The real-data experiment uses recordings from an actual JACO arm during a human-controlled stacking task.

Parameterized datasets vary quantities including body masses, link lengths, and motor gears. Structural variation is tested particularly through swimmers with different numbers of links. Multiple-environment training combines the corresponding datasets within each batch. These settings distinguish learning one fixed system from learning a family with changing physical properties.

The dataset sizes are an important part of the comparison. Parameterized environments receive more training trajectories than individual fixed environments. The following chart records that experimental resource difference; it is not an accuracy result.

Training trajectories for fixed and parameterized simulated settings The parameterized graph setting uses a larger training collection than the fixed-system setting.

**The numbers**

| System or setting | training sequences |
| --- | --- |
| Fixed-system setting | 10,000 |
| Parameterized graph setting (this paper) | 20,000 |

For fixed systems, validation and test collections each contain 1000 sequences. For parameterized settings, each contains 5000 sequences. The paper describes both training collections in terms of supervised transition examples as well as trajectories, but the trajectory counts are sufficient to show that the training budgets differ.

The real JACO dataset contains 2000 trajectories. Its training split contains 1800, while validation and test contain 100 each. Every trajectory lasts 100 steps, with a timestep of 40 ms. The observations are joint-angle sine and cosine values together with joint velocities, replacing the full simulated-body representation. Rendered visualizations use the simulated JACO representation of those observations; the learning data themselves come from the physical arm.

#### What prediction error measures

The simplest baseline copies the current state forward unchanged. It asks whether the learned predictor improves on assuming no movement. The stronger learned baseline replaces the graph core with a multilayer perceptron, flattening the structured input into a fixed-length vector and reconstructing the output afterwards.

The baseline comparison includes a substantial architecture search. Twenty combinations of hyper-parameters are tested by the authors, including architectures reaching nine hidden layers with 512 hidden cells in each layer. The selected baseline is the configuration with the best validation rollout performance for each environment. Normalization and state-update machinery remain comparable to those of the graph predictor.

Prediction evaluation considers both individual transitions and trajectories. The main measurements are squared discrepancies for position, orientation, linear velocity, and angular velocity. Each category is normalized relative to the constant-state baseline, and the normalized categories are averaged. This reduces the influence of raw unit differences between, for example, position and angular velocity.

Unless a particular experiment specifies otherwise, reported evaluation uses 1000 test sequences lasting 100 steps. Some architecture comparisons instead emphasize 20-step rollouts, and the multilayer-perceptron comparison reports results after 72 hours of training. Those conditions should not be merged into a single universal accuracy claim.

The error plots establish comparative patterns, but the accompanying numerical account does not give exact error heights for the principal bars. Accordingly, the results support statements about which predictor is better and under which conditions, without supporting an invented percentage reduction. The same distinction applies to several control and identification figures.

#### Single-system prediction

The graph predictor has lower error than the multilayer perceptron in 6 of the 7 simulated systems. The advantage is most pronounced where the structure contains many comparable components. Swimmer is the clearest example because similar body and joint computations recur throughout the chain.

Pendulum provides a useful boundary case. With relatively little repeated structure to exploit, the graph architecture and the flat baseline differ negligibly. This result helps locate the source of the graph method’s value. Its contribution is not simply replacing one nonlinear predictor with another; it is constraining how computation is reused.

The Swimmer6 trajectory example shows close agreement between predicted and simulated motion over 100 steps. The visual and state-component plots examine an individual link’s position, quaternion orientation, and velocities. Such an example makes the prediction behavior concrete, but the broader evaluation across held-out sequences is what supports the comparative accuracy claim.

The authors also evaluate generalization from training trajectories to held-out data and to trajectories produced by a learned DDPG controller. For Swimmer6, the graph predictor’s error grows less relative to its training error than the flat baseline’s error does. This addresses behavior distribution as well as an ordinary data split: learned control creates a different pattern of actions from the random controls used for training.

The proposed explanation is implicit regularization through parameter sharing. A flat perceptron could allocate unrelated computations to different bodies. A graph predictor repeatedly uses the same functions, restricting that freedom. The experiments are consistent with this explanation, but the paper presents it as an interpretation instead of a direct measurement of a unique causal mechanism.

#### Varying physical parameters and graph structure

When static attributes are supplied, the graph predictor can learn across systems with changing masses, lengths, and joint properties. These attributes let the same shared functions condition their behavior on the particular system being predicted. Shared computation therefore does not mean pretending that every body has identical physical properties.

A single predictor also handles mixtures of swimmer sizes. The training mixture contains 3-6 and 8-9 links. Held-out sizes include 7 and 10-15 links. Predictions are especially accurate for the unseen 7-link and 10-link cases, then deteriorate gradually across 11-15 links.

This is an important form of compositional generalization. The predictor encounters new complete graph structures assembled from components resembling those in training. It can process them without replacing a fixed-size input interface. The experiment does not establish transfer to arbitrary mechanisms, unfamiliar joint types, or any graph that happens to have a suitable numerical encoding.

The authors additionally train across different system families. The results show that such sharing can work, including with parameter variation, but they also expose interference. Adding Cheetah to a multiple-system training mixture reduces performance in the comparison highlighted by the paper. More diverse training is therefore not uniformly beneficial.

That qualification matters for engineering use. A graph architecture makes joint training possible; it does not guarantee that every training mixture produces a helpful shared representation. The compatibility of component roles and dynamics remains an empirical question.

#### Prediction from real robot observations

The recurrent graph predictor performs better than the feed-forward version on the real JACO recordings. Its predicted orientation and angular-velocity trajectories closely track the observed sequences in the reported example. The total 100-step rollout comparison also favors recurrence, while the feed-forward predictor still improves over constant-state prediction.

The authors suggest that lag or hysteresis may explain why memory helps. Such effects create dependencies on recent history that an instantaneous input may not capture. The experiment supports the usefulness of recurrence for these recordings; it does not independently establish which physical or sensing effect caused the difference.

The task is also narrower than unrestricted physical scene understanding. The input is proprioceptive information from a known articulated robot, recorded during a particular kind of human-controlled activity. The network is not asked to recover bodies, joints, or physical state from an unconstrained visual scene. Its success demonstrates learned prediction from structured real measurements.

#### Identification of hidden system properties

Identification experiments withhold static parameters while retaining observed dynamic state and actions. The inference network receives an initial 20-step observation period, then supplies a latent graph for subsequent prediction. This tests whether recent behavior can replace some explicitly supplied system information.

The comparisons distinguish access to true parameters, inferred parameters, and no identification information. Providing true static properties gives the best performance. A correctly matched inference sequence generally performs well and can approach the true-parameter case. Omitting identification produces worse prediction.

A further test gives the identification network observations from a different parameter setting than the one used for prediction. Performance then resembles or falls below the case without identification. This shows that the inferred representation carries system-specific information whose match to the prediction task matters. Merely providing a recurrent history is not enough.

The Pendulum analysis isolates whether the observation period is informative. Three systems have different hidden lengths. Applying controls during the 20-step identification period allows the network to distinguish their behavior and predict the following 80-step phase accurately. Without those informative controls, later predictions are poor. The main discussion treats this as an identifiability failure, despite an inconsistent sentence in the corresponding caption.

#### Planning with the learned dynamics

The graph predictor supports model-predictive control under several reward definitions. In the simulated JACO task, a 20-step planning horizon produces actions that move the arm towards a target full-body pose or a target palm pose. The distinction shows that one learned transition mechanism can be paired with different objectives.

For Swimmer6, planning uses a 100-step horizon to move the head towards a randomly chosen target. The resulting behavior resembles coordinated swimming. A predictor trained only on random actions already produces control performance close to the ground-truth planner and a learned DDPG policy.

The training distribution matters here. Adding DDPG-generated trajectories to the random-action data makes graph-based planning effectively comparable to those strong baselines in the reported comparison. This connects prediction coverage with downstream usefulness: observations of purposeful behavior help where the planner will actually operate.

The swimmer control metric is the percentage distance to the target after 700 steps. Error bars summarize mean and standard deviation across 5 runs. The ground-truth planner has access to the actual Mujoco dynamics and uses a more specialized trajectory-optimization procedure, so the comparison combines differences in the transition representation and the optimization algorithm.

Control with a shared swimmer predictor is strongest relative to the simulator-based planner for 6-10 links. It is weaker for 3-5 and 11-15 links. The held-out 7-link and 10-15-link systems demonstrate structural transfer in control, but the uneven results show that acceptable prediction does not imply uniform planning quality.

The authors also demonstrate planning across different system families and planning with inferred hidden properties. The identification-based controller first observes 20 random controls before using the inferred graph. Those demonstrations support the integration of inference and control, although the numerical account gives less detail than the principal Swimmer6 comparison.

#### Joint learning of dynamics and policy

In the policy-learning experiment, the graph dynamics and policy are trained together. The main comparison is between SVG(1), which uses a learned one-step transition in its policy gradient, and SVG(0), which does not use that transition mechanism.

On Swimmer6, SVG(1) reaches stronger performance with fewer episodes and settles earlier than the baseline. The learning curves report median performance across 6 random seeds, with 25 and 75% intervals. The numerical account does not supply exact final returns or episode counts for the difference.

Longer learned rollouts do not automatically help. SVG(2-4) offers no significant improvement over the shorter learned horizon, and SVG(5+) can perform worse. This is consistent with the paper’s broader concern about accumulated prediction errors. A differentiable transition can provide a useful local learning signal without remaining equally reliable through a longer imagined trajectory.

### What the ablations show

#### A second graph block contributes more than extra sequencing

The main architectural ablation uses Swimmer6 and measures rollout error on 20-step test sequences. It compares the two-block graph architecture with an interaction network, which in this setting is equivalent to a single graph-network block. The comparison strongly favors the two-block design.

The authors also remove particular updates from the first block. Separate variants prevent it from updating the global features, node features, or edge features. These interventions help identify which information routes matter within the stacked architecture, rather than simply showing that a larger predictor can fit the data better.

The most prominent conclusion concerns the global update. Removing that update damages performance substantially. The authors interpret this as evidence that swimmer dynamics contain long-range dependencies that benefit from rapid graph-wide communication. A first block can summarize information globally, and a second can make that summary available to local computations.

This interpretation has a clearly stated alternative. A deeper stack without global features might allow information to propagate far enough through local connections to achieve similar results. The ablation therefore supports the usefulness of global communication in the tested architecture; it does not prove that global features are indispensable to every possible graph-based predictor.

The study also compares direct sequential composition with the graph skip connection. That checks whether preserving the original input alongside the first block’s output changes performance. Each architecture is trained from three seeds, and the comparison reports mean asymptotic performance with standard deviation. The exact numerical bar heights are not stated in the accompanying account, so the evidence supports the reported ordering without a precise invented gain.

#### Identification must describe the right system

The hidden-property experiments provide controlled comparisons even though they are not architectural ablations in the narrow sense. Supplying true static properties, supplying inferred features, omitting identification, and deliberately mismatching identification all isolate different explanations for predictive success.

The mismatch condition is especially useful. If any additional recurrent representation improved prediction equally, one could attribute the gain to generic history processing or additional network capacity. Instead, observations from the wrong physical instance remove the benefit. The result supports the claim that the representation contains relevant information about persistent properties of the observed system.

The experiment does not reveal which latent dimensions carry which physical quantities. It shows that the representation is useful and instance-sensitive. Readable parameter recovery would require a different analysis, such as explicit evaluation against known parameter values, which is not established by these results.

#### Observation quality limits what identification can recover

The Pendulum comparison changes the identification actions while retaining the subsequent prediction goal. Informative motion permits accurate continuation; an uninformative observation period does not. This helps separate the ability to extract information from the availability of that information in the first place.

The distinction matters for any adaptation mechanism. A network cannot necessarily infer a property simply because it observes a system for a fixed duration. The observed behavior must distinguish the relevant alternatives. The paper demonstrates that dependence, but does not develop an action-selection algorithm that deliberately maximizes identification quality.

#### Other comparisons expose the conditions for reuse

The graph-versus-perceptron experiment changes how the same structured data are processed while retaining comparable normalization and state updating. Its strongest benefit on repeated structure supports the paper’s central design argument. The near tie on Pendulum and the problems associated with Cheetah constrain that argument.

The real JACO comparison isolates the value of recurrence relative to a feed-forward predictor. The random-action versus mixed-trajectory planning comparison isolates the importance of training coverage. The SVG horizon comparison asks how far learned dynamics should be trusted within policy optimization. Together, these analyses show that architecture, data distribution, observation history, and prediction horizon each affect whether a shared graph representation is useful.

### Limitations

#### Limits the authors explicitly identify

The authors state that their method works best when bodies and joints offer substantial opportunities for sharing. Swimmers fit that description more naturally than Cheetah. A graph representation can make shared computation convenient, but it cannot ensure that one set of computations will serve every collection of components equally well.

They also acknowledge the standard problem of accumulated error in learned planning. Repeatedly predicting from previous predictions can move a rollout away from the true trajectory. Training on one-step transitions, adding input noise, and validating on rollouts help manage the problem in the experiments, but do not remove it.

Several capabilities remain future work in the discussion. These include control on physical hardware, transfer from simulated training to real systems, stochastic environments, and identification of system structure rather than only hidden properties within an available structure. The distinction between present results and those directions is important. The real arm experiment does not establish successful learned control of the physical arm, and parameter variation is not the same as discovering an unknown connection graph.

The authors also note that longer learned horizons in policy optimization do not necessarily improve performance. This result limits a straightforward strategy of obtaining better decisions merely by imagining farther into the future. The quality and relevance of those imagined transitions remain constraints.

#### Limits visible in the representation and data

A careful reader should distinguish structured dynamics learning from full scene understanding. The experiments mostly begin with bodies, joints, actions, and numerical state variables already available. The graph is supplied through a conversion from simulator or robot information. Recovering that organization from raw observations is outside the demonstrated procedure.

Structural generalization is also specific. New swimmer sizes are built from familiar kinds of components and relations. These tests are meaningful because the complete graph size changes, including beyond the training sizes, but they do not justify unrestricted transfer to unfamiliar physical mechanisms. The gradual deterioration on larger held-out swimmers makes that boundary visible.

The full-body representation trades built-in constraints for a reusable interface. It can express impossible joint configurations, and the network must learn to correct small deviations. The noise procedure is motivated by that weakness. A careful interpretation is that the learned predictor approximates constrained physical evolution; it does not inherit exact constraint satisfaction from its state representation.

Some physical information is absent from the static graph. Geometry properties are not directly included, and the authors rely partly on mass and inertia to convey related effects. The experiments therefore do not establish that the representation contains everything required for every contact or shape-sensitive interaction.

The real JACO evidence comes from a particular observation format and human-controlled stacking trajectories. Its strength is that the recordings are physical rather than purely simulated. Its scope is prediction from those structured measurements. It does not establish robustness across unrestricted tasks, observation failures, different hardware, or autonomous deployment.

#### Limits of the comparisons

The multilayer-perceptron baseline receives a substantial search, which makes it more informative than an arbitrary flat network. Nonetheless, it has a fixed-size interface. The graph architecture’s ability to process changing structure is partly a representational difference, while within-system prediction is a more direct accuracy comparison. Those benefits should be described separately.

Training conditions also vary with experimental scope. Parameterized settings use larger datasets, and complex shared predictors benefit from longer training. Their results therefore establish feasibility under the reported conditions, without isolating architecture from every change in data or optimization budget.

The planning baseline combines actual simulator dynamics with a different optimization procedure. Near-baseline performance is useful evidence that learned transitions can support control. It does not establish equivalence between the transition descriptions themselves, or show that any remaining difference comes exclusively from physical prediction.

Finally, latent identification should not be confused with scientific parameter recovery. The inferred graph is trained to improve dynamics prediction. It may encode useful combinations of hidden causes without assigning them interpretable names. Likewise, a useful gradient through a learned transition need not be an exact gradient of the real system. Control success tests its practical value in particular settings, instead of proving general physical correctness.

### What came after

The citing works connect this paper to broader questions about relational structure, the interpretation of learned dynamics, and evaluation from visual observations. Their titles and citation relationship establish those connections. They do not, on their own, establish which architectural components were reused, whether an experiment reproduced these results, or how much a later contribution depended on this work.

[Relational inductive biases, deep learning, and graph networks](https://md.research.elamur.ai/free/en/papers/battaglia-2018-relational-inductive-biases-deep-learning/) places graph networks within a broader discussion of relational assumptions in learning. The connection is direct at the level of the central design choice: computations are organized around entities and their relationships. The physics experiments make that choice concrete by showing where sharing helps and where it can interfere. A broader account of relational inductive bias can situate such a choice among other ways of structuring learning. The citation establishes relevance to that discussion, without supporting a claim that every part of the physical architecture was adopted unchanged.

[Discovering Symbolic Models from Deep Learning with Inductive Biases](https://md.research.elamur.ai/free/en/papers/cranmer-2020-discovering-symbolic-models-deep/) connects to the relationship between a learned representation and an explicit scientific description. Its title identifies symbolic discovery as its subject and inductive bias as part of its approach. That creates an important conceptual continuation: organizing a predictor around components and relations may be useful not only for prediction, but also when asking whether learned behavior can be expressed more explicitly. The present paper stops short of that result. Its latent identification features need not correspond to named physical quantities, and its update functions are learned neural computations. The citation alone does not establish the later work’s extraction procedure or findings.

[Physion: Evaluating Physical Prediction from Vision in Humans and Machines](https://md.research.elamur.ai/free/en/papers/bear-2021-physion-evaluating-physical-prediction-vision/) connects to evaluation and the observation interface. Its title concerns physical prediction from vision and comparison involving humans and machines. That scope highlights a boundary of the graph-physics experiments: structured physical state is already available before most prediction begins. Moving to vision introduces a separate question about obtaining the relevant scene information, while comparison across observers raises questions about what prediction tests actually measure. The citation establishes a link to that later evaluation setting, without establishing that Physion uses the same graph architecture or reports a particular outcome for it.

These connections preserve the paper’s most useful distinction. A successful learned physical predictor needs an organization of information, evidence that its transitions generalize, and an evaluation appropriate to its intended use. Graph structure supplies a strong answer to the first problem for systems made of reusable components. The experiments show meaningful progress on the second within articulated physical domains. Interpretation of learned rules and evaluation under different observation conditions remain separate questions, reflected in the subjects of the later citing works.

## Cite

Cite as Álvaro Sánchez‐González, Nicolas Heess, Jost Tobias Springenberg, Josh Merel, Martin Riedmiller, Raia T. Hadsell and Peter Battaglia. 2018. Graph networks as learnable physics engines for inference and control. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1806.01242](https://doi.org/10.48550/arxiv.1806.01242) · [arXiv 1806.01242](https://arxiv.org/abs/1806.01242)

```bibtex
@misc{sanchezgonzalez2018graph,
  title = {{Graph networks as learnable physics engines for inference and control}},
  author = {Álvaro Sánchez‐González, Nicolas Heess, Jost Tobias Springenberg, Josh Merel, Martin Riedmiller, Raia T. Hadsell and Peter Battaglia},
  year = {2018},
  doi = {10.48550/arxiv.1806.01242},
  eprint = {1806.01242},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1806.01242}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
