CoDex

Coordinated Decentralized Diffusion Policies with Semantic-Kinematic Affordances for Bimanual Manipulation

Ningze Sun,  Roya Firoozi

University of Waterloo

CoDex follows centralized training with decentralized execution (CTDE): two per-arm diffusion policies are trained jointly, and at execution each arm acts on its own observation and a compact message from its partner. Own and partner affordances and a phase-based 3D trace give each arm the coordination cues a monolithic policy gets from the joint observation, so when one arm's sensors fail, the other still completes its own subtask, and when one arm is delayed, the pair still finishes the task.

79%
average success on 15 RoboTwin 2.0 tasks
π0.5 80%, DM0.5 87%
64%
intact-arm success when the partner's sensors fail
DM0.5 30%, π0.5 18%
−4pts
success lost when one arm is delayed 40 steps
π0.5 −26, DM0.5 −34
0.92nats
information a message carries about the receiver's action
maximum ln 4 ≈ 1.39

Abstract

Bimanual manipulation requires two arms to divide roles over time, track task progress, and ground actions in a shared scene. Policies that map a joint observation to a joint action couple the two arms inside a single network, so neither agent can be perturbed or delayed on its own. We present CoDex, a bimanual diffusion policy under centralized training with decentralized execution. The two arms are separate diffusion policies acting on their own observations, coupled at execution through a communication channel. We introduce two modules that make this decomposition work: a semantic-kinematic affordance encoder that predicts where each arm and its partner should act, and a phase-based 3D trace that guides an arm's spatial motion. On selected RoboTwin 2.0 tasks and on real hardware, CoDex is competitive with fine-tuned monolithic vision-language-action baselines while remaining robust when one agent's sensing is corrupted or its motion is delayed. Ablations and a mutual-information analysis further characterize the contributions of the proposed components and communication channel.

Method

CoDex overview: two decentralized per-arm policies exchange compact messages; each runs SKAE, a phase-based 3D trace and a DiT policy.
CoDex overview. Top: framework. Two decentralized per-arm policies coordinate through compact messages while producing separate action chunks. Bottom: per-agent pipeline. SKAE (left) predicts own and partner affordances and feeds its latent and spatial tokens downstream; the phase-based trace (middle) predicts the trajectory to the current motion-phase target; and the DiT policy (right) fuses visual-language, state, affordance, and own and partner trace conditions to denoise each arm's action chunk. Each module has the same color in both parts.

Two arms cooperate to complete a task given as a language instruction, learning from expert demonstrations. Rather than a single policy that maps the joint observation to the joint action, CoDex learns a decentralized policy for each arm that acts on its own observation and a message received from its partner. Separating the agents keeps each arm's action generation independent of its partner's sensing and execution pipeline, so a sensor fault or an execution delay in one arm need not compromise the other. Both agents see the shared top camera and the instruction; each also sees its own hand camera and proprioception. At every step, agent \(i\) broadcasts a compact message holding its state, its gripper-closure bit, its predicted trace, and its agent-specific affordance (ASA) logit, and samples its action from its own policy:

\[ a^i_t \sim \pi^i_{\theta^i}\!\left(a^i_t \mid o^i_t,\, m^{-i}_t\right), \qquad m^i_t = \left(\mathbf{q}^i_t,\; b^i_t,\; \hat{\tau}^i_t,\; \nu^i_t\right) \]
\(o^i_t\) holds the arm's own visual-language features, state, affordance latent, and trace. The two policies are trained jointly on their summed denoising losses but share no parameters.
Act separately

Decentralized DiT policy

Each arm runs its own diffusion transformer, which denoises an action chunk conditioned on the arm's visual-language features, state, and affordance latent, fused with its own and its partner's traces. One agent's policy can be retrained or replaced without affecting the other. Real-time chunking keeps consecutive chunks consistent during closed-loop execution.

Coordinate

Communication channel

The message enters the partner's computation in three places: the state and closure bit join its conditioning state, the ASA logit normalizes its ASA score, and the trace is fused with its own predicted trace. Without the channel, the arms are two independent actors that share only the top camera and instruction.

What and whom to interact with

Semantic-kinematic affordance encoder

From frozen DINOv3 and SigLIP 2 features, the arm's state, and its partner's closure bit, an encoder predicts where this arm and its partner should act, and an agent-specific affordance (ASA) score for which arm the affordance belongs to. Targets mark the next contact, masked to the contacted part with SAM 2.

The affordance is semantic, read from visual-language features and supervised on the contacted object part, and kinematic, conditioned on the arm's state and its partner's closure bit and targeting each arm's next contact.

How to move

Phase-based 3D trace

Each arm predicts \(K\) points \((u, v, d)\), a top-camera pixel plus depth, from its gripper to the target of its current motion phase. The predictor reads SKAE's affordance-supervised tokens and decoded affordance, so it inherits SKAE's robustness to unseen scenes.

Affordances and Traces

Each agent predicts its own and its partner's affordance from its own observation, and a phase-based trace for its own gripper. The scenes below are held-out out-of-distribution scenes with unseen object placements, lighting, and backgrounds. Choose a task; click any panel to enlarge it.

Task

Scene

Third-person view
Head-camera RGB

Affordance

Left agent
Right agent

Phase-based trace

Left agent
Right agent
Own affordance Partner affordance Left agent trace Right agent trace

Crosses mark phase points; the large cross marks the endpoint of the current phase.

Simulation Results

We test on 15 bimanual tasks of RoboTwin 2.0. Each task trains on 550 demonstrations (50 clean and 500 randomized) and is evaluated on held-out OOD scenes with unseen object placements, lighting, and backgrounds: 30 rollouts per entry (15 clean and 15 randomized). We compare against five retrained architecture ablations, the decentralized diffusion policy LatentToM (LToM), and the fine-tuned monolithic vision-language-action models π0.5 and DM0.5.

Task success

With no fault injected, CoDex averages 79%, level with π0.5 (80%) and slightly behind DM0.5 (87%), while LToM reaches only 12% on these OOD scenes.

Removing communication costs only 5 points, since the shared top camera and SKAE's partner prediction still carry implicit coordination. Centralized execution reaches 75%, so factorizing the policy does not degrade performance. Without partner supervision SKAE assigns roles less reliably (66%), and removing the affordance or the trace drops success to 53% and 39%, mostly on precise placement tasks.

Per-task success rates (%)

Fault isolation

At serve time, one agent's proprioception receives Gaussian noise and its own hand camera is replaced by random pixels; the shared top camera and instruction are untouched. We report the intact arm's own subtask success.

CoDex keeps the intact arm at 64%, well above the monoliths DM0.5 (30%) and π0.5 (18%), whose joint conditioning passes the fault to both arms. The no-communication variant reaches 82%; the gap is the cost of the channel, which passes the corrupted state to the intact agent.

Per-task intact-arm subtask success (%)

Asynchronous execution

One arm's commanded action is held at its current pose for the first 40 environment steps. Both arms' states stay intact, so we report full-task success.

CoDex is the best method at 75%, losing only 4 points from its no-fault success, against 26 points for π0.5 and 34 points for DM0.5, whose joint chunks assume the arms move in lockstep.

Per-task success rates with one arm delayed (%)

Value of communication

How much does the received message inform an agent's own action, given its local inputs \(o^i\)? Keeping those inputs fixed, we sample actions with messages drawn uniformly from four recorded candidates and estimate the Barber–Agakov lower bound

\[ I\!\left(a^i; m^{-i} \mid o^i\right) \geq \mathbb{E}\!\left[\log \frac{q_{\phi}(m^{-i} \mid a^i, o^i)}{p(m^{-i} \mid o^i)}\right] \]

CoDex averages 0.92 nats of a maximum \(\ln 4 \approx 1.39\), so each agent's action depends on the message it receives. Estimates saturate on grab roller and lift pot, where the arms hold one object together, and are lowest on hanging mug and dump bin bigbin, where they act mostly in turn. The no-communication variant receives no message, so its information is zero.

Per-task estimated information lower bound in nats; CoDex with communication ranges from 0.33 (hanging mug) to 1.38 (grab roller, lift pot); the no-communication variant is zero everywhere.

Rollouts Under Faults

The same held-out scene, rolled out by CoDex, its no-communication variant, and the two monolithic VLA baselines. Pick a task and a condition; every video shows the head camera.

Task
Condition

CoDex (ours)
CoDex w/o comm.
π0.5
DM0.5

Clips differ in length because each policy finishes, or stalls, at its own pace; each loops on its own.

BibTeX

@misc{sun2026codex,
  title         = {CoDex: Coordinated Decentralized Diffusion Policies with Semantic-Kinematic Affordances for Bimanual Manipulation},
  author        = {Sun, Ningze and Firoozi, Roya},
  year          = {2026},
  eprint        = {2611.37396},
  archivePrefix = {arXiv},
  primaryClass  = {cs.RO},
  url           = {https://arxiv.org/abs/2611.37396}
}