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)
- Privileged Evaluation: For every decision step, the oracle tests every request option in a sandboxed simulator copy.
- Net Return Scoring: The oracle computes the true 5-step trajectory return minus the 0.05 communication penalty.
- Conservative Default: If asking doesn't clearly beat "Ask Nobody", the label defaults to asking nobody.
- 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:
| Policy | Cut-in Crashes | Crash Rate | Requests / Trial | Net Return | Mean Speed |
|---|---|---|---|---|---|
| Ask Nobody (Blind) | 179 | 8.95% | 0.00 | 2.616 | 27.3 m/s |
| DQN6 (Experiment 6) | 124 | 6.20% | 0.97 | 2.575 | 27.0 m/s |
| Experiment 7 (Oracle-Taught) | 75 | 3.75% | 0.75 | 2.631 | 27.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.
| Controller | Policy | Net Return | Requests / Episode | Crashes | Mean Speed |
|---|---|---|---|---|---|
| Original guard | Ask Nobody | 36.566 | 0.00 | 0 / 100 | 27.49 m/s |
| Original guard | DQN6 | 35.801 | 16.88 | 0 / 100 | 27.53 m/s |
| Original guard | Experiment 7 | 36.390 | 4.88 | 0 / 100 | 27.52 m/s |
--comfort-ttc 6 | Ask Nobody | 36.391 | 0.00 | 0 / 100 | 27.41 m/s |
--comfort-ttc 6 | DQN6 | 35.748 | 13.17 | 0 / 100 | 27.40 m/s |
--comfort-ttc 6 | Experiment 7 | 36.118 | 4.93 | 0 / 100 | 27.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:
| Scenario | Blind (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
- 40% Fewer Crashes: In 2,000 cut-in trials, Experiment 7 slashed crashes from 124 down to 75 compared to DQN6.
- 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).
- Selective Querying: Requests dropped by 23% compared to DQN6 (0.75 vs 0.97 per trial).
- Highway Cruising Speed Maintained: Cruising speed remains rock-solid at 27.0 m/s with no sluggish hesitation.