Residual Model Learning for Microrobot Control

Joshua Gruenstein, Tao Chen, Neel Doshi, Pulkit Agrawal

TL;DR

This paper introduces Residual Model Learning (RML), a novel framework that significantly reduces the data needed to learn accurate dynamic models for microrobots with compliant materials. By combining a simplified analytical model with a learned residual model, RML enables efficient learning of complex locomotion behaviors, achieving impressive transferability to a realistic microrobot simulator with minimal data.

What Problem Does This Paper Address?

Microrobots, with their small size and compliant materials, present a significant modeling challenge. Traditional model-based controllers struggle because these materials are difficult to model analytically, and existing simulation models often have large errors compared to real robots. This makes applying standard model-based learning and sim-to-real transfer techniques difficult. While model-free reinforcement learning (RL) has seen success, it requires vast amounts of data, which is impractical for fragile microrobots. Model-based RL (MBRL) is more data-efficient but still demands hours of real-world data, and sim-to-real transfer is hampered by the "sim-to-real gap" – discrepancies between simulation and reality. This paper aims to bridge this gap by developing a data-efficient method for learning accurate microrobot models that can be used for effective control.

Methods

The core of the proposed solution is Residual Model Learning (RML). The key idea is to decompose the complex robot dynamics into two parts:

  1. A simplified analytical model: This acts as a "prior" and captures the basic rigid-body dynamics. The authors use a simplified model of the Harvard Ambulatory MicroRobot (HAMR), called HAMR-simple, which is computationally efficient but less accurate.
  2. A learned residual model: This model learns to predict the difference or residual between the simplified model's predictions and the true, complex robot dynamics.

The framework formulates this as learning a feedback function $k$ that maps the HAMR-full input $u$ to the HAMR-simple input $u_s$ such that the simplified dynamics with the learned feedback ($f_s(q_s, \dot{q}_s, k(q_s, \dot{q}_s, u))$) closely matches the true dynamics ($f(q, \dot{q}, u)$). This is achieved by minimizing the $L_2$-norm of the residual between the two models. A neural network is used to approximate the simplified dynamics model ($f_s$) to enable gradient-based optimization of $k$.

For training, a multi-step recursive process is employed. Instead of predicting just the next state, the model predicts a trajectory over a horizon of $h$ time steps. This helps to mitigate compounding tracking errors that can occur with single-step predictions.

Datasets

The paper uses passively collected interaction data from the Harvard Ambulatory MicroRobot (HAMR). Specifically, they collected 12 seconds of data where the robot moved in free space with white noise voltage inputs. This data was used to train the residual model. For evaluating learned policies, they used a simulated version of the HAMR, referred to as HAMR-full, which is a more accurate, albeit computationally expensive, model.

Key Insights and Ideas

  • Decomposing complexity is key: Instead of trying to learn the entire complex dynamics from scratch, RML leverages a pre-existing simplified model and focuses learning on the "residual" errors. This significantly reduces the learning burden.
  • Residual learning for data efficiency: By learning only the deviations from a known baseline, the model can achieve high accuracy with dramatically less data. This is crucial for microrobots where data collection is challenging.
  • "Proxy-simulator" for RL: The learned residual model, when combined with the simplified model, creates a fast and accurate "proxy-simulator." This simulator is accurate enough to train model-free RL policies that can then be transferred to the more complex, but slower, HAMR-full simulator.
  • Contact dynamics are decoupled: The authors hypothesize that contact dynamics are somewhat separable from the internal transmission dynamics. RML's approach allows for the residual model to focus on the transmission, with contact dynamics potentially being handled separately or implicitly learned.

Key Results

  • Data Efficiency: RML learned an accurate model of HAMR-full using only 12 seconds of passively collected data.
  • Speedup: The learned model runs 47x faster than the full HAMR-full simulator.
  • Accuracy: The learned model achieved orders of magnitude lower mean-squared error (MSE) compared to the simplified HAMR-simple model, demonstrating near-perfect tracking of HAMR-full trajectories.
  • Policy Transfer: Learned locomotion primitives (walking forward/backward, turning left/right) trained using the RML proxy-simulator transferred effectively to the HAMR-full simulator, exhibiting minimal loss in agility.
  • Comparison to Baselines: RML significantly outperformed baselines like HAMR-simple, input noise, and domain randomization in terms of post-transfer rewards. It also required 10x less data than the model-based RL approach PETS.

Limitations and Future Work

  • Simulation-based evaluation: The experiments were conducted using a simulated HAMR-full model as a proxy for the real robot due to pandemic restrictions. The authors express a desire to train and evaluate using real robot data and the physical robot.
  • Offline data: The RML approach uses offline data, which is beneficial for data efficiency. However, future work could explore online adaptation.
  • Generalizability: While RML is presented as a general framework, its application to other microrobot platforms with different compliant mechanisms would be a valuable next step.
  • Real-world transfer: The ultimate goal is to demonstrate successful transfer of learned policies to the actual physical microrobot.

Summary updated

BibTeX
@misc{gruenstein2021residual,
  author = {Joshua Gruenstein and Tao Chen and Neel Doshi and Pulkit Agrawal},
  title = {{Residual Model Learning for Microrobot Control}},
  year = {2021},
  eprint = {2104.00631},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.00631},
}
Figure