Manuscript Offprint
arXiv:2610.28329Reinforced Iterative Learning Control for elastic joint arms: Guaranteed cross-trajectory generalization under model uncertainties
Y. De Santis , M. Pierallini , F. Angelini and M. Garabini
Centro di Ricerca “Enrico Piaggio”, Università di Pisa, Largo Lucio Lazzarino 1, Pisa, 56122, Italy
Dipartimento di Ingegneria dell'Informazione, Università di Pisa, Via G. Caruso 16, Pisa, 56122, Italy
This is the accepted manuscript of an article published in Control Engineering Practice, 176 (2026), 107166. The version of record is available at https://doi.org/10.1016/j.conengprac.2026.107166. © 2026. This manuscript version is made available under the CC BY-NC-ND 4.0 license: https://creativecommons.org/licenses/by-nc-nd/4.0/.
ARTICLE INFO
Keywords:
Robot control
Robot learning
Iterative learning control
Deep reinforcement learning
Flexible structures
Abstract
Trajectory tracking for compliant robots is challenging due to nonlinear dynamics and modeling uncertainties, often requiring learning-based methods to avoid explicit parameter identification. Iterative Learning Control (ILC) ensures theoretically high precision and preserves the passive compliance of the robot. However, traditional ILC requires a separate learning phase for each new trajectory. Conversely, Reinforcement Learning (RL) generalizes to new trajectories, but practically suffers from high sample complexity and limited tracking precision. This work proposes Reinforced Iterative Learning Control (RILC) that combines the strengths of both approaches to achieve fast adaptation and guaranteed tracking convergence across diverse trajectories. By establishing a concurrent coupling between the two controllers, RILC overcomes the high initial errors and slow adaptation of traditional ILC, enabling high-performance tracking from the very first trials. In this architecture, ILC provides high-quality samples, while RL contributes as a generalizing best-effort policy across iterations. Additionally, a theoretical proof is presented to show that the RL component preserves ILC stability and, under specific conditions, can also reduce the error bound asymptotically. The efficacy of this framework is demonstrated through simulation and experiments on an underactuated 4-degree-of-freedom serial elastic robot using different trajectories and modeling mismatches.
Model-based control ensures performance but requires precise models, which are difficult to obtain for compliant systems De Luca and Book (2016); George Thuruthel et al. (2018). To handle modeling errors, high feedback gains are often used, effectively adding a virtual stiffness in parallel with the physical transmission and yielding an increased closed-loop stiffness that negates the safety advantages of the mechanical adaptability Angelini et al. (2018). This is particularly critical for collaborative robots with elastic elements and industrial arms with parasitic flexibility such as harmonic drives or belt transmissions De Luca and Book (2016). While data-driven identification can address these uncertainties, it remains costly and time-consuming Hollerbach et al. (2016).
Learning techniques obtain reliable models or data across diverse dynamic scenarios, see Sutton and Barto (2018); Pierallini et al. (2023). This approach can update and reshape the control directly from raw real-time data in a model-free and data-driven fashion. However, data-driven approaches are time-consuming and need a large amount of data. The combination of MB and data-driven control is a promising choice for obtaining good results with guarantees of MB while adding an auxiliary part with learning.
One example of learning controllers is Iterative Learning Control (ILC) Ahn et al. (1993); Bristow et al. (2006); Chen et al. (2020); Pierallini et al. (2021); Aarnoudse et al. (2024), which guarantees theoretically good performance using mostly feedforward actions while compensating for the reality gap by repeating the desired task, iteratively. Recent research has investigated multi-reference tracking through various generalization strategies, including parametric basis functions Blanken et al. (2016), combined trial-specific adaptations Tsurumoto et al. (2023, 2024), and non-parametric Gaussian Process methods Meindl et al. (2024); Sun and Freeman (2024). However, achieving fast
This document is the result of the research project funded by the Italian Ministry of University and Research (MUR) - Fondo Italiano per la Scienza Applicata (FISA), through the OCCAM project under Grant FISA 2023-00324 CUP I53C25000700001 and the “FoReLab” (Future-oriented Research Lab) Project (Departments of Excellence), and partially by the European Union HORIZON-MSCA-2023-SE-01-01 - MSCA Staff Exchanges 2023 Program under the Grant Agreement No. 101182891 (NEUTRAWEED).
Corresponding author
Email address: yuri.desantis@phd.unipi.it (Y. De Santis)
Page 1 of 16

Figure 1: Reinforced Iterative Learning Control (RILC) scheme. The RILC combines Reinforcement Learning (RL) and Iterative Learning Control (ILC) terms (green block). Each process (blue blocks) is populated by the iterations required for convergence to a predefined desired trajectory (grey block). The ILC is updated using past iterations 0, , , while the RL control is determined by the current ILC action and information gathered from the current process . A buffer stores previously executed processes 0, , , and it is used to update the RL policy.
adaptation across diverse trajectories remains a challenge, because these methods often restrict target trajectories to a narrow neighborhood of the nominal path to preserve stability. Conversely, Reinforcement Learning (RL) generalizes across trajectories, enabling zero-shot transfer to new references Kaelbling et al. (1996); Schulman et al. (2017), but suffers from high sample complexity and policy chattering that limits tracking precision Kober et al. (2013); Pavlichenko and Behnke (2022). While the similarities and differences in ILC and RL learning processes have generated interest Zhang et al. (2019), existing combinations treat the two controllers as functionally decoupled. Some employ additive blending with fixed weights Xu et al. (2020); He et al. (2025) or RL-based parameter tuning Soleimani et al. (2025), while others adopt sequential pipelines where ILC generates offline datasets for RL training Ma et al. (2023); Yang et al. (2026). None of these approaches provide formal convergence guarantees for the combined system, and the RL component remains blind to the trial-to-trial evolution of the ILC feedforward signal. Other works modify the RL algorithm itself by drawing inspiration from ILC, e.g., Gurumurthy et al. (2023). Our objective, however, is not to improve the RL algorithm internally, but rather to operate directly at the control level.
This paper proposes a new control framework, Reinforced Iterative Learning Control (RILC), which combines the ILC and RL contributions to achieve precise multi-reference tracking. RILC establishes a concurrent coupling where the RL policy observes the ILC historical states and actively shapes the feedforward signal in real-time, while the ILC loop provides a stable envelope that constrains RL exploration. This synergy overcomes the slow trial-by-trial adaptation of traditional ILC, enabling high-performance execution from the very first trials. As a practical benefit, accurate feedforward compensation reduces the reliance on aggressive active feedback, which is essential in collaborative robotics and contact-rich industrial tasks to maintain the hardware's safety and mechanical adaptability. We derive theoretical convergence guarantees and conditions that ensure tighter error bounds than baseline ILC.
We validate the effectiveness of the algorithm both in numerical simulations, to test robustness against strong modeling mismatches, and in real-world experiments using a 4-degree-of-freedom (DoFs) articulated soft robot Pratt and Williamson (1995). Results confirm the robustness of RILC on complex physical dynamics, outperforming baseline ILC and RL controllers.
This work is organized as follows. In Section 2, we introduce the state-of-the-art learning frameworks used; in Section 3, we describe the control problem in a model-based and model-free paradigm; in Section 4 we derive the control architecture, and show how all the introduced issues can be addressed. In Section 5-6, the controller effectiveness and robustness are tested and discussed. Finally, in Section 7, we conclude.
2. State-of-the-art
This section reports the state-of-the-art of ILC, RL, and their combined approach.
2.1. Iterative Learning Control (ILC)
ILC has been successfully applied to tracking tasks across diverse domains, from chemical processes, Mezghani et al. (2002), and drones, Nguyen et al. (2021), to various industrial platforms, Axehill et al. (2014); Chen et al. (2020) and soft robotics, Angelini et al. (2018). Traditional convergence and stability guarantees in ILC are obtained via model-based paradigms, Wei et al. (2016); Shen and Zhang (2020); Pierallini et al. (2021); Aarnoudse et al. (2024).
For elastic joint systems, the literature is broadly divided into non-collocated and collocated configurations, see De Luca and Book (2016). When link-side variables are unmeasured, non-collocated approaches must integrate state and disturbance observers Talole et al. (2009); Rsetam et al. (2019); Yan et al. (2023), or sensor fusion techniques Axelsson et al. (2012); Axehill et al. (2014), to estimate the link states for the control loop. However, this introduces sensitivity to estimation errors, which can degrade tracking performance. On the other hand, collocated configurations avoid estimation-based control, but must still compensate for the joint deflection reflecting across the transmission. For these setups, ILC is particularly suitable because it operates mainly in a feedforward fashion, often combined with low-gain feedback loops to preserve the robot's physical compliance Angelini et al. (2018); Pierallini et al. (2023). To systematically optimize the feedforward action while handling system constraints, the standard formulation Ahn et al. (1993) is extended to Norm-Optimal ILC (NOILC) Amann et al. (1996), which guarantees monotonic convergence by exploiting model information. However, its effectiveness is strictly limited by the accuracy of the model and computational complexity, Jiang and Chu (2022).
Page 2 of 16
To extend traditional ILC beyond single-reference tracking, the focus has shifted toward multi-reference learning frameworks. On one hand, parametric methods employ basis functions Blanken et al. (2016) to project updates onto trajectory primitives for linear systems. These have evolved into combined designs Tsurumoto et al. (2023, 2024) that merge shared primitives with trial-specific adaptations considering their mutual interaction. However, when operating sufficiently far from the training trajectories, their tracking performance degrades, reverting to standard single-reference ILC behavior. On the other hand, non-parametric methods such as Kernel-based ILC and Gaussian Process Regression have been explored Meindl et al. (2024); Sun and Freeman (2024). While these approaches achieve precise trajectory-tracking for points sufficiently close to the training datasets, even in the presence of nonlinearities, the former risks overfitting sparse data, whereas the cubic computational scaling of the latter severely restricts real-time applicability.
Despite these advancements, achieving fast adaptation across diverse trajectories for elastic joint systems remains an open challenge. Multi-reference ILC requires frameworks capable of scaling to large workspaces in the presence of strong nonlinearities while preserving both fast initial adaptation and asymptotic convergence.
2.2. Reinforcement Learning (RL)
RL has achieved great success in solving robot control problems without requiring an explicit analytical model Kober et al. (2013); Rudin et al. (2022); Eber et al. (2022). For trajectory tracking, online model-free algorithms, such as Proximal Policy Optimization (PPO) Schulman et al. (2017), parameterize the control policy to map system observations to joint torques or references. The strength of this formulation is that the learned policy can be deployed on new trajectories within the training distribution without retuning, demonstrating effective zero-shot transfer capability.
For systems with elastic elements, RL has been explored in contexts such as trajectory tracking on flexible-joint manipulators Pavlichenko and Behnke (2022), force control on series elastic actuators Sambhus et al. (2023), and manipulation with soft robotic arms Alessi et al. (2024). These works confirm that RL can learn state-aware strategies on compliant hardware without explicit model identification. Moreover, they show that the policy alone is insufficient for high-precision tracking, requiring external correction layers Pavlichenko and Behnke (2022), filtering structures Sambhus et al. (2023), or supplementary control layers Alessi et al. (2024) to achieve acceptable performance. The inherent nature of deep neural network (DNN) function approximation leaves a persistent tracking error, motivating hybrid architectures where a nominal controller handles base dynamics while RL compensates for the residual dynamics Johannink et al. (2019). High tracking performance therefore relies on collecting informative samples, often requiring strategies like curriculum learning Narvekar et al. (2020) to cover the relevant regions of the state space. However, on elastic joint systems the link-motor coupling increases the complexity of the learning task, and the sample complexity grows accordingly Kober et al. (2013). This curse of dimensionality makes data collection on physical compliant hardware both time-consuming and mechanically demanding.
Practical deployment faces the sim-to-real gap Mehta et al. (2020), arising from system mismatches. Standard RL policies use frozen weights and cannot correct residual errors on unseen states. Online adaptation is typically constrained by sample inefficiency and the risk of catastrophic forgetting, which can compromise the policy's generalization capabilities Kober et al. (2013). These aspects reveal an inherent gap where RL, despite providing a generalizing policy, typically offers only probabilistic convergence and requires informative samples to reduce residual errors. This motivates combining RL with a complementary framework that generates high-quality data and structures observations to keep the policy within its training distribution, ensuring closed-loop stability.
2.3. Combined approaches of ILC and RL
The similarities and differences between the learning mechanisms of ILC and RL, particularly how they tackle trajectory tracking and use past samples to optimize control, have generated interest, Zhang et al. (2019).
To enhance the tracking performance of ILC and extend its applicability beyond strictly repetitive tasks, several works combine ILC with RL. One approach uses RL to enhance the capability of ILC to handle non-repetitive disturbances and sudden trajectory variations. While standard ILC relies on strict repeatability, these methods employ RL to compensate when this assumption is violated. For instance, in Soleimani et al. (2025), a policy selects a forgetting factor from a discrete set to weight past control inputs, allowing ILC to maintain its classical structure while handling iteration-varying uncertainties. The method provides theoretical convergence guarantees, yet validation is restricted to simulation on linear systems. Other approaches integrate the RL action directly into the control loop alongside ILC. In Xu et al. (2020), a fixed blending factor combines a P-type ILC output with an RL policy action to handle dramatic trajectory changes in batch processes. However, the role and evolution of this blending factor are not discussed, which is a critical aspect for formal theoretical analysis that is missing. In He et al. (2025), RL is integrated within a model-based ILC framework. Unlike simple blending, this approach uses ILC as a stable baseline, and the RL agent acts as an adaptive compensator to handle non-repetitive disturbances and model mismatches. While these works enhance robustness for a single task, they are often validated only in simulation and do not address the core problem of generalization to new reference trajectories. Since the RL component operates independently from the ILC evolution across iterations, it cannot anticipate or compensate for the trial-to-trial changes in the feedforward signal. To achieve generalization across diverse trajectories, other methods decouple the learning phase from execution. In Ma et al. (2023), the authors reformulates the RL problem as a supervised learning task, using ILC offline as a data generator to train a neural network that maps desired trajectories.
Page 3 of 16 to optimal feedforward inputs. Experiments on a robotic system with elastic parts demonstrates transfer to new target locations, but the learning phase remains entirely offline, preventing real-time adaptation. In Yang et al. (2026), an RL agent is pre-trained to imitate ILC to reduce exploration costs, followed by online fine-tuning on a nonlinear system. However, the pre-training relies on a heuristic switching logic between controllers, which limits the RL policy from developing an independent optimal strategy. These methods assume that offline data given to RL policy covers the relevant state space, which prevents the ability to compensate for the reality gap. Furthermore, neither work provides formal convergence guarantees for the combined framework.
Existing methods isolate one controller from the other through parameter adjustment, additive superposition, or temporal decoupling. Consequently, these approaches often rely on the assumption that the RL agent does not destabilize the base loop, lacking formal proofs of combined convergence. Therefore, developing a concurrent RL-ILC framework that ensures joint stability, enables fast adaptation across iterations, and achieves generalization on compliant systems remains an open challenge.
3. Preliminaries and problem statement
In this section, we first present the notation used, the representation of robotic systems, and the optimal control formulation in a model-free approach to tackle the trajectory tracking problem. Finally, we report the goals of this work.
3.1. Notation
This subsection aims to align the notation and terminology used in this paper. Although the use of RL framework, we prefer to use optimal control theory terminology where it is possible. For this reason, we approach the problem as a minimization of the functional cost instead of a maximization of the cumulative reward. Bearing in mind that, we consider , where and are the running cost and the immediate reward, respectively. We call the training phase the updating phase of RL parameters during simulation experiments.
Let be a vector function, we denote with its -th time derivative, with , the -norm of a vector, i.e. for , with a sample of , finally, with an approximation of .
Let be a discrete time vector function, is the discrete-time shift operator, i.e., .
Finally, for the sake of space, we will omit the explicit time dependence where it is trivial. Refer to Table 1 for a summary of the main notation.
3.2. Model formulation
Let us consider the square system of a 2n-DoFs underactuated by Series Elastic Actuator (SEA) compliant systems, as derived in Albu-Schäffer and Bicchi (2016), i.e.,
Table 1 Principal notation used throughout the paper.
| Symbol | Description |
|---|---|
| Iteration index | |
| State vector at iteration | |
| Output | |
| Tracking error | |
| ILC feedforward control input | |
| RL control contribution, parametrized by | |
| Model-based feedforward control | |
| Low-gain feedback control | |
| ILC input error | |
| RL input error | |
| Measurable process variable (observation) | |
| Gains for the error derivatives | |
| Iteration-dependent ILC learning operator | |
| RILC contraction rate |
where and are the position, velocity, and acceleration vectors on the link-side and motor-side, respectively. is the robot inertia matrix, is the robot Coriolis matrix, is the gravity vector, is the stiffness matrix associated to SEA. are the motor inertia matrix and damping matrix , respectively. is the torque control input. Let us consider a set where represents the -th iterative process, for each iterative process consider the iterative process with index . We follow the classic affine state-space form defining the state for continuous-time systems with is the time variable ( terminal time):
with as initial condition: are the control inputs, i.e., , where is parametrized by , is defined by that is a function of measurable process variables, and we denote . is the output, is the output function defined as , where is the selection matrix for in . are the drift and control vector fields
with and .
Note that for each is associated to a particular desired trajectory to follow . We denote
Page 4 of 16 of the process as . We omit the left index for simplicity when its dependence is trivial. We assume that:
A1) The system (2) has a fixed vector relative degree , , see, e.g., Isidori (1989). Furthermore, we assume that . The matrix is computed such as and is commonly called the decoupling matrix of the system (2).
A2) The vector fields , and are globally Lipschitz with unknown constants , for , and respectively, i.e., , , and , .
A3) The desired output trajectory is feasible, continuous, bounded, and differentiable for, at least, times, , .
A4) The initial condition presents a bounded shift from the desired one, , i.e., , , , i.e., , .
A5) The control in (2) is bounded , i.e., , .
The theoretical assumptions are fundamentally grounded in the physical and operational constraints of elastic joint systems. Assumption A1) is strictly satisfied by the collocated motor-side configuration, which yields a well-defined relative degree. The Lipschitz continuity A2) follows from the smooth nature of rigid-link dynamics and passive compliance away from kinematic singularities Pierallini et al. (2023). Reference feasibility A3) is guaranteed by the use of minimum-jerk profiles, while the bounded initialization error A4) captures ubiquitous physical offsets such as sensor noise and gravity-induced sagging. Finally, the bound on RL actions A5) is strictly enforced in software through a tanh activation mapping the policy output to the physical torque limits, ensuring both theoretical stability and operational safety. Note that assumptions A1)-A4) are typically used in ILC framework to a single , see, e.g., Ahn et al. (1993); Pierallini et al. (2023). Moreover, thanks to A3), there exist a desired control input , such that and .
3.3. Optimal control formulation
Let be a functional cost to be minimized w.r.t. the control that is parametrized by , i.e.,
minimize
subject to
(4)
Note that the analytic form of is not available and has to be approximated. For this reason, the definition of the running cost is more accessible and easier to exploit in an iterative formulation. The problem can be addressed within an RL framework to solve a discrete stochastic optimal control problem by exploring and exploiting the sample space, see, e.g., Sutton and Barto (2018). We can rewrite the functional cost in (4) as , where is the running cost, is the discounted factor, and is the gaussian conditional distribution w.r.t. .
3.4. Goals
The goal of this work is to design a new learning controller framework capable of:
G1) solving the trajectory tracking problem for (2), i.e., finding a control such that , , .
G2) reducing the asymptotic convergence limits of the baseline ILC bounds, i.e.,
where are the new bounds, and represent the asymptotic upper bounds of the standard ILC, see, e.g., Pierallini et al. (2023).
Finally, the controller must be mostly feedforward to preserve the robots’ elasticity.
4. Problem solution
In this section, we propose a novel control framework. We develop the solution step-by-step, i.e., building on the results achieved at each step for the successive ones. The new control input combines model-based and learned terms, i.e., Fig. 1. Firstly, we describe how to solve a trajectory tracking control in an iterative process with ILC, and how, without loss of generality, a-priori knowledge can be included. Secondly, we extend the ILC approach by embedding an RL framework to optimize the initial guess control and the successive contributions. We show that the new control minimizes the upper bound of the convergence for multiple trajectories.
4.1. Iterative Learning Control framework
Recalling system (2) under assumption A1)-A5), and a , the pure feedforward control law is
where is the iteration and time varying learning gain, are the tunable
Page 5 of 16 control gains, which affect the convergence velocity Pierallini et al. (2023), and is the error signal, defined as . We omit the left index for the sake of simplicity. The term follows Einstein summation convention, i.e.
Theorem 1. Consider the system in (2) and a task with to be the desired output trajectory. Under A1)-A5), if the learning gain in (8) satisfies
then
Proof. Given the controller (8) and (9) we derive
where and . Given A2) and defining , , , we compute
(15)
Defining and , where and . Recalling (10), we rewrite (15) as
Given assumption A2) we write the following inequality for (2), . Applying Gronwall's Lemma leads to
(17)
where , .
Substituting (17) in (16) and applying the -norm, we obtain
(18)
Solving integral in (18), rearranging terms, and assuming that , leads to , where , . Defining , , and recalling A5), we write the following inequalities
For hypotheses , then large enough such that , and satisfying the assumption . Substituting in (20) the previous trials, we have
Then, when the index j approaches +∞, we have
This proves (11).
Considering (22), we apply -norm and to (17), leads to
This proves (12).
Finally, considering (22) and (23), we apply -norm to when , obtaining the following inequality
where . This proves (13).
The proof of Theorem 1 is completed.
It is important to note that Theorem 1 holds for any output function that yields a well-defined relative degree r. While the specific value of r and the nature of the zero dynamics influence the synthesis of the learning operators, the fundamental stability structure and the form of the asymptotic error bounds remain invariant Pierallini et al. (2025); Aarnoudse et al. (2024); Axehill et al. (2014).
Given the same assumptions of Theorem 1, we can derive (12), , i.e., , as shown in Proof 4.1, where we use to show explicitly the dependency of -th process. Recalling A2), one can write the following inequality
which achieves G1).
Page 6 of 16
Remark 1. Although the convergence results in Theorem 1 align with those of standard ILC, the underlying control problem is fundamentally distinct due to the active presence of the RL contribution in the loop. Theorem 1 establishes a formal bound on the tracking error, specifically accounting for an additional control action. The only assumption used for the control is A5). In our implementation, see Sec. 2.3, this assumption is strictly enforced by saturating the PPO policy via a tanh activation function. This design guarantees that the RL control action strictly satisfies even during stochastic exploration. Consequently, while the derived bounds (11)-(13) are conservative, as shown in Wei et al. (2016); Shen and Zhang (2020); Pierallini et al. (2023), they validate the feasibility of the coupled RL-ILC architecture. Furthermore, the asymptotic error bound in (22) depends linearly on the bound via the term . By expanding the definitions of and , we obtain that given a , it is always possible to tune the control gains and the learning gain to reduce , achieving the same asymptotic convergence bound regardless of the value of .
Note that the initial guess in law (8) can be arbitrarily chosen. Typically, it relies on partial and nominal knowledge of the model or a constant input required to keep the robot in the desired starting position of the trajectory. It is common for the initial guess to use the available a-priori knowledge, as shown in Pierallini et al. (2023). For this reason, the choice of , where is model-based knowledge, is recommended. In this framework, model-based control can be considered an external contribution w.r.t. ILC. Moreover, a pure-feedforward ILC law cannot reject the initial offset during the current iteration, causing degradation on tracking performance. Instead, non-repetitive initial shift modifies the ILC action of the next iteration, which could have a different initial offset. Conversely, a feedback term can compensate for the initial shift, improving the overall robustness of the iterative process. The final control law can then be rewritten as follows
where we set , , and is the feedback control contribution with low gains to not alter the system compliance drastically.
4.2. Main result: Reinforced Iterative Learning Control law
The most recent successful model-free on-policy RL method is the PPO algorithm Schulman et al. (2017); Rudin et al. (2022), due to its proven stability and efficiency in the state-of-the-art. The on-policy nature of PPO is particularly advantageous, as it enables direct leverage of the samples generated by the ILC loop. Recalling the optimal problem (4), we consider the control approximated by DNN. The parameter is updated following the gradient policy methods, Schulman et al. (2017), as follows
Algorithm 1: Reinforced Iterative Learning Control
Input: SYSTEM ; Controller parameters: , , , ; PPO hyperparameters: ; Additional parameters: , , ; Flag ; // for RL updating
Initialize: , ; // buffers ; // init RL control ; // set memory dim ; // process stack PPO ; // init PPO
while do SYSTEM domain randomization; ; Reset: , , , ; while do SYSTEM ; // set initial condition while do ; // error ; // Eq. (2) ; // Eq. (26) SYSTEM ; // update system ; ; // Eq. (28) ; // update ; // update buffer ; // update buffer if then ; // Eq. (27) end end ; // Eq. (8) end end
where , where , is a clipping function, is a hyperparameter, and is the advantage function, Sutton and Barto (2018). is a regularization loss to avoid sub-optimal control and improve training stability.
Remark 2. Recalling (21) in Proof 4.1, we can extend it to define the bounds of and , . Consequently, all samples are limited in a region of the sample space by the control (8). This limits the RL exploration and enhances the exploitation of sampled ones.
Remark 3. In Theorem 1, the update of the parameter does not influence the convergence of the control law (8).
Considering the system (2), the running cost for a trajectory tracking problem in (4) is inspired by the theory of NOILC, Amann et al. (1996), as follows
Page 7 of 16 where we reformulate to explicit the dependence on , and are positive weights. In the case of , the optimal control of (28) in (4) has to cancel the dynamics of the system perfectly and follow the desired control, i.e.,
where is the optimal parameter. If the (29) is satisfied, the error is identically zero , and the ILC is never updated. As a consequence, . If , the optimal control has to take into account (29) and minimize the initial offset over time according to the definition of (28). However, (29) is practically unusable for multiple reasons. Among these, the desired control is not known a-priori also, and the perfect knowledge of the model is not at our disposal. Further, the exploration and exploitation of sample space through the RL algorithm has to predict internally it to define an approximate function of (sub-)optimal .
Proposition 1. Consider the system (2) under Assumptions A1)–A5). Let , , and be the asymptotic error bounds defined in (22), (23), and (24), respectively. Let , , and be the asymptotic error bounds for the standalone ILC, and let and be the contraction rates for the RILC and standalone ILC, respectively. If the following condition holds
then the RILC framework achieves strictly lower asymptotic error bounds, i.e.,
Proof. Setting in (22)–(24) yields the standalone ILC bounds
where .
Given condition (30), add to both sides and divide by , we have
from (22) and (34), the left-hand side equals and the right-hand side equals , hence
which directly yields (31).
From the definitions of and in (23) and (35):
where the inequality follows from (38). This proves (32).
To verify (33), substitute the bounds from (24) and (36):
Since is monotone increasing in and from (31), we have . Together with from (32) and , it follows that , proving (33). This completes the proof.
Proposition 1 achieves G2), showing that RILC yields tighter asymptotic error bounds than standalone ILC. Finally, a domain randomization can be employed to facilitate the sim-to-real transfer, ensuring that the learned RL control is robust and effective when applied to real-world scenarios. This control architecture is summarized in the pseudocode of Algorithm 1. The RL policy receives the previous and actual ILC trial information to compute a real-time correction, creating a coupling between the two learning loops.
5. Validation
In this section, we validate the effectiveness of the RILC by comparing it with baseline ILC and RL. Moreover, only for numerical experiments, we implement NOILC to highlight the improvements achieved by the proposed learning-based approach. We start by providing a detailed description of the setup used and its subsequent employment in real-world experiments. The metric used to evaluate tracking performance is root mean square error (RMSE).
5.1. Setup
The experiments are conducted on a 4-DoFs arm, Fig. 2, with two EM-Acts Gopanunni et al. (2024), a modular lightweight SEA. Note that this robot is underactuated; we can set the motor position, which is connected to link one via a linear spring Gopanunni et al. (2024). However, the actuator motor dynamics are not exactly known, introducing a mismatch. The experimental platform relies exclusively on direct measurements of the motor-side position, acquired using an AS5047P absolute magnetic on-axis encoder integrated into the mjbots moteus r4.4 controllers. This sensor provides a 14-bit resolution. Motor velocity is estimated through the controller's onboard second-order digital PLL filter, providing a clean feedback signal for the low-level control loop. No link-side sensors or external state observers are employed in the control scheme.
The desired trajectory is a minimum jerk signal in motor space, , that starts from and reaches the final position in , i.e., . This collocated configuration is suited for applications where the task tolerance is compatible with the joint deflection. Motor-side tracking avoids the need for state observers, providing a clean experimental baseline for the RL-ILC architecture. While link-side control is theoretically possible, as demonstrated in Appendix A, it would require state observers and introduce
Page 8 of 16

(a)

(b)
Figure 2: Fig.s 2a and 2b represent the control scheme of Reinforced Iterative Learning Control (RILC) used in the training phase and experiments, respectively. In simulations, a stochastic policy (to explore the sample space) and parameters from Tab. 2 are employed, while a deterministic policy is deployed in real-world experiments. For further details, see Alg. 1.
sensitivity to estimation errors, making it difficult to isolate the learning performance. The final position is randomly selected during policy training and by a human operator in real-world tests. A minimum-jerk tracking task allows for a quantification of the synergistic contribution between ILC and RL. It is important to note that the execution time imposes a dynamic challenge for a compliant, under-actuated manipulator. Furthermore, the system is underactuated and can have a shift in the initial position of . While the 1-second minimum jerk trajectories employed in our tests possess a primary frequency content concentrated below the natural frequency of the system, the joint compliance dynamics remain present. Even at low velocities, the nonlinear link dynamics interact with the elastic transmission and reflect onto the motor side as state-dependent load disturbances governed by the spring coupling. On the control side, the model-based (MB) control in (26) is defined by , i.e., gravity compensation, the updating law of ILC (8) is chosen as PD-type, , where and are time-and-episode-invariant diagonal matrix, while higher-order gains are set to zero. We omit the matrix for the sake of clarity. In addition, is chosen to be null, and the starting configuration is an equilibrium point of the system. We also added a PD feedback control (FB), i.e., , defined by a constant diagonal matrix and . In real-world tests, the RL control is defined by a deterministic policy, i.e., . We consider the feedback control as low-level; RL and ILC, which are updated at a lower frequency, are considered high-level control, see Tab. 2 and Fig. 2.
5.2. Training
The training phase of the RILC control is done using the PPO algorithm and the dynamics of the robot is simulated using the available data of actuator identification in Gopanunni et al. (2024). The parameters used during training are summarized in Table 2; for other values, see the default settings in Raffin et al. (2021). During the training, we applied domain randomization to ensure the sim-to-real transfer by perturbing joint friction values and adjusting PD feedback gains. For further details, please refer to Tab. 2.
Table 2 Parameters for Reinforced Iterative Learning Control (RILC) training with PPO algorithm. We denote with the uniform distribution with the bound and .
| RL Parameters | Value |
|---|---|
| low level control frequency [Hz] | 500 |
| high level control frequency [Hz] | 200 |
| policy frequency [Hz] | 50 |
| RL control limits [N] | [-2,2] |
| actuator position limits [rad] | [-π,π] |
| number of policy update | 200 |
| number of environments | 64 |
| number of episodes with fixed task | 5 |
| number of episodes with fixed policy | 5 |
| policy model | MLP |
| hidden layer for actor neural network | [64,64] |
| hidden layer for critic neural network | [64,64] |
| joint friction [N m] | |
| gain [N m rad] | |
| gain [N m s rad] |
For more implementation details see Github.
We define the function , with , i.e. . Note that if , the RL control does not consider the evolution of ILC w.r.t. iterations. As a result, it may fail to obtain a constructive collaboration between RL and ILC. Hence, the ILC contribution could be seen as an external disturbance. Furthermore, to ensure coherence between the current RL control and inputs of past iterations, the parameter has to remain unchanged for the current iterative process, or a mechanism for is needed to take into account policy updating. The control policy is linearly interpolated to reach the low-level control frequency. To mitigate interpolation delay and ensure effective feedforward control, the policy
Page 9 of 16

Figure 3: Reward functions evolution of baseline Reinforcement Learning (RL) and Reinforced Iterative Learning Control (RILC) approaches w.r.t. policy updating. The total 'Reward', (41)-(45), and partial cumulative reward dependent on the error, i.e., 'Reward (Error)', (41), are computed as the mean across all training environments during the simulation.
is trained on discrete-time shift observations based on pre-computed evolution of the ILC and the desired trajectory.
The running cost used is divided into dense and sparse types, e.g. in Rudin et al. (2022): running cost obtained in each time step t, i.e., continuously, and running cost provided only upon reaching a specific goal or flag, i.e., event-driven. In Sec. 4, the explicit running cost introduced are extended as follows:
where . The weights in the reward function (41)-(42) were empirically tuned to balance tracking accuracy and control smoothness. We define a sparse running cost for t = 0, to discourage RL control usage from the start equilibrium configuration, and , to encourage reducing the root mean square error (RMSE) over time and to minimize the final position error, as follows:
5.3. Simulation results
In this subsection, we benchmark the proposed RILC against RL, ILC, NOILC, and C-ILC Tsurumoto et al. (2024) as a multi-reference baseline. Implementation details of all baseline controllers are provided in Appendix B.
We test the performance of all controllers in the whole workspace, evaluating a set of 3000 randomized trajectories. The training of the C-ILC, RL and RILC is restricted in a reduced workspace, i.e., and . We reduce the number of environments to 8 to ensure fair exploration of the workspace size. To validate the robustness of the proposed controller, we tested it in the presence of model mismatches, which were not considered in the training. We set a gaussian disturbance to the control input, i.e., [Nm]. This disturbance is used to simulate the unstructured uncertainties inherent in SEA, e.g., unmodeled friction.
The statistical results in terms of terminal desired position RMSE, (median (Median), mean (Mean), standard deviation (Std), minimum (Min), maximum (Max)), are summarized in Tab. 3. The test cases are categorized by suffixes to denote the experimental condition, 'N' and 'M' to indicate nominal and mismatched conditions, and the iteration number. Fig. 4a visually compares these results in terms of RMSE for the corresponding terminal desired positions. Specifically, for the trajectory , Fig.s 4b and 4c illustrate the trajectory tracking performance and the RMSE evolution over iterations, respectively, comparing the response in both nominal and mismatched scenarios.
5.4. Experiment results
In this subsection, we report the results of the real-world employment of RILC, i.e., Alg. 1, using the setup described in Sec. 5.1. We compare the results for different controllers, i.e., RL, ILC, and RILC. We report two types of tests, namely Test 1 and Test 2, each of which validates a specific feature of the proposed framework.
Test 1 To compare the effectiveness of RILC w.r.t. ILC, the trajectory following task is conducted for the four target configurations, e.g., . The tracking performances are shown in Fig. 5. We analyze the transient convergence phase using a first-order exponential model. For ILC, the RMSE evolution is modeled as , and for RILC as , where and denote the tracking RMSE at iteration . With a slight abuse of notation, we employ the same symbols and as in Proposition 1 to denote their empirical estimates. We identify the initialization gain and the contraction ratio , quantifying the zero-shot error reduction and the relative convergence rate. If , the two exponential curves intersect at a finite crossover iteration , defining the boundary within which RILC's initialization advantage dominates. The model is fitted via log-linear regression over an adaptive transient window, as discussed in Section 6. The results are shown in Fig. 5 and Table 4. The control contributions for the case are illustrated in Fig. 6a, and the tracking output is shown in Fig. 6b. Finally, Fig. 7 shows a photo-sequence of reaching using RILC.
Test 2 We tested the tracking performance in the presence of a unmodeled change in the dynamics of the robot, to validate the adaptability of proposed framework in the presence of such disturbances, Fig. 8a, during trajectory following with . The disturbance is simulated by an
Page 10 of 16
Table 3 RMSE statistics for Iterative Learning Control (ILC), Norm-Optimal Iterative Learning Control (NOILC), Combined Iterative Learning Control (C-ILC), Reinforcement Learning (RL), and Reinforced Iterative Learning Control (RILC), computed over 3000 trajectories. Suffixes '-N' and '-M' denote nominal and mismatched conditions, while numbers indicate the iteration index.
(a) Nominal
| Test-N | Median | Mean | Std | Min | Max |
|---|---|---|---|---|---|
| ILC-N0 | 0.798 | 0.773 | 0.284 | 0.026 | 1.519 |
| ILC-N2 | 0.251 | 0.269 | 0.097 | 0.017 | 0.476 |
| ILC-N20 | 0.003 | 0.004 | 0.003 | 0.001 | 0.017 |
| NOILC-N0 | 0.722 | 0.709 | 0.282 | 0.022 | 1.468 |
| NOILC-N2 | 0.234 | 0.244 | 0.098 | 0.012 | 0.453 |
| NOILC-N20 | 0.002 | 0.002 | 0.001 | 0.0001 | 0.008 |
| C-ILC-N0 | 0.586 | 0.596 | 0.289 | 0.076 | 1.233 |
| C-ILC-N2 | 0.210 | 0.213 | 0.089 | 0.035 | 0.513 |
| C-ILC-N20 | 0.059 | 0.064 | 0.037 | 0.005 | 0.185 |
| RL-N0 | 0.251 | 0.279 | 0.211 | 0.005 | 1.050 |
| RL-N2 | 0.251 | 0.279 | 0.211 | 0.005 | 1.050 |
| RL-N20 | 0.251 | 0.279 | 0.211 | 0.005 | 1.050 |
| RILC-N0 | 0.182 | 0.218 | 0.162 | 0.014 | 0.713 |
| RILC-N2 | 0.127 | 0.137 | 0.093 | 0.010 | 0.399 |
| RILC-N20 | 0.018 | 0.023 | 0.020 | 0.001 | 0.079 |
(b) Mismatched
| Test-M | Median | Mean | Std | Min | Max |
|---|---|---|---|---|---|
| ILC-M0 | 0.797 | 0.773 | 0.284 | 0.046 | 1.511 |
| ILC-M2 | 0.268 | 0.279 | 0.101 | 0.031 | 0.600 |
| ILC-M20 | 0.089 | 0.112 | 0.068 | 0.027 | 0.551 |
| NOILC-M0 | 0.723 | 0.710 | 0.281 | 0.044 | 1.459 |
| NOILC-M2 | 0.249 | 0.256 | 0.102 | 0.028 | 0.574 |
| NOILC-M20 | 0.086 | 0.107 | 0.064 | 0.024 | 0.515 |
| C-ILC-M0 | 0.586 | 0.596 | 0.288 | 0.070 | 1.230 |
| C-ILC-M2 | 0.213 | 0.216 | 0.090 | 0.031 | 0.561 |
| C-ILC-M20 | 0.072 | 0.082 | 0.044 | 0.018 | 0.334 |
| RL-M0 | 0.256 | 0.287 | 0.207 | 0.017 | 1.059 |
| RL-M2 | 0.256 | 0.287 | 0.206 | 0.020 | 1.042 |
| RL-M20 | 0.256 | 0.287 | 0.207 | 0.020 | 1.055 |
| RILC-M0 | 0.188 | 0.225 | 0.159 | 0.022 | 0.756 |
| RILC-M2 | 0.137 | 0.152 | 0.093 | 0.016 | 0.449 |
| RILC-M20 | 0.063 | 0.071 | 0.035 | 0.018 | 0.311 |
Trained Workspace

(a)
(b)
(c)
Figure 4: Simulation results analysis for different controllers: Iteative Learning Control (ILC), Norm-Optimal Iterative Learning Control (NOILC), Combined Iterative Learning Control (C-ILC), Reinforcement Learning (RL), Reinforced Iterative Learning Control (RILC). (a) RMSE comparison over 3000 randomized trajectories: each point indicates a , color-mapped by the resulting RMSE. (b)-(c) Tracking performance and RMSE evolution for the specific trajectory . The suffixes 'N' and 'M' denote nominal and mismatched conditions, while the numerical suffixes indicate the iteration index.
Page 11 of 16

Figure 5: RMSE and crossover analysis for the four real-robot target configurations. Dashed and dash-dotted lines show the fitted first-order models for Iterative Learning Control (ILC) and Reinforced Iterative Learning Control (RILC). The vertical line marks the crossover iteration of the fitted models.
Table 4 Crossover analysis for the real-robot experiments. Parameters and are the initial tracking errors for ILC and RILC, respectively; and are the corresponding fitted contraction rates; and is the crossover iteration.
| Target | |||||
|---|---|---|---|---|---|
| 0.660 | 0.140 | 0.666 | 0.812 | 7.9 | |
| 0.682 | 0.063 | 0.762 | 0.973 | 9.8 | |
| 0.885 | 0.261 | 0.625 | 0.794 | 5.1 | |
| 0.989 | 0.094 | 0.730 | 0.884 | 12.2 |
additional weight of applied at the tip of the robot. Note that the additional mass is not modeled in the dynamics of the system and is around of the total mass of the robot. These tests are conducted with different controllers, i.e., RL, ILC, and RILC, to highlight the robustness of the control employed. The tracking performance is shown in Fig. 8b. The tracking outputs evolution before the application of disturbance, when it occurs and the new convergence, is illustrated in Fig. 9.
6. Discussion
In this section, we discuss the results presented in Sec. 5.
The RILC framework shows good tracking performance in any test, achieving the Goals of this work. Regarding the simulation results, Fig. 3, shows the benefits of the concurrent application of ILC during the training. Indeed, the training of RILC, after the initial phase, reaches a higher reward value than the RL baseline. Further, the comparison in Fig. 3 indicates that RILC yields a more precise tracking trajectory under the same reward function. It is worth noting that although the reward function increased faster in the initial phase of baseline RL it is not sufficient to obtain a precise tracking performance. Conversely, the use of ILC helps to maximize the reward functions to achieve good tracking. Tab. 3 and Fig. 4a evidence a stronger generalization capability w.r.t. RL, also when facing trajectories not used in the training, demonstrating that the high-quality samples generated by the RILC loop contribute to learning a more robust policy. Moreover, the proposed framework is able to improve performance over subsequent trials, in contrast to the static deployment of the baseline RL policy.
Table 3 enables a comprehensive comparison of all methods, namely RILC, RL, ILC, NOILC, and C-ILC. At iteration 0, RILC provides the best zero-shot initialization with a median error of 0.182 rad, significantly lower than the other baselines. At convergence in nominal conditions, NOILC achieves the lowest error floor, followed by ILC, while RILC plateaus at 0.018 due to the approximation nature of the neural policy. C-ILC, thanks to its pre-trained basis, achieves a lower median error at iteration 0 than ILC and NOILC, though higher than RILC. Its performance remains similar across nominal and mismatched conditions, reflecting the robustness of the basis functions to unmodeled dynamics, while its asymptotic convergence in the nominal case remains lower than ILC and NOILC. Under mismatched conditions, instead, RILC converges to the best asymptotic optimum of 0.063, outperforming all other methods, followed by C-ILC. These results highlight that RILC trades marginal nominal asymptotic accuracy for superior rapid adaptation and robustness against model mismatches.
Finally, the real-world experiments presented in Figs. 5 and 8b confirm the effectiveness of the approach. The proposed RILC framework shows general superior performance in terms of RMSE compared to ILC for all trajectories tested while maintaining convergence over iterations, see Fig. 5, showing that G1) and G2) are achieved. Fig. 5 and Table 4 report the crossover analysis, where the RMSE evolution is characterized via a first-order exponential model as . While this model assumes convergence to zero error, it provides a useful local approximation of the learning dynamics during the transient phase before saturation, confirmed by coefficients of determination for ILC and for RILC. The analysis identifies an initialization gain , confirming superior tracking from the very first trial. The first-order models predict a crossover at , where ILC would overtake RILC under ideal convergence. However, this crossover consistently falls beyond the saturation horizon, where the exponential approximation breaks down. Since both controllers reach their practical noise floor before , the crossover is never physically realized and RILC maintains a lower tracking error across all iterations. The higher contraction rates reported in Table 4 do not indicate architectural limitations but follow from the initialization gain reducing the available margin for iterative improvement, since RILC starts closer to the asymptotic floor. This physical interpretation is further supported by the tracking profiles in
Page 12 of 16

(a)

(b)
Figure 6: Experimental analysis for the tracking task with target . (a) Decomposition of control contributions: Feedback (FB), Model-Based (MB), Iterative Learning Control (ILC), Reinforcement Learning (RL), and Total control, at iterations 0-th and 20-th. (b) Output tracking evolution comparing the baseline ILC and the proposed RILC approach.

Figure 7: Photo-sequence of Reinforced Iterative Learning Control (RILC) on tracking trajectory with .

(a)
(b)
Figure 8: Fig. 8a is the photo configuration of the disturbance applying. Fig. 8b shows RMSE over iteration, a disturbance is applied to the robot in iteration 11-th. Comparison of Reinforcement Learning (RL), Iterative Learning Control (ILC), and Reinforced Iterative Learning Control (RILC), approaches for the desired trajectory with .
Fig. 6b, where the first attempt for joint 1 is quite similar to the final one, while joint 2 has lower performance. However, both show improved tracking performance compared to ILC. This performance mismatch is probably due to the gap between the simulated and real models, where joint 2 suffers from

Figure 9: Output tracking evolution for desired trajectory with , without and with (w/) disturbance, in iterations 12-th, 13-th, 22-nd. Comparison of Reinforcement Learning (RL), Iterative Learning Control (ILC), and Reinforced Iterative Learning Control (RILC), approaches.
complex mechanical coupling and nonlinear friction that are difficult to model perfectly in simulation. Although this little degradation of tracking performance, the RILC compensates for it over iterations thanks to the collaborative intervention of ILC.
The effectiveness of the RL-ILC collaboration within the RILC framework is evident by analyzing the control contribution of Fig. 6a. The RL policy provides a highly accurate feedforward initialization. Already at the first trial, the RL torque profile exhibits a correlation of 91.9% and 87.0% for joint 1 and 2, respectively, with the final total
Page 13 of 16 control signal reached at convergence. This high similarity allows RILC to maintain the feedback term stable and bounded below 0.15 Nm root mean square (RMS) throughout the entire learning process. In contrast, standalone ILC requires several iterations to reach such levels, starting with feedback efforts up to 0.467 Nm, i.e., over three times the RMS effort of RILC, to counteract unmodeled dynamics and uncertainties.
Finally, Fig. 8b and Fig. 9 demonstrate that the RL component provides superior robustness against unmodeled disturbances within the same iteration. In Test 2, the application of an unmodeled tip mass causes the peak RMSE of standalone ILC to jump to 0.398 rad. The RILC framework limits this peak to 0.245 rad, reducing the instantaneous impact by 38.4%. Standalone RL maintains a steady tracking error without trial-to-trial improvement. While ILC structurally requires a subsequent trial to incorporate the error into its feedforward memory, RILC maintains a tighter performance floor throughout the disturbance event, confirming its effectiveness in tackling non-repetitive unmodeled dynamics.
7. Conclusion and future work
In this work, we have proposed the Reinforced Iterative Learning Control (RILC) framework, which combines Iterative Learning Control (ILC) and Reinforcement Learning (RL), to address the precise trajectory tracking problem for compliant robots. A key contribution of this work is the derivation of formal convergence guarantees for this combined architecture. This distinguishes RILC from existing approaches based on hyperparameter tuning or additive Residual RL, which often lack theoretical proofs or are limited to single-task robustness without addressing generalization. Unlike methods that decouple learning from execution, we proved that the online RL-ILC interaction is synergistic. These theoretical guarantees provide the formal basis for addressing the generalization problem across multiple desired trajectories.
The numerical and experimental validation on a 4-DoFs underactuated manipulator confirmed the effectiveness of this approach compared to standalone RL, ILC, NOILC, and C-ILC baselines. The results demonstrate that RILC achieves high tracking performance from the very first trial of a new trajectory, effectively overcoming the initialization limitations of standard ILC and NOILC, while maintaining the ability to refine precision over subsequent iterations. Furthermore, the coupling enables ILC to provide high-quality samples that guide the RL training, while the RL policy generalizes across the workspace, outperforming multi-reference ILC approaches on out-of-distribution trajectories. Finally, the framework exhibited superior robustness against unmodeled disturbances and model mismatches, confirming that the collaborative intervention of ILC and RL can effectively bridge the reality gap that each method alone struggles to overcome. These results validate the theoretical guarantees derived in this work, showing that the concurrent RL-ILC coupling preserves convergence while providing cross-trajectory generalization and enhanced robustness.
This work provides a foundation for future optimizations, such as studying the impact of different RL cost functions on the ILC convergence rate. Having demonstrated the convergence and effectiveness of this benchmark, the natural next step is the application of RILC to more complex dynamic interaction environments.
A. Link-side tracking simulation
To evaluate the theoretical generality of the RILC architecture, we conduct a simulation study for link-side position tracking with a target final position . This non-collocated configuration yields a higher relative degree and introduces non-minimum phase zero dynamics, increasing control complexity. Despite this, RILC achieves stable convergence and provides a significantly tighter convergence than standalone ILC, as illustrated in Fig. 10. Fig. 10a shows the distinct evolution of the motor and link positions, due to the joint's elastic dynamics. The ILC update law uses diagonal learning matrices , , , with higher-order gains set to zero. Fig. 10a reports the tracked link position, while Fig. 10b shows the RMSE progression over trials.

(a)

(b)
Figure 10: Simulation results comparison between ILC and RILC for link-side position tracking for final position . (a) Motor and link position trajectories. (b) RMSE evolution over iterations.
B. Baseline implementation details
This section details the implementation of the baseline controllers used in the simulation benchmarks of Section 5.
B.1. Norm-Optimal ILC (NOILC)
The NOILC baseline Amann et al. (1996) is implemented with a trial-domain cost function
Page 14 of 16 where . The weighting matrices are set to . The lifted-domain update law is
where G denotes the lifted system matrix obtained by linearizing the robot dynamics along the desired trajectory.
B.2. Combined ILC (C-ILC)
We adopt the C-ILC framework of Tsurumoto et al. (2023). The C-ILC law is
where is defined in (8), is the basis term and is built from the sampled trajectory evolution using
The iterative update adapts w and per trial
where is the regularized pseudoinverse. The correction term ensures the total feedforward evolves coherently when updates, Tsurumoto et al. (2023). We adopt , , and .
To enable zero-shot transfer, we pre-train w via batch gradient descent on the minimum-jerk trajectories of the reduced workspace, see Section 5.3, stacking the basis matrix , tracking error , and ILC residual across all training trajectories. The batch update is
with learning rate , repeated until convergence.
CRediT authorship contribution statement
Y. De Santis: Writing - review & editing, Writing - original draft, Conceptualization, Software, Methodology, Validation. M. Pierallini: Writing - review & editing, Conceptualization, Methodology. F. Angelini: Writing - review & editing, Conceptualization, Supervision. M. Garabini: Writing - review & editing, Supervision, Project administration, Funding acquisition.
Declaration of competing interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
References
Aarnoudse, L., Pavlov, A., Oomen, T., 2024. A design framework for nonlinear iterative learning control and repetitive control: Applied to three mechatronic case studies. Control Engineering Practice 149, 105976.
Ahn, H.S., Choi, C.H., Kim, K.b., 1993. Iterative learning control for a class of nonlinear systems. Automatica 29, 1575–1578.
Albu-Schäffer, A., Bicchi, A., 2016. Actuators for soft robotics. Springer Handbook of Robotics, 499–530.
Alessi, C., et al., 2024. Pushing with soft robotic arms via deep reinforcement learning. Advanced Intelligent Systems 6, 2300899.
Amann, N., Owens, D.H., Rogers, E., 1996. Iterative learning control for discrete-time systems with exponential rate of convergence. IEE Proceedings-Control Theory and Applications 143, 217–224.
Angelini, F., Della Santina, C., Garabini, M., Bianchi, M., Gasparri, G.M., Grioli, G., Catalano, M.G., Bicchi, A., 2018. Decentralized trajectory tracking control for soft robots interacting with the environment. IEEE Transactions on Robotics 34, 924–935.
Axehill, J.W., Dressler, I., Gunnarsson, S., Robertsson, A., Norrlöf, M., 2014. Estimation-based ilc applied to a parallel kinematic robot. Control Engineering Practice 33, 1–9.
Axelsson, P., Karlsson, R., Norrlöf, M., 2012. Bayesian state estimation of a flexible industrial robot. Control Engineering Practice 20, 1220–1228.
Blanken, L., Boeren, F., Bruijnen, D., Oomen, T., 2016. Batch-to-batch rational feedforward control: from iterative learning to identification approaches, with application to a wafer stage. IEEE/ASME Transactions on Mechatronics 22, 826–837.
Bristow, D.A., Tharayil, M., Alleyne, A.G., 2006. A survey of iterative learning control. IEEE control systems magazine 26, 96–114.
Chen, Y., Chu, B., Freeman, C.T., Liu, Y., 2020. Generalized iterative learning control with mixed system constraints: A gantry robot based verification. Control Engineering Practice 95, 104260.
De Luca, A., Book, W.J., 2016. Robots with flexible elements, in: Springer handbook of robotics. Springer, pp. 243–282.
Eber, J., Bach, N., Jestel, C., Urbann, O., Kerner, S., 2022. Guided reinforcement learning: A review and evaluation for efficient and effective real-world robotics [survey]. IEEE Robotics & Automation Magazine 30, 67–85.
George Thuruthel, T., Ansari, Y., Falotico, E., Laschi, C., 2018. Control strategies for soft robotic manipulators: A survey. Soft robotics 5, 149–163.
Gopanunni, R.K.M., Martignetti, L., Iotti, F., Ranjan, A., Angelini, F., Garabini, M., 2024. Em-act: A modular series elastic actuator for dynamic robots. IEEE Open Journal of the Industrial Electronics Society 5, 468–480.
Gurumurthy, S., Kolter, J.Z., Manchester, Z., 2023. Deep off-policy iterative learning control, in: Learning for Dynamics and Control Conference, PMLR. pp. 639–652.
He, W., Pan, Y., Bo, C., 2025. Iterative learning predictive control method based on reinforcement learning for rubber mixing batch process. IEEE Transactions on Automation Science and Engineering 22, 19266–19278.
Hollerbach, J., Khalil, W., Gautier, M., 2016. Model identification. Springer handbook of robotics, 113–138.
Isidori, A., 1989. Elementary Theory of Nonlinear Feedback for Multi-Input Multi-Output Systems. Springer Berlin Heidelberg, Berlin, Heidelberg. pp. 234–288. URL: https://doi.org/10.1007/978-3-662-02581-9_5, doi:10.1007/978-3-662-02581-9_5.
Jiang, Z., Chu, B., 2022. Norm optimal iterative learning control: A data-driven approach. IFAC-PapersOnLine 55, 482–487.
Johannink, T., Bahl, S., Nair, A., Luo, J., Kumar, A., Loskyll, M., Ojea, J.A., Solowjow, E., Levine, S., 2019. Residual reinforcement learning for robot control, in: 2019 international conference on robotics and automation (ICRA), IEEE. pp. 6023–6029.
Kaelbling, L.P., Littman, M.L., Moore, A.W., 1996. Reinforcement learning: A survey. Journal of artificial intelligence research 4, 237–285.
Kober, J., Bagnell, J.A., Peters, J., 2013. Reinforcement learning in robotics: A survey. International Journal of Robotics Research 32, 1238–1274. doi:10.1177/0278364913495721.
Li, J., Li, Z., Li, X., Feng, Y., Hu, Y., Xu, B., 2020. Skill learning strategy based on dynamic motion primitives for human–robot cooperative manipulation. IEEE Transactions on Cognitive and Developmental Systems 13, 105–117.
Page 15 of 16
Ma, H., Büchler, D., Schölkopf, B., Muehlebach, M., 2023. Reinforcement learning with model-based feedforward inputs for robotic table tennis. Autonomous Robots 47, 1387–1403.
Mehta, B., Diaz, M., Golemo, F., Pal, C.J., Paull, L., 2020. Active domain randomization, in: Conference on Robot Learning, PMLR. pp. 1162–1176.
Meindl, M., Bachhuber, S., Seel, T., 2024. Ai-mole: Autonomous iterative motion learning for unknown nonlinear dynamics with extensive experimental validation. Control Engineering Practice 145, 105879.
Mezghani, M., Roux, G., Cabassud, M., Le Lann, M.V., Dahhou, B., Casamatta, G., 2002. Application of iterative learning control to an exothermic semibatch chemical reactor. IEEE Transactions on Control Systems Technology 10, 822–834.
Narvekar, S., Peng, B., Leonetti, M., Sinapov, J., Taylor, M.E., Stone, P., 2020. Curriculum learning for reinforcement learning domains: A framework and survey. Journal of Machine Learning Research 21, 1–50.
Nguyen, L.V., Phung, M.D., Ha, Q.P., 2021. Iterative learning sliding mode control for uav trajectory tracking. Electronics 10, 2474.
Pavlichenko, D., Behnke, S., 2022. Real-robot deep reinforcement learning: Improving trajectory tracking of flexible-joint manipulator with reference correction, in: 2022 International Conference on Robotics and Automation (ICRA), pp. 2671–2677. doi:10.1109/ICRA46639.2022.9812023.
Peters, J., Lee, D.D., Kober, J., Nguyen-Tuong, D., Bagnell, J.A., Schaal, S., 2016. Robot learning. Springer Handbook of Robotics, 357–398.
Pierallini, M., Angelini, F., Mengacci, R., Palleschi, A., Bicchi, A., Garabini, M., 2021. A robust iterative learning control for continuous-time nonlinear systems with disturbances. IEEE Access 9, 147471–147480.
Pierallini, M., Angelini, F., Mengacci, R., Palleschi, A., Bicchi, A., Garabini, M., 2023. Iterative learning control for compliant underactuated arms. IEEE Transactions on Systems, Man, and Cybernetics: Systems 53, 3810–3822.
Pierallini, M., Gopanunni, R.K.M., Angelini, F., Bicchi, A., Garabini, M., 2025. Fishing for data: Modeling, optimal planning, and iterative learning control for flexible link robots. IEEE Transactions on Control Systems Technology 33, 1667–1683.
Pratt, G.A., Williamson, M.M., 1995. Series elastic actuators, in: Proceedings 1995 IEEE/RSJ international conference on intelligent robots and systems. Human robot interaction and cooperative robots, IEEE. pp. 399–406.
Raffin, A., Hill, A., Gleave, A., Kanervisto, A., Ernestus, M., Dormann, N., 2021. Stable-baselines3: Reliable reinforcement learning implementations. Journal of Machine Learning Research 22, 1–8.
Rsetam, K., Cao, Z., Man, Z., 2019. Cascaded-extended-state-observer-based sliding-mode control for underactuated flexible joint robot. IEEE Transactions on Industrial Electronics 67, 10822–10832.
Rudin, N., Hoeller, D., Reist, P., Hutter, M., 2022. Learning to walk in minutes using massively parallel deep reinforcement learning, in: Conference on Robot Learning, PMLR. pp. 91–100.
Sambhus, R., Gokce, A., Welch, S., Herron, C.W., Leonessa, A., 2023. Real-time model-free deep reinforcement learning for force control of a series elastic actuator, in: 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 5645–5652. doi:10.1109/IROS55552.2023.10341751.
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., Klimov, O., 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.
Shao, X., Pustina, P., Stölzle, M., Sun, G., De Luca, A., Wu, L., Della Santina, C., 2024. Model-based control for soft robots with system uncertainties and input saturation. IEEE Transactions on Industrial Electronics 71, 7435–7444.
Shen, D., Zhang, C., 2020. Zero-error tracking control under unified quantized iterative learning framework via encoding–decoding method. IEEE Transactions on Cybernetics 52, 1979–1991.
Soleimani, E., Sedigh, A.K., Nikoofard, A., 2025. Data-driven reinforcement learning-based forgetting factor iterative learning control. IEEE Transactions on Automation Science and Engineering 22, 12245–12256.
Sun, X., Freeman, C.T., 2024. Parameterised function ilc with application to stroke rehabilitation. Control Engineering Practice 145, 105878.
Sutton, R.S., Barto, A.G., 2018. Reinforcement learning: An introduction. MIT press.
Talole, S.E., Kolhe, J.P., Phadke, S.B., 2009. Extended-state-observer-based control of flexible-joint system with experimental validation. IEEE Transactions on Industrial Electronics 57, 1411–1419.
Tsurumoto, K., Ohnishi, W., Koseki, T., 2023. Task flexible and high performance ILC: Preliminary analysis of combining a basis function and frequency-domain approach. IFAC-PapersOnLine 56, 1907–1912. doi:10.1016/j.ifacol.2023.10.1080. 22nd IFAC World Congress.
Tsurumoto, K., Ohnishi, W., Koseki, T., van Haren, M., Oomen, T., 2024. Combined time-domain optimization design for task-flexible and high performance ILC, in: 2024 European Control Conference (ECC), pp. 1190–1195. doi:10.23919/ECC64448.2024.10590964.
Wei, Z.B., Quan, Q., Cai, K.Y., 2016. Output feedback ilc for a class of nonminimum phase nonlinear systems with input saturation: An additive-state-decomposition-based method. IEEE Transactions on Automatic Control 62, 502–508.
Xu, X., Xie, H., Shi, J., 2020. Iterative learning control (ilc) guided reinforcement learning control (rlc) scheme for batch processes, in: 2020 IEEE 9th Data Driven Control and Learning Systems Conference (DDCLS), IEEE. pp. 241–246.
Yan, Z., Lai, X., Meng, Q., She, J., Wu, M., 2023. Time-varying disturbance-observer-based tracking control of uncertain flexible-joint manipulator. Control Engineering Practice 139, 105624.
Yang, L., Chen, C., Mu, B., Zou, M., Wang, Y., Yin, K., 2026. A reinforcement iterative learning control method for suppressing interior pressure fluctuations in high-speed trains traversing extreme tunnels. Control Engineering Practice 167, 106637.
Zhang, Y., Chu, B., Shu, Z., 2019. A preliminary study on the relationship between iterative learning control and reinforcement learning. IFAC-PapersOnLine 52, 314–319.
Page 16 of 16