---
title: Compliant Residual DAgger in Robotic Manipulation
url: https://www.emergentmind.com/topics/compliant-residual-dagger
type: topic
---

# Compliant Residual DAgger in Robotic Manipulation

Compliant Residual DAgger (CR-DAgger) is an extension to the classical Dataset Aggregation (DAgger) framework for learning control policies in real-world, contact-rich robotic manipulation, with a focus on enabling efficient and precise on-policy human corrections. By introducing a compliant human-in-the-loop interface and a force-informed residual policy learner, CR-DAgger addresses the central challenges of action correction collection and policy updating in physical environments that exhibit complex contact dynamics. The methodology demonstrates significant gains in manipulation success rates on tasks such as book flipping and belt assembly—outperforming traditional retraining and finetuning strategies—using minimal human intervention data [2506.16685].

## 1. Compliant Intervention Interface

The core innovation in CR-DAgger is the Compliant Intervention Interface, which facilitates the collection of corrective actions from humans without disrupting autonomous policy execution. This is achieved through the use of an admittance-style compliance controller on the robot’s end effector. The dynamics of the compliant controller in continuous time are governed by
$$
M \ddot{x} + D \dot{x} + K x = F_{\text{ext}}
$$
where $M$, $D$, and $K$ are diagonal matrices representing the virtual mass, damping, and stiffness, respectively, and $F_{\text{ext}} = F_{\text{contact}} + F_{\text{human}}$ is the sum of environmental and human-applied forces.

In discrete implementation, the commanded control at time $t$ is
$$
u_t = u_{\text{policy}}(s_t) + K_p^{-1} F_{\text{human}}(t) - K_d \dot{x}_{\text{robot}}(t)
$$
or equivalently,
$$
u_t = u_{\text{policy}} + K_p (x_{\text{human}} - x_{\text{robot}}) + K_d (\dot{x}_{\text{human}} - \dot{x}_{\text{robot}})
$$
In practical deployments, $K_p$ is set at approximately $1000$ N/m for each axis and $K_d$ is tuned for critical damping, yielding a compliant, "soft" interface. Under this configuration, human operators feel the intended motions via haptic back-drivability and can inject precise, low-amplitude delta corrections during ongoing policy execution.

Human corrections are logged using a detachable handle and button: when the button is pressed, at each $t$,
- $s_t$ (full robot state, including proprioception and image data),
- $F_t$ (measured 6D force/torque from the end-effector sensor),
- $u_{\text{policy}}(t)$ and $u_{\text{compliant}}(t)$ (nominal and compliant actions),
are recorded. The delta action $\delta u_t = u_{\text{compliant}}(t) - u_{\text{policy}}(t)$ is computed and stored, establishing a dataset of state-force-delta tuples for residual learning.

## 2. Compliant Residual Policy Formulation

To efficiently leverage the delta correction dataset, CR-DAgger introduces the Compliant Residual Policy. The method freezes the base policy $\pi_0$’s vision and temporal backbones, enabling the new policy $\pi_\theta$ to focus on producing short-horizon residual trajectories.

At inference, $\pi_\theta$ receives as input the current state $s_t$ and force measurement $F_t$ (and optionally the base action $u_0(s_t)$), and outputs a residual action sequence $\delta u_{t:t+T_r}$. The final command is the sum
$$
u_t = u_0(s_t) + \delta u_t
$$
executed at 50 Hz. Supervised training of $\pi_\theta$ proceeds with mean-squared error loss,
$$
L(\theta) = \mathbb{E}_i \left[ \| \pi_\theta(s_i, F_i) - \delta u_i \|^2 \right]
$$
with L2 regularization and explicit zero-residual labels on "no-correction" intervals.

## 3. Algorithmic Workflow

CR-DAgger operates in a DAgger-style loop, but single-batch aggregation suffices when the base policy achieves at least 10–20% initial success. The intervention dataset is collected as the robot executes the current policy; human corrections are incorporated on-the-fly via the compliant interface. Following data collection (approximately 50 episodes), the residual policy is trained on the accumulated corrections, and the final policy is the composition $\pi(s, F) = \pi_0(s) + \pi_\theta(s, F)$.

Key steps include:
1. Deploy base policy $\pi_0$; apply compliant control law.
2. Record $(s_t, F_t, \delta u_t)$ whenever human intervention occurs.
3. After a single aggregation batch, train $\pi_\theta$ on all collected deltas.
4. Deploy the composite policy for evaluation or further use.

The force information is integral both to the compliant control at execution and as an input channel to the learned residual policy.

## 4. Quantitative Performance and Empirical Results

CR-DAgger was evaluated on two real-world contact-rich tasks using a UR5 arm equipped with a wrist camera and ATI 6-axis force/torque sensor:
- **Book flipping**: Inserting prongs under a book, flipping it upright, and pushing flush to a stand.
- **Belt assembly**: Threading a narrow belt onto pulleys, tensioning, and releasing.

The base policy, a diffusion-based visuomotor model trained on 150 demonstrations, reached 40% and 20% success on book flipping and belt assembly, respectively. CR-DAgger achieved the following improvements:

| Task           | Base Policy | Retrain Offline | Finetune | Position-only Residual | CR-DAgger |
|----------------|:-----------:|:---------------:|:--------:|:----------------------:|:---------:|
| Book Flipping  | 40%         | ~38%            | ~10%     | 70%                    | 100%      |
| Belt Assembly  | 20%         | ~25%            | ~5%      | 50%                    | 70%       |

Stage-wise analysis highlights that, in the book flipping task's "push" phase, CR-DAgger predicted approximately 15 N of additional push force, yielding 100% stage success compared to 35% for position-only residuals. In belt threading, force feedback increased alignment success by 30 percentage points [2506.16685].

## 5. Practical Implementation Recommendations

Deployment of CR-DAgger involves tuning several key parameters and adhering to empirically derived guidelines:
- Set $K_p \approx 1{,}000$ N/m and $K_d$ for critical damping to enable 1 N of human-applied force to induce $\sim$1 mm of end-effector displacement.
- Instruct human annotators to provide corrections at the first indication of policy drift, but restrict interventions to low-amplitude, continuous deltas rather than full teleoperation.
- Aggregate data in a single batch of approximately 50 correction episodes if the base policy demonstrates at least moderate success. Iterative or small minibatch collection is discouraged to mitigate instability.
- Oversample training frames immediately post-correction onset (by a factor of four) to enhance the system's reactive behavior.
- For new tasks, ensure an initial “seed” policy with at least 10–20% baseline success, implement a compliant handle and F/T sensing on the robot, collect on-policy corrections, and focus training around observed failure points.

## 6. Context and Significance

CR-DAgger reframes the classic DAgger approach for real-world contact-rich robotic manipulation. It does so by pairing kinesthetic, compliant human intervention—achieved through force-feedback and haptic transparency—with a lightweight, modular residual policy architecture. The system attains over 50 percentage-point improvement in complex manipulation tasks, requiring fewer than 50 human interventions without full policy restarts or exhaustive retraining. This methodology provides practical advances and guidelines for effective on-policy correction and incremental policy improvement in high-stakes, contact-dominated robotic applications [2506.16685].

A plausible implication is that, by decoupling corrections from policy execution and leveraging force-informed residual updates, CR-DAgger sets a precedent for scalable, sample-efficient human-in-the-loop learning in robotics where physical interaction is both frequent and delicate.

Source: https://www.emergentmind.com/topics/compliant-residual-dagger