Svashasan Logo
Simulated data

Simulation, Testing and Validation · Evaluation

Closed-Loop Simulation

Also known as closed-loop testing, closed-loop evaluation, reactive simulation

IntermediateSource-checked · awaiting technical reviewLast reviewed 6 December 2026

Simulation in which the outputs of the system under test, such as planned trajectories or control commands, are fed back to change the simulated vehicle and world, so later inputs depend on the system's own earlier decisions.

Explanation

In open-loop evaluation the scene simply replays; in closed loop the system drives. The nuPlan planning challenge illustrates both variants of closed loop. With non-reactive agents, the planner's trajectory is tracked by a controller that moves the ego vehicle, while other agents replay their logged states. With reactive agents, vehicles respond to the planner-controlled vehicle and to each other using an Intelligent Driver Model (IDM) policy. Because the ego no longer follows the log, the logged human trajectory stops being a valid reference, so scoring uses rule and safety metrics such as at-fault collisions, drivable-area compliance, progress, time-to-collision and comfort.

Closed loop captures compounding errors and interactions that open-loop scores miss. Dauner et al. (CoRL 2023) found that the short-term planning measured in closed loop and the long-horizon forecasting rewarded in open loop are misaligned tasks; closed-loop evaluation exposed limitations of learning-based planners and the value of simple rule-based priors.

The weak point is the model of everything else: logged agents behave implausibly once the ego deviates from the recording, and simple reactive models such as IDM may be too passive. Sensor-level closed loop also needs credible sensor simulation and more computation.

How it works

The scene is initialised from a scenario or a recorded log. At each step the simulator provides observations, the system under test computes a plan or control command, and a controller and vehicle model propagate the ego state. Other agents are updated by log replay or behaviour models, and the loop repeats until the scenario ends. Metrics are computed on the resulting trajectories.

Automotive applications

  • Planner evaluation (nuPlan, CARLA Leaderboard)
  • SIL and HIL testing of complete stacks
  • Interaction and safety-metric evaluation
  • Regression testing of planning changes

Example

A planner brakes slightly earlier than the human in the log. In non-reactive closed loop the replayed follower keeps its logged trajectory and may hit the ego from behind; with a reactive IDM follower it slows instead, showing how agent models change the score.

An illustrative example: any figures in it are worked numbers, not measurements.

References

  1. nuPlan Planning Challenge (opens in a new tab)

    Motional (nuplan-devkit documentation) · Project documentation · Challenges 2 and 3 (closed-loop non-reactive and reactive) · retrieved 6 December 2026

    “the vehicles will react to the actions of the planner-controlled vehicle along with the behavior of other agents.”
  2. Parting with Misconceptions about Learning-based Vehicle Motion Planning (Dauner, Hallgarten, Geiger, Chitta), CoRL 2023 (opens in a new tab)

    arXiv:2306.07962 · Paper · Abstract · retrieved 6 December 2026

  3. nuPlan metrics description (opens in a new tab)

    Motional (nuplan-devkit documentation) · Project documentation · Challenges 2 and 3 metrics · retrieved 6 December 2026

Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.