NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Policy Architectures for Compositional Generalization in Control

Allan Zhou, Vikash Kumar, Chelsea Finn, Aravind Rajeswaran

TL;DR

Standard reinforcement learning policies parameterized by multi-layer perceptrons (MLPs) struggle to scale when environments contain multiple interacting objects. This paper introduces the Entity-Factored Markov Decision Process (EFMDP) framework and shows that permutation-invariant architectures—such as Deep Sets and Self-Attention—dramatically improve sample efficiency, extrapolate zero-shot to unseen numbers of objects, and compose independently learned skills without hierarchical planning.

What Problem Does This Paper Address?

Robotic tasks such as clearing a dinner table, sorting items, or setting up a chess board are inherently compositional: scenes consist of multiple entities (objects) that each need to reach specific subgoals.

While these tasks naturally decompose into sub-problems, standard RL and imitation learning (IL) agents model the environment as a generic Markov Decision Process (MDP). They concatenate all entity states into a single flat vector passed to an MLP. This approach suffers from the curse of dimensionality, fails to exploit the arbitrary ordering of identical or similar objects, requires awkward zero-padding if the object count changes, and struggles to generalize beyond the exact configurations seen during training.

Methods

The authors tackle this via a "geometric deep learning" lens:

  1. Entity-Factored MDP (EFMDP): A formal framework modeling $N$ entities where the state space $S = U \times \mathcal{E}^N$ (agent state $u$ plus $N$ entity states $e_i$) and goal space $G = g^N$. The authors formally prove that because transition dynamics and reward aggregations treat entity-subgoal pairs as an unordered set, any optimal policy $\pi^*$ and action-value function $Q^*$ are strictly permutation invariant with respect to entity-subgoal pairs.
  2. Invariant & Relational Architectures:
  3. Deep Sets: Encodes each concatenated tuple $(u, e_i, g_i)$ independently with an MLP $\phi(\cdot)$, sums all entity representations, and maps the sum to an action with an MLP $\rho(\cdot)$.
  4. Graph Convolutions (GCN) & Self-Attention (SA): Treats entities as nodes in a fully connected graph to explicitly model entity-entity interactions before pooling features via summation to predict actions.
  5. Training Setup: Policies and critics are trained completely end-to-end using standard off-policy RL (DDPG with Hindsight Experience Replay, with additional checks using PPO) or Behavior Cloning (IL), requiring no pre-defined motion primitives or hierarchical options.

Datasets

The authors evaluate on continuous robot manipulation environments simulated in MuJoCo, modified from OpenAI Gym's Fetch suite:

  • $N$-Push: A Fetch robot arm pushes $N$ cubes to target 3D locations.
  • $N$-Switch: The arm flips $N$ switches to target angle settings.
  • $N$-Switch + $N$-Push: Multi-task environments requiring both switch-flipping and cube-pushing.
  • Push + Stack: Pushing a block into place and stacking another block on top.

For imitation learning, expert demonstration datasets consisting of 1,000 to 5,000 trajectories were collected using trained RL policies.

Key Insights and Ideas

  • Invariance as an inductive bias: Baking permutation symmetry directly into the network architecture dramatically reduces effective state space size, allowing agents to isolate individual entity-goal interactions instead of learning permutation symmetries from data.
  • Deep Sets are surprisingly capable: Despite having no explicit pairwise attention mechanism, simple Deep Sets frequently match or outperform Self-Attention policies on tasks where objects do not heavily collide, while requiring fewer parameters and less inference latency.
  • Relational models excel when physics interfere: When physical entity-entity interactions matter (e.g., cube collisions or stacking blocks), Self-Attention and GCNs outperform Deep Sets because they explicitly model inter-object dependencies.
  • Zero-shot skill composition without hierarchical controllers: Relational policies can combine distinct skills learned in separate tasks (e.g., push and stack) in the correct sequence without explicit high-level task planners.

Key Results

  • Learning Efficiency: In environments with multiple entities (e.g., 3-Push or 2-Switch + 2-Push), standard MLPs fail almost completely (~0% success). In contrast, Deep Sets and Self-Attention learn rapidly, matching a hand-crafted heuristic Oracle. Under behavior cloning on 3-Push with 5,000 demonstrations, Self-Attention reached nearly 100% success while the MLP remained near 0%.
  • Zero-Shot Extrapolation: When trained on 3 entities and evaluated on up to 6 entities, structured architectures attained up to $50\times$ higher success rates than MLPs. In 6-Switch, structured policies even surpassed the baseline Oracle.
  • Zero-Shot Stitching: When trained separately on 2-Push and Stack, Self-Attention and GCN achieved $>60\%$ zero-shot success on the composite Push + Stack task (a $10\times$ improvement over MLPs, which averaged ~5%).

Limitations and Future Work

  • Entity-Specific Goal Requirement: The EFMDP formulation currently expects individual subgoals per entity. Tasks specified via relative relations (e.g., "put block A inside bowl B") must be pre-translated into explicit coordinate subgoals.
  • State-Based Observations: Experiments rely on ground-truth low-dimensional state vectors (poses and velocities). Extending this framework to raw visual inputs will require pairing it with unsupervised object-centric representation learning (e.g., Slot Attention).
  • Selecting Architectures: While the theoretical invariance property justifies structured policies, it does not prescribe when to choose Deep Sets versus Self-Attention; that selection currently remains empirical.

Summary updated

BibTeX
@inproceedings{zhou2024policy,
  author = {Allan Zhou and Vikash Kumar and Chelsea Finn and Aravind Rajeswaran},
  title = {{Policy Architectures for Compositional Generalization in Control}},
  booktitle = {RLC},
  year = {2024},
  url = {https://openreview.net/forum?id=GF0RlggkVJ},
}
Figure