Learning Variable Impedance Control via Inverse Reinforcement Learning for Force-Related Tasks

Xiang Zhang, Liting Sun, Zhian Kuang, Masayoshi Tomizuka

Introduction

Robotic tasks involving contact-rich manipulation, such as assembly or delicate object handling, require a sophisticated balance between precision and safety. Traditional approaches often rely on impedance control, which models the robot arm as a tunable mass-spring-damper system. However, determining the optimal stiffness (impedance) for different phases of a task remains a significant challenge. This paper presents a framework using Adversarial Inverse Reinforcement Learning (AIRL) to extract variable impedance policies and reward functions from human demonstrations, significantly improving robustness and transferability.

Problem Statement

Existing methods for teaching robots variable impedance skills, such as Learning from Demonstration (LfD) or Reinforcement Learning (RL), face two primary hurdles:

  1. Lack of Transferability: Skills learned through simple imitation are often brittle. Minor changes in the environment, such as a tilted target or a change in object size, can lead to total failure.
  2. Reward Engineering: Manually designing reward functions that capture the nuances of force-sensitive tasks is notoriously difficult.

The authors propose using Inverse Reinforcement Learning (IRL) to "reverse engineer" the expert's underlying objective, focusing on how the choice of action space—specifically impedance gains versus raw forces—affects generalization.

Methodology: Gain-Based AIRL

The core of the proposed approach is the integration of Adversarial Inverse Reinforcement Learning (AIRL) with a variable impedance control law. In this framework, a discriminator distinguishes between expert demonstrations and robot attempts, while a generator (the policy) learns to mimic the expert's behavior by maximizing the recovered reward.

The control architecture integrates a high-level Gain Policy with a low-level Impedance Control Law.

A key innovation is the Impedance Gain Action Space. Instead of outputting Cartesian forces, the policy outputs the diagonal elements of the stiffness ($K$) and damping ($B$) matrices. This embeds the physics of impedance control ($F = -K e - B \dot{e}$) directly into the learning process. By learning in the "gain space," the robot's response to errors remains physically sensible even if the environment shifts, whereas a force-based policy might apply incorrect forces if the target moves.

Experimental Setup

The framework was evaluated on two distinct tasks:

  • Peg-in-Hole (Simulation): Conducted in MuJoCo, using 50 expert trajectories generated by a fixed-tip stiffness controller.
  • Cup-on-Plate (Real-World): Performed on a FANUC LR Mate 200iD/7L industrial robot. Expert data was collected via kinesthetic teaching, where a human physically guided the robot arm through 30 trajectories.

Results and Discussion

The "Gain-AIRL" approach was compared against Behavior Cloning (BC) and force-based IRL baselines.

Simulation tasks like Peg-in-Hole were used to test robustness against geometric variations like hole tilt and size.

Robustness to Geometry

In the Peg-in-Hole task, Gain-AIRL demonstrated superior robustness. When the hole was tilted by -6°, Gain-AIRL maintained a 91.7% success rate, significantly outperforming Gain-based BC (56%) and Force-based AIRL (53.3%). It also maintained high performance as the tolerance between the peg and hole was tightened.

Real-World Performance

On the physical FANUC robot, Gain-AIRL achieved an average final deviation of 10.8 mm, compared to 17.0 mm for Behavior Cloning. Force-based AIRL failed the real-world test entirely, as the "sim-to-real" gap in force dynamics proved too large for the model to overcome. These results highlight that learning the underlying objective via IRL allows the robot to find optimal paths in scenarios not explicitly covered by expert demonstrations.

Conclusion

By combining the flexibility of Adversarial IRL with the stability of classical impedance control, this framework enables robots to learn complex, force-sensitive tasks that generalize to new environments. Future work will focus on addressing coupled Cartesian dynamics, integrating waypoint planning into the policy, and incorporating visual sensory input to enhance autonomy in unstructured settings.

Summary updated

BibTeX
@article{zhang2021learning,
  author = {Xiang Zhang and Liting Sun and Zhian Kuang and Masayoshi Tomizuka},
  title = {{Learning Variable Impedance Control via Inverse Reinforcement Learning for Force-Related Tasks}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2021},
  url = {https://openreview.net/forum?id=MXfYGu-j0F},
}
Figure