Abstract
We present CompoSuite, an open-source simulated robotic manipulation benchmark for compositional multi-task reinforcement learning (RL). Each CompoSuite task requires a particular robot arm to manipulate an object in the presence of an obstacle to achieve a specific objective. By breaking tasks down into four modular axes—robot, object, obstacle, and objective—we demonstrate that modular AI architectures can achieve impressive zero-shot generalization, succeeding at entirely new tasks by recombining modules learned from previous experience.
Introduction
Standard reinforcement learning (RL) often suffers from brittleness. An agent trained to pick up a box with a specific robot arm might fail entirely if the arm is swapped or the box shape changes, even if it has encountered those components in other contexts. This lack of flexibility stems from a failure to leverage compositionality—the ability to combine simple, known components to solve complex, novel problems.
While compositionality is a hallmark of human intelligence and software engineering, most RL benchmarks do not explicitly test it. Existing multi-task benchmarks are often too small or lack the structured underlying relationships necessary to measure how well an agent understands distinct task elements. CompoSuite addresses this gap by providing a massive, structured environment for functional decomposition.
The CompoSuite Benchmark
Implemented on top of the robosuite framework and the MuJoCo physics engine, CompoSuite is defined by four combinatorial axes, each containing four elements:
- 4 Robots: IIWA, Jaco, Panda, and Gen3 arms.
- 4 Objects: Box, hollow box, dumbbell, and plate.
- 4 Obstacles: None, a wall near the object, a doorway, and a wall near the goal.
- 4 Objectives: Pick-and-place, push, trash can (drop), and shelf (insert).
This structure creates 256 unique tasks. The benchmark supports both low-dimensional symbolic observations and multi-camera visual inputs, allowing for a wide range of experimental setups.
Methods: Functional Composition
The authors advocate for functional composition, where a learning problem is decomposed into subproblems whose outputs feed into one another. They compare three distinct agent architectures:
- Single-Task Learners: Standard PPO agents trained on individual tasks with no knowledge sharing.
- Multi-Task Learners: A single large neural network trained on multiple tasks simultaneously, guided by a "task descriptor" vector.
- Compositional Learners: A modular architecture consisting of 16 distinct neural modules (one for each element across the four axes). For any given task, the agent "plugs in" the four relevant modules in a fixed hierarchy: Obstacle $\rightarrow$ Object $\rightarrow$ Objective $\rightarrow$ Robot.
Key Results and Insights
The experiments revealed that modularity requires a "critical mass" of diversity to be effective. Compositional agents struggle when trained on only a few tasks (e.g., 56 tasks); however, once the training set reaches a sufficient variety (e.g., 224 tasks), their performance improves dramatically.
- Zero-Shot Success: When trained on 224 tasks, the Compositional Learner achieved an 88% success rate on the remaining 32 unseen tasks. In contrast, the standard Multi-Task Learner achieved only 41%.
- Learning Speed: On large task sets, the compositional agent learned approximately twice as fast as the multi-task baseline.
- Robot Variation: Generalizing across different robot arms proved to be the most difficult axis, highlighting a significant challenge for universal robotic controllers.
- Multi-task Limitations: Standard multi-task agents often performed worse as more tasks were added, likely due to capacity exhaustion or an inability to find commonalities. In contrast, the modular agent improved as it saw more task combinations.
Conclusion and Future Work
CompoSuite demonstrates that modular architectures are key to achieving robust generalization in RL. However, several frontiers remain. While the benchmark supports pixels, training modular agents on raw video is computationally intensive. Additionally, the current compositional agent uses a fixed hierarchy; future research could explore agents that autonomously discover the optimal way to link modules. Finally, testing these modular components on physical hardware (sim-to-real) is a critical next step for the field.
Summary updated