Introduction
Modern autonomous driving systems are increasingly shifting toward Vision-Language-Action (VLA) architectures, where Large Language Models (LLMs) serve as the central reasoning engine for trajectory prediction. However, a significant challenge arises from the "token explosion" inherent in multi-camera video streams. A typical vehicle equipped with multiple high-resolution cameras generates tens of thousands of visual tokens per second, creating a massive computational bottleneck for downstream LLMs.
To mitigate this, existing methods often rely on hand-crafted 3D inductive biases, such as Bird’s-Eye-View (BEV) grids or voxels. While these structures reduce data dimensionality, they are often rigid, require precise camera calibration, and fail to account for the non-uniform information density of driving scenes. In this work, researchers from USC, Stanford, and NVIDIA present Flex, a geometry-agnostic scene encoder that replaces complex geometric priors with a simple, data-driven Transformer.
The Flex Scene Encoder
The core of the Flex architecture is a flexible, joint scene encoder designed to compress spatiotemporal visual data into a compact set of "scene tokens." Unlike traditional methods that process cameras individually or project them into fixed 3D grids, Flex uses a lightweight 8-layer Transformer that attends to all image tokens across all cameras and timesteps simultaneously.
Key Architectural Features:
- Joint Spatiotemporal Attention: By processing the entire volume of multi-camera data at once, the model can naturally identify and suppress redundancies in overlapping camera views or static frames.
- Information Bottleneck: Flex employs a small set of learnable queries (scene tokens). After the encoding process, the original high-dimensional image tokens are discarded, and only the compressed scene tokens (e.g., 900 tokens) are passed to the LLM (Qwen2-0.5B).
- Interleaved Prediction Strategy: To enhance the training signal, the authors introduced a novel interleaved loss. The model is trained to predict future trajectories using only partial prefixes of the scene tokens, forcing the encoder to learn more robust and diverse representations.
Experimental Setup
The model was trained on a massive proprietary dataset comprising 20,000 driving hours collected from a global fleet operating in over 1,700 cities. This dataset encompasses a vast array of weather conditions, lighting environments, and traffic scenarios. Evaluation was conducted on a geographically distinct holdout set to ensure generalization.
Results and Discussion
Flex demonstrates that removing hand-crafted 3D priors in favor of data-driven representations leads to both higher efficiency and better driving performance.
- Efficiency Gains: Flex achieved an inference throughput of 41.08 clips per second, a 2.2× improvement over the baseline VLA model (18.60 clips/s).
- Driving Accuracy: Despite the significant reduction in token count, Flex improved driving performance, reducing the minimum Average Displacement Error (minADE6) from 0.80 to 0.76.
- Emergent Specialization: Qualitative analysis revealed that scene tokens naturally specialized without explicit supervision. Certain tokens focused on lane markers, while others tracked the vehicle's destination or scanned for potential hazards, mirroring human-like scanning patterns.
- Scalability: Flex maintains performance as the number of cameras increases, effectively solving the "token explosion" problem that typically degrades the performance of baseline models.
Conclusion
Flex represents a shift toward simpler, more flexible architectures for end-to-end driving. By leveraging a geometry-agnostic Transformer to compress multi-camera video, the system achieves state-of-the-art efficiency and accuracy. Future work will focus on improving the interpretability of the latent scene tokens and evaluating the model's performance in rare, safety-critical "long-tail" scenarios.
Summary updated