GNNs for Robotics: Planning, Manipulation, and Multi-Agent Systems

6 minute read

Published:

TL;DR: Robotics problems are inherently relational: robot links form kinematic graphs, objects on a table have spatial proximity graphs, multiple robots form communication graphs. GNNs that process these graphs generalise across different numbers of objects, different robot morphologies, and different team sizes โ€” enabling compositionality that flat neural networks cannot achieve.
Equivariant GNN for robotics
Equivariant GNNs for 3D robot perception and manipulation (Satorras et al., 2021)

Why Graphs in Robotics

Intuition First: A robot arm is a kinematic chain: each jointโ€™s position depends on every upstream joint. A flat neural network that takes all joint angles as a concatenated vector has no built-in knowledge of this chain structure โ€” it must learn it from scratch. A GNN where each joint is a node connected to its upstream and downstream joints encodes the chain structure directly: messages flow along the kinematic graph, so joint 5โ€™s state naturally influences joint 6 and vice versa, without the model having to discover this from data.

Problem 1: Variable structure A robot arm picking up objects faces different numbers of objects each time. A flat neural network with fixed input size cannot handle this. A GNN operates on graphs of any size.

Problem 2: Relational reasoning โ€œObject A is above object B, which is supported by the tableโ€ โ€” planning a stack requires reasoning about these relations. GNNs capture relational structure explicitly.

Problem 3: Generalisation A policy trained on a 4-link robot should generalise to a 6-link robot. A GNN treating robot links as nodes generalises to different numbers of links โ€” the same message passing applies regardless of graph size.

Application 1: Robot Morphology (NerveNet)

NerveNet (Wang et al., 2018): model a robotโ€™s body as a graph where:

  • Nodes = actuators/joints
  • Edges = kinematic connections (joint โ†’ joint)
  • Node features = joint state (angle, velocity)

GNN propagates information along the kinematic chain. The policy maps joint-level graph โ†’ actions. Crucially, the same GNN policy works for robots with different numbers of joints โ€” tested on 2-link, 4-link, and 6-link robots from the same policy.

Advantage: policy generalises to robot variants not seen during training โ€” e.g., train on 4 legs, test on 3 legs or 5 legs.

Application 2: Object Manipulation

Task-and-motion planning: plan a sequence of robot actions to achieve a goal (e.g., build a tower from blocks).

Scene graph GNN: represent the scene as a graph:

  • Nodes = objects (position, shape, type)
  • Edges = spatial relations (on-top-of, adjacent-to, in-front-of)

GNN encodes the current state; planning algorithm searches over sequences of actions and predicted resulting states. The GNNโ€™s relational encoding enables compositional generalisation โ€” solving 5-block towers after training on 3-block towers.

Compositional generalisation: A flat neural network trained on {A on B, B on C} learns specific patterns. A GNN trained on the same data learns general "on-top-of" propagation โ€” it can immediately reason about {A on B, B on C, C on D} without additional training. This is the key advantage of relational inductive biases in robotics planning.

Application 3: Multi-Robot Coordination

Decentralised multi-robot planning: N robots must coordinate without a central controller. Each robot observes local state and communicates with nearby robots.

CommNet / GMMN: model inter-robot communication as a GNN. At each step:

  1. Each robot sends a message to nearby robots (edge to edge in proximity graph)
  2. Each robot aggregates received messages
  3. Each robot decides its action based on own state + aggregated messages

The GNN is the communication protocol. Training via multi-agent RL.

Key results:

  • GNN-based communication outperforms no-communication baselines by 40%+ on cooperative navigation tasks
  • Scales from N=5 to N=20 robots without retraining (variable graph size)

Application 4: Physics Simulation and Model-Based RL

Interaction networks (Battaglia et al., 2016): model physical systems as graphs. Nodes = objects, edges = interactions. GNN predicts next state from current state.

Applications:

  • Cloth simulation: nodes = vertices, edges = cloth edges
  • Rigid body dynamics: nodes = objects, edges = contact constraints
  • Particle systems: nodes = particles, edges = proximity

Model-based RL with GNN dynamics model: learn the physical model as a GNN, use it for planning (model-predictive control or model-based policy search). GNNs generalise to unseen object configurations because the dynamics are object-agnostic.

Application 5: Point Cloud Processing for Perception

Lidar sensors produce 3D point clouds โ€” unordered sets of 3D points. GNNs can process point clouds by constructing a graph (k-nearest neighbours) and running message passing:

DGCNN (Wang et al., 2019): dynamic graph CNN โ€” rebuild the k-NN graph after each layer (in feature space, not just spatial). Achieves SOTA on ModelNet40 (3D object classification) and ShapeNet (part segmentation).

Equivariant GNNs for point clouds (EGNN): maintain SE(3) equivariance โ€” rotation-equivariant detection, regardless of LiDAR orientation.

Key Insight: The unifying theme across all robotics GNN applications is compositionality โ€” the ability to apply learned rules to new combinations of known parts. A flat neural network trained on a 4-joint arm must be retrained for a 6-joint arm. A GNN trained on the same 4-joint arm can immediately handle 6 joints, because message passing is defined per-node and per-edge, not per-configuration. This compositionality is what makes GNN-based robotics policies genuinely transferable across hardware variants, scene configurations, and team sizes.

Summary

ApplicationGraph structureKey challenge solved
Robot morphologyKinematic graphGeneralise to new robot designs
Object manipulationScene graphCompositional planning
Multi-robotProximity/communication graphScalable coordination
Physics simulationParticle/object interaction graphGeneralise to new configurations
Point cloud perceptionk-NN graphUnordered 3D data

Robotics is one of the most natural application domains for GNNs โ€” physical and relational structure is explicit and actionable. The field is rapidly adopting GNN-based representations for perception, dynamics modelling, planning, and multi-agent control.

References