DriveFoundry Deep-Dive: How Xiaomi's Self-Driving Team Answers Six Hard Questions About Large Autonomous-Driving Models
What Xiaomi's DriveFoundry report works out: decisions made on the car and model changes made offline can be traced back along the same record.
Autonomous driving faces two unavoidable constraints. During training, the driving experiences that actually expose a system's capability limits are scarce, and finding, labeling, and reviewing each one costs money. On the road, every decision is time-boxed: the model must pick an action under a finite compute budget. Both constraints point to the same question: how do you learn a reusable judgment from one critical experience, and how do you put it to use next time at a low enough cost?
In its DriveFoundry technical report, Xiaomi's auto team splits the loss of a single driving decision into two parts: one, the model failed to propose a good enough maneuver; two, a good maneuver was already among the candidates but the system picked another. The distinction shapes two engineering decisions at once: on the car, should the next slice of compute go to gathering more scene evidence and replanning, or to checking the consequences of the trajectories already on the table? And after this stretch of data is harvested offline, should you add a missing behavior or correct a wrong score?
Along that line, six questions can be viewed together. At training time: why do five tasks share one set of large-model weights, and how does causal supervision shape actions? On the road: how do you tell whether candidate generation or selection went wrong, what information world prediction adds to scoring, and when is an extra compute step worth it? Back at training: what kind of data should one failure become?
Take NVIDIA's Alpamayo-R1 as an example: it uses a vision-language backbone plus a dedicated action expert to generate trajectories. Xiaomi's Xiaomi-Drive-o1 instead lets five tasks - perception, causal analysis, action planning, world prediction, and value estimation - share one set of large-model backbone parameters, trained jointly, with each task handling its own inputs and outputs through its own queries, adapters, and output heads. The practical question behind the architecture: the weights updated by causal analysis and similar tasks during training are exactly the ones fast planning uses. So once the explicit analysis step is dropped on the car, how much of the benefit does planning retain?
Theta is the shared weight. When an auxiliary task's gradient aligns with the fast-path loss gradient, a small update can locally reduce the fast-path loss.
The report answers this with an experiment on a fixed inference path. On a 0.8B model, with the fast path and token usage held constant, joint training cut the minimum average displacement error of six candidate trajectories in 5-second prediction from 1.93 meters to 0.89 meters - a drop of about 54%. In the same group, the close-contact rate in closed-loop simulation also fell from 43.6% to 30.8%. Shared weights thus acquire a verifiable engineering meaning: what is taught more thoroughly during training can keep its gains inside the car's existing fast path.
Connecting scene evidence to driving rationale has been done in prior VLA work. DriveFoundry chooses a more direct test: make two scenes look as similar as possible, change only the key fact that should affect the decision, and see whether the car changes its maneuver accordingly. The same construction barrier matters differently sitting at the roadside versus intruding into your lane; the same stationary car ahead calls for waiting or detouring depending on whether it is queued traffic or a breakdown blocking the lane. Even after recognizing the object correctly, the model still has to judge what the object means for the current action.
Paired positive and negative examples of construction and temporary parking show how key facts, causal chains, and actions correspond.
After changing scene factors, the tests separately check how much a given action's feasibility and the relative value of two candidates change.
In two targeted test sets of 200 clips each, adding the causal chain lifted decision F1 in the construction scene from 68.5% to 89.0%, and in the stationary-vehicle scene from 57.0% to 82.5%. The latter group's whole-clip pass rate also rose from 45.5% to 73.5%. The result pins "understanding the reason" to concrete behavior: whether the model waits when it should wait, and starts detouring early enough when it should detour.
Candidate trajectory generation and scoring already have mature research lines in the industry - Hydra-MDP, for instance, uses signals from human driving and rule-based teachers to evaluate many maneuvers. What makes DriveFoundry worth watching is that it carries this distinction all the way through onboard inference and offline error correction. The report's Equation (10) splits the value loss of one decision into two terms: the gap between the best feasible action and the best candidate, and the gap between the best candidate and the action actually chosen.
Comparing yielding versus proceeding in the same scene, with candidates and their consequences wired into the data and model-learning pipeline.
The first term is the value gap between the best feasible action and the best candidate; the second is the value gap between the best candidate and the action actually chosen.
This directly determines what the system should do next. If the early-detour maneuver is missing from the candidate set, no amount of further scoring of existing trajectories will recover it; the system needs more scene evidence and a replan. If a reasonable detour trajectory already exists but is ranked behind a dangerous one, the consequence prediction and scoring deserve review. Offline, the same split holds: the first failure calls for adding behavior supervision, the second for auditing the basis on which candidates were evaluated. Understanding a failure starts with preserving which maneuvers were still available at the time.
With world prediction added, the average displacement error of the 5-second selected trajectory rose marginally from 1.46 meters to 1.47 meters, yet the collision rate on the same test set fell from 13.17% to 11.40%. Why can collision metrics improve while the average distance to the human record barely moves? Xiaomi's earlier technical report, Discrete-WAM, offers a clue. The researchers held the current observation fixed, applied lateral perturbations to the ego vehicle's future actions, and measured how the distribution of predicted future visuals differed across actions - a quantity they call "surprise." In these experiments, when a perturbation led to a collision or running off the road and the planning score dropped to zero, surprise rose markedly while ordinary pixel error changed far more gently. The observation implies that the distribution learned by visual generation contains information tied to driving consequences. Surprise here is a risk cue; interpreting it as accident probability would take extra calibration.
After perturbing actions laterally, comparing the planning score PDMS, the surprise of the future prediction, and the pixel difference.
S is the KL divergence between the future visual prediction distributions corresponding to the recorded action and the perturbed action under the same visual observation; the value itself is not a collision probability.
DriveFoundry gives this kind of information an explicit destination: the action module proposes candidate trajectories, the world model predicts the near future along each trajectory, and the future visual representation is handed to the value module to help evaluate that same trajectory. How far a trajectory sits on average from the record, and whether it leaves a safety margin at the critical moment, are simply different things to measure. The results are consistent with the explanation that future information helps judge candidate consequences.
Fast-slow inference already has representative work such as AdaThinkDrive. DriveFoundry refines the choice down to the compute value of specific tasks. If the system cannot tell whether a lane is occupied, extra perception and causal analysis can help generate new candidates; if two feasible trajectories already exist but their risks are hard to distinguish, the compute budget is better spent predicting their consequences. What the scheduler must estimate is: relative to committing to an action now, which extra step most likely improves the final choice, and whether that gain covers the added cost.
The scheduling objective equals the estimated return after the extra computation minus the estimated return of stopping now, less the extra execution cost.
The answers to question one and question five come from two controlled runs of the same 0.8B model. Placed side by side, they separate the gains that come from training from the gains that come from extra online computation.
Joint training determines what the fast path already knows; compute scheduling determines what this particular choice is still worth adding.
DriveFoundry's data loop starts with what a single training sample looks like. Figure 5 unpacks a roughly 20-second video of a left turn at an intersection: the ego vehicle first changes lanes into the left-turn lane, slows near the intersection, waits for the right conditions, then completes the left turn. The paper splits this continuous process into two parallel decision timelines: laterally, when to change lanes, hold the lane, begin the left turn; longitudinally, when to adjust speed, yield, and fall into car-following. Vehicles, signals, and road information in the keyframes are numbered, so you can trace along the timelines which decision each one influenced.
Causal annotation of one left-turn sample. Read by column, you can go from keyframes to factor numbers, lateral and longitudinal decisions, and driving rationale; read along the time axis, you can see how the yield target and decision basis change. Time spans and factor states in the figure are illustrative.
The most striking part of this figure is seconds 8-9. The light now allows the left turn, and two oncoming vehicles going straight have already entered the intersection. The annotation records the green light as F6 and the two cars sitting on the ego path as F3 and F4. In that second, the ego vehicle's lateral decision is to hold the lane and its longitudinal decision is to yield. By seconds 10-14, the lateral decision has entered the left-turn phase, and another vehicle ahead turning right becomes a new yield factor. The same left-turn intent persists for several seconds, but the basis for deciding when it can go and whom to let go first keeps changing. Each time bar in the figure records one factor-decision relation and its validity window, and the natural-language causal chain at the bottom restores those relations into readable driving rationale.
Equation (22) puts these annotations back into a complete "scene-candidate" record. Figure 5 unpacks its factor-decision relations; the record also links each candidate action in the same scene to its corresponding future visual target, value assessment, and feasibility label. Validity flags say which supervision is available, and source fields preserve where the evidence came from. The action actually executed can be supervised by the subsequently observed footage; the consequences of unexecuted candidates need rules, simulation, or human review to supply the basis.
i indexes the scene and decision moment, n indexes one candidate within the record, so the actions, consequences, and evaluations of different maneuvers each have a home.
One reviewed experience can teach the model several abilities at once. In Figure 5, vehicle positions can train perception; whether an oncoming car enters the ego path can train causal judgment; when to yield can train decision-making; and the trajectory actually driven afterwards provides action supervision. This lines up with question one's shared weights: on the model side, multiple tasks update one set of backbone parameters; on the data side, the supervision those tasks use traces back to evidence from the same scene at the same moment.
Such samples give post-mortems a concrete handle. Suppose the model sets off too early at a green light while oncoming traffic has not yet cleared. The team can go back to the exact second of the error and check item by item: is the oncoming vehicle marked in the keyframe? Is it correctly labeled "on the ego path"? Is that relation bound to the longitudinal yield decision, and does it expire too early? The answers decide whether the next round fixes the target annotation, the factor-decision link, or the link's duration. The most reusable knowledge in a video is which facts changed which driving decision at which moment. Figure 18 and Equation (8) further show how these corrections enter the annotation system and the next round of driving-model training.
Reviewed annotations go through quality checks and retraining, pushing updates to the annotation model and the training data.
Cases are selected from the current round's failures, annotations revised and merged into the dataset, and the model updated with replay of old data.
Missed a key factor? Fix the evidence and its relation to the action. Failed to propose a feasible option? Add the alternative behavior. Ranked candidates wrong? Review the consequence labels and the scoring basis. Confirmed revisions both train the next version of the driving model and update the annotation model, shaping how data gets produced for similar scenes next round. The report includes pipeline and component-level experiments.
How does the whole system do in closed loop? Across 1,607 AlpaSim simulation scenarios, Xiaomi-Drive-o1-9B posted a close-contact rate of 19.1% and an off-road rate of 9.8%; in the same table, the 34B Alpamayo 2 Super scored 21.9% and 10.3% respectively and led on trip progress and composite score. The team also ran the inference pipeline at 10 Hz on a real-vehicle test setup equipped with an NVIDIA RTX 4090.
The one thing this Xiaomi report has thought through is that decisions made on the car and model changes made offline can be traced back along the same record: what was seen at the time, which maneuvers were proposed, and why this one was finally chosen. The gains shared training brings to the fast path and the tokens saved by on-demand inference already have controlled experiments. Measuring this data loop next means asking: under the same annotation and training budget, how many fewer same-type mistakes does the next model version make after several rounds of correction.
Chang Cheng's move from Lenovo to Xiaomi will cost him 5.32 million yuan in damages to his former employer. At the 1,599-yuan price of the Redmi K30 5G, Redmi's current mainline model, that 5-million-plus sum works out to about 3,330 Redmi phones.