MeshGPT: Generating Triangle Meshes with Decoder-Only Transformers

Yawar Siddiqui, Antonio Alliegro, Alexey Artemov, Tatiana Tommasi, Daniele Sirigatti, Vladislav Rosov, Angela Dai, Matthias Nießner

Introduction

Generating high-quality 3D meshes is fundamental to fields like game development, virtual reality, and industrial design. Traditional AI methods often produce intermediate representations like voxels or point clouds, requiring post-processing algorithms like Marching Cubes. This typically results in "triangle soup"—over-tessellated, bumpy surfaces that lack the clean, efficient topology of professional models.

MeshGPT addresses this by treating triangle meshes as a sequence of learned geometric "words," enabling the direct generation of compact, artist-like 3D shapes. By applying the principles of Large Language Models (LLMs) to 3D geometry, the model learns to "speak" the language of meshes.

Methodology

MeshGPT employs a two-stage framework inspired by text generation and image quantization techniques.

The MeshGPT pipeline consists of vocabulary learning through geometric quantization and autoregressive generation using a GPT-style transformer.
  1. Vocabulary Learning: A Graph Convolutional Network (GCN) encodes the local geometry and topology of mesh faces. These features are compressed into a discrete codebook using Residual Vector Quantization (RVQ). A key innovation is splitting features across vertices; repeating tokens for shared edges provide "syntactic hints" that help the model understand connectivity.
  2. Autoregressive Generation: A decoder-only GPT-style transformer (specifically a GPT-2 medium architecture) is trained to predict the next triangle in a sequence of mesh tokens.
  3. Decoding: A ResNet-based decoder converts predicted tokens back into 3D vertex coordinates. To improve fidelity, the model treats 3D space as a discrete grid (128x128x128 bins) rather than regressing continuous numbers, which reduces "floating" artifacts.

Data and Evaluation

The model was pre-trained on the full ShapeNetV2 dataset across 55 categories and fine-tuned on diverse categories including Chairs, Tables, Benches, and Lamps. To fit the transformer's context window, training meshes were preprocessed using planar decimation to ensure they remained under 800 faces while preserving their original structural integrity.

Key Insights

  • 3D Topology as Language: By linearizing triangles into a sorted sequence (e.g., by vertex index), 3D shapes can be processed with the same sequential logic as natural language.
  • Connectivity via Repetition: Vertex-level quantization allows the transformer to recognize shared edges through repeating tokens, ensuring the generation of coherent, manifold surfaces rather than disconnected triangles.
  • Efficiency through Discretization: Predicting coordinates as discrete probability distributions significantly outperforms continuous regression in terms of visual fidelity and structural stability.

Key Results

MeshGPT demonstrates a significant leap over previous state-of-the-art (SOTA) generators like GET3D and PolyGen.

MeshGPT generates diverse 3D assets (top) and achieves superior mesh efficiency compared to GET3D, producing sharper results with a fraction of the face count (bottom).
  • Quantitative Performance: The model achieved a 9% increase in shape coverage and a massive 30-point improvement in FID scores across multiple categories.
  • Mesh Compactness: MeshGPT produces highly efficient models. While a GET3D output might contain 27,000 triangles, MeshGPT can generate a visually superior, sharper version with only ~228 triangles.
  • Human Preference: In user studies, MeshGPT was preferred 68% of the time for shape quality and 73% of the time for the cleanliness of its triangulation.

Limitations and Future Work

Despite its success, the autoregressive nature of MeshGPT results in slower inference times, taking 30–90 seconds per object. Additionally, the current 800-face context window limits the model to individual objects rather than complex scenes. Future research will focus on scaling to larger architectures (like Llama-scale models) and larger datasets to unlock more complex geometric reasoning.

Summary updated

BibTeX
@inproceedings{siddiqui2023meshgpt,
  author = {Yawar Siddiqui and Antonio Alliegro and Alexey Artemov and Tatiana Tommasi and Daniele Sirigatti and Vladislav Rosov and Angela Dai and Matthias Nießner},
  title = {{MeshGPT: Generating Triangle Meshes with Decoder-Only Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure