Occ-LLM: Enhancing Autonomous Driving with Occupancy-Based Large Language Models

Tianshuo Xu, Hao Lu, Xu Yan, Yingjie Cai, Bingbing Liu, Yingcong Chen

Abstract

Occ-LLM is the first framework to integrate Large Language Models (LLMs) with 3D occupancy grids for autonomous driving. By introducing a specialized "Motion Separation" Variational Autoencoder (MS-VAE), the researchers successfully bridge the gap between sparse spatial data and linguistic reasoning, setting new state-of-the-art benchmarks in 4D forecasting, path planning, and scene understanding.

Introduction

While Large Language Models (LLMs) have demonstrated remarkable reasoning capabilities, their application to autonomous driving has faced significant hurdles. Most current "Driving LLMs" rely on 2D images or LiDAR point clouds. However, 2D images lack deep spatial perception, and raw LiDAR data is computationally heavy while lacking semantic context.

Occ-LLM proposes that 3D Occupancy—a voxel-based representation of the environment—is the "universal language" for driving. It captures both foreground (vehicles, pedestrians) and background (trees, buildings) regardless of whether an object is explicitly recognized. However, occupancy data is inherently "unbalanced," as most of the world consists of empty space. Direct integration into LLMs often leads to inefficient learning and "positional drift," where the model loses track of spatial-temporal consistency across frames.

Methodology

The Occ-LLM framework utilizes Llama2 as its foundational reasoning engine. To transform occupancy data into an "LLM-ready" format, the authors introduced several novel techniques:

  1. Motion Separation VAE (MS-VAE): Instead of encoding the entire scene simultaneously, this VAE uses prior knowledge to separate dynamic objects from static structures. This acts as a form of "residual learning," allowing the model to focus its computational resources on predicting trajectories while efficiently reconstructing the static environment.
  2. Patchify & Frame Tokens: The 3D grid is decomposed into small patches (an optimal size of 10). To prevent positional drift, the authors wrap each frame in specialized text tokens (<occ> and </occ>). These tokens act as spatial anchors, helping the LLM maintain a consistent "mental map" over time.
  3. Pre-fusion Module: Before data enters the LLM, a multi-layer perceptron (MLP) modulates occupancy features with the ego-vehicle's planned actions. This ensures that the model's spatial reasoning is grounded in the car's actual movement.

Experimental Setup

The model was trained and evaluated on the nuScenes dataset, a standard benchmark in autonomous driving research. The dataset includes 1,000 driving scenes (700 training, 150 validation, 150 testing). The input consists of multi-view camera data converted into occupancy representations with dimensions of (200, 200, 16).

Key Results and Insights

Occ-LLM significantly outperformed existing state-of-the-art (SOTA) models across three distinct tasks:

  • 4D Occupancy Forecasting: The model achieved a 32.52% IoU, representing a roughly 6% gain over previous SOTA methods like OccWorld.
  • Self-Ego Planning: Occ-LLM drastically reduced planning errors. The 3-second average L2 distance (displacement error) dropped to 0.28 meters, compared to 1.17 meters for the leading alternative.
  • Scene Question Answering (QA): The framework outperformed the DriveLM model across all linguistic metrics, including BLEU, ROUGE, and CIDEr, demonstrating a superior understanding of the "why" behind driving scenes.

One of the most critical findings was the resolution of the "Air Problem." In standard occupancy grids, empty space is the dominant category. By separating motion from static elements via MS-VAE, the model is prevented from becoming "lazy" and simply predicting empty space everywhere. Furthermore, the use of frame tokens proved essential; without them, simple concatenation of frames led to cascading misalignment.

Conclusion and Future Work

Occ-LLM demonstrates that a single LLM can function as a unified planner, handling forecasting, planning, and scene understanding through a prompt-based interface. While the results are promising, future research is needed to address real-time constraints, as LLMs are computationally intensive. Additionally, the impact of sensor noise in adverse weather conditions and the potential for scaling the model to handle more complex edge-case scenarios remain open areas for exploration.

Summary updated

BibTeX
@inproceedings{xu2025occ,
  author = {Tianshuo Xu and Hao Lu and Xu Yan and Yingjie Cai and Bingbing Liu and Yingcong Chen},
  title = {{Occ-LLM: Enhancing Autonomous Driving with Occupancy-Based Large Language Models}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11127665},
}
Figure