CARLA-GS: Decoupled AI Pipeline Synthesizes Rare Driving Scenarios from Real Data

CARLA-GS: Decoupled AI Pipeline Synthesizes Rare Driving Scenarios from Real Data

Kaicong Huang, Meng Ma, Ruimin Ke

7 min readJul 9, 2026

CARLA-GS introduces a modular framework that decouples visual reconstruction, semantic reasoning, and physics simulation to autonomously generate rare but safety-critical driving scenarios—called corner cases—from real-world data. By combining 3D Gaussian splatting with large language models and the CARLA simulator, the pipeline produces photorealistic and physically valid traffic interactions without requiring dangerous real-world testing.

What the Researchers Built

The team created a three-stage pipeline for autonomous driving corner-case synthesis. First, they reconstruct a static driving scene using 3D Gaussian Splatting (3DGS) from multi-camera video footage—in this case, clips from the Waymo Open Dataset. This gives them a photorealistic, interactive 3D representation of the environment.

Second, a large language model (LLM) analyzes the scene and reasons about potential safety-critical events, such as a pedestrian suddenly crossing from behind a parked vehicle or a car merging without signaling. The LLM outputs a natural-language description of the scenario and a trajectory for a dynamically inserted vehicle or agent.

Third, they transfer the LLM-generated trajectory into the CARLA simulator, where a PID controller executes the maneuver while maintaining vehicle dynamics. Meanwhile, the static background from the Gaussian reconstruction is rendered alongside a 3D asset library (e.g., replaced vehicles) using a backprojection method. The result is a video sequence of the corner case that is both visually plausible and kinematically feasible.

Illustration of the scene reasoning step: an LLM identifies a hidden pedestrian scenario and proposes a vehicle trajectory to create an occlusion-based corner case.

Key Results

The researchers demonstrated the pipeline on four types of corner cases: cut-in, emergency braking, occlusion-based pedestrian crossing, and adversarial vehicle merging. Each scenario was generated from real driving data and evaluated for both visual quality and physics consistency.

The main computational bottleneck is the 3D Gaussian reconstruction, which takes about 2 hours on a single RTX 4090 for a 100-frame three-camera scene. However, this is a one-time cost per scene; once the scene is reconstructed, multiple corner cases can be synthesized from it. The LLM reasoning step takes 40–50 seconds per scenario, trajectory generation about 10 seconds, and the CARLA physics rollout typically completes in under 60 seconds.

On the Waymo Open Dataset, CARLA-GS produced photorealistic rendered frames that closely matched the original scene appearance while introducing dynamic agents with realistic kinematics. No quantitative metrics like FID or PSNR were reported in the paper, but the authors claim that rendering quality and kinematic feasibility were maintained across all synthesized scenarios.

How It Works

CARLA-GS decomposes corner-case generation into three independent modules that communicate through explicit interfaces: the Gaussian representation of the static scene, the LLM reasoning about traffic events, and the CARLA physics engine.

Module 1 – Gaussian Representation: Using 3D Gaussian Splatting, the pipeline reconstructs a static scene from multi-view video. Depth maps, normal maps, and occlusion masks are precomputed. This representation allows arbitrary viewpoint rendering at high speed, enabling the system to later composite dynamic agents onto the background.

Module 2 – LLM Reasoning: A large language model (fine-tuned on traffic scenarios) receives a textual description of the scene along with prompts for specific corner-case types. The LLM outputs a structured scenario description and a set of waypoints for the trajectory of the inserted agent. The reasoning step considers road geometry, occlusions, and typical human driver behavior.

Module 3 – Physics Simulation: The waypoints are fed into the CARLA simulator, where a PID controller handles low-level throttle, brake, and steering commands to follow the trajectory. The static Gaussian background is rendered via differentiable rasterization, and dynamic objects (the inserted vehicle or pedestrian) are drawn from a pre-built 3D asset library. The final frame is composited by backprojecting the rendered agent onto the Gaussian scene.

The computational costs are summarized below:

Pipeline StageTime (single RTX 4090)
3DGS reconstruction (100 frames, 3 cameras)~2 hours
LLM scene reasoning40–50 seconds
LLM trajectory generation~10 seconds
CARLA PID rollout<60 seconds
Backprojection & asset renderingnegligible (pre-built library)

A key insight is that the 3DGS reconstruction step can be accelerated by newer fast-GS pipelines, and the LLM costs are per scenario—making the overall pipeline efficient for batch generation of multiple corner cases from a single scene.

Comparison of original Waymo footage (top) and CARLA-GS synthesized corner case (bottom): the static background remains photorealistic while a new vehicle executes a cut-in maneuver.

Why This Matters for Robotics

Autonomous vehicles need to handle rare but catastrophic events that are dangerous to reproduce in real-world testing. CARLA-GS offers a practical alternative: instead of collecting millions of miles to encounter corner cases, engineers can generate them synthetically from existing captured data, while preserving physical realism.

The decoupled architecture means each module can be independently upgraded—better rendering, smarter LLMs, or more accurate physics—without retraining the whole system. This flexibility is critical for safety validation in commercial autonomous driving stacks.

For robotics deployment, this pipeline can supplement training data for perception and planning models, especially for autonomous warehouse robots and humanoid robots operating near humans. The ability to generate photorealistic, physically valid corner cases from logged data reduces the gap between simulation and reality.

Limitations and Open Questions

The current pipeline relies on a single RTX 4090 for reconstruction, which may not scale to longer road segments or higher camera counts without more efficient Gaussian representations. Sparse camera setups can cause view-consistency issues, producing artifacts when the viewpoint moves far from the training views.

The LLM reasoning has not been formally verified for safety—it could generate physically impossible or unsafe trajectories that the PID controller cannot follow, though the authors note that closed-loop verification is future work. Additionally, the asset library is pre-built and static, limiting the variety of dynamic agents.

Finally, the evaluation is qualitative; without established metrics like FID or collision rate, it is hard to compare CARLA-GS to alternative simulation pipelines.

Frequently Asked Questions

What types of corner cases can CARLA-GS generate? It can synthesize cut-in, emergency braking, occlusion-based pedestrian crossing, and adversarial vehicle merging scenarios, among others.

Do I need a powerful GPU to run CARLA-GS? Yes, the 3D Gaussian reconstruction requires an RTX 4090 for reasonable training times, but inference is fast once the scene is built.

Can I use my own driving dataset with CARLA-GS? The pipeline expects multi-camera video with calibration data; it was demonstrated on the Waymo Open Dataset but should generalize to other datasets.

How does CARLA-GS compare to other simulation-based methods? Unlike purely synthetic simulators, it reconstructs real-world scenes for photorealistic rendering, while adding physics consistency that GAN-based methods lack.

Conclusion

CARLA-GS presents a clean, modular approach to generating safety-critical corner cases for autonomous driving by combining neural rendering, LLM reasoning, and vehicle simulation. It turns real-world driving logs into a controllable testbed for rare events, potentially accelerating safety validation at lower cost. The decoupled design allows each component to evolve independently, making it a practical tool for both research and development.

🍪 Cookie preferences

We use cookies to measure performance. Privacy Policy