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
TL;DR
MeshGPT addresses the challenge of generating compact, artist-like triangle meshes directly rather than relying on post-processed neural fields. It learns a vocabulary of geometric embeddings from a graph-convolution encoder, quantizes them with residual vector quantization to produce a concise token sequence, and uses a GPT-style decoder to autoregressively generate meshes as sequences of tokens that are decoded into triangles. The approach yields sharper edges, improved shape coverage, and better perceptual quality on ShapeNetV2 relative to state-of-the-art baselines, while enabling novel shape generation and completion. Practically, MeshGPT offers a direct, controllable mesh generation paradigm with clear advantages in triangulation patterns and downstream rendering compatibility, albeit with slower sampling speeds and potential gains from scaling to larger models.
Abstract
We introduce MeshGPT, a new approach for generating triangle meshes that reflects the compactness typical of artist-created meshes, in contrast to dense triangle meshes extracted by iso-surfacing methods from neural fields. Inspired by recent advances in powerful large language models, we adopt a sequence-based approach to autoregressively generate triangle meshes as sequences of triangles. We first learn a vocabulary of latent quantized embeddings, using graph convolutions, which inform these embeddings of the local mesh geometry and topology. These embeddings are sequenced and decoded into triangles by a decoder, ensuring that they can effectively reconstruct the mesh. A transformer is then trained on this learned vocabulary to predict the index of the next embedding given previous embeddings. Once trained, our model can be autoregressively sampled to generate new triangle meshes, directly generating compact meshes with sharp edges, more closely imitating the efficient triangulation patterns of human-crafted meshes. MeshGPT demonstrates a notable improvement over state of the art mesh generation methods, with a 9% increase in shape coverage and a 30-point enhancement in FID scores across various categories.
