Next state prediction gives rise to entangled, yet compositional representations of objects

Tankred Saanum, Luca M. Schulze Buschoff, Peter Dayan, Eric Schulz · Submission to ICLR 2025 · Rejected

TL;DR

Can neural networks learn compositional, object-centric representations without hardcoded architectural inductive biases like "object slots"? This paper shows that standard distributed models trained with next-state prediction objectives develop linearly separable—yet partially shared—object representations that often match or outperform slot-based architectures on dynamics modeling.

What Problem Does This Paper Address?

Humans naturally parse visual scenes into distinct, reusable objects, allowing us to generalize effortlessly to new configurations and combinations. In machine learning, this ability—compositional generalization—has largely been pursued using slot-based architectures (e.g., Slot Attention, Contrastive Structured World Models). These models enforce an explicit architectural bottleneck where different objects are sequestered into separate latent vectors ("slots").

However, standard deep networks use distributed representations, encoding scenes across overlapping neural populations. This paper asks:

  1. Can distributed models learn compositional object representations purely through unsupervised training on dynamic interactions?
  2. Does an auxiliary objective of next-state prediction drive this emergence?
  3. Could partially entangled distributed representations actually offer advantages over strictly isolated slot representations?

Methods

The authors compare distributed models against structured, slot-based baselines across two representation learning paradigms:

  1. Auto-Encoding / Reconstruction:
  2. Static Autoencoder: Encodes and reconstructs the current frame $x_t \to z_t \to \tilde{x}_t$.
  3. Sequential Autoencoder (Distributed): Predicts future latent state $\tilde{z}_{t+1} = d_\theta(z_t, a_t)$ and reconstructs the next frame $x_{t+1}$ while minimizing latent transition error.
  4. Slot Baseline: Slot Attention, which enforces discrete object slots via iterative attention.
  5. Contrastive Learning:
  6. Contrastive Representation Learner (CRL, Static): Standard contrastive learning on image augmentations.
  7. Contrastive World Model (CWM, Dynamic Distributed): Predicts future latent state $d_\theta(z_t, a_t)$ and contrasts it against negative latent states.
  8. Slot Baseline: Contrastive Structured World Model (CSWM) (with Graph Neural Networks or Transformers over slots).

Quantifying Object Separability (Decoding Analysis)

To test if a distributed representation has disentangled individual objects without requiring explicit slots:

  • Take pairs of frames $(x_t, x_{t+1})$ where only a single object changes.
  • Compute the absolute difference vector between latent embeddings: $|\Delta| = |e_\theta(x_t) - e_\theta(x_{t+1})|$.
  • Train an $L_1$-regularized linear classifier on $|\Delta|$ to predict which object changed. High accuracy implies that distinct objects perturb distinct, linearly separable subspaces of the shared latent code.

Datasets

The authors evaluate models on five datasets of dynamically interacting objects:

  • Cubes: Simple 2D interacting blocks with action variables (from Kipf et al., 2019).
  • 3-body physics: Continuous gravitational interaction of three bodies (from Kipf et al., 2019).
  • Multi-dSprites (New benchmark): Four sprites (different shapes, colors) moving via random walks in generative factor space (position, scale, rotation), accompanied by actions.
  • MOVi (simple): 14,000 Kubric-rendered 3D video simulations with a fixed set of five interacting cubes.
  • MOVi-A: ~10,000 Kubric-rendered 3D videos with variable counts, shapes, and physical properties (mass, friction).
  • Out-of-distribution splits: Novel objects (1–4 spheres in train vs. 5–8 in test) and Color swap (red cubes/green spheres in train vs. green cubes/red spheres in test).

Key Insights and Ideas

  • Dynamics force disentanglement: Static objectives (standard contrastive learning or standard autoencoders) fail to produce linearly separable object representations. Adding a temporal next-state prediction objective causes linear object separability to emerge spontaneously as training data scales.
  • Entanglement as an inductive asset: Distributed models never achieve 100% disjoint, orthogonal neural codes for each object. Instead, they share latent dimensions. This partial sharing allows them to represent transformations (e.g., translation, rotation, scaling) consistently across different objects. Representational Similarity Analysis (RSA) reveals that distributed models strongly cluster by action/transformation type, whereas slotted models isolate dynamics inside independent subspaces.
  • Slots are not strictly necessary for compositional dynamics: Despite lacking an object-centric prior, CWM matches or exceeds CSWM when predicting multi-step forward trajectories in latent space.

Key Results

  • Long-Horizon Dynamics Accuracy: Distributed CWM matches or beats CSWM across all 5 datasets in open-loop forward rollout retrieval (evaluating top-1 nearest neighbor over 1,000 test trajectories). In MOVi (simple) and MOVi-A, CWM reaches ~90% and ~70% rollout accuracy at scale, outperforming CSWM.
  • Linear Object Decodability: On simple datasets (cubes, 3-body), CWM achieves near 100% object decoding accuracy. On complex multi-object benchmarks (Multi-dSprites, MOVi), decodability reaches around 70% (vs. ~20–25% chance level / random weights).
  • Reconstruction Quality (LPIPS): On MOVi datasets, sequential distributed autoencoders match or closely approach Slot Attention's perceptual reconstruction quality as dataset size increases.
  • Downstream Trade-offs:
  • Control: When training an RL agent (Soft Actor-Critic) on frozen embeddings to manipulate sprites, CSWM slightly outperforms CWM, indicating that discrete slots remain advantageous for targeted single-object control.
  • Counting / Cardinality: Both CWM and CSWM allow linear readout of object counts in MOVi-A scenes well above chance with minimal performance gap.

Limitations and Future Work

  • Downstream Control Deficit: In targeted manipulation tasks, slotted models maintain an edge because object-specific latents can be isolated directly by a policy network without needing to untangle shared coordinates.
  • Scale to Natural Videos: The experiments rely on synthetic environments and physical simulators (dSprites, Kubric/MOVi). Whether purely distributed architectures scale to real-world, highly cluttered video streams (e.g., SAVi++, VideoSAUR domains) remains an open empirical question.
  • Role of Bottlenecks: The authors suggest future work should evaluate how information-theoretic bottlenecks (e.g., Variational Information Bottlenecks) or modern self-supervised Vision Transformers (which exhibit spatial grouping in self-attention) interact with predictive dynamics objectives.

Summary updated

BibTeX
@misc{saanum2024next,
  author = {Tankred Saanum and Luca M. Schulze Buschoff and Peter Dayan and Eric Schulz},
  title = {{Next state prediction gives rise to entangled, yet compositional representations of objects}},
  year = {2024},
  eprint = {2410.04940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.04940},
}
Figure