Hierarchical Relational Inference

Aleksandar Stanic, Sjoerd van Steenkiste, Jürgen Schmidhuber

Abstract

Hierarchical Relational Inference (HRI) is a novel unsupervised framework designed to decompose complex visual scenes into a hierarchy of parts and objects. By explicitly modeling multi-level physical interactions—rather than treating objects as "flat" entities—HRI significantly outperforms standard Graph Neural Networks and LSTMs in predicting long-term dynamics in both synthetic and real-world videos.

Introduction

Common-sense physical reasoning is a hallmark of human intelligence but remains a significant challenge for artificial intelligence. Humans naturally perceive the world as a hierarchy: a "human" is a global object composed of "parts" (arms, legs, fingers) that move with a degree of independence while remaining constrained by the whole.

Most existing models, such as Neural Relational Inference (NRI), treat objects as a "flat" collection of nodes in a graph. This approach often fails to capture the inherent hierarchical structure of the physical world, leading to poor long-term predictions. Furthermore, many previous models rely on ground-truth state information (e.g., exact coordinates). HRI bridges this gap by discovering these hierarchies and their relations directly from raw, unsupervised video data.

Methodology

The HRI architecture is composed of four primary components designed to extract and process hierarchical information:

  1. Visual Encoder: This module uses "spatial slots" to partition feature maps from a CNN. Through a sequence of convolutions and down-sampling, it extracts part-level representations at the base and aggregates them into object-level representations at the top.
  2. Relational Inference Module: An extension of the NRI framework, this module infers a hierarchical interaction graph by predicting the existence of edges (relations) between nodes across different levels of abstraction.
The Relational Inference Module infers hierarchical interactions between object pairs and edges.
  1. Dynamics Predictor (Hierarchical Message Passing): The core innovation of HRI is its three-phase Hierarchical Message Passing (HMP) mechanism. Information flows bottom-up (parts to parents), within-sibling (between parts of the same parent), and top-down (global constraints to parts). This allows global information to reach every node in a single sweep, improving efficiency over standard GNNs.
  2. Visual Decoder: This component translates predicted latent states back into pixel space using either individual slot decoding (SlotDec) or a standard convolutional decoder (ParDec).

Experiments and Results

The authors evaluated HRI across four distinct tasks: synthetic State Springs, Visual Springs (rendered pixels), Human3.6M (2D joint projections), and the KTH real-world video dataset.

Key Insights

  • Hierarchy as an Inductive Bias: By distinguishing between "parts" and "wholes," HRI simplifies the dynamics problem. The model learns parent-child and sibling relations rather than exhaustive pairwise interactions.
  • Unsupervised Discovery: HRI successfully "discovers" which pixels belong to specific parts and how those parts group into objects without manual labels or segmentation masks.

Performance

HRI achieved superior accuracy on the "4-3-state-springs" task compared to NRI and LSTM baselines, effectively capturing the underlying physical laws. In long-term trajectory rollouts, HRI's Mean Squared Error (MSE) grew much slower than its competitors. While LSTMs often "melt" or blur objects over time, HRI maintains structural integrity.

Comparison of trajectory predictions: HRI closely matches ground truth, while NRI and LSTM struggle with structural consistency.

On the KTH video dataset, HRI clearly depicted human limbs during motion, whereas the LSTM baseline failed to preserve the human shape during long-term predictions.

Conclusion and Future Work

HRI demonstrates that hierarchical inductive biases are crucial for modeling complex physical dynamics. While highly effective, the current model has limitations, such as a bias toward spatial proximity in grouping and a fixed hierarchy depth. Future research may explore dynamic hierarchy inference and extending the framework to handle interactions between multiple independent hierarchical objects.

Summary updated

BibTeX
@inproceedings{stanic2021hierarchical,
  author = {Aleksandar Stanic and Sjoerd van Steenkiste and Jürgen Schmidhuber},
  title = {{Hierarchical Relational Inference}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i11.17170},
}
Figure