SceneScript: Reconstructing Scenes With An Autoregressive Structured Language Model

Armen Avetisyan, Christopher Xie, Henry Howard-Jenkins, Tsun-Yi Yang, Samir Aroudj, Suvam Patra, Fuyang Zhang, Duncan Frost, Luke Holland, Campbell Orme, Jakob Engel, Edward Miller, Richard A. Newcombe, Vasileios Balntas

Abstract

We introduce SceneScript, a method that directly produces full scene models as a sequence of structured language commands using an autoregressive, token-based approach. Our proposed scene representation is inspired by recent successes in transformers and LLMs, departing from traditional methods like meshes or point clouds. SceneScript infers structured language commands directly from encoded visual data using a scene language encoder-decoder architecture. To train the model, we released the Aria Synthetic Environments dataset, containing 100k high-quality indoor scenes. SceneScript achieves state-of-the-art results in architectural layout estimation and competitive performance in 3D object detection, while remaining easily extensible to new geometric commands.

Introduction

Traditional 3D scene representations—such as meshes, voxel grids, or radiance fields—often struggle with the trade-off between detail and usability. Meshes are computationally heavy, point clouds lack semantic context, and implicit representations like NeRFs are difficult to edit. Reconstructing a full architectural layout from egocentric video (e.g., from AR glasses) typically requires complex, multi-stage pipelines.

SceneScript addresses these challenges by treating 3D reconstruction as a "next-token prediction" task. It generates a compact, human-readable, and editable sequence of structured language commands (e.g., make_wall, make_door) that describe a metrically accurate 3D model.

Methodology

SceneScript utilizes an encoder-decoder transformer architecture to bridge the gap between visual data and structured language.

The SceneScript pipeline: from visual walkthrough to structured language to 3D geometry.
  1. Encoder: Visual data—either a "semi-dense" point cloud from SLAM or posed images—is compressed into a latent "scene code." The model uses "lifted" features, projecting 2D image features onto 3D points.
  2. Decoder: An autoregressive transformer predicts the next token in a sequence of structured commands based on the scene code.
  3. Structured Language: The model follows a strict schema, such as make_wall(id, x1, y1, z1, x2, y2, z2, height). Geometric parameters are discretized into integer tokens (e.g., 5cm resolution) to work with the transformer.

This approach allows the model to learn the "grammar" of indoor spaces, understanding that walls typically meet at corners and doors are embedded within walls.

Data: Aria Synthetic Environments (ASE)

A significant contribution of this work is the Aria Synthetic Environments (ASE) dataset. It consists of 100,000 unique, high-quality synthetic indoor scenes. Each scene includes photorealistic egocentric video, depth maps, and ground-truth SceneScript commands, providing the necessary scale for training autoregressive models.

Results and Discussion

SceneScript demonstrates significant improvements over existing methods:

  • Layout Estimation: On the ASE dataset, SceneScript achieved an F1 score of ~0.90 (at a 5cm threshold) for walls, doors, and windows, vastly outperforming previous hierarchical methods like RoomFormer (~0.14).
  • 3D Object Detection: The model achieves competitive results on the ScanNet dataset, proving that a language-based approach maintains metric accuracy for real-world objects.
  • Efficiency and Extensibility: The representation is extremely compact; a full floor plan is stored in a few hundred bytes of text. Furthermore, the model is easily extensible; adding a make_prim command allowed it to reconstruct complex furniture parts without changing the underlying architecture.
SceneScript accurately estimates architectural layouts, identifying walls and doors in complex environments.

Conclusion

SceneScript reimagines 3D reconstruction by leveraging the power of transformers and structured language. By treating geometry as a sequence of instructions, it creates models that are not only accurate but also interpretable and editable. Future work aims to integrate these models with LLMs to allow users to interact with and query their physical environments through natural language.

Summary updated

BibTeX
@inproceedings{avetisyan2024scenescript,
  author = {Armen Avetisyan and Christopher Xie and Henry Howard-Jenkins and Tsun-Yi Yang and Samir Aroudj and Suvam Patra and Fuyang Zhang and Duncan Frost and Luke Holland and Campbell Orme and Jakob Engel and Edward Miller and Richard A. Newcombe and Vasileios Balntas},
  title = {{SceneScript: Reconstructing Scenes With An Autoregressive Structured Language Model}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=BYaAcffmA2},
}
Figure