Diagnosing Compositional Generalization in Sequential Robot Tasks

Yixiao Wang, Cheng-En Wu, Lingfeng Sun, Pengcheng Wang, Xiang Ji, Boyuan Liang, Guojian Zhan, Masayoshi TomizukaarXiv 2026

TL;DR

Training robots to follow multi-step instructions usually requires an impractical amount of data to cover every possible combination of tasks. This paper demonstrates that exhaustive data collection is unnecessary: by strategically covering key pairwise dependencies (occupying just 25% of the total task space), robots can successfully generalize to entirely unseen instruction combinations.

What Problem Does This Paper Address?

For robots to be truly useful in human environments, they must understand and execute sequential, multi-step instructions (e.g., "Pick up the cross, place it in the bin, then press the yellow button"). However, teaching robots these tasks via imitation learning faces a massive bottleneck: combinatorial explosion. If a task has three steps with four options each, there are $4 \times 4 \times 4 = 64$ possible task combinations. As the number of steps or objects grows, collecting human demonstrations for every single permutation becomes impossible.

When robot datasets are "compositionally sparse"—meaning they cover individual objects and actions but not all their combinations—policies routinely fail when given a novel combination at test time. This paper investigates a fundamental question for robot data collection: What specific coverage of the instruction space is actually necessary for a robot to achieve out-of-distribution (OOD) compositional generalization?

Methods

The authors tackle this problem through both a theoretical and an empirical lens:

  1. Theoretical Decomposition: They mathematically break down the "generalization gap" (the performance drop from training to testing) into three distinct sources of distribution shift:
  2. Marginal instruction shift: Have we seen the individual subtask instructions before?
  3. Instruction-compositional shift: Have we seen these familiar subtasks combined in this specific way?
  4. Context-action shift: How does a novel instruction combination alter the environment states and required actions?
  5. Combinatorial Training Designs: To minimize these shifts without collecting exhaustive data, the authors introduce the concept of Orthogonal Arrays from experimental design. Instead of training on the full Cartesian product of all instructions, they sample a structured subset ensuring that every pair of instruction factors is observed together at least once.
  6. Policy Architecture: They evaluate these data coverage principles using a transformer-based behavior cloning policy. The model utilizes a frozen DINOv2 vision encoder to process camera inputs and a flow-matching action decoder to generate precise robot movements.

Datasets

The methods were validated using simulated sequential manipulation tasks implemented in the robomimic framework. The authors designed three benchmark tasks with increasing compositional complexity:

  • Pick-and-Place (PP): 16 total tasks (4 objects $\times$ 4 containers).
  • Pick-Place-Press (PPP): 64 total tasks (4 objects $\times$ 4 containers $\times$ 4 colored buttons). The subtasks here are independent.
  • Dependent Two-Stage Pick-and-Place (2S-PP): A complex setup containing up to 144 tasks where the robot must place two objects into different containers. Crucially, the policy only receives a partial instruction and must implicitly infer the relational constraint (e.g., ensuring Container 1 $\neq$ Container 2).
Figure 1: Illustration of Pick-Place-Press and Dependent Two-Stage Pick-and-Place tasks.

Key Insights and Ideas

  • Pairwise Coverage is the Secret Sauce: You do not need to show a robot every single combination of three or more factors. Ensuring high pairwise coverage (e.g., making sure the robot has seen Object A with Container B, and Container B with Button C, even if not all three together) drastically mitigates the instruction-compositional shift.
  • The "Instruction Steering" Bottleneck: When a robot fails on a novel instruction combination, it is usually not because it lacks the low-level motor skills to execute the subtasks. Instead, it fails because it cannot correctly route or "steer" those existing skills under an unfamiliar command.
  • Relational Structure Matters for Dependent Tasks: If the outcome of step one changes based on the requirements of step two, simply having diverse data is insufficient. The training data must explicitly cover the relational dependencies between the factors to prevent the robot from learning spurious correlations.

Key Results

  • Exhaustive Enumeration is Unnecessary: In the 64-task Pick-Place-Press (PPP) environment, an orthogonal training set covering just 16 tasks (25% of the total space) achieved 78.2% OOD success, performing nearly identically to a model trained on the full 64-task dataset.
Figure 2: Full tuple coverage is unnecessary. Higher seen pair count predicts stronger OOD success.
  • Finetuning is Highly Efficient: To test the "instruction steering" hypothesis, the authors took a model trained on a highly sparse "diagonal" dataset (which had 0.4% OOD success) and finetuned it with just one demonstration per unseen task. This minor addition caused OOD success to skyrocket to 54.7%, proving that the model already possessed the necessary subtask skills and merely needed a hint on how to route them.

Limitations and Future Work

While insightful, the paper notes a few key limitations:

  • Scope of Tasks: The experiments were restricted to simulated, short-horizon manipulation tasks with relatively small combinatorial spaces. Scaling these principles to long-horizon, real-world tasks remains an open challenge.
  • Frozen Vision Encoders: The analysis focused on policies trained from scratch on top of static visual features. A natural and vital next step is evaluating how these data-coverage principles apply to large-scale, end-to-end pretrained Vision-Language-Action (VLA) models.

Summary updated

BibTeX
@misc{wang2026diagnosing,
  author = {Yixiao Wang and Cheng-En Wu and Lingfeng Sun and Pengcheng Wang and Xiang Ji and Boyuan Liang and Guojian Zhan and Masayoshi Tomizuka},
  title = {{Diagnosing Compositional Generalization in Sequential Robot Tasks}},
  year = {2026},
  eprint = {2607.29687},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.29687},
}
Figure