Papers
Topics
Authors
Recent
Search
2000 character limit reached

Iterated Racing (IR) Algorithms

Updated 16 November 2025
  • Iterated Racing (IR) is a data-driven control framework that iteratively refines trajectory planning using historic lap information for time-optimality and safety.
  • The method leverages parallel local planning with iLQR and spatial ILC techniques to solve multiple short-horizon optimal control problems simultaneously.
  • Empirical results demonstrate significant improvements in lap times and overtaking success for both vehicle and drone racing, ensuring real-time, collision-free performance.

Iterated Racing (IR) is a class of algorithms for time-optimal trajectory generation in autonomous racing environments that leverage iterative learning from previous laps to synthesize short-horizon, collision-free trajectories. In IR, the control strategy unifies lap-time minimization and obstacle avoidance using past experience, frequently employing iterative optimal control techniques such as i2LQR or spatial Iterative Learning Control (ILC). These approaches systematically update the racing vehicle's strategy at each time step in light of historic performance data, enabling rapid adaptation to dynamic environments and real-time computation suitable for multi-agent competitive racing scenarios (Zeng et al., 13 Jul 2025, Lv et al., 2023).

1. Formal Problem Statement

IR addresses the problem of synthesizing a time-optimal and safe trajectory for an agent (land vehicle or aerial drone) on a closed or partially closed course populated by static or dynamic obstacles. At each iteration or lap, the agent's state is updated, and the control law generates a local plan by optimizing a cost functional under dynamic, environmental, and safety constraints.

For ground vehicles, the state at time tt is xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T, with control input utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T, corresponding to the Frenet frame bicycle model. The discrete dynamics are linearized as: xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t} with a prediction horizon NN (e.g., N=12N=12). Candidate terminal states {zg}g=1K\{z_g\}_{g=1}^K are selected as KK nearest neighbors from the historized lap data, using a weighted norm for similarity. Each candidate yields a separate short-horizon optimal control problem, minimizing: J(g)=(xt+Ntzg)TQN(xt+Ntzg)+k=0N1ut+ktR2+k=1N1ut+ktut+k1tdR2+k=0N1pobstaclescobs(xt+kt,xp,t+kt)J^{(g)} = (x_{t+N|t} - z_g)^T Q_N (x_{t+N|t} - z_g) + \sum_{k=0}^{N-1}\|u_{t+k|t}\|_R^2 + \sum_{k=1}^{N-1}\|u_{t+k|t} - u_{t+k-1|t}\|_{dR}^2 + \sum_{k=0}^{N-1}\sum_{p\in \text{obstacles}} c_{\mathrm{obs}}(x_{t+k|t}, x_{p,t+k|t}) subject to state, input, and collision-avoidance constraints.

For spatial ILC in drone racing, the state comprises position p(l)p(l) and velocity xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T0 parameterized by spatial coordinate xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T1 along the path. The total time is given by xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T2, and the objective is to minimize xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T3 via the velocity control law xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T4 using a tube constraint xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T5.

2. Core Algorithmic Principles

Both IR for vehicle and drone racing adopts an iterative, data-driven paradigm:

  1. Historic Lap Utilization: At each iteration, a memory bank holds all previous xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T6 pairs and associated cost-to-go values (remaining lap time). Terminal state candidates for planning are drawn from the xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T7 nearest historic states with minimal cost-to-go.
  2. Parallelized Local Planning: For each candidate, a short-horizon optimal control problem (quadratic or otherwise) is solved in parallel (xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T8), yielding multiple control proposals.
  3. Iterative Control Law Update: Central to spatial ILC implementations, the control law is updated after each lap based on path error and its spatial gradient, mimicking the iterative improvement process of skilled human racers.
  4. Adaptive Collision Avoidance: Collision penalties are enforced using exponential barrier functions applied to ellipse-based pairwise safety conditions. If post-solution constraints are violated, barrier coefficients are increased, or trajectory tracking weights are softened, and the problem is re-solved.

A high-level schematic for IR-based ground vehicle planning is summarized as follows:

Step Key Operation Output
State Update Extract xtR6=[vx,vy,ωz,eψ,sc,ey]Tx_t \in \mathbb{R}^6 = [v_x, v_y, \omega_z, e_\psi, s_c, e_y]^T9; retrieve utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T0 nearest utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T1 from history candidate terminal states
Parallel Plan Solve utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T2 iLQR problems with individual utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T3, including soft constraints utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T4 candidate trajectories
Collision Check Evaluate candidate for collision/safety violations; adapt penalties collision-free trajectory
Control Apply Select optimal solution; apply first input to plant actuator command

3. Implementation and Computational Complexity

IR leverages the structure of the iLQR algorithm for fast, local optimization with dynamic linearization and quadratic cost approximation. Each backward–forward pass has complexity utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T5 per candidate, where utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T6 is state dimension and utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T7 is input dimension. Practical parameters (utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T8) yield low per-solve cost. Parallelization (e.g., vectorized CasADi with IPOPT) across utR2=[a,δ]Tu_t \in \mathbb{R}^2 = [a, \delta]^T9 candidates enables operation at rates exceeding xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}0 Hz on standard multi-core CPUs.

Soft-constraint violations are addressed by local penalty weighting adjustments and typically require only xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}1–xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}2 additional backward–forward passes per step. Average computation per time step is approximately xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}3 ms, supporting real-time control.

Drone racing IR (spatial ILC) implementation is model-free: it requires no prior knowledge of system parameter xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}4 or full dynamics. Each lap, velocity profiles xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}5 are iteratively refined using PD-style learning updates driven by local path error and its spatial derivative, with a bounded “activation” function balancing safety vs. aggressiveness in speed adaptation.

4. Collision Avoidance and Safety Enforcement

In IR, safety is ensured via two-stage restrictions:

  • Soft Constraints: The exponential barrier penalty,

xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}6

penalizes elliptical-shaped pairwise proximity violations (with xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}7 set from vehicle geometry, speed, and margin). These are interiorized to the optimal control problem.

  • Explicit Hard Checks: After trajectory optimization, final collision-free conditions are checked explicitly: if violated,

xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}8

the penalty weights are increased and the trajectory recomputed. This iterative weighting is essential for handling the variety of multi-vehicle interactions encountered in racing environments.

Moving obstacles (other cars) are assumed to provide open-loop predicted trajectories, typically following known feedback (PID) curves, with no interactive planning assumptions.

5. Empirical Performance and Comparisons

Extensive simulation and real-world experiments validate IR's efficacy for multi-agent racing.

For vehicle racing (Zeng et al., 13 Jul 2025):

  • In high-fidelity simulation, IR achieves superior overtaking success rate (up to xt+k+1t=At+ktxt+kt+Bt+ktut+kt+Ct+ktx_{t+k+1|t} = A_{t+k|t}\, x_{t+k|t} + B_{t+k|t}\, u_{t+k|t} + C_{t+k|t}9) compared to LMPC-based baselines (near NN0), with smoother, collision-free overtakes.
  • Average computation time per step is approximately NN1 s, significantly below baseline methods (NN2–NN3 s).
  • Overtaking maneuvers remain time-optimal with respect to historic lap records, leveraging candidate terminal states with known remaining lap time for implicit learning.

For drone racing (Lv et al., 2023):

  • On benchmark tracks, spatial ILC achieves lap times within NN4 of SQP-based true optima, while requiring orders of magnitude less training time (e.g., NN5–NN6 s vs. NN7–NN8 s).
  • Against state-of-the-art baselines (HJB, HJB-RL, MOS, SL), IR consistently finds shortest lap time (e.g., minimum NN9 s, average N=12N=120 s) and fastest convergence to optimal speed profiles.
  • Real-world quadcopter experiments demonstrate rapid learning: lap time reduced from N=12N=121 s to N=12N=122 s within seven ILC iterations, with total online training N=12N=123 s.
Algorithm Best Time (s) Average Time (s)
HJB-RL (best) 28.99 30.36
SL 30.13 36.14
Spatial ILC 24.02 24.32

This suggests IR's iterative-historical planning principle may remain effective across diverse dynamic domains with complex safety constraints.

6. Theoretical Properties and Convergence

For spatial ILC implementations, under mild assumptions on the system and boundedness of the "activation" learning function, the velocity profile sequence N=12N=124 remains uniformly ultimately bounded as N=12N=125. Local arc analysis confirms that, once converged, the system satisfies the Pontryagin maximum principle and thus achieves time-optimality on straight and curved segments. Numerical studies show final lap times within N=12N=126 of the theoretical optima for realistic curvature.

Vehicle IR schemes inherit convergence from the iLQR method, under standard assumptions about controllability, and the inclusion of warm-start and terminal-state selection from historic cost-to-go implicitly encodes lifelong learning of optimal racing strategies.

7. Significance and Broader Impact

IR unifies time-optimality and safety in a real-time, data-driven iterative framework. Its adoption of parallel local trajectory optimization, history-based terminal state selection, and adaptive safety penalties distinguishes it from receding horizon and reinforcement learning approaches, providing:

  • Real-time execution capability in multi-agent, competitive environments.
  • Empirical superiority in lap time and overtaking metrics across a range of dynamic scenarios.
  • Minimal reliance on explicit global modeling or parameter identification (model-free in drone racing), facilitating generalization.

A plausible implication is that IR’s iterative, experience-harnessing paradigm can serve as a foundational template for embedded, safety-critical real-time planning and control in future autonomous mobility domains, wherever time-optimality and adaptivity are essential.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Iterated Racing (IR).