# Precision at Speed: Sample-Efficient Online Model-Based Reinforcement Learning for Hydraulic Excavator Control

Robotics.world

> Precisely controlling machines with complex hydraulic actuation is difficult because their dynamics include delays, dead zones, nonlinearities, and coupling between joints.

**arXiv**: 2609.31025 · Preprint · not peer-reviewed

**Published**: 2026-09-25

**Authors**: Claudio Canales, Fang Nan, Marco Hutter, Javier Ruiz-del-Solar

## In plain words

Precisely controlling machines with complex hydraulic actuation is difficult because their dynamics include delays, dead zones, nonlinearities, and coupling between joints. Learning directly on the real machine is expensive and potentially risky, and even machines of the same class can behave differently.

## Key results

- **Rapid real-machine improvement.** Across three one-hour runs, the largest accuracy improvement occurs in the first 20 minutes.
- **Sub-centimeter accuracy.** After 40 minutes, all objectives achieve sub-centimeter mean contour error.

## AI summary

## Overview

**Research area:** Robotics and learning-based control, specifically online model-based reinforcement learning (MBRL) for hydraulic machinery.

**Technical level:** Advanced. The paper combines probabilistic dynamics ensembles, sampling-based model predictive control (MPPI), and contouring control; readers benefit from background in reinforcement learning and control theory.

**Scope:** The paper presents an online MBRL framework that learns a probabilistic dynamics model from scratch on a full-size hydraulic excavator and uses it for precise, high-speed path-following control.

## What This Paper Is About

Precisely controlling machines with complex hydraulic actuation is difficult because their dynamics include delays, dead zones, nonlinearities, and coupling between joints. Learning directly on the real machine is expensive and potentially risky, and even machines of the same class can behave differently. The paper’s goal is to learn an accurate dynamics model online, from limited real-world interaction, and use it to follow paths precisely while increasing operating speed.

## Key Contributions

1. **Online MBRL framework:** A probabilistic ensemble of dynamics models is learned from scratch through real-world interaction and used by sampling-based model predictive control (MPPI) for receding-horizon planning.
2. **Precision-gated contouring objective:** A reward formulation in which rewarded path progress is attenuated as contour error increases, making precision a precondition for speed.
3. **Full-scale real-world validation:** The method is learned directly on an 11.5-ton Menzi Muck M445 hydraulic excavator, without demonstrations, offline data, hydraulic-specific knowledge, or simulation pretraining.
4. **Sample-efficient precision at speed:** After 20 minutes of interaction, tracking accuracy is comparable to prior learned controllers trained on 100–150 minutes of data; after 40 minutes, all tested objectives reach sub-centimeter mean contour error.

## Main Findings

- **Better simulation sample efficiency:** Against TD-MPC2, DreamerV3, and model-based differentiable policy optimization (MBDPO), the proposed method achieves better sample efficiency on a data-driven excavator simulator. It reaches the control performance reported in prior work with 20 episodes, while the baseline requires more than 100.
- **Probabilistic modeling matters:** The proposed method optimizes a negative log-likelihood loss but still outperforms baselines trained directly on prediction MSE. The authors attribute this to explicitly modeling aleatoric uncertainty and down-weighting noisy transitions, plus action smoothing that prevents oscillatory data.
- **Rapid real-machine improvement:** Across three one-hour runs, the largest accuracy improvement occurs in the first 20 minutes. Frozen 20-minute models achieve mean contour errors between 0.87 cm and 1.4 cm across the three objectives.
- **Precision at higher speed:** Free contouring with K=7 settles at approximately one and a half times the mean end-effector speed of time-indexed tracking and pace-capped contouring (K=1), and reduces mean trajectory duration by about one third.
- **Sub-centimeter accuracy:** After 40 minutes, all objectives achieve sub-centimeter mean contour error. Both contouring modes reach and maintain a speed-normalized error of ρ_M = 0.04 s.
- **Sustained high-speed operation:** The 60-minute K=7 controller, tested on paths 2.7 times longer than the standard evaluation, maintains 0.69 cm mean contour error while averaging 75 cm/s and reaching 180 cm/s. This exceeds the 129 cm/s previously reported on the M545, with a speed-normalized error of 0.02 s.
- **Comparison with prior controllers:** On time-indexed error, the 20-minute time-tracking run reaches ρ_M = 0.12 s, compared with 0.13 s (Egli & Hutter, 100 minutes), 0.27 s (Nan & Hutter, simulation plus 10 minutes), and 0.10 s (Nan et al., 150 minutes) on the slightly larger 12.5-ton M545.
- **The gate changes the accuracy–progress trade-off:** In an ablation with the frozen 60-minute time-tracking model, the ungated controller increases speed by cutting across reference paths, while the gated controller follows path geometry at comparable speed. The gated break-even error grows much more slowly, approximately as the square root of the Lambert W function of ρ rather than as the square root of ρ.
- **Learned models transfer across objectives:** In a 3×3 cross-evaluation of three frozen 60-minute models and three objectives, all nine pairings remain near one-centimeter mean contour error on uniform targets. On maximum-distance targets, time-indexed tracking incurs greater error, while both contouring objectives retain sub-centimeter means. Model differences appear mainly under K=7, where the model trained at that pace is slightly more accurate.

## Methodology in Plain English

The researchers treat the excavator as a black box. They command currents to the pilot-stage valves and measure joint positions and velocities; hydraulic pressures and internal valve states are not observed. A short history of past positions, velocities, and commands—k = 15, or 0.6 s—gives the model enough context to represent delayed hydraulic response without pressure sensing.

The dynamics model is an ensemble of five neural networks. Each network predicts a probability distribution over the next joint velocity, and positions are obtained by integration. Training uses multistep rollouts of length H = 10, so the model is penalized for compounding errors rather than only one-step prediction error. The predicted variance lets noisy transitions count less during training, and disagreement among ensemble members serves as a rough uncertainty estimate.

Control uses MPPI, a sampling-based planner. At each 40 ms control cycle, it samples 3,000 action sequences over a 30-step, 1.2 s horizon, evaluates them through the learned model under the task reward, and applies only the first action before replanning. The onboard JIT-compiled JAX implementation runs on an NVIDIA RTX 5080 GPU and AMD Ryzen 9 7900X CPU; MPPI takes 7.6 ms on average and 8.1 ms at most.

To bootstrap learning, the machine first executes 2×60 s of bounded random sinusoids, and an initial ensemble is trained. Learning then proceeds in episodes of 10 trajectories. Each trajectory starts from a sampled joint target and follows a 6 s minimum-jerk quintic reference. Early commands are limited to β = 0.5, increasing by 0.1 per episode up to 1.0. A per-joint exponential moving average with α = 0.18 smooths commands, and the same filter is included in the planner’s rollouts so planning matches what the machine actually receives.

The reward comes in two forms. Time-indexed tracking penalizes deviation from a scheduled reference point, so the controller must match both path and timing. Contouring instead projects the current state onto a forward window of reference points, measures contour error, and rewards progress along the path. In the precision-gated version, the progress term is multiplied by exp(−c²/σ²), so progress is rewarded only where contour error is small. K controls the admissible pace: K=1 caps progress near the reference pace, while K=7 allows faster progress.

## Why This Matters

This work shows that online model-based learning can be practical on a full-scale hydraulic machine, not only in simulation or with large offline datasets. Because the learned dynamics model is independent of the reward, the same model can support time-indexed tracking and different contouring objectives without retraining. The precision gate also reframes the usual speed-versus-accuracy trade-off: instead of buying progress with increasing error, the controller establishes precision first and then rewards speed within that precision.

**Real-world applications:**

- **Construction and earthmoving:** Faster commissioning and precise autonomous control of excavators and other hydraulic machinery.
- **Mining and resource extraction:** Adaptive control of heavy equipment where data collection is costly and machine-to-machine variation is significant.
- **Hazardous or unstructured environments:** A route toward deploying learned controllers where human operation is risky, subject to the safety extensions the authors propose.
- **Other complex actuator systems:** The framework is relevant to pneumatic actuators, cable-driven soft robots, and other nonlinear systems that are difficult to model analytically.

**Industry relevance:** The method reduces reliance on simulation pretraining, demonstrations, and long data-collection campaigns. It also addresses heterogeneity: because the model is learned online on each machine, it can adapt to individual actuator characteristics rather than assuming a single nominal model. For industry, that suggests shorter deployment times and controllers that improve as the machine operates.

## Future Directions

- **Contact-rich tasks:** Extend beyond free-space motion to digging and tool–soil interaction, incorporating force feedback and accounting for varying payloads.
- **Uncertainty-driven decision-making:** Use ensemble disagreement for exploration, out-of-distribution detection, and risk-sensitive planning when learning from scratch.
- **Perception and safety:** Integrate environmental perception, collision-aware planning, and explicit safety constraints for unstructured environments.
- **Broader validation:** The real-world results come from one run per reward mode on one machine; repeated runs and additional machines would test robustness to hardware variation.

## Target Audience

Robotics researchers working on learning-based control, model-based reinforcement learning, and field robotics; control engineers interested in MPC and contouring formulations; and R&D engineers in construction, mining, and heavy machinery who need sample-efficient controllers for hydraulic systems. Graduate students with some RL and control background will also find the methodology and real-world validation useful.

## Authors’ abstract

Precise, high-speed control remains challenging for robots with complex actuation dynamics. Learning directly on hardware is further constrained by the cost of real-world interaction. We present an online model-based reinforcement learning framework that learns a probabilistic dynamics ensemble model from scratch for sampling-based model predictive control. A precision-gated contouring objective conditions the progress reward on path accuracy, prioritizing precision over…

[The full abstract on arXiv](https://arxiv.org/abs/2609.31025)

[Read the original paper](https://arxiv.org/abs/2609.31025)

## Related papers

- [HOI-Retarget: Contact-Centric Retargeting for Human-Object Interaction](https://robotics.world/paper/hoi-retarget-contact-centric-retargeting-for-human-object-interaction-2609.34674) 2026-09-28 · cs.RO · Also by Marco Hutter
- [ForceTwin: Physics-informed Digital Twins for Robotic Manipulation from Instrumented Human Interaction](https://robotics.world/paper/forcetwin-physics-informed-digital-twins-for-robotic-manipulation-from-2609.21751) 2026-09-18 · cs.RO · Also by Marco Hutter
- [Reactive Task-Oriented Robot-Human Handovers via Generative Hypothesis Selection](https://robotics.world/paper/reactive-task-oriented-robot-human-handovers-via-generative-hypothesis-2610.08003) 2026-10-06 · cs.RO · Also by Marco Hutter
- [Walk Like This: Stylized Locomotion for Physics-Based Characters through Example-Driven Diffusion](https://robotics.world/paper/walk-like-this-stylized-locomotion-for-physics-based-characters-through-2610.18147) 2026-10-13 · cs.RO · Also by Marco Hutter
- [TRaIL-Odom: Tightly Coupled Continuous Time Radar-IMU-LiDAR Odometry with Adaptive Doppler Weighting](https://robotics.world/paper/trail-odom-tightly-coupled-continuous-time-radar-imu-lidar-odometry-2609.03561) 2026-09-03 · cs.RO · Also by Marco Hutter

---

Canonical: https://robotics.world/paper/precision-at-speed-sample-efficient-online-model-based-reinforcement-2609.31025
