# Differentiable Iterative Learning Control for Black-Box Position-Commanded Manipulators

Robotics.world

> Commercial manipulators usually accept only joint-position commands, and their internal servo controllers and actuator dynamics are hidden from the user. Iterative learning control can improve…

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

**Published**: 2026-10-31

**Authors**: Mohammed Al-Ghaili, Yakoop Qasim, Hassan Almubarak

## In plain words

Commercial manipulators usually accept only joint-position commands, and their internal servo controllers and actuator dynamics are hidden from the user. Iterative learning control can improve tracking over repeated executions without touching that controller, but constrained, optimization-based ILC depends heavily on hand-tuned weights (correction magnitude, smoothness, curvature) and a correction bound.

## AI summary

## Overview

**Research area:** Robotics — iterative learning control (ILC), data-driven control, and differentiable optimization for industrial manipulators.

**Technical level:** Advanced. The paper combines constrained quadratic programming, bilevel optimization, and implicit differentiation of Karush–Kuhn–Tucker (KKT) systems.

**Scope (one sentence):** The paper presents Diff-ILC, an online bilevel framework that automatically tunes the parameters of a constrained model-based ILC update between physical executions of a black-box, position-commanded 6-DoF DOBOT CR3, and shows faster trial-to-trial tracking-error reduction than fixed-parameter ILC.

## What This Paper Is About

Commercial manipulators usually accept only joint-position commands, and their internal servo controllers and actuator dynamics are hidden from the user. Iterative learning control can improve tracking over repeated executions without touching that controller, but constrained, optimization-based ILC depends heavily on hand-tuned weights (correction magnitude, smoothness, curvature) and a correction bound. The paper's goal is to remove that manual tuning by learning those parameters automatically from the robot's own measured behavior, so that accurate tracking is reached in as few physical repetitions as possible.

## Key Contributions

1. **A one-time, closed-loop differential model.** A compact affine model of the command-to-motion response is identified once from paired, symmetric, B-spline-generated perturbations of a nominal trajectory, and then kept fixed across different trajectory geometries and execution speeds. Because the symmetric ± perturbations are used, the affine offset cancels and only the differential response (ΔU ↦ ΔY) must be learned.
2. **A differentiable constrained-ILC layer.** The finite-horizon ILC correction is written as a quadratic program whose Hessian depends on joint-specific magnitude (λ), temporal-variation (ρ), and curvature (η) penalties, and whose bounds depend on a shared trial-to-trial correction limit δ, giving 19 learnable parameters for a 6-joint arm.
3. **Real-anchored bilevel adaptation with adjoint hypergradients.** A task-level objective combining predicted joint-space error, Cartesian error (through differentiable forward kinematics), and proximity to acceleration limits is differentiated through the locally active KKT system using a single adjoint solve, so all parameter gradients come from one linear system and many parameter updates can be made without extra robot executions.
4. **Experimental validation on unseen trajectories.** On a 6-DoF DOBOT CR3, using the same identified model, tracking metric, initial command, and motion constraints as the baseline, Diff-ILC reduces error substantially faster over the first few physical repetitions than fixed-parameter constrained model-based ILC.

## Main Findings

- **Large error reduction after two updates:** Across the four primary trajectories, after only two trial-to-trial updates, Diff-ILC achieved 78.8% lower mean joint-vector RMSE and 76.4% lower mean Cartesian RMSE than fixed-parameter model-based ILC.
- **Faster convergence, not just lower final error:** The stated advantage is faster physical-trial convergence over the first few repetitions; the paper frames the objective as rapid improvement within few executions rather than only low asymptotic error. Absolute RMSE values are not reported in the provided text.
- **One fixed model generalizes:** A single differential model, identified once from 15 physical trials (three nominal executions plus six symmetric perturbation directions about a 0.05 Hz sinusoidal trajectory) with ridge regression (α = 0.01), supported all experiments with no re-identification across trajectories or speeds.
- **Hypergradients verified numerically:** The adjoint hypergradient was checked against finite differences for all 19 learnable parameters at multiple physical trials, with close agreement whenever the local active set was unchanged.
- **Low starting correction bound is learnable:** Diff-ILC was initialized with δ = 1° (baseline used δ = 10°) and adapted δ within 0.05° ≤ δ ≤ 10°, i.e., the bound itself is a learned quantity rather than a fixed design choice.
- **Cheap outer updates:** Two configurations were tested with five and ten outer optimization epochs between physical executions; the computational parameter updates occur between executions and require no additional robot trials.

## Methodology in Plain English

The robot is treated as an unknown box that maps a commanded joint trajectory to a measured joint trajectory. Rather than identifying that whole map, the authors only learn how *small changes* in the command change the measured motion: they nudge a nominal trajectory in smooth, opposite directions, record the difference between the "+" and "−" runs, and fit a small linear model (with a one-sample memory term and cross-joint coupling) by ridge regression. That model is fitted once and frozen.

For each physical trial, the measured error is fed into a constrained optimization problem that computes the best command correction, subject to joint position, velocity, acceleration, and per-trial correction limits. The weights in that problem (per-joint λ, ρ, η) and the correction bound δ control how aggressive the correction is; these are the knobs normally tuned by hand.

The trick is to treat those knobs as trainable. Because the correction is the solution of a convex problem, its sensitivity to the knobs can be computed by differentiating the optimality (KKT) conditions at the currently active constraints, using one adjoint linear solve instead of one solve per parameter. This yields a gradient of a task-level score — predicted next-trial joint error, Cartesian error via forward kinematics, and a penalty on approaching acceleration limits — with respect to every knob. The knobs are reparameterized (softplus for positive weights, a sigmoid for δ) to stay in range, updated with Adam for a fixed number of epochs, and the optimization problem is then re-solved with the final knobs. Only the resulting corrected command is sent to the robot on the next trial, and the prediction is re-anchored on the fresh measurement each time.

## Why This Matters

**Impact on research:** The work shows how differentiable-optimization machinery (in the lineage of OptNet-style layers and differentiable MPC) can be brought to constrained ILC on hardware where the low-level controller is inaccessible. It addresses a specific gap: in constrained ILC the tuning parameters enter both the objective and the active constraint set, so task-level adaptation requires sensitivities through the constrained solution — which the adjoint KKT formulation supplies at the cost of one linear solve.

**Real-world applications:**

- Rapid commissioning of repetitive pick-and-place, dispensing, or welding paths on position-commanded industrial arms with closed controllers.
- Polishing, deburring, and other contact tasks where small tracking errors matter and paths repeat many times.
- Surgical or laboratory automation on small commercial arms where torque-level models are unavailable and vendor firmware cannot be modified.
- Fast re-tasking when a production line changes path geometry or speed, avoiding manual re-tuning per new motion.

**Industry relevance:** The method requires only the joint-position interface that commercial robots already expose, needs a one-time identification of 15 physical trials, and then reduces the number of inaccurate executions before good tracking — directly affecting cycle time, scrap, and robot utilization.

## Future Directions

- **Beyond the tested conditions:** The excerpt describes four primary trajectories plus one faster circle at 0.15 Hz; how far the single fixed differential model transfers to substantially different payloads, configurations, or wear conditions is not established in the provided text.
- **Model staleness and re-identification:** The model is deliberately never updated. The natural open question is when and how cheaply it should be refreshed, and how sensitive the learned parameters are to model drift.
- **Beyond position-commanded arms:** Extending the scheme to force/torque-controlled platforms, mobile bases, or tasks with contact dynamics would require a different differential model and possibly different constraints.
- **Theoretical guarantees:** The sensitivity analysis is local, assuming an unchanged active set, linear independence of active constraints, and a nonsingular KKT system; behavior across active-set switches and convergence guarantees for the bilevel loop are not addressed in the provided content.
- **Compute/trial trade-off:** Two outer-epoch settings (five and ten) were evaluated, but the excerpt does not report a comparison of their results, leaving the optimal amount of between-trial computation as an open practical question.

## Target Audience

Robotics and control researchers working on iterative learning control, data-driven control, and differentiable optimization; graduate students in control and instrumentation engineering; and industrial automation engineers who need high-accuracy repetitive tracking from commercial position-commanded manipulators without access to vendor firmware or torque-level models. Readers should be comfortable with quadratic programming, KKT conditions, and gradient-based optimization.

## Authors’ abstract

High-accuracy repetitive tracking is challenging for position-commanded manipulators whose low-level controllers are inaccessible, while constrained model-based iterative learning control (ILC) can require substantial manual parameter tuning. We present Differentiable Iterative Learning Control (Diff-ILC), an online bilevel framework that adapts the parameters of a constrained ILC update between physical robot executions. A closed-loop differential model is identified once…

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

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

## Related papers

- [Surrogate Uncertainty for Black-box Visual Grounding](https://robotics.world/paper/surrogate-uncertainty-for-black-box-visual-grounding-2610.39798) 2026-10-29 · cs.RO · Key terms of the title in common
- [A Black-Box Positioning Solution for Effortless Integration in Wearable Navigation](https://robotics.world/paper/a-black-box-positioning-solution-for-effortless-integration-in-wearable-2610.21353) 2026-10-15 · cs.RO · Key terms of the title in common
- [LBA-CBF: Rapidly Adaptive Safety Filters via Parallel Dynamics Inference](https://robotics.world/paper/lba-cbf-rapidly-adaptive-safety-filters-via-parallel-dynamics-inference-2610.08765) 2026-10-06 · cs.RO · Also by Hassan Almubarak
- [HIPC: Humanoid Iterative Planning and Control via Goal-Conditioned Motion Closure](https://robotics.world/paper/hipc-humanoid-iterative-planning-and-control-via-goal-conditioned-2610.41334) 2026-10-30 · cs.RO · Key terms of the title in common
- [$\nabla$Mimic: Ultra-Efficient Humanoid Control with Differentiable Simulation](https://robotics.world/paper/nabla-mimic-ultra-efficient-humanoid-control-with-differentiable-2610.41654) 2026-10-30 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/differentiable-iterative-learning-control-for-black-box-position-2611.01220
