TL;DR
End-to-end autonomous driving models love taking shortcuts—often memorizing the color of the sky or nearby buildings instead of learning how to actually drive. This paper introduces a clever middle ground: using classic perception modules (semantic segmentation and 3D object detection) as training-time "teachers" to scrub background noise from visual representations. Once trained, the teachers are thrown away, leaving behind a lean, distraction-free driving model with virtually zero extra compute at test time.
What Problem Does This Paper Address?
Autonomous driving historically relied on modular pipelines: one module detects cars and lanes, and another plans the route. Recently, the field shifted toward end-to-end driving, where a neural network maps raw camera pixels directly to steering and acceleration. To do this well, modern systems lean on massive pretrained visual encoders (like DINOv2 or JEPA) to turn images into patch tokens.
Here’s the catch: general-purpose encoders care about everything in an image—the texture of brickwork, clouds, and roadside trees. When a driving policy is trained on limited demonstrations, it easily latches onto these irrelevant background details as spurious "shortcuts." And you can’t fix this by simply masking out sky or building pixels; in Vision Transformers (ViTs), self-attention mixes global background context into every token early on. The authors ask: how do we compress visual features so the policy only sees what matters for driving, without running heavy perception networks on the car's computer at inference time?
Methods
Instead of dropping tokens to save compute, the authors compress the information content inside the tokens in-place, preserving the exact interface expected by any downstream driving policy. They do this using two training-time teachers:
- Semantic-Segmentation Guidance (for image patch tokens): Inspired by sparse autoencoders used in mechanistic interpretability, the authors insert a lightweight gated autoencoder near the end of the visual backbone. It expands each token into a wider latent dictionary, applies a global learnable gate, and subtracts the closed channels right out of the original token. During training, an offline Mask2Former segmentation teacher forces the gate to close channels that fire on background classes (sky, vegetation, buildings) while keeping channels needed to classify road, vehicles, and signs.
- Object-Detection Guidance (for scene-level register tokens): Visually different scenes—say, a sunny suburban street and a shadowy downtown avenue—might represent the exact same driving scenario (e.g., "going straight behind a lead car"). The authors pretrain a lightweight "detection teacher" that compresses a 3D Bird’s-Eye-View (BEV) traffic map, navigation route, and future trajectory into a compact vector. Using a contrastive triplet loss, they pull the driving model’s scene-level register tokens (summary tokens in ViTs) together if the teacher says their traffic layouts match.
At test time, all teachers, projection heads, and auxiliary losses vanish. Only the tiny gated autoencoder remains.
Datasets
- Training: Models and the detection teacher are trained on the
navtrainsplit of the NAVSIM dataset. - Evaluation: The authors test nominal driving on NAVSIM-v1 (
navtestsplit), which is largely saturated (>90 PDMS). Consequently, their primary benchmark is NAVSIM-v2 (navhard-two-stagesplit)—a challenging closed-loop pseudo-simulation that uses 3D Gaussian Splatting to render novel camera views when a car drifts off the expert trajectory, directly testing out-of-distribution recovery. No new benchmarks are introduced.
Key Insights and Ideas
- Heuristic pixel/token masking actually hurts: Zeroing out background tokens at the ViT input drops performance substantially (46.3 down to 42.9 EPDMS), because early attention layers genuinely need full-image context to make sense of the geometry. Masking late also fails because background info has already bled into foreground tokens. Subtracting features in a wider latent subspace solves this cleanly.
- Separate token streams matter: Object-detection guidance works brilliantly on ViTs (+1.41 on DrivoR) because ViTs have dedicated scene-level register tokens. On ResNets—which lack register tokens—applying this loss directly to pooled spatial features hurts performance (-0.14 to -0.94) because the gradient interferes with local spatial features the policy head needs.
- True interpretability in action: Checking the learned gates confirms they aren't black-box magic—the gate automatically shuts off 89% of the top 10% most background-associated latent channels.
Key Results
Tested across six diverse models spanning ViT (DrivoR, Drive-JEPA) and ResNet-34 (LTF, MeanFuser, DiffusionDrive, PRIX) backbones, the approach consistently boosts out-of-distribution robustness on NAVSIM-v2 while preserving nominal NAVSIM-v1 scores:
- Semantic-segmentation guidance improves all six models on NAVSIM-v2 (+0.31 to +1.01 EPDMS, including +1.01 on DiffusionDrive), driven largely by fewer collisions and better recovery in Stage 2 perturbations.
- Object-detection guidance boosts ViT models substantially: +1.41 EPDMS on DrivoR (46.3 to 47.7) and +1.31 on Drive-JEPA (32.2 to 33.5).
- Scene Retrieval: On 3,000 unseen scenes, register tokens trained with guidance retrieve nearest-neighbor driving scenarios with much closer future ego trajectories (3.44 m error vs. 4.05 m for baseline DrivoR), proving the model groups scenes by traffic dynamics rather than visual weather/lighting.
Limitations and Future Work
While individual modules shine, combining both techniques (`Seg.
- Det.
) isn't purely additive: on ViTs, the combined model beats the baseline (+1.07 on DrivoR) but slightly trailsDet.` alone (+1.41). Furthermore, on CNNs/ResNets without dedicated register tokens, object-detection guidance requires gradient-stopping workarounds and yields no extra gain over segmentation guidance alone. Finally, the authors' experiments use a single front camera (unlike multi-camera setups in some leaderboard baselines). For future work, the authors hope these findings spark broader exploration at the intersection of structured perception and end-to-end embodied AI.
Summary updated