AAAI 2027

CLAP: Contrastive Latent-space Prompt Optimization for End-to-end Autonomous Driving

The 41st AAAI Conference on Artificial Intelligence
Paper · coming soon BibTeX

Vision-Language-Action (VLA) driving models handle everyday traffic well but still fail in rare, safety-critical scenes such as construction zones and tricky yields. Rather than collecting more data and retraining, CLAP fixes these failures per road: it learns small soft prompts for each location and plugs them into the frozen model when a car gets there.

−24%
error on hard scenes
0
regression on normal scenes
Frozen
VLA backbone
Long-tail failures of a VLA planner on NAVSIM
Long-tail failures: driving into a work zone (left), no detour around a parked car (right). Red: model, green: human.

Method

Connected vehicles upload the frames where the planner struggled. In the cloud, CLAP learns a pair of soft prompts (PA, PB) for each road segment from these crowdsourced frames and caches them. When another car enters that road, it downloads the pair over V2X and inserts it into its frozen VLA, between the camera tokens and the instruction.

CLAP system overview
Stage 1

Find the hard-scene direction

Hard and normal frames from the same road look alike inside the model. A contrastive prompt PA pulls them apart, revealing the direction d★ along which hard scenes differ.

Stage 2

Optimize along it

The deployable prompt PB is trained to cut planning error on hard frames, steer their change along d★, and leave normal frames untouched, so the fix doesn't hurt everyday driving.

Results

We test CLAP on three state-of-the-art driving VLAs over 42 challenging NAVSIM road segments, comparing against a hand-written text hint and a standard soft prompt. Numbers are 4-second average displacement error in meters (lower is better).

MethodHard ↓Normal ↓Overall ↓
ReCogDrive
Base2.1251.0071.562
+ Text hint2.1371.0101.566
+ Soft prompt1.8350.9271.393
+ CLAP1.426−33%0.9341.227
Alpamayo-R1.5
Base2.9980.9701.342
+ Text hint3.1301.0911.467
+ Soft prompt2.3850.9971.268
+ CLAP2.281−24%0.9591.185
DriveVLA-W0
Base2.1161.0111.243
+ Text hint2.5811.4091.684
+ Soft prompt1.8951.0241.199
+ CLAP1.804−15%0.9891.146
Planned trajectories before and after CLAP
Planned trajectories before (red) and after (blue) CLAP, with the human trajectory in green. With CLAP, the car steers around the construction zone (left) and waits at the stop sign instead of rolling through (right).

BibTeX

@inproceedings{zhu2027clap,
  title     = {CLAP: Contrastive Latent-space Prompt Optimization
               for End-to-end Autonomous Driving},
  author    = {Zhu, Ruiyang and He, Yuehan and Zheng, Boyuan and
               Zhao, Zesen and Chalhoub, Ahmad and Zhang, Qingzhao
               and Mao, Z. Morley},
  booktitle = {Proceedings of the AAAI Conference on Artificial
               Intelligence (AAAI)},
  year      = {2027}
}