CAPE: Contrastive Action-conditioned Parallel Encoding for Embodied Planning

Cong Chen, Haowen Wang, Zhixiang Zhang, Pei Ren, Zhengping ChearXiv 2026

TL;DR

CAPE (Contrastive Action-conditioned Parallel Encoding) is a novel framework for embodied robot planning that predicts future latent states in parallel rather than step-by-step. By training with a goal-convergent contrastive objective instead of pixel reconstruction, CAPE focuses purely on action-induced environmental changes, significantly improving planning accuracy while keeping inference costs nearly constant over long horizons.

What Problem Does This Paper Address?

To plan effectively, embodied agents (like robotic arms) need to predict the future consequences of their actions. Traditional forward dynamics models usually fall into two categories: reconstruction-based methods (which predict future raw pixels) and latent predictive models (which predict future features in a latent space).

Both approaches suffer from a common flaw: they waste immense computational capacity trying to model task-irrelevant details, such as background clutter, textures, or changing shadows. Furthermore, most state-of-the-art latent models rely on autoregressive rollout—recursively generating the next state and feeding it back into the model to predict subsequent states. This leads to compounding errors (latent drift) over long planning horizons and makes sampling-based optimization algorithms like the Cross-Entropy Method (CEM) prohibitively slow.

Methods

CAPE reformulates visual dynamics prediction as a parallel sequence-to-sequence mapping rather than an autoregressive chain.

Figure 1: Comparison of different future prediction paradigms. (a) Existing latent world models unroll autoregressively, requiring multiple sequential forward passes through Pθ. (b) Our model predicts the entire future latent trajectory (ˆzt+1, . . . , ˆzT ) in a single forward pass conditioned on the action sequence and current state zt.

As shown in the figure above, instead of stepping through time sequentially, CAPE takes an initial observation and an entire candidate action sequence, decoding the full future latent trajectory in a single forward pass.

Key Components:

  1. Parallel Action-Query Decoder: Visual observations are encoded using a frozen, pre-trained DINOv2 model. Candidate actions are transformed into horizon-indexed "action queries" embedded with temporal positional information. A transformer decoder uses cross-attention to allow these action queries to attend to the initial visual context tokens, outputting all future latent tokens simultaneously.
  2. Goal-Convergent Contrastive Objective: Instead of forcing the model to reconstruct full visual states, CAPE is trained to distinguish between different future outcomes. The authors introduce a clever sampling strategy: they take two different intermediate states from the same trajectory that eventually converge to the same final goal. These form a positive pair in a contrastive loss function, while temporal neighbors, mismatched actions, and random states serve as negatives.
Figure 2: Overview of CAPE framework. CAPE is trained through a three-stage goal-convergent pipeline. (1) Two intermediate contexts sampled from the same trajectory share the same future target at time t + H. (2) Given each context, CAPE encodes the visual observation into context tokens and maps the corresponding action subsequence into action queries. A parallel action-query decoder attends these queries to the visual context tokens and predicts future latent tokens in parallel. (3) The proposed goal-convergent objective aligns predictions that correspond to the same future target while repelling temporally or behaviorally mismatched predictions. At test time, the predicted final token is compared with the goal token to compute the planning cost.

Datasets

The authors evaluated CAPE on two major robotic manipulation benchmarks:

  • DROID: A large-scale, real-world robot manipulation dataset used for primary training, representation analysis, and offline action-matching evaluations.
  • RoboCasa: A simulated environment featuring diverse household manipulation scenes. CAPE was evaluated here in a zero-shot transfer setting on custom "Reach" (Rc-R) and "Place" (Rc-Pl) tasks to test its closed-loop planning capabilities under visual and domain shifts.

Key Insights and Ideas

  • Outcome Discrimination > State Reconstruction: The core philosophy of CAPE is that a planning model doesn't need to know what the background looks like in 5 seconds; it just needs to know if an action sequence successfully moves an object to the target.
  • The Power of Parallelism: Because much of the visual context in a manipulation task remains static, a single initial frame provides enough context for the entire trajectory. Parallel decoding acts as a visual anchor, entirely bypassing compounding rollout errors.
  • Emergent Selective Attention: Visualization of the cross-attention layers revealed that CAPE automatically learns to ignore background distractors. Early layers focus heavily on the robot gripper, while deeper layers expand focus to include the manipulated objects and task-relevant environment features.

Key Results

CAPE was compared against strong baselines, including reconstruction models (IRIS, DreamerV3) and latent predictive models (DINO-WM, JEPA-WM).

  • Future State Retrieval: On the DROID dataset, CAPE achieved a massive leap in Hit@1 accuracy. At a prediction horizon of $t+1$, CAPE scored 54.11% (compared to <8% for all baselines). At $t+5$, it maintained 42.97%, whereas baselines dropped below 5%.
  • Downstream Planning Success: In zero-shot closed-loop planning on RoboCasa (Rc-R task with horizon $h=3$), CAPE achieved a 49.0% success rate, more than doubling JEPA-WM's 23.4%.
  • $O(1)$ Computational Scaling: Because of its parallel design, CAPE's planning time remains virtually flat as the horizon increases. At $h=1$, a single MPC decision loop takes 335ms; at $h=5$, it takes just 356ms. In contrast, autoregressive models like DINO-WM scale poorly, jumping from 1,978ms ($h=1$) to 20,863ms ($h=5$).

Limitations and Future Work

Despite its strengths, the authors note two primary limitations:

  1. Coarse-Grained Representations: Because the contrastive objective prioritizes outcome separability, the model can become less sensitive to subtle action variations. This can hurt performance on tasks requiring millimeter-level spatial alignment.
  2. Action-Space Modeling Challenges: Modeling complex robot action dimensions like gripper orientation and continuous finger closure remains difficult due to noise and contact dynamics. CAPE's current planning evaluation focuses primarily on end-effector translation.

Future work aims to integrate local geometric regularizations to improve fine-grained control and explore separate optimization pathways for gripper orientation.

Summary updated

BibTeX
@misc{chen2026cape,
  author = {Cong Chen and Haowen Wang and Zhixiang Zhang and Pei Ren and Zhengping Che},
  title = {{CAPE: Contrastive Action-conditioned Parallel Encoding for Embodied Planning}},
  year = {2026},
  eprint = {2606.07304},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.07304},
}
Figure