TL;DR
When you yield at a snowy intersection, you aren't trying to match pixel-level snowflakes to your past driving memories; you are recalling an abstract rule of interaction. Modern autonomous driving AIs often fail in unfamiliar weather or under sensor glitches because they rely too heavily on raw, superficial visual details. This paper introduces DriveMem, a plug-and-play module that strips away visual noise to store and retrieve abstract "driving prototypes," dramatically reducing crash rates when conditions get weird.
What Problem Does This Paper Address?
Modern end-to-end (E2E) autonomous driving models take camera images directly in one end and spit out a planned driving trajectory at the other. They work wonderfully on sunny days in familiar cities, but suffer from fragile out-of-distribution (OOD) generalization. Because they map raw pixels directly to actions, they pick up on spurious visual shortcuts—associating specific lighting, weather, or camera quirks with how to steer. When a sudden snowstorm hits or a camera drops frames, performance plummets.
Adding an explicit "memory bank" of past driving scenarios is a popular way to help models handle rare situations. However, existing memory systems usually search their databases using raw visual features. Under shifted conditions, this causes "appearance-biased retrieval": a model driving in heavy rain might accidentally retrieve a memory of another rainy day on an empty highway rather than a sunny day with the exact same tricky obstacle negotiation. Furthermore, these black-box systems offer very little insight into why they chose a specific trajectory.
Methods
Instead of overhauling existing driving architectures (like VAD or DiffusionDrive), the authors built DriveMem as a lightweight module that sits right between a model's visual perception backbone and its trajectory planner.
DriveMem operates in two distinct stages:
- Invariant Feature Abstraction (IFA): First, visual tokens from the cameras are split and projected into two separate mathematical spaces: an invariant subspace (for core driving geometry and interactions) and a spurious subspace (for nuisance appearance details like weather). To force this separation, the authors perturb the visual style of the tokens during training and require the downstream planner to make the exact same trajectory prediction. An orthogonality constraint acts as an anti-leakage barrier between the two subspaces, and only the clean, invariant features move forward.
- Prototype Memory Bank (PMB): Rather than memorizing thousands of individual video frames, PMB compresses these clean invariant features into a compact set of learned "prototypes." During training, the memory updates selectively based on two criteria: typicality (confidently matched, everyday patterns like lane-keeping) and criticality (high-loss, difficult edge cases). To keep the memory bank dense and non-redundant, Singular Value Decomposition (SVD) aligns prototypes along principal directions of variation. During an actual drive, the system queries this bank, retrieves relevant prototypes, and fuses them with current observations via a learned gating mechanism to guide the trajectory planner.
Datasets
The authors do not introduce new datasets, instead testing on established benchmarks designed to stress-test generalization:
- nuScenes & nuScenes-C: Used for open-loop evaluation (comparing predicted paths against recorded human trajectories). Models train on standard
nuScenesand are tested onnuScenes-C, which injects eight unseen corruptions, including snow, fog, motion blur, camera crashes, and lost frames. - NAVSIM (
navtrain,navtest,navhard_two_stage): A closed-loop pseudo-simulation benchmark. Models train onnavtrain, evaluate in-distribution onnavtest, and face tough OOD scenarios innavhard_two_stage. - Bench2Drive: Briefly noted in the limitations for preliminary exploration of behavioral variations across different simulated towns.
Key Insights and Ideas
- Memory compensating for missing LiDAR: On the NAVSIM benchmark, equipping an image-only model with DriveMem boosted its performance to match—and on several metrics slightly surpass—a baseline model that had access to both cameras and LiDAR point clouds. Retrieving structural driving priors appears to partially compensate for the lack of explicit 3D laser geometry.
- More memory isn't always better: In ablation studies, expanding the memory size for surrounding agents from 1024 to 2048 lowered trajectory error, increased collision rates, and then lowered collisions again at 4096 while hurting trajectory smoothness. Blindly scaling memory capacity introduces redundant, noisy patterns; prototype quality matters much more than quantity.
- Compositional, traceable intuition: Visualizing the memory bank reveals that DriveMem doesn't assign one rigid meaning per prototype. Instead, some prototypes act as universal priors (like road layouts) while others specialize (like obstacle negotiation), combining like Lego bricks. Better yet, engineers can inspect which past scenes share prototype activations with the current scene—retrieving sunny obstacle courses to explain rainy-day maneuvers, giving black-box planners human-readable traceability.
Key Results
- Open-Loop (
nuScenes-C): Added to DiffusionDrive, DriveMem cut the average OOD trajectory L2 error by 17.9% (0.9080m down to 0.7458m) and slashed the OOD collision rate by 59.2% (0.662% to 0.270%). Under severe sensor failures like Camera Crash and Frame Lost, it beat the strongest domain-generalization baseline (DAC-SC) by reducing relative collision rates by 26.2% and 39.5%, respectively—all while keeping clean-weather collision rates at a competitive 0.069%. - Closed-Loop (
NAVSIM): On the OODnavhard_two_stagesplit, DriveMem achieved the top Extended Predictive Driver Model Score (EPDMS) among camera-only methods at 30.53—a 13.3% relative jump over the base DiffusionDrive model (26.95) and 5.97% ahead of the next-best generalization baseline.
Limitations and Future Work
The authors note two main boundaries to their current work:
- Appearance vs. Behavioral Shifts: DriveMem excels at handling visual and sensor-level shifts (weather, lighting, dropped frames). However, systematically handling higher-level semantic shifts—like regional differences in unwritten traffic rules, complex social negotiations, or completely alien road topologies—remains largely unexplored.
- Out-of-Manifold Queries: Because memory retrieval relies on mathematical proximity in latent space, encountering an ultra-rare scenario that falls completely outside the learned prototype space can cause retrieval quality to degrade. Future iterations could integrate uncertainty-aware retrieval (knowing when not to trust a memory) and dynamic memory expansion.
Summary updated