End-to-End Autonomous Driving with Vision Foundation Models: Does Feature Quality or Decision Architecture Matter More?

    This article examines how vision foundation models (VFMs) affect end-to-end autonomous driving. It explains why visual encoders are critical, why directly deploying large VFMs in vehicles is costly, and why single-model validation leaves key questions unanswered. It then introduces representation alignment, which uses a frozen VFM during training and removes it at inference, so knowledge transfer does not increase deployment cost. The article analyzes why the same VFM can produce very different results across driving architectures, covering feature-task matching, architecture capacity, alignment layer choice, and data distribution. It also provides engineering recommendations and a controlled experiment matrix for evaluating whether a VFM’s benefits are stable and transferable.

    1. Background: What End-to-End Autonomous Driving Does

    An end-to-end autonomous driving system can be understood as a unified “look at the image and make a decision” model. Cameras capture road images, the model extracts features, and then directly outputs a future driving trajectory or steering and throttle commands. Compared with a traditional modular pipeline, it does not require manually splitting the task into separate stages such as lane detection, vehicle detection, and path planning. Information from different parts is coordinated automatically during training.

    The upper bound of this structure depends heavily on feature quality. If the encoder cannot reliably extract key information such as road structure, obstacle depth, and dynamic object motion, a stronger decision head cannot easily compensate. Therefore, the visual encoder is one of the core components of an end-to-end system.

    2. Why Vision Foundation Models Attract Attention

    A Vision Foundation Model (VFM) refers to a large-scale model pretrained on massive image data that has general visual understanding capability. It follows an idea similar to large language models, except that the input is images. In recent years, such models have performed well on tasks including semantic segmentation, 3D geometry estimation, and object understanding. Many researchers therefore hope to bring their capabilities into driving systems.

    Directly introducing a VFM has clear costs. Large models have many parameters and high computational demands. If one runs continuously as an on-vehicle inference module, it consumes compute, increases latency, and raises power consumption. Vehicle systems are highly sensitive to real-time performance and resource usage, so installing the entire large model in the vehicle is often infeasible.

    3. Core Gaps in Existing Research

    Most current work uses single-point validation: one driving model is paired with one vision model, and a performance improvement is enough for publication. This approach can show that a particular combination works, but it cannot answer the following questions.

    First, after changing the vision model, is the performance gain stable, or does it depend on the specific combination?

    Second, can the conclusion transfer to another driving architecture?

    Third, does the gain come from the quality of the features themselves, or from an additional regularization effect during training?

    One can draw an analogy to common conclusions in nutrition. A claim such as “a certain food helps with weight loss” is difficult to judge without details about the population, diet composition, and physical activity. Research on visual features in autonomous driving likewise requires controlled experiments.

    Related research reports indicate that, across different driving architectures, the benefit brought by the same vision model can differ by more than a factor of two. Some architectures barely benefit from a stronger vision model, while others improve significantly. This shows that the relationship between vision model strength and driving performance is not simply linear.

    4. Representation Alignment: Leverage During Training, Remove at Inference

    One approach is to use a vision foundation model during training and remove it during inference. This falls under representation alignment, where one model’s internal features are made to approximate another model’s features, thereby indirectly inheriting the latter’s knowledge without running it at deployment.

    4.1 Training Pipeline

    During training, the same batch of images is fed into two networks:

    • The driving model’s encoder, whose parameters are trainable;
    • The vision foundation model, whose parameters are completely frozen and which performs forward computation only.

    The two paths output features separately. While completing its original trajectory prediction task, the driving model also uses an alignment loss to bring its own features closer to those of the frozen model. After training, the vision foundation model is discarded entirely, and the deployed model structure remains the same as the original driving model.

    4.2 Key Design Points for the Alignment Loss

    The alignment loss needs to address two issues: mismatched feature dimensions and different semantic spaces. A common approach is to add a small projection layer on the student side to map features to the teacher feature dimension, and then compute a similarity loss. The following illustrative pseudocode is only intended to explain the flow:

    1. # Illustrative pseudocode; data loading and optimizer details omitted
    2. for images, expert_traj in train_loader:
    3. with no_grad():
    4. teacher_feat = frozen_vfm_encoder(images) # frozen; no gradient computation
    5. student_feat = driving_encoder(images) # trainable
    6. proj_feat = projection_head(student_feat) # dimension alignment
    7. pred_traj = planning_head(student_feat)
    8. loss_task = trajectory_loss(pred_traj, expert_traj)
    9. loss_align = 1 - cosine_similarity(proj_feat, teacher_feat).mean()
    10. loss = loss_task + lambda_align * loss_align
    11. loss.backward()
    12. optimizer.step()
    13. # After training, neither frozen_vfm_encoder nor projection_head is used in deployment

    Here, lambda_align is a weight hyperparameter. If the weight is too large, learning of the driving task is suppressed; if it is too small, the alignment effect is weak. In practice, the value should be scanned on a validation set to find the balance between the two objectives.

    4.3 Why Inference Cost Does Not Increase

    At deployment, only the driving encoder and planning head are kept, and the computation graph is the same as the original model. Knowledge is written into the parameters of the driving encoder rather than obtained by running the large model. Therefore, vehicle-side latency, memory usage, and power consumption do not change because of this. This point is especially important for production systems.

    5. Why the Same Vision Model Can Produce Very Different Results

    Given the mechanism of representation alignment, the differences in results can be explained from several perspectives.

    5.1 Match Between Feature Space and Driving Task

    Features learned by general vision models usually lean toward image semantic categories or object structure, and may not align with the information required for trajectory planning. Planning needs geometric and temporal cues such as drivable areas, relative motion, and collision risk. If the vision model’s feature space is misaligned with these cues, alignment may instead introduce interference.

    5.2 Capacity and Information Bottleneck of the Driving Architecture

    Different architectures use features in different ways. If encoder capacity is insufficient, or critical spatial information is compressed too early, then even if the alignment loss decreases, details cannot be passed to the decision side. Models with well-designed architectures can absorb external features more fully.

    5.3 Choice of Alignment Layer

    Alignment can be applied to shallow, middle, or deep features. Shallow layers tend toward texture and edges, while deep layers tend toward semantics. Which layer’s information driving decisions depend on depends on the specific task and network structure. If the layer is chosen incorrectly, the benefit may be very limited.

    5.4 Data Distribution and Scenario Coverage

    The pretraining data of vision models usually covers a large number of general scenes, while driving datasets are concentrated on specific distributions such as roads, vehicles, and pedestrians. The larger the domain gap between the two, the lower the efficiency of feature transfer. This problem is especially evident in long-tail scenarios such as nighttime, rain and snow, and construction zones.

    6. Engineering Practice Recommendations

    If a team plans to introduce knowledge from vision foundation models, it can proceed as follows.

    1. Establish a baseline: fix the driving architecture and dataset, and record the original model’s performance on open-loop and closed-loop metrics.
    2. Control variables: change only one factor at a time, such as the vision model, alignment layer, or loss weight.
    3. Validate across architectures: reproduce the conclusion on at least two structurally different driving models to rule out the possibility that it is specific to one architecture.
    4. Use multiple random seeds: run the same configuration with multiple random seeds, and report both mean and variance.
    5. Evaluate by scenario: split metrics by weather, lighting, and road type, and observe whether gains are concentrated in a small number of scenarios.
    6. Check inference metrics: confirm that the deployed model’s latency, memory, and power consumption match the baseline, preventing unintended additional overhead.

    7. Example Controlled Experiment Design

    A reusable experiment matrix can be organized as follows:

    • Horizontal axis: vision model type (no alignment, Model A, Model B, Model C)
    • Vertical axis: driving architecture (Architecture 1, Architecture 2, Architecture 3)
    • Metrics: open-loop trajectory error, closed-loop pass rate, inference latency
    • Each cell: at least three random seeds

    This matrix can answer two questions at the same time: whether a vision model is stably effective, and whether its effect depends on a specific architecture. If a vision model improves performance across most architectures, its features have better generality.

    8. Conclusion

    Vision foundation models have potential value for autonomous driving, but the effect is not determined only by the strength of the vision model. Driving architecture, feature layer, data distribution, and training strategy jointly affect the final result. Representation alignment provides a path that balances knowledge transfer with inference efficiency.