arXiv:2611.01220cs.ROOct 2026

Manuscript Offprint

arXiv:2611.01220

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

Mohammed Al-Ghaili, Yakoop Qasim, Hassan Almubarak

Mohammed Al-Ghaili, Yakoop Qasim, and Hassan Almubarak

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 from paired smooth perturbations and subsequently kept fixed. At each trial, a constrained quadratic program computes a feasible command correction, while a real-anchored next-trial prediction defines a task-level objective. Hypergradients are obtained by implicitly differentiating the locally active KKT system, enabling multiple computational parameter updates without additional robot executions. Experiments on a 6-DoF DOBOT CR3 across unseen planar and three-dimensional trajectories show substantially faster physical-trial convergence than fixed-parameter model-based ILC. Across the four primary trajectories, after only two trial-to-trial updates, Diff-ILC achieves 78.8% and 76.4% lower mean joint-vector and Cartesian RMSE, respectively, than fixed-parameter model-based ILC.

I. INTRODUCTION

Iterative learning control (ILC) is well suited to finite-duration repetitive tasks because it improves the command applied on subsequent trials using tracking information from previous executions [1, 2, 3, 4]. This is particularly attractive for commercial robotic manipulators, which often expose joint-position command interfaces while keeping their embedded controllers and actuator-level dynamics inaccessible. In this setting, tracking performance can be improved between repetitions without modifying the internal feedback controller or requiring torque-level robot models [5].

Optimization-based ILC computes the trial-to-trial correction over the complete trajectory horizon and can directly incorporate tracking objectives, regularization, and motion constraints. Constrained ILC has been formulated as a finite-dimensional quadratic program [6], while data-driven norm-optimal formulations have incorporated experimentally estimated input-output behavior together with actuator limits [7]. Such methods can provide substantial tracking improvement, but their performance depends strongly on parameters that balance tracking-error reduction, correction magnitude, temporal smoothness, and admissible trial-to-trial modification.

Reducing this tuning burden has therefore received considerable attention. Parameter optimization, adaptive learning, and data-driven model updates have been studied in ILC [8, 1, 2,

Figure

Fig. 1. Diff-ILC combines constrained model-based ILC with implicit differentiation through the locally active KKT system to adapt ILC parameters between physical robot executions. This online adaptation accelerates tracking-error reduction over the first few repetitions on the DOBOT CR3.

3], while more recent work has explored self-parametrization for data-driven ILC [9] and evolutionary gain adaptation for industrial robot tracking [10]. However, parameter adaptation is more challenging in constrained optimization-based ILC because the parameters affect the solution of the finite-horizon optimization problem itself. Regularization and smoothness weights modify the objective, while a correction bound can alter the active constraint set. Task-level adaptation therefore requires sensitivities through the constrained optimal solution.

Differentiable optimization provides a systematic mechanism for obtaining such sensitivities. OptNet and differentiable convex optimization layers established general approaches for differentiating through parameterized constrained optimization problems [11, 12], while differentiable MPC propagated gradients through optimal-control solutions [13]. More recent methods such as DiffTune, DiffTune-MPC, and differentiable robust MPC use these sensitivities for controller adaptation [14, 15, 16]. The repetitive-learning setting considered here introduces an additional challenge: each new plant evaluation requires execution of the complete physical trajectory, the closed-loop robot dynamics are unavailable, and the parameters to be adapted enter both the objective and active constraints of the ILC problem.

To address these challenges, we introduce Differentiable Iterative Learning Control (Diff-ILC), an online bilevel framework for constrained model-based ILC on black-box

M. Al-Ghaili, Y. Qasim, and H. Almubarak are with the Control & Instrumentation Engineering Department, KFUPM, Dhahran, Saudi Arabia. Email: {g202424100, g202423660, halmubarak}@kfupm.edu.sa Project website: https://cortx-lab.github.io/projects/differentiable-ilc/.

position-commanded manipulators. As illustrated in Fig. 1, a closed-loop data-driven differential model is developed once from paired smooth perturbations and subsequently kept fixed. At each physical trial, a constrained quadratic program computes a feasible command correction from the latest measured tracking error. A real-anchored next-trial prediction then evaluates the resulting joint- and Cartesian-space tracking performance together with command smoothness. The task-level objective is differentiated through the locally active Karush–Kuhn–Tucker (KKT) system of the inner ILC problem, allowing multiple computational updates of the joint-specific regularization and smoothness parameters and the shared correction bound between physical robot executions.

The main contributions of this work are:

• We develop a data-driven closed-loop differential model for command-level constrained ILC on position-commanded manipulators with inaccessible internal servo dynamics. The model is identified once from paired physical perturbations and used across subsequent trajectory geometries and execution conditions.

• We formulate the constrained ILC update as a differentiable optimization layer and introduce a bilevel adaptation scheme for joint-specific correction, temporal-variation, and curvature penalties together with a shared trial-to-trial correction bound. A real-anchored task-level objective is differentiated through the locally active KKT system using an adjoint formulation, enabling multiple parameter updates without additional physical executions.

• We validate Diff-ILC experimentally on a 6-DoF DOBOT CR3 across unseen planar and three-dimensional trajectories and an additional faster execution condition. Using the same identified differential model, tracking metric, initial command, and physical motion constraints, Diff-ILC achieves substantially faster tracking-error reduction over the first few physical repetitions than fixed-parameter constrained model-based ILC.