In the quest to build general-purpose robots, one of the biggest hurdles is compositionality: the ability to take basic skills (like "open a drawer" and "pick up a mushroom") and combine them to solve complex, multi-step tasks ("get the mushroom out of the drawer") without being explicitly trained on that specific sequence.
A new paper from researchers at UC Berkeley and Cornell University, titled Temporal Representation Alignment: Successor Features Enable Emergent Compositionality in Robot Instruction Following, proposes a surprisingly simple solution. By adding a specific "temporal alignment" loss during training, they enable robots to perform long-horizon tasks zero-shot, outperforming complex reinforcement learning and massive foundation models.
TL;DR
Temporal Representation Alignment (TRA) is an auxiliary training objective that aligns the representations of current states with future goals. This simple addition allows standard imitation learning policies to "stitch" together known sub-behaviors into complex, multi-step sequences zero-shot, achieving a >40% improvement in compositional generalization over prior methods.
What Problem Does This Paper Address?
Most current robot learning falls into two camps:
- Imitation Learning (BC): Great at simple tasks but fails on long-horizon sequences it hasn't seen before.
- Reinforcement Learning (RL) / Planning: Capable of "stitching" skills together but often unstable, data-inefficient, and difficult to scale in the real world.
The "gap" is the lack of emergent compositionality. If a robot knows how to do Task A and Task B, it should be able to do A-then-B. However, standard models often treat the combined state-goal pair as "out-of-distribution" and fail. The authors want to know: Can we learn a representation space that inherently supports this kind of sequencing without the baggage of RL or explicit hierarchy?
Methods: Temporal Representation Alignment
The authors introduce Temporal Representation Alignment (TRA). Instead of just training a policy to map an image to an action (Behavioral Cloning), they simultaneously train the robot's "internal map" (its representation space) using three encoders:
- $\phi(s)$: Encodes the current state.
- $\psi(g)$: Encodes the goal image.
- $\xi(\ell)$: Encodes the language instruction.
The "secret sauce" is the Temporal Alignment Loss. Using a contrastive objective (InfoNCE), the model is forced to make the representation of the current state $\phi(s_t)$ similar to the representation of a future state $\psi(s_{t+k})$.
This is inspired by Successor Representations in biology. By aligning "now" with "later," the representation space becomes structured such that a long-term goal looks like a sequence of reachable intermediate waypoints. Crucially, this is used only as an auxiliary loss—the policy itself remains a simple, goal-conditioned neural network.
Datasets
The researchers evaluated TRA in both the real world and simulation:
- Real-World: They used an augmented version of BridgeDataV2, consisting of over 50,000 trajectories and 72,000 language annotations across various tabletop manipulation tasks.
- Simulation: They used OGBench, a benchmark specifically designed to test "stitching" capabilities in offline RL, featuring both locomotion (Ant/Humanoid mazes) and manipulation tasks.
Key Insights and Ideas
- RL is not a requirement for "stitching": Traditionally, "stitching" (combining parts of different trajectories to reach a new goal) was thought to require a value function from RL. TRA proves that a well-structured representation learned via supervised alignment is sufficient.
- Successor Features as a Bridge: By aligning current states with future goals, the model learns that a distant goal is essentially a "successor" of the current state. This allows the policy to implicitly decompose a complex task into steps it already knows how to execute.
- Language-Image Grounding: By aligning language instructions with goal-image representations, the robot can follow natural language commands ("put all food items in the bowl") even if that specific command requires multiple steps it only ever saw individually.
Key Results
The results across 13 complex tasks in 4 different real-world scenes were striking:
- 40% Performance Boost: TRA improved success rates on compositional tasks by over 40% compared to standard Behavioral Cloning.
- Outperforming Foundation Models: TRA outperformed Octo, a large-scale robot foundation model, particularly on tasks requiring multi-step dependencies.
- Beating Offline RL: TRA performed better than AWR (Advantage-Weighted Regression), a popular offline RL method. While AWR often stopped after completing the first sub-task, TRA-enabled policies continued through the entire sequence.
- Zero-Shot Success: In the "Tasks with Dependency" set (the hardest category), TRA was often the only method able to successfully sequence behaviors like opening a drawer before retrieving an object.
Limitations and Future Work
Despite its success, TRA has a few notable limitations:
- Gaussian Policy Constraints: The model uses a standard Gaussian policy, which struggles with "multimodal" behavior (e.g., if there are two equally good ways to pick up an object, the model might average them and fail).
- Base Skill Dependency: TRA improves composition, but it can't fix a robot that hasn't learned the base skills. If the robot can't "pick up a block" reliably, TRA won't help it "pick up a block and put it in a box."
- Future Directions: The authors suggest moving toward more expressive policy architectures, like Diffusion Policies or Transformers, and scaling the TRA objective to even larger Vision-Language Models (VLMs).
Summary updated