Skip to content
Robotics.world

Research

Residual Compliant Policy: Learning Compliant Policies from Few Demonstrations

Contact-rich manipulation requires a robot to be stiff and precise in free space, then compliant once it touches something so it does not generate excessive forces.

The paper’s first page · arXiv:2610.14035
arXiv
2610.14035 · Preprint · not peer-reviewed
Published
2026-10-01
Authors
Chunyu Jiang, Yichen Cai, Shuai Li, Wenbin Sun, João Carvalho, Kostas Daniilidis, Oleg Arenz, Cristiana de Farias, Jan Peters

In plain words

Contact-rich manipulation requires a robot to be stiff and precise in free space, then compliant once it touches something so it does not generate excessive forces. A human demonstration shows the motion but not the hidden compliance behind it, so imitation learning alone struggles to capture when and how much to yield.

AI summary

Overview

Research area: Robotics — contact-rich manipulation, compliant control, imitation learning, and real2sim2real policy learning.

Technical level: Intermediate. Readers should be comfortable with admittance/impedance control, imitation learning, reinforcement learning, and simulation-based data augmentation.

Scope: The paper presents a pipeline that collects a handful of real-world compliant demonstrations with a digital twin, augments them in simulation, trains a flow-matching compliance policy, and refines it with residual reinforcement learning, evaluated on three flipping tasks with a Franka FR3.

What This Paper Is About

Contact-rich manipulation requires a robot to be stiff and precise in free space, then compliant once it touches something so it does not generate excessive forces. A human demonstration shows the motion but not the hidden compliance behind it, so imitation learning alone struggles to capture when and how much to yield. The paper's goal is to make compliance explicit during demonstration, expand a few demonstrations into a usable training set through simulation, and then refine the resulting policy with residual reinforcement learning so it handles contact conditions the demonstrations never covered.

Key Contributions

  1. Digital-twin-assisted demonstration collection: A synchronized Newton-based digital twin visualizes the gap between the commanded reference pose and the achieved robot pose during haptic teleoperation, letting the operator see and set compliance, and select between two discrete stiffness modes.

  2. A state-based real2sim2real augmentation framework: Free-space motion is retargeted with Laplacian editing, while in-contact segments are refined with cross-entropy method (CEM) trajectory optimization in simulation, producing physically consistent trajectories for new object poses from few demonstrations.

  3. A compliant base policy with a compact action space: A consistency flow-matching policy conditioned on object pose, robot pose, filtered force feedback, and previous stiffness predicts a reference pose plus one of two stiffness levels, rather than a continuous stiffness magnitude and direction.

  4. Residual RL on top of the imitation policy: A PPO-trained residual policy, learned in simulation with the base policy frozen, perturbs only the translational reference of the admittance controller to correct interaction forces while the base policy keeps authority over orientation and stiffness.

Main Findings

  • The pipeline works from very few demonstrations: Across the three tasks, only 7 demonstrations total were used — one for flip box, three for push and flip box, and three for flip cube. The base policy trained on augmented data succeeded in 100% of flip box and push and flip box in-distribution trials and 96.7% of flip cube trials (89/90 overall).

  • Residual RL closes the remaining gap: The residual policy succeeded in all 90 in-distribution trials and all 40 hard out-of-distribution trials, versus 89/90 and 35/40 for the base policy it corrects. Mean hard-test success rose monotonically along the pipeline: 60.0% (LE), 82.5% (ACP), 87.5% (base), 100% (residual).

  • Augmentation beats Laplacian editing when the environment constrains motion: On push and flip box, where a wall fixes where pushing ends and pivoting begins, Laplacian editing reached 11/30 trials (36.7%) while ACP, base, and residual all reached 100%. On the object-centric flip cube, Laplacian editing reached 96.7%, on par with ACP and base.

  • Two discrete stiffness modes match continuous stiffness adaptation: Against the Adaptive Compliance Policy (ACP) baseline, which predicts a 19-D action including a continuous stiffness magnitude and direction, the base policy reached 35/40 hard trials versus 33/40 for ACP, matching or exceeding it in seven of eight splits, with the largest gap under rotational perturbation (8/10 vs. 6/10).

  • Gains are not bought with harder contact: The residual policy completed every task 7–18% faster at comparable or lower peak contact force, for example 10.0 N to 8.5 N on flip cube, with a tighter spread.

  • Hard-test breakdown: On the four conditions (positions outside the training range, rotations outside the training range, an external shove, and a heavier, more slippery unseen object), the residual scored 5/5 in every split of both tasks, while the base policy missed on position and rotation perturbations (4/5 each) and on the unseen object for flip cube (4/5).

Methodology in Plain English

The robot is controlled by an admittance controller, which behaves like a spring-mass-damper: the operator commands a reference pose, and when an external force pushes on the tool, the robot deflects away from that reference. Stiffness is a single scalar applied to all axes, with a high value used in free space and a low value used during contact.

To collect demonstrations, a person moves a haptic device that sends the same reference trajectory to the real robot and to a simulator acting as a digital twin. The twin shows where the commanded reference is relative to the actual robot, so the operator can see how much the robot is yielding, feel forces through the haptic device, and press a button to switch between the two stiffness modes. The twin keeps the object's pose tracked by combining MuJoCo physics prediction with FoundationPose visual corrections, which keeps tracking stable when the object is occluded; it runs at 30 Hz, with simulation prediction taking 15 ms, visual correction 10 ms, and other I/O 5 ms.

From these few demonstrations, the authors generate hundreds of new ones. Free-space segments are stretched and reshaped with Laplacian editing to reach new starting and contact positions, with orientations interpolated by SLERP. Contact segments are instead optimized with CEM in simulation so the motion respects the wall, the table, and the object. The resulting augmented dataset trains a flow-matching policy that takes in a short history of object pose, robot pose, filtered force, and previous stiffness, and outputs a chunk of reference poses plus a stiffness level. The policy runs at 30 Hz, predicts 16 steps, executes 8, averages 8 sampled chunks, and cross-fades chunk boundaries for smoothness.

Finally, the base policy is frozen and a residual policy is trained with PPO in simulation. It outputs a small 3-D translational offset added to the base policy's reference position, leaving orientation and stiffness untouched, and is rewarded for task success while being penalized for exceeding a contact-force ceiling and for large or jittery corrections.

Why This Matters

Research impact: The work shows that compliance does not have to be inferred implicitly from demonstration data. Making it an explicit, operator-selected signal during collection — and separating motion from compliance in the policy's action space — gives a simpler representation that matches a much larger continuous-stiffness action space on these tasks. It also demonstrates a practical route for sim-to-real transfer of force-aware policies without high-dimensional visual observations, using object poses as the shared representation between simulation and the real robot.

Real-world applications:

  • Logistics and warehouse automation: Pivoting and aligning boxes against walls or fixtures, where the environment, not the object alone, determines where contact transitions happen.

  • Manufacturing part handling: Flipping, repositioning, and pressing parts into place with controlled contact forces that stay below a safety limit.

  • Home and service robotics: Rearranging household objects where a robot must be stiff enough to reach a target and soft enough not to crush what it touches.

  • Teleoperation and data collection tooling: Digital-twin interfaces that let a single human operator produce usable training data for force-sensitive tasks in minutes rather than collecting dozens of demonstrations.

Industry relevance: Collecting 40–60 demonstrations per task, as prior teleoperation interfaces required, is expensive and slow. This pipeline uses 7 demonstrations across three tasks, and the explicit force ceiling plus a two-mode stiffness schedule addresses safety and hardware-wear concerns that matter on real production robots.

Future Directions

  • Anisotropic compliance: Extending the representation beyond a single scalar stiffness applied to all axes, which suffices for pivoting with a rotationally symmetric tool but may limit tasks such as insertion that need direction-dependent compliance.

  • Frame selection and stable scheduling: Choosing appropriate frames for expressing anisotropic stiffness and scheduling transitions between them without losing the stability guarantee the authors obtain from spline interpolation between discrete modes.

  • Teaching anisotropic compliance in contact: Designing an operator interface for specifying direction-dependent compliance while the robot is already touching an object.

  • Full-pose residuals: Extending the residual policy to adapt the full reference pose rather than only the translational offset, for tasks that require precise control of moments, such as screwing motions.

Target Audience

Robotics researchers and graduate students working on contact-rich manipulation, compliant control, imitation learning, and sim-to-real transfer. It is also relevant to engineers building teleoperation or digital-twin data collection systems, and to practitioners who need force-safe manipulation policies from limited human demonstration data. Readers without a background in admittance control, flow-matching policies, or residual RL will find the method sections dense, though the experimental comparisons are accessible.

Authors’ abstract

Contact-rich manipulation requires a robot to be precise in free space to establish the intended contacts, and compliant once in contact to avoid excessive forces. Imitation learning has proven effective for simpler manipulation tasks, but the compliance underlying a demonstration is not directly observable and is therefore difficult to infer from demonstration data alone. We present a framework that makes compliance explicit at every stage. During data collection, the…

The full abstract on arXiv
Read the original paper

Related papers