How to Build Autonomous Driving VLA Models: Hierarchical Cognition and Latent Feature Analysis

    This article explains why general-purpose large models struggle in autonomous driving. It compares three types of world model outputs (images, structured information, and latent features), describes a three-level hierarchical driving cognition framework with adaptive attention, and walks through a code sketch for fusing multi-level features. It also covers how to check closed-loop evaluation results and the main risks of deploying these systems.

    What Do General-Purpose Models Lack for Autonomous Driving?

    Large language models and multimodal large models have improved quickly in recent years. Their abilities in language understanding, image understanding, and complex reasoning have clearly advanced. However, applying these capabilities directly to a vehicle often gives poor results. General-purpose models are mostly trained on 2D images and videos. They lack structured representations of the 3D geometry, the relative positions of obstacles, and how those positions change over time, all of which driving requires.

    There are two main problems. The first is the lack of 3D spatio-temporal representation. Driving depends on spatial layout and temporal continuity, but standard vision-language models (VLMs) struggle to learn this information naturally. The second is the redundancy of world model outputs. What should a world model predict so that it can effectively guide the decisions of a VLA model? The industry has three main approaches:

    • Generating images: The predicted frames overlap heavily with the current input. They contain a large amount of pixel-level redundancy and express spatial geometry weakly.
    • Generating structured information: For example, predicting occupancy grids or bounding boxes. This data contains spatial information, but most of it has little relation to the current motion state of the ego vehicle. It adds computation and inference latency.
    • Generating latent features: Outputting continuous vectors that do not need to be human-readable. These vectors can compress a large amount of spatio-temporal information. Their main drawback is poor interpretability, which requires additional training and validation methods.

    Can the Cognitive Order of Human Driving Map to a Model?

    Human drivers usually take in the whole scene first and then focus on details. They understand before they act. The hierarchical world cognition framework follows this order when breaking down driving understanding. It has three levels:

    1. Scene cognition: Observe the overall environment first, including road topology, weather and lighting, and traffic density. This forms a global judgment of the current scene.
    2. Agent cognition: Building on the scene, identify the key objects that may affect the ego vehicle’s behavior, such as the vehicle ahead, pedestrians crossing the road, and non-motorized vehicles. Estimate their states and intentions.
    3. Goal cognition: Combine the scene, agent, and ego vehicle states to determine short-term local goals, such as changing lanes, slowing down, or yielding. Finally, output specific actions, such as a control trajectory.

    The three levels constrain each other in sequence. The scene determines which objects are worth attention. Key objects determine short-term goals. Short-term goals then limit the feasible range of the trajectory.

    How Can a Model Focus on the Right Things?

    The key to a hierarchical structure is adaptive attention. A model should not treat every object in its field of view equally. Instead, it should adjust its focus based on driving relevance.

    • During high-speed straight driving, the attention range can extend far ahead. The focus is on distant lanes and changes in traffic flow.
    • When turning, the focus shifts to blind spots on the inside of the curve and to points where the ego vehicle may meet other vehicles.

    In engineering implementations, the switching conditions must be explicit. For example, the system can switch attention strategies when speed, steering angle, or lane topology changes exceed a certain threshold. These thresholds should be determined using validation data rather than set directly by experience.

    How Can Latent Features Extract World Knowledge?

    The idea behind the latent feature route is to compress driving-relevant world knowledge into continuous vectors, which then feed trajectory generation. This route is usually built on a pretrained VLM. By having the model explicitly learn structured world knowledge, it aims to strengthen the model’s 3D spatial perception.

    The following illustrative code shows how features at each level branch and fuse. It cannot run as is. Before use, you must add data loading and the training pipeline.

    1. import torch
    2. import torch.nn as nn
    3. # Illustrative code: not runnable as is
    4. # Assumes vlm.hidden_dim = 1024, with scene, agent, and goal features each 256-dimensional
    5. # multi_view_images: [B, V, 3, H, W], where B is batch size and V is the number of camera views
    6. # ego_state: [B, D_ego]
    7. # action_trajectory: [B, T, 2], where T is the number of planning steps and 2 is the (x, y) waypoint
    8. class HierarchicalDrivingCognition(nn.Module):
    9. def __init__(self, pretrained_vlm, scene_dim=256, agent_dim=256,
    10. goal_dim=256, horizon=30):
    11. super().__init__()
    12. self.vlm = pretrained_vlm
    13. hidden = pretrained_vlm.hidden_dim
    14. self.scene_head = nn.Linear(hidden, scene_dim)
    15. self.agent_head = nn.Linear(hidden, agent_dim)
    16. self.goal_head = nn.Linear(hidden, goal_dim)
    17. fused_dim = scene_dim + agent_dim + goal_dim
    18. # Trajectory decoder: outputs horizon (x, y) waypoints
    19. self.decoder = nn.Sequential(
    20. nn.Linear(fused_dim, 512),
    21. nn.GELU(),
    22. nn.Linear(512, horizon * 2),
    23. )
    24. self.horizon = horizon
    25. def forward(self, multi_view_images, ego_state):
    26. base = self.vlm.encode(multi_view_images, ego_state) # [B, hidden]
    27. scene_feat = self.scene_head(base) # scene-level feature
    28. agent_feat = self.agent_head(base) # key agent feature
    29. goal_feat = self.goal_head(base) # short-term goal feature
    30. knowledge = torch.cat([scene_feat, agent_feat, goal_feat], dim=-1)
    31. traj = self.decoder(knowledge).view(-1, self.horizon, 2)
    32. return traj, knowledge

    This code has one point to note. The three branches share the same base feature, so they have no true hierarchical dependency between them. To reflect the order of scene first, then agents, then goals, the goal branch could take the agent feature as input and use a corresponding supervision signal during training.

    VLMs handle visual and language understanding, and VLAs build on that to output actions. Latent feature methods mainly address representation and planning. They do not mean that real-vehicle safety has been verified.

    How to Verify Evaluation Conclusions

    Closed-loop simulation papers and technical reports usually report planning metrics and collision metrics. When reading these conclusions, check the following items one by one:

    • The benchmark or dataset name, and whether the evaluation is open-loop or closed-loop simulation.
    • The input modality: pure vision, or a fusion that includes sensors such as LiDAR.
    • Metric definitions, including how collision rate is counted and how time-to-collision (TTC) is calculated and thresholded.
    • Whether the training setup of the baseline methods matches this method.
    • Whether the results come from a single run or multiple runs, and whether mean and variance are reported.

    Only when this information is complete can results be reproduced and compared. Claims of being “leading” or “best” without defined metrics should not be taken at face value.

    What to Watch for in Engineering Deployment

    Large multimodal models require significant compute and infrastructure. Teams usually need a general container platform, a distributed training cluster, and log monitoring services to support the full pipeline, from data cleaning and distributed training to inference deployment. These are general capabilities, and the choice should depend on the team’s existing technology stack and cost budget.

    There are three main deployment risks:

    1. Compute cost: Both training and inference of latent feature models require large amounts of GPU resources. Inference latency must meet the latency budget of the on-vehicle chip.
    2. Data compliance: Road data collected from multiple camera views may contain faces and license plates. This data needs anonymization and must comply with local data management regulations.
    3. The simulation-to-reality gap: Sensor noise, long-tail scenarios, and traffic participant behavior in simulation all differ from real roads. Good simulation metrics do not mean real-vehicle safety.

    If a team lacks closed-loop simulation capability, it can first validate with open-loop metrics and offline replay data. If compute is limited, it can start with the structured information route and introduce latent features later. The latent feature route is worth following, but before deployment, teams need verifiable data showing that it actually works in the target scenarios.