# Mechanistic Interpretability for End-to-End Self-Driving

Robotics.world

> Sparse-autoencoder latents expose route intent, speed and braking in an end-to-end driving planner, and steering them changes outputs monotonically—an audit handle for otherwise opaque driving stacks.

**arXiv**: 2610.41185 · accepted · CORL

**Published**: 2026-10-30

**Authors**: Manav Gagvani, Benjamin Namikas, Sivamurugan Velmurugan, Nysa Kumar, Shrey Sharma, Thomas Peterson, Pratyush Mathur, Hyunseo Chang, Rohan Paleja

## In plain words

End-to-end driving models map camera images and ego state directly to driving decisions and perform well, but their internal reasoning is opaque, which limits trust and post-deployment safety analysis. Most existing interpretability approaches expose extra outputs (occupancy, motion forecasts, language reasoning) rather than examining the features the planner actually uses.

## AI summary

## Overview

**Research area:** Autonomous driving, specifically mechanistic interpretability of end-to-end (E2E) driving policies.

**Technical level:** Advanced. The paper assumes familiarity with transformer architectures, sparse autoencoders (SAEs), and representation-level analysis, though its core arguments are stated in plain terms.

**Scope:** The paper trains sparse autoencoders on the internal query activations of a single-camera, trajectory-scoring driving planner (SMTS), then tests whether the resulting sparse features are interpretable, visually grounded, causally steerable, and useful for improving trajectory selection.

## What This Paper Is About

End-to-end driving models map camera images and ego state directly to driving decisions and perform well, but their internal reasoning is opaque, which limits trust and post-deployment safety analysis. Most existing interpretability approaches expose extra outputs (occupancy, motion forecasts, language reasoning) rather than examining the features the planner actually uses. This paper opens the planner's internal representation with sparse autoencoders and asks whether the discovered features correspond to recognizable driving concepts and can be used to steer and improve the model.

## Key Contributions

1. **A compact E2E planner (SMTS).** A single-camera, trajectory-scoring planning module with no HD maps, no bird's-eye-view occupancy, no labeled intermediate representations, and no language-model backbone, which reaches an ADE of 1.40 m on the WOD-E2E validation split.
2. **Evidence that SAE features are organized and interpretable.** Unsupervised clustering of SAE latents on the final transformer block yields four clusters aligned with route intent and with vehicle speed, recovering route intent with 98.3% accuracy without supervision.
3. **Evidence that SAE features are visually grounded and causally steerable.** Paired counterfactual image edits (traffic light state, stop sign presence, pedestrians) shift specific latents, and directly amplifying individual latents produces structured changes in lateral displacement, curvature, and braking.
4. **A practical use for the representation.** A lightweight adapter trained on SAE latents reduces trajectory selection error by 3.44% (ADE@5s) while the base planner and proposal set stay frozen, outperforming an equivalent adapter that omits SAE latents.

## Main Findings

- **Planner is competitive open-loop:** SMTS reaches 1.40 m ADE on the WOD-E2E validation split, against Latent TransFuser at 1.50 m, GTRS-Dense at 1.48 m, and DrivoR at 1.49 m. On the private WOD-E2E test evaluator it obtains the highest average Rater Feedback Score, 7.765 versus 7.688 for GTRS-Dense and 7.645 for DrivoR, and leads on 6 of 11 scene categories.
- **Four clean feature clusters:** Using pairwise Pearson correlation with threshold τ = 0.35 on the final-block latents z₃ and keeping connected components of at least three features gives four clusters of 64, 36, 34, and 27 latents. Greedy modularity maximization recovers the same four groups, with 94.3% of features receiving the same label.
- **Clusters encode intent and speed:** C₀ and C₂ map to driving straight, C₁ to left turns, and C₃ to right turns, giving 98.3% overall intent recovery (99.8% straight, 92.9% left, 86.4% right). Among the top 50 scenes per cluster, C₀ corresponds to stopped or slow straight driving with mean speed 1.04 standard deviations below the validation mean, and C₂ to high-speed straight driving at 0.98 standard deviations above.
- **Latents depend on the image, not just metadata:** An ANOVA variance decomposition over 9,000 validation images under three route intents and two fixed ego histories attributes 14.3% of latent variance directly to the image, plus 18.5% through interactions. Intent accounts for 26.1%, ego history 24.0%, intent × ego history 16.9%, image × intent 7.2%, image × ego history 6.9%, and the three-way term 4.4%.
- **Counterfactual edits change behavior:** With past ego state and intent held fixed, changing a green light to red shifts a small set of SAE features and moves the selected trajectory from forward motion to a full stop; inserting a stop sign produces a different feature shift and reduces predicted displacement.
- **Visual response aligns with steering effect:** Across green-to-red light edits, added stop signs, and added pedestrians, 61% of interventions match the visual edit sign, with Pearson r = 0.172 between a feature's normalized signed activation change under the edit and the standardized braking change when that feature is amplified.
- **SAE latents improve selection:** The SAE-based scoring adapter lowers ADE@5s by 3.44%, and mean selected rank improves from 16.7 to 15.6 out of 50 proposals.
- **Controls isolate the SAE's contribution:** An adapter using raw dense activations instead of SAE latents recovers 80% of the ADE improvement, and a randomly initialized trainable encoder with the same architecture and parameter count achieves only a 2.86% ADE reduction.

## Methodology in Plain English

The researchers first built a deliberately simple planner so that the internal representation would be small and analyzable. The model sees only a front camera image, four seconds of past ego motion, and a one-hot route intent (straight, left, right). A frozen vision transformer turns the image into 32 × 32 visual tokens of dimension 384; a learned convolutional adapter refines them, and an auxiliary depth head (supervised by pseudo-depth from Depth-Anything-V2-Small) pushes the adapter to keep geometric information. Intent and past state are compressed into a single query token, which passes through four transformer blocks that attend to the visual tokens. That query then decodes 50 candidate control sequences, which are rolled out into 5-second trajectories by a kinematic model, and a scoring head assigns each proposal an estimated error; the lowest-scoring proposal is executed. The planner was trained on 250,000 WOD-E2E samples for 10 epochs at a learning rate of 1×10⁻⁴.

To look inside, the team trained one sparse autoencoder per transformer block on the query activations, using TopK sparsification (k = 24) with an AuxK auxiliary loss (k_aux = 512, coefficient 1/32) to keep latents from dying. They then analyzed the final-block latents in four ways: building a correlation graph of binarized activations and inspecting the top-scoring scenes for each cluster; recombining image, intent, and ego history in a factorial design and decomposing latent variance with ANOVA; generating matched image pairs with a YOLO detector plus a VLM prompt generator and an image editing model, so that only the pixels change; and manually adding a scaled amount to individual latents to see how the chosen trajectory and the proposal scores move.

Finally, they froze the planner and trained a small adapter that reads SAE latents and predicts the scoring head's error for each proposal, adding that prediction as a correction at inference. Comparing this against adapters without SAE latents tested whether the sparse representation carries information beyond raw dense activations.

## Why This Matters

The work moves interpretability in driving from "look at the extra outputs" to "look at the features the planner actually computes with." Showing that unsupervised features line up with intent, speed, and braking, and that they can be edited to change behavior, gives safety engineers a concrete handle for auditing and correcting learned planners without retraining them end to end.

Real-world applications:

- **Post-deployment safety auditing:** monitoring SAE features tied to braking or stop-sign response to detect regressions or unexpected behavior in fleet data.
- **Targeted behavioral correction:** a small adapter on top of a frozen planner to fix systematic selection errors, such as accelerating into an intersection at a red light.
- **Scenario and corner-case analysis:** using cluster activations to surface rare long-tail scenes (construction, intersections, multi-lane maneuvers) that the planner handles distinctively.
- **Validating simulation and data edits:** checking whether a synthetic scene change actually propagates to the model's internal representation, not just its pixels.

Industry relevance is direct: companies deploying learned end-to-end autonomy need observability tooling, and this demonstrates a low-cost route (SAEs on a compact planner) that does not require a large vision-language backbone. The adapter result also suggests interpretability artifacts can double as lightweight performance improvements.

## Future Directions

- **Closed-loop evaluation.** All results here are open-loop; whether SAE features and latent interventions behave the same under closed-loop feedback is untested.
- **Beyond a single front camera.** Extending the analysis to multi-camera and LiDAR-based planners, and to architectures with larger backbones, remains open.
- **Cleaner counterfactuals.** The edit pipeline inherits errors from the object detector and image editing model, and visual response and steering effects are positively aligned but only moderate in magnitude (61% sign match, r = 0.172), so some visually responsive features do not translate cleanly into braking changes.
- **Stronger steering and correction.** Since the adapter leaves proposals fixed and the random-encoder control still achieved a 2.86% ADE reduction, disentangling adapter capacity from representation quality and building more reliable feature-level interventions are natural next steps.

## Target Audience

Researchers and engineers working on end-to-end autonomous driving, safety and validation teams at autonomous vehicle companies, and interpretability researchers interested in applying sparse autoencoders outside language models and vision-language-action policies. It is also suitable for graduate students in robotics or machine learning who want a concrete, well-controlled example of mechanistic analysis applied to a control policy. Readers without background in transformers or sparse coding will find the results legible but the methods section demanding.

## Authors’ abstract

End-to-end (E2E) autonomous driving models achieve strong planning performance but remain largely opaque, limiting observability and trust. We apply mechanistic interpretability to E2E driving by training Sparse Autoencoders (SAEs) on the internal activations of a simple, single-camera end-to-end path planning model. Unsupervised clustering of SAE latents reveals interpretable structure aligned with route intent, vehicle speed, and braking behavior, recovering route intent…

[The full abstract on arXiv](https://arxiv.org/abs/2610.41185)

[Read the original paper](https://arxiv.org/abs/2610.41185)

## Related papers

- [Model-Aware Generation of Safety-Critical Scenes for Robust End-to-End Driving via Distilled Planner Surrogates](https://robotics.world/paper/model-aware-generation-of-safety-critical-scenes-for-robust-end-to-end-2610.35448) 2026-10-26 · cs.RO · Key terms of the title in common
- [Closed-Loop Aware Planning via Imitation-Free Speed Scoring for End-to-End Autonomous Driving](https://robotics.world/paper/closed-loop-aware-planning-via-imitation-free-speed-scoring-for-end-to-2610.36079) 2026-10-26 · cs.RO · Key terms of the title in common
- [Route-Time Conflict Maps for Cooperative End-to-End Autonomous Driving](https://robotics.world/paper/route-time-conflict-maps-for-cooperative-end-to-end-autonomous-driving-2611.13494) 2026-11-10 · cs.RO · Key terms of the title in common
- [RiSE-Drive: Risk-Sensitive Long-Horizon Candidate Evaluation for End-to-End Autonomous Driving](https://robotics.world/paper/rise-drive-risk-sensitive-long-horizon-candidate-evaluation-for-end-to-2611.13790) 2026-11-10 · cs.RO · Key terms of the title in common
- [Expand-and-Prune: Test-Time Candidate-Space Adaptation for End-to-End Autonomous Driving](https://robotics.world/paper/expand-and-prune-test-time-candidate-space-adaptation-for-end-to-end-2610.23262) 2026-10-16 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/mechanistic-interpretability-for-end-to-end-self-driving-2610.41185
