Experiment 7: Oracle-Taught Request Policy

Experiment 7 introduces an offline oracle teacher to guide the Request DQN. Instead of relying purely on trial-and-error reinforcement learning, the ego vehicle learns communication decisions directly from a privileged simulation teacher that knows when asking genuinely changes the outcome.

  • Request DQN Checkpoint: checkpoints/experiment_7/RequestDQN/best.pt
  • World Model Used: checkpoints/experiment_5/MLPx/intent_stage_best.pt (frozen WM5)
  • Teacher Implementation: scripts/policy/request_oracle.py

Objective & Hypothesis

In earlier experiments (DQN5 and DQN6), the agent frequently asked redundant questions on open roads, or missed subtle, dangerous cut-ins.

Can a privileged simulation oracle—which simulates candidate actions 5 steps ahead in a parallel copy of the road—generate high-quality demonstration labels so that the Request DQN learns to ask only when a message prevents a collision?


How the Oracle Teacher Works

Current Traffic Scene
         │
         ▼
[Fork Simulation into Parallel Worlds]
         │
   ├── Try "Ask Nobody" ──> Planner Rollout ──> Record 5-step return
   ├── Try Ask Slot 0   ──> Planner Rollout ──> Record (Return - 0.05 Cost)
   ├── Try Ask Slot 1   ──> Planner Rollout ──> Record (Return - 0.05 Cost)
   └── ...
         │
         ▼
[Compare Outcomes]
• Did asking improve the net return after paying the 0.05 request cost?
  ├── YES ──> Label = "Ask this vehicle"
  └── NO  ──> Label = "Ask Nobody"
         │
         ▼
Train Request DQN via Behavior Cloning (Supervised Imitation)
  1. Privileged Evaluation: For every decision step, the oracle tests every request option in a sandboxed simulator copy.
  2. Net Return Scoring: The oracle computes the true 5-step trajectory return minus the 0.05 communication penalty.
  3. Conservative Default: If asking doesn't clearly beat "Ask Nobody", the label defaults to asking nobody.
  4. Behavior Cloning: The deployed Request DQN is trained on these labels using class-balanced imitation learning.

Benchmark Results (2,000 New Cut-In Trials)

Across 2,000 cut-in trials (1,000 scenes, seeds 1600000–1600999, each with the neighbour staying and merging), Experiment 7 significantly outperformed all previous learned policies and blind baselines:

PolicyCut-in CrashesCrash RateRequests / TrialNet ReturnMean Speed
Ask Nobody (Blind)1798.95%0.002.61627.3 m/s
DQN6 (Experiment 6)1246.20%0.972.57527.0 m/s
Experiment 7 (Oracle-Taught)753.75%0.752.63127.0 m/s

The privileged oracle was not run on these 2,000 trials. On the 200 Experiment 6 test trials (seeds 1300000–1300099), it has 3 crashes (1.5%), 0.17 requests per trial and 2.718 net return. On the same 200 trials, Experiment 7 has 3 crashes and DQN6 has 9.


Ordinary Roads (Experiment 6 Configuration)

Seed 1200000, 100 episodes of 40 steps, --safety-guard --max-target-speed 30 --lane-change-guard --batched-planner. The DQN6 and ask-nobody rows reproduce the published Experiment 6 numbers exactly.

ControllerPolicyNet ReturnRequests / EpisodeCrashesMean Speed
Original guardAsk Nobody36.5660.000 / 10027.49 m/s
Original guardDQN635.80116.880 / 10027.53 m/s
Original guardExperiment 736.3904.880 / 10027.52 m/s
--comfort-ttc 6Ask Nobody36.3910.000 / 10027.41 m/s
--comfort-ttc 6DQN635.74813.170 / 10027.40 m/s
--comfort-ttc 6Experiment 736.1184.930 / 10027.36 m/s

Experiment 7 beats DQN6 by +0.589 [+0.420, +0.750] (original guard) and +0.370 [+0.274, +0.470] (--comfort-ttc 6) net return, with about a third of the requests. Ask nobody is still best on these roads, because no request prevents a crash there.


Policy Driving Videos

1. Ordinary Highway Driving

The oracle-trained DQN completes all 100 steps on the shared experiment-video seed 120 with the executive safety guard active. It earns 90.661 driving reward and sends 69 requests:

2. Cut-In Comparison

When a neighboring car abruptly swerves into the ego lane, blind policies crash while the oracle-taught DQN asks early, predicts the maneuver, and brakes safely:

ScenarioBlind (Ask Nobody)Learned Policy (Experiment 7)
Seed 1300051!DQN6 asks nobody, crash at step 2 (DQN6, which asks nobody here)!Safe Braking
Seed 1300005!Blind Crash!Safe Braking
Seed 1300061!Blind Crash!Safe Braking

Key Findings & Conclusions

  1. 40% Fewer Crashes: In 2,000 cut-in trials, Experiment 7 slashed crashes from 124 down to 75 compared to DQN6.
  2. First Positive Cost-Adjusted Return: Because it avoids asking in obvious scenes, the net reward gained from avoiding crashes exceeds the 0.05 query cost, outperforming DQN6 in net return (+0.056).
  3. Selective Querying: Requests dropped by 23% compared to DQN6 (0.75 vs 0.97 per trial).
  4. Highway Cruising Speed Maintained: Cruising speed remains rock-solid at 27.0 m/s with no sluggish hesitation.