Skip to content
AI.info

Research

VILTA: A VLM-in-the-Loop Adversary for Enhancing Driving Policy Robustness

VILTA: A VLM-in-the-Loop Adversary for Enhancing Driving Policy Robustness Overview Research area: Autonomous driving safety, reinforcement learning, vision-language models, safety-critical scenario g

arXiv
2601.12672
Published
2026-01-19
Authors
Qimao Chen, Fang Li, Shaoqing Xu, Zhiyi Lai, Zixun Xie, Yuechen Luo, Shengyin Jiang, Hanbing Li, Long Chen, Bing Wang, Yi Zhang, Zhi-Xin Yang

AI summary

VILTA: A VLM-in-the-Loop Adversary for Enhancing Driving Policy Robustness

Overview

Research area: Autonomous driving safety, reinforcement learning, vision-language models, safety-critical scenario generation.

Technical level: Advanced. The paper assumes familiarity with reinforcement learning (POMDPs, Soft Actor-Critic), closed-loop simulation, trajectory optimization, and Vision-Language Model (VLM) prompting.

Scope: The paper proposes and evaluates VILTA, a framework that puts a Vision-Language Model (Gemini-2.5-Flash) directly inside the reinforcement-learning training loop of a driving agent, where it edits surrounding vehicles' future trajectories to manufacture challenging scenarios.

What This Paper Is About

Real-world driving data is dominated by mundane situations, so rare but dangerous "long-tail" events are badly underrepresented, which makes autonomous driving policies fragile exactly where safety matters most. Existing ways to manufacture hard scenarios either generate them offline and never use them for training, or generate them inside training but rely on rule-based heuristics, resampling, or models trained on existing datasets, which limits how novel and diverse the challenges can be. VILTA's goal is to let a VLM both understand the driving scene and directly craft adversarial future trajectories for surrounding agents during training, producing scenarios that are simultaneously plausible, challenging, and diverse.

Key Contributions

  1. A VLM-in-the-loop training framework. VILTA integrates a multimodal large language model directly into the closed-loop training of driving agents, rather than using the VLM as a first stage that feeds a separate downstream generator. The VLM both comprehends the dynamic scene and edits surrounding agents' trajectories in a single pass.

  2. A Vision-Language-Editing (VLE) paradigm for trajectories. Instead of generating a future trajectory from scratch (the standard Vision-Language-Action approach), the VLM edits a rule-based baseline trajectory produced by a weighted fusion of a Constant Turn Rate and Velocity (CTRV) model with map waypoints. The paper reports that editing preserves the underlying motion structure and yields trajectories that are more challenging than those generated directly.

  3. A trajectory post-processing pipeline. Raw VLM output is passed through B-spline smoothing, a sigmoid fusion with the rule-based baseline trajectory, and a Linear-Quadratic Regulator (LQR) controller, so the final trajectory is both smooth and kinematically feasible.

  4. An empirical demonstration of safety and robustness gains, in CARLA (training in Town02, evaluation on Town01, Town02, Town03) and in a modified nuScenes environment, with ablations over post-processing, the following reward, the VLE paradigm, and the frequency of challenging scenarios.

Main Findings

  • Challenging-scenario performance (CARLA totals over Town01–03): VILTA achieved a total route completion of 2.38 versus 2.10 for VLM-RL and 1.90 for CAT, which the paper describes as exceeding the baselines by 13.3% and 25.3% respectively.

  • Lower crash rate under challenge: VILTA recorded a total crash rate of 1.03 versus 1.44 for VLM-RL and 1.70 for CAT, described as reductions of 28.5% and 39.4%.

  • Lower collisions per kilometer and impact speed under challenge: VILTA reported 48.62 collisions per kilometer and a collision speed of 11.81, compared with 51.74 and 15.18 for VLM-RL and 67.5 and 17.67 for CAT.

  • Efficiency was not sacrificed: Under challenging conditions VILTA's total average speed was 64.98 versus 66.43 for CAT, described as only a marginal 2.2% decrease.

  • No catastrophic forgetting on normal scenarios: In normal (non-adversarial) testing, VILTA reported the best total route completion (2.70), total distance (10827.90), and crash rate (0.63), versus 2.54 / 9966.38 / 0.76 for VLM-RL and 2.64 / 10318.29 / 0.86 for CAT. Its efficiency was reported as 5.1% lower than the top baseline, VLM-RL.

  • Post-processing matters: Removing post-processing improved route completion in challenging scenarios by 5.5% and reduced collisions per kilometer by 3.3%, according to the ablation.

  • The following reward matters: Adding the "Following Reward" boosted route completion by 4.1% and decreased collisions per kilometer by 6.0%.

  • The VLE paradigm matters: Removing VLE led to a decline in performance on all evaluated metrics. The paper attributes this to VLE and post-processing producing kinematically feasible trajectories that do not disrupt the physical consistency of the simulation.

  • Scenario mixing ratio matters: Performance degraded when challenging scenarios were introduced too infrequently (a 1:16 challenging-to-normal ratio) or too frequently (the 1:2 default). A 1:8 ratio (one challenging scenario per eight normal ones, "x8") gave the best trade-off in these experiments, with challenging-condition route completion 0.87 and collisions per kilometer 5.33, versus 0.77 and 18.13 for the x2 default.

  • Edited trajectories are both more diverse and harder: Across 100 randomly sampled cases, the final trajectory endpoints were more dispersed than the baseline, t-SNE visualization of trajectory features (length, average speed, max curvature, endpoint) showed a broader distribution for the final trajectories, and directly generated trajectories showed comparable diversity but minimum distances to the ego vehicle comparable to the original trajectories. The edited trajectories showed smaller minimum distances to the ego vehicle, more extreme accelerations, and more extreme steering angles, all with wider distributions.

  • nuScenes environment results: VILTA reported a normal-scenario crash rate of 0.05, off-road rate of 0.02, and success rate of 0.93, and a challenging-scenario crash rate of 0.34, off-road rate of 0.01, and success rate of 0.65. Comparisons were BC (0.01 / 0.11 / 0.88 normal; 0.38 / 0.11 / 0.51 challenging), PPO (0.06 / 0.17 / 0.77; 0.38 / 0.17 / 0.46), and BC + PPO (0.06 / 0.05 / 0.89; 0.36 / 0.02 / 0.62).

  • Additional CARLA towns: The supplementary material states that results for CARLA Town01–05 are shown in Table 6, but the table content is not included in the provided text, so those numbers are not reported here.

Methodology in Plain English

The setup. The ego vehicle is trained with reinforcement learning (Soft Actor-Critic, implemented with Stable-Baselines3) in the CARLA simulator. Each map is populated with 20 autopilot vehicles. One of them is designated the "risky agent."

Choosing the adversary. The scene is converted into a bird's-eye-view representation. The vehicle closest to the ego vehicle inside a predefined circular hazardous zone becomes the risky agent. Its driving direction, lane, and longitudinal/horizontal position relative to the ego vehicle are used to pick a hazardous maneuver from a predefined rule table (for example sudden-brake when in the same lane ahead, cut-in-left from the left, cut-in-right from the right, lane-encroachment or U-turn in opposite-lane situations).

The VLM's job. The BEV representation, the risky agent's driving mode, and the assigned hazardous maneuver are fed to Gemini-2.5-Flash. The model produces a structured scene analysis — assessing risk level, judging whether the intended maneuver is appropriate, and checking whether the ego vehicle is at an intersection (in which case more editing flexibility is allowed) — and then outputs an edited future trajectory for the risky agent.

Why editing rather than generating. The paper argues that asking the VLM to generate a trajectory outright (the Vision-Language-Action route) produces trajectories that are diverse but not especially threatening. Instead, it starts from a baseline trajectory built by linearly blending a CTRV model's output with map waypoints, so that the beginning of the path is dominated by the physics model and the end by the map:

p_fused = (1 - i/N) * T_model[i] + (i/N) * T_map[i]

The VLM then edits this baseline, which grounds the model and leaves it free to focus on making the trajectory difficult.

Making the result drivable. The raw edited trajectory goes through three steps: B-spline smoothing; a sigmoid-weighted fusion with the baseline trajectory (weights w_i = 1/(1+exp(M(2i-N)/N)), starting high on the baseline for behavioral continuity and then shifting toward the smoothed path); and an LQR controller that converts the blended path into a kinematically plausible trajectory. This final trajectory drives the risky agent inside the RL environment, closing the loop.

Training recipe. The ego agent alternates between normal and challenging scenarios. The main experiments use one challenging scenario per two normal ones (1:2), with the ablation exploring 1:4, 1:8, and 1:16. Rewards combine a driving style reward (product of speed, centering, heading angle, and stability terms), a following reward, and a safety penalty.

Baselines and compute. Baselines are VLM-RL (a unified VLM-plus-RL framework that generates reward signals from image observations and CLIP language features) and CAT (which trains on safety-critical scenarios generated from a pretrained motion prediction model, adapted here by collecting 1000 CARLA scenarios with 10-second trajectories and 150 frames each, then training a DenseTNT model to predict 2-second future trajectories). All experiments ran on a single NVIDIA H20 GPU on Debian, with the main experiment taking roughly 1.5 days and about 24 GB of VRAM.

Why This Matters

Impact on research. The paper challenges a widespread two-stage pattern in which a foundation model describes a scene and a separate downstream algorithm does the generating. It argues that this indirection caps the diversity of whatever the downstream algorithm produces, and shows that letting the VLM act directly inside the training loop changes the character of the generated challenges — not just their variety, but their severity relative to the ego vehicle. It also offers a reusable trick, "edit rather than generate," borrowed conceptually from image manipulation, which could apply to other trajectory-generation problems.

Real-world applications:

  • Safety validation and stress-testing of autonomous driving stacks before deployment, since rare corner cases are expensive or impossible to collect in real driving.
  • Scenario generation for simulation-based certification and regression testing of driving policies.
  • Curriculum design for training robotaxi or consumer autonomous vehicle fleets, with adjustable difficulty mixing ratios.
  • Data augmentation for perception and prediction models by synthesizing plausible yet difficult agent behavior around the ego vehicle.

Industry relevance. The author list includes an industry affiliation (Xiaomi EV), which signals direct interest in transferring these adversarial-training ideas into production autonomous driving development. The framework's use of a publicly accessible VLM API (Gemini-2.5-Flash) rather than a bespoke fine-tuned model makes it comparatively easy for a team to adopt.

Future Directions

  1. Sim-to-real transfer. The authors state that validation is currently confined to simulation and that real-world testing is needed to bridge the sim-to-real gap.

  2. Reducing dependence on the underlying VLM. Because performance is tied to the capabilities of the underlying VLM, the authors call for investigating model-specific biases.

  3. Multi-agent adversarial scenarios. The current implementation focuses on a single risky agent, while real critical events often involve multiple actors.

  4. Learning-based threat discovery. The initial identification of threats relies on predefined rules; the authors suggest more dynamic, learning-based threat discovery as a future direction. They also plan to extend the framework to end-to-end autonomous driving paradigms to test whether it improves robustness of integrated perception-planning architectures.

Target Audience

This paper is most valuable to autonomous driving safety and simulation researchers, reinforcement learning researchers working on robustness and curriculum learning, and practitioners building closed-loop evaluation pipelines for driving policies. It is also relevant to VLM researchers interested in using foundation models as active agents rather than passive describers, and to engineers at autonomous vehicle companies who need scalable ways to generate hard test scenarios. Readers without a background in RL or simulation will find the methodology sections dense, though the high-level argument about long-tail data is broadly accessible.

Authors’ abstract

The safe deployment of autonomous driving (AD) systems is fundamentally hindered by the long-tail problem, where rare yet critical driving scenarios are severely underrepresented in real-world data. Existing solutions including safety-critical scenario generation and closed-loop learning often rely on rule-based heuristics, resampling methods and generative models learned from offline datasets, limiting their ability to produce diverse and novel challenges. While recent works leverage Vision Language Models (VLMs) to produce scene descriptions that guide a separate, downstream model in generating hazardous trajectories for agents, such two-stage framework constrains the generative potential of VLMs, as the diversity of the final trajectories is ultimately limited by the generalization ceiling of the downstream algorithm. To overcome these limitations, we introduce VILTA (VLM-In-the-Loop Trajectory Adversary), a novel framework that integrates a VLM into the closed-loop training of AD agents. Unlike prior works, VILTA actively participates in the training loop by comprehending the dynamic driving environment and strategically generating challenging scenarios through direct, fine-grained editing of surrounding agents' future trajectories. This direct-editing approach fully leverages the VLM's powerful generalization capabilities to create a diverse curriculum of plausible yet challenging scenarios that extend beyond the scope of traditional methods. We demonstrate that our approach substantially enhances the safety and robustness of the resulting AD policy, particularly in its ability to navigate critical long-tail events.

Read the original paper