Skip to main content
Back

GraphPilot Cuts Self-Driving Collisions in Half Without Changing the Model

A model-agnostic training trick feeds serialized traffic scene graphs to driving VLMs, boosting driving scores by up to 25% with no test-time overhead.

Pro

  • GraphPilot injects serialized traffic scene graphs into driving VLM prompts, no architecture changes needed. Paper
  • Training with graphs and removing them at test time (SG10) still yields large gains across LMDrive, BEVDriver, and SimLingo.
  • LMDrive Driving Score jumped from 42.9 to 51.8 on LangAuto; BEVDriver from 44.7 to 56.1.
  • Actor-Only abstraction with Text serialization is the token-efficient sweet spot at ~69 tokens.
  • Vehicle collisions dropped 58.6% versus the pretrained LMDrive baseline; route completion improved.
  • Code, models, and scene graph dataset released at github.com/iis-esslingen/GraphPilot.

Language-based driving models can read a natural instruction like "turn left at the intersection" and translate camera frames into steering, throttle, and brake commands. But they are notoriously bad at reasoning about what other agents in the scene are doing, why they matter, and how the road topology constrains a maneuver. A new paper called GraphPilot, from researchers at Esslingen University and the University of Freiburg, shows that you can fix a large chunk of that weakness without touching the model architecture. You just serialize a traffic scene graph into plain text and paste it into the prompt during training.

The trick works even when the graph is removed at inference time. Across three different driving VLMs, this cheap intervention delivered double-digit gains on closed-loop CARLA benchmarks.

Why VLM drivers keep missing the point

Modern language-based driving agents operate at the intersection of perception, language, and planning, requiring not only accurate scene understanding but also the ability to reason about spatial structure, traffic rules, and interactions among dynamic actors. The problem is that most current systems represent a scene as raw image tokens or bird's-eye-view (BEV) grids, then hope generic attention layers infer which car is about to cut you off. As a result, critical relationships between entities must be inferred implicitly.

Scene graphs are an old idea from vision research: nodes are entities (cars, lanes, traffic lights) and edges are labeled relations ("is left of", "controls traffic of", "is in"). They have been used for indoor robot navigation and for risk estimation in driving, but nobody had tried feeding one directly into a language-based planner as text. That is the gap GraphPilot fills.

The setup: turn the scene into a paragraph

The authors build a scene graph at every time step from privileged simulator state (3D bounding boxes plus HD map metadata). Nodes fall into three groups: structural elements like lanes and junctions, actors like the ego vehicle and pedestrians, and traffic objects like lights and stop signs. Edges cover proximity, direction, lane membership, topology, and regulatory relations.

They then define three abstraction levels that trade fidelity for token budget:

  • Full: everything, including lane-level topology.
  • Road-Level: lanes collapsed into parent roads.
  • Actor-Only: just the ego, other agents, and their pairwise spatial relations. No static structure.
Scene graph serialization formats comparison

Each graph is serialized as one of three human-readable formats: a compact pipe-delimited Text form, JSON, or YAML. All three encode the same subject-predicate-object triplets. Text is the cheapest at around 69 tokens for Actor-Only graphs, while JSON blows up to 2,905 tokens for the Full abstraction. Three prompt templates (V1, V2, V3) wrap the graph and the navigation command with varying amounts of section headers and code-fence formatting.

Four training regimes, one surprising winner

The team defines a 2x2 matrix of when the graph is available:

  • SG00: no graph at training or test time (the baseline).
  • SG01: graph only at test time, injected zero-shot.
  • SG10: graph only during training, dropped at inference.
  • SG11: graph during both training and inference.

The most interesting result is SG10. The model sees serialized graphs during fine-tuning, but at deployment it gets only camera, LiDAR, and the natural-language command. Yet it still drives dramatically better. The authors describe this as a "relational bottleneck" during training that forces the vision-language backbone to prioritize safety-critical spatial features and dynamic inter-actor dependencies. In effect, the graph acts as temporary scaffolding that teaches the model where to look, and the internalized attention pattern persists after the scaffold is removed.

The numbers

The team evaluates on two closed-loop CARLA benchmarks: LangAuto, which replaces waypoint goals with natural-language commands across eight towns, and Bench2Drive, a 44-scenario interactive suite. The primary metric is Driving Score (DS), the product of route completion and infraction score.

Applied to three different architectures, SG10 with Actor-Only graphs delivered:

ModelBaseline DSSG00-FT DSSG10 Best DS
LMDrive (LLaVA-v1.5)42.941.551.8 (Text, V3)
BEVDriver (LLaMA-7B)44.748.956.1 (YAML, V2)
SimLingo (InternVL2-1B)87.487.488.9 (JSON, V2)

The safety breakdown is the more revealing story. Compared to the pretrained LMDrive, SG10 dropped vehicle collisions from 2.83 to 1.17 and layout collisions from 4.28 to 2.07, while raising route completion from 54.8 to 56.1. The fine-tuned-without-graphs baseline (SG00-FT) looked artificially safe on some metrics, but that was survival bias: it timed out or got blocked more often, so it never reached the tricky interactions in the first place.

Qualitative comparison of baseline versus GraphPilot on collision avoidance and turn scenarios

Less is more with abstraction

Counterintuitively, the Actor-Only abstraction, which throws away lane topology and traffic signs, consistently won. It uses about 69 tokens instead of 400 to 2,900 for richer variants, and it still delivers the biggest DS gains. The authors interpret this as evidence that pretrained VLMs already extract structural context from images reasonably well, but they need help attending to inter-agent dynamics.

Template V3, which wraps the graph in a markdown-style fenced block with an explicit "Primary Objective" preamble, edged out simpler concatenation. And for LMDrive specifically, SG10 outperformed SG11: leaving the graph out at test time was actually better than keeping it, because the frozen LLM backbone struggles with the distribution shift of serialized text at inference. BEVDriver, which updates its LLM via LoRA, preferred SG11.

Noise robustness and practical takeaways

The team stress-tests the approach with node/edge dropout up to 60% and semantic label noise up to 30%. SG11 held steady at 47.3 DS even under heavy noise, because the coarse-grained spatial bins absorb perception jitter and the model learns to cross-check labels against visual features. SG01 (zero-shot injection) is more brittle.

For anyone working on end-to-end driving stacks, the practical picture is:

  1. You do not need a graph encoder or a new loss function. Serialize as text and prepend it to the prompt.
  2. Train with graphs, deploy without them. You get most of the benefit and pay zero test-time cost in latency or tokens.
  3. Actor-Only + Text serialization is the sweet spot for token efficiency.
  4. Whether SG10 or SG11 wins depends on whether your language backbone is frozen or LoRA-tuned.

The code, fine-tuned checkpoints, and the extended scene graph dataset are all public. The scene graph extraction pipeline is built for CARLA but the authors note it generalizes to real-world datasets like nuScenes, where 3D boxes and HD map metadata are standard.

The broader implication is worth chewing on. If a text-only relational prior can permanently reshape how a vision-language model attends to a driving scene, it suggests that many of the reasoning failures in current VLM planners are not architectural. They are supervision failures, and they may be fixable with structured prompts alone.