Regularity as Intrinsic Reward for Free Play

Cansu Sancaktar, Justus H. Piater, Georg Martius

TL;DR

Standard curiosity-driven reinforcement learning often devolves into "chaotic" exploration (flipping, throwing, and poking objects) while ignoring stable, constructive behaviors like stacking and alignment. Drawing inspiration from how young children naturally seek symmetry and order during play, this paper introduces Regularity as Intrinsic Reward (RaIR)—an entropy-minimization objective that drives agents to build regular, structured patterns. When combined with model disagreement in task-free exploration, RaIR enables robots to autonomously discover complex block constructions and dramatically boosts zero-shot performance on downstream assembly tasks.

What Problem Does This Paper Address?

In self-supervised reinforcement learning (RL), agents often explore environments during a "free-play" phase using intrinsic curiosity—typically driven by novelty or epistemic uncertainty (e.g., finding states where world model ensembles disagree). While effective for broad coverage, this objective has a major flaw: imperfect dynamics models and finite-horizon planning naturally bias the agent toward chaotic, high-entropy dynamics (such as knocking things over or scattering objects) because tiny perturbations create wildly diverging trajectories.

Consequently, agents systematically miss behaviors centered on balance, stability, and alignment. This leaves a critical capability gap: standard intrinsically-motivated agents struggle to solve multi-object assembly tasks (such as stacking three or more blocks) without heavily shaped external rewards or human demonstrations.

Methods

The authors formalize regularity as the redundancy of scene descriptions, operationalized via negative Shannon entropy over discrete feature distributions:

  1. Information-Theoretic Regularity Formulation: Given an entity-factorized state, a mapping $\phi$ extracts features into a discrete multiset (histogram). The regularity reward is defined as the negative Shannon entropy: $$r_{\text{RaIR}}(s) = -H(\Phi(s)) = \sum_{x \in X} p(x) \log p(x)$$ High redundancy (e.g., identical pairwise distances or aligned coordinates) concentrates probability mass, lowering entropy and maximizing reward.

  2. Relational RaIR: Instead of individual object states, the authors evaluate pairwise relations ($k=2$) between objects: $$\phi(s_i, s_j) = \{ (|\lfloor s_{i,x} - s_{j,x} \rceil|, |\lfloor s_{i,y} - s_{j,y} \rceil|) \}$$ Computing pairwise differences on the $x\text{-}y$ horizontal plane implicitly uses gravity to reward vertical stacks, where multiple cubes share identical horizontal offsets.

  3. Structure-Seeking Free Play (RaIR + CEE-US): Pure regularity can cause an agent to freeze once it achieves a local optimum (e.g., leaving a line of blocks untouched). The authors balance structure with curiosity by linearly combining RaIR with ensemble disagreement ($r_{\text{Dis}}$): $$r_{\text{intrinsic}} = r_{\text{RaIR}} + \lambda \cdot r_{\text{Dis}}$$ Planning is executed using the improved Cross-Entropy Method (iCEM) over an ensemble of Graph Neural Network (GNN) dynamics models.

Datasets & Environments

The paper evaluates the method in two simulated testbeds:

  • ShapeGridWorld: A 2D discrete grid where sequential multi-agent movements are optimized using ground-truth dynamics to demonstrate emerging geometric symmetries (translations, reflections, glide reflections).
  • Fetch Pick & Place Construction: An extension of the standard Fetch robotic manipulation benchmark. It features a 4-DoF end-effector arm, a tabletop bounding plane, and 6 manipulable cubes characterized by 12D pose/velocity states.

Key Insights and Ideas

  • Order Emerges Naturally: Even with a modest planning horizon (30 steps) and ground-truth physics, optimizing for RaIR alone causes an arm to stack up to 6 blocks or construct symmetric grids without task rewards.
  • Curiosity Prevents Premature Fixation: A pure regularity optimizer acts like a hoarder—once it builds a neat row, it refuses to touch anything to prevent breaking the symmetry. Pairing RaIR with ensemble disagreement ($\lambda = 0.1$) supplies the necessary impulse to break local optima, leading to dynamic, diverse interactions.
  • Implicit Pattern Mimicry: If an ordered pattern (like a pyramid or tower) is placed in the scene outside the robot's physical reach, maximizing RaIR drives the robot to reconstruct that exact pattern with the blocks within its reach to replicate relational redundancy.

Key Results

  • Downstream Assembly Tasks (Zero-Shot Generalization): After 300 iterations of task-free play in Fetch Construction, models trained with RaIR + CEE-US substantially outperformed the curiosity baseline (CEE-US) when evaluated zero-shot on extrinsic assembly goals:
  • Singletower (3 blocks): $0.75 \pm 0.07$ vs. $0.40 \pm 0.12$
  • Multitower (2+2 blocks): $0.77 \pm 0.06$ vs. $0.52 \pm 0.05$
  • Pyramid (5 blocks): $0.49 \pm 0.06$ vs. $0.14 \pm 0.09$
  • Pyramid (6 blocks): $0.18 \pm 0.04$ vs. $0.02 \pm 0.01$
  • Trade-Offs on Chaotic Tasks: Because RaIR discourages chaotic dynamics, performance on "throwing" decreased from $0.49 \pm 0.05$ (CEE-US) to $0.32 \pm 0.02$, while generic pick-and-place performance remained identical ($0.90 \pm 0.02$).
  • Autonomous Structure Re-creation: When a 3-block pyramid was placed out of reach, optimizing RaIR using the simulator recreated the pyramid structure in 73% of trials. A 4-block tower was recreated 40% of the time (with partial towers built in the remaining 60%).

Limitations and Future Work

  • Reliance on Structured State Representations: The framework assumes an object-centric, factorized state space with known physical dimensions (e.g., $x, y, z$ coordinates). Extending RaIR to raw visual inputs or unentangled latent embeddings remains an open challenge.
  • Discretization Sensitivity: Calculating Shannon entropy requires binning continuous coordinates into discrete buckets (e.g., 5 cm bins in free play). Finding optimal bin sizes balances precision against planning complexity.
  • Local Optima in Finite Horizons: Due to sampling budgets and finite horizons, the planner often gets trapped in local structural optima rather than global minima, though the authors note this partially aids behavioral diversity.

Summary updated

BibTeX
@inproceedings{sancaktar2023regularity,
  author = {Cansu Sancaktar and Justus H. Piater and Georg Martius},
  title = {{Regularity as Intrinsic Reward for Free Play}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=BHHrX3CRE1},
}
Figure