OnCue: Generating Safety-Critical Driving Scenarios
under Occlusion with Temporal Control

Kailang Ma1, Li Song2, Weining Ren3, Zirui Li4, Xianjie Dai1, Jingguang Li1, Zuyi Guo1, Benwang Chen1, Heye Huang1,*

1Korea Advanced Institute of Science and Technology   2Zhijia Technology   3The Chinese University of Hong Kong   4Nanyang Technological University

*Corresponding author

1KAISTKAIST 2Zhijia Technology 3The Chinese University of Hong KongThe Chinese University of Hong Kong 4Nanyang Technological UniversityNanyang Technological University

TL;DR. OnCue inserts occluded pedestrians, cyclists, and vehicles into real driving logs with requested exposure and reference-contact times, labels whether each encounter is avoidable after exposure or only with earlier visibility, and uses the encounters to evaluate and improve planners.

reference egotarget, hidden target, exposedoccluding vehicle other vehiclespedestrians and cyclists yellow centre linesight line
Construction families in recorded scenes. Pedestrians and cyclists cross behind parked vehicles or from gaps between stopped vehicles, while vehicles approach on intersecting lanes. Recorded occluders, map and traffic are kept. Each loop shows the reference ego, which follows the logged route under the fixed test protocol, on a final-set test of the comparison below: the inserted target stays hidden from it until its exposure and meets it at the reference contact. Click a scene to pause it.

Abstract

Occluded hazards challenge autonomous driving because visibility timing determines available avoidance actions. Existing scenario generators control hazard motion without jointly specifying exposure and reference-contact times. We propose OnCue, a framework that generates safety-critical encounters in real driving logs with these temporal conditions. Scene geometry provides hidden starts and timed waypoints for pedestrian, cyclist, and vehicle trajectory generation. An offline response oracle labels encounters as Reactive (avoidable after exposure) or Anticipatory (avoidable only with earlier visibility) and stores safe maneuvers as training demonstrations. On the Waymo Open Motion Dataset, 90.1–96.6% of valid trajectories meet both requested times within ±0.2 s. OnCue matches the requested reaction window between them in 92.8% of shared vehicle requests versus at most 42.1% for adapted adversarial generators. Across matched cyclist encounters, longer windows lower PDM-Closed collision from 59.1% to 5.5%, while the learned planner LatentDriver shows the opposite trend. OnCue demonstrations reduce LatentDriver target collision by 54.8 points on held-out Reactive tests, but reduce overall no-target progress by 12.7 m. These results highlight the value of temporal control for evaluating and improving planners under occlusion.

Contributions

Method

Loading the scene
00:00 / 00:56
OnCue framework: geometry, conditional trajectory generation, oracle labeling and planner runs
OnCue framework. Timed conditions guide generation, followed by response labeling and planner evaluation.

Key results

Temporal control

90.1–96.6%meet both requested times

On the Waymo Open Motion Dataset, 90.1–96.6% of valid trajectories meet both requested times within ±0.2 s.

Temporal control. (a) Exposure and contact timing errors and percentages for valid outputs. Orange marks both errors within ±0.2 s. Gray marks the 0.2 s window tolerance. (b) Median window error with 10th to 90th percentile bands. Raw candidates are evaluated before checks at the first constructed start.

Generator comparison

92.8%match the requested window, vs at most 42.1%

OnCue matches the requested reaction window between them in 92.8% of shared vehicle requests versus at most 42.1% for adapted adversarial generators.

Generator comparison. OnCue achieves the highest window match, coverage, and masked PDM-Closed collision on 2,624 shared requests from 446 logs. Requests are selected from valid OnCue outputs. OnCue (rule) keeps its first candidate when none passes the hard checks (900 requests), so every method returns an output for each request. Blue shades mark the top three values across all rows, darkest first, with the best in bold.

Controlled encountersPDM-ClosedMotion quality
MethodW match
(%) ↑
Coverage
(%) ↑
Collision
(%) ↑
Adv. reward
↑
Speed WD
(m/s) ↓
Accel. WD
(m/s²) ↓
Yaw-rate WD
(rad/s) ↓
Road edge
(%) ↓
BG contact
(%) ↓
CAT26.857.519.40.9434.0861.1510.33926.556.6
KING42.157.312.00.7074.0332.0140.35225.248.1
GOOSE38.947.29.20.5763.7530.9390.28430.249.0
SEAL22.249.912.50.6093.5970.3820.26942.750.0
SAGE (w = 0.5)11.622.98.70.4782.9791.1650.30520.443.6
SAGE (w = 1.0)5.613.88.20.4731.5492.0840.27938.538.7
OnCue (rule)81.786.722.91.0762.6910.8480.3430.954.5
OnCue (model)92.892.634.11.3332.9350.9930.2833.945.7

WD compares generated motion with logged moving vehicles in the same scenes. BG: background. Adv. reward is against masked PDM-Closed. W match requires reference contact and a realized window within 0.2 s of W*. Coverage counts Reactive or Anticipatory tests. Task rates include skips, quality uses outputs, and reward uses completed runs. GOOSE uses SEAL's WOMD implementation. SEAL, GOOSE, and KING continue at constant velocity after early termination.

Response time separates planner behavior

59.1% → 5.5%PDM-Closed collision as windows lengthen

Across matched cyclist encounters, longer windows lower PDM-Closed collision from 59.1% to 5.5%, while the learned planner LatentDriver shows the opposite trend.

Response time separates planner behavior. Target collision under masked observations. Each curve keeps situations complete at all windows, so counts differ by planner. Bands: pointwise 95% driving-episode bootstrap intervals.
PlannerSituationsAt 1 s (%)Δ collision (pp)
Same situations at W* = 1 s and 3 s. Lines run from each planner's collision at 1 s to 3 s; the table gives the 1 s rate and its change (1 s minus 3 s). Only situations with valid, not late, and complete runs at all three windows count, so counts differ by planner and mode. Rates are not population weighted; IDM-conservative is late in every masked situation.

Planner adaptation

−54.8 pointsLatentDriver target collision

OnCue demonstrations reduce LatentDriver target collision by 54.8 points on held-out Reactive tests, but reduce overall no-target progress by 12.7 m.

Section 4 of the paper and Appendices D to F give every experiment.

Test cases

One test, two observation modes

Each scene runs one planner twice on the same final-set test: with masked observation, which knows the target only once the ego can see it, and with unoccluded observation, which knows it from the start. Both runs are replayed in the recorded log, as in the paper's closed loop. The five scenes are picked, not drawn: for each target type and construction family, among tests whose target recorded road users alone hide and that have no motion flaw, taken in a fixed random order, the first Anticipatory test where a planner hits the target under masked observation and, unoccluded, avoids it without touching anything else or leaving the road, using IDM-base whenever it qualifies. No Anticipatory vehicle test qualifies, so the vehicle scene is a Reactive test.

ego, masked observationego, unoccluded observation target, unknown to the plannertarget, known occluding vehiclesight line

BibTeX

@article{oncue2026,
  title   = {OnCue: Generating Safety-Critical Driving Scenarios under Occlusion with Temporal Control},
  author  = {Ma, Kailang and Song, Li and Ren, Weining and Li, Zirui and Dai, Xianjie and Li, Jingguang and
             Guo, Zuyi and Chen, Benwang and Huang, Heye},
  journal = {arXiv preprint arXiv:2611.33439},
  year    = {2026}
}