Manuscript Offprint

arXiv:2609.06615

MemCorr-DP: Counterfactual Correspondence Conditioning for a Diffusion Policy Guided by a Reference

Tan Su, Haoxiang Yang, Ruxin Wang, Binghui Xie

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Behavior-cloned visuomotor policies can remain accurate near their training distribution yet fail when object position and camera viewpoint change together. A successful reference trajectory contains the geometry needed to transfer the same interaction, but the policy must align that geometry with the current scene and remain sensitive to it during denoising. To address these challenges, we present MemCorr-DP, a diffusion policy that lifts frozen RoMa v2 matches into explicit 3D relations between the current scene and the reference trajectory. A counterfactual paired objective assigns opposite behaviors the same physical state and noisy action while retaining reference-specific denoising targets. Mixed-condition fine-tuning then adapts the policy from ground-truth geometry to measured correspondence errors. Our strongest evaluation places the Door in the outermost position bands beyond the training support and changes the query camera by ±15∘\pm15^{\circ}. Under this combined shift, MemCorr-DP achieves 96.67% closed-loop success, compared with 88.00% for a visual Transformer with the same action architecture. Objective ablations and reference interventions show that behavior responds to the selected reference, while matched controls favor the complete relation set over future motion or centroid geometry alone. These results support explicit 3D reference relations as a robust conditioning interface when spatial and viewpoint changes are compounded in the evaluated task.

1 Introduction

Behavior cloning can learn precise visuomotor skills from demonstrations, but prediction errors can move the policy away from the demonstrated state distribution [17]. The resulting policies can also depend strongly on the visual and spatial distribution seen during training. When an object is displaced or the camera viewpoint changes, the task remains the same while image structure and the relation between the robot and object change. A policy that relies on correlations tied to familiar positions or views can therefore fail even when the required interaction is unchanged. Robust generalization requires preserving the geometry of the demonstrated interaction and adapting it to the current scene.

A previously recorded successful trajectory of the target skill serves as the reference in this work. It contains the RGB-D observations and gripper motion from one successful execution, and therefore describes how the gripper moves relative to the object as the task progresses. Transferring this interaction to a new scene presents two coupled challenges. The policy must first establish a spatial correspondence between the recorded trajectory and the current observation. It must then retain the behavioral information carried by that correspondence while generating actions. The second challenge is especially important for diffusion policies because the noisy action can partially reveal the underlying behavior, allowing the denoiser to rely weakly on the reference. Visual matching errors further create a gap between geometric conditions available during training and those observed during execution.

To bridge this gap, we propose MemCorr-DP, a diffusion policy that expresses the reference trajectory through explicit 3D relations to the current scene. At every replanning step, frozen RoMa v2 [7] matches the reference and current RGB-D observations, and valid matches are lifted into a shared 3D frame. The resulting relation set describes the live gripper around current scene geometry, the recorded gripper around reference geometry, future motion in the reference, and displacement between the two scenes. An action diffusion Transformer attends to these relations throughout denoising.

To make behavior depend on the selected reference, we introduce a counterfactual paired objective. Opposite behaviors are trained with the same robot state and noisy action but with different references and denoising targets, removing the behavior cue from the shared noisy input. Fig. 2 contrasts these standard and counterfactual diffusion inputs. We then fine-tune with a mixture of ground-truth relations, measured RoMa v2 correspondences, and corruptions sampled from observed matching residuals. This two-stage procedure combines clean geometric supervision with adaptation to the correspondence errors encountered during execution.

The primary evaluation examines a combined position and viewpoint shift. Boundary extrapolation provides a complementary comparison. Objective ablations, reference interventions, and representation controls examine how correspon-

Figure

Figure 1: End-to-end MemCorr-DP pipeline. Top: frozen RoMa v2 matches a fixed successful reference to the live query. Up to sixteen sampled reference points are matched and lifted into a shared 3D frame. Four future offsets per point produce a fixed 64×1864 \times 18 relation-token array; invalid slots are masked. Green, orange, purple, and blue vectors denote the live gripper, reference anchor, future motion, and scene displacement. The Transformer uses these tokens throughout 20 DDIM steps. Bottom: paired training shares state and noisy input ztz_t across opening and closing. Distinct references and clean action targets x0bx_0^b define the behavior-specific denoising targets. The policy predicts 16 actions, executes eight, and then rematches and replans.

dence conditioning affects the generated actions. Fig. 1 summarizes the complete pipeline, from reference–query matching and 3D relation construction to paired training and receding-horizon control.

Our contributions are:

  • a 3D relation representation for diffusion control that connects current scene geometry with demonstrated gripper state and future reference motion;

  • a counterfactual paired denoising objective that gives opposite behaviors an identical state and noisy action, requiring the reference to resolve their distinct action targets;

  • a two-stage training strategy that learns from exact geometric relations and then adapts to measured correspondence errors through mixed visual conditions and empirical residual corruption.

References (31)