[Paper Review] LLaMA-Mesh: Unifying 3D Mesh Generation with Language Models
LLaMA-Mesh introduces a unified framework that enables large language models (LLMs) to generate and understand 3D meshes directly from text by representing vertex coordinates and face definitions as plain text in the OBJ format. Fine-tuned on a supervised dataset of text-3D pairs and interleaved dialogues, it achieves mesh generation quality comparable to specialized models while preserving strong text generation capabilities, marking the first successful integration of 3D mesh generation into a single, unified LLM without vocabulary expansion or new tokenizers.
This work explores expanding the capabilities of large language models (LLMs) pretrained on text to generate 3D meshes within a unified model. This offers key advantages of (1) leveraging spatial knowledge already embedded in LLMs, derived from textual sources like 3D tutorials, and (2) enabling conversational 3D generation and mesh understanding. A primary challenge is effectively tokenizing 3D mesh data into discrete tokens that LLMs can process seamlessly. To address this, we introduce LLaMA-Mesh, a novel approach that represents the vertex coordinates and face definitions of 3D meshes as plain text, allowing direct integration with LLMs without expanding the vocabulary. We construct a supervised fine-tuning (SFT) dataset enabling pretrained LLMs to (1) generate 3D meshes from text prompts, (2) produce interleaved text and 3D mesh outputs as required, and (3) understand and interpret 3D meshes. Our work is the first to demonstrate that LLMs can be fine-tuned to acquire complex spatial knowledge for 3D mesh generation in a text-based format, effectively unifying the 3D and text modalities. LLaMA-Mesh achieves mesh generation quality on par with models trained from scratch while maintaining strong text generation performance.
Motivation & Objective
- To extend the capabilities of large language models (LLMs) beyond text generation to include direct 3D mesh generation.
- To address the challenge of tokenizing 3D mesh data for seamless integration with LLMs without expanding the vocabulary or modifying the tokenizer.
- To enable a single unified model to generate both text and 3D meshes in conversational, interleaved outputs.
- To preserve the strong language understanding and generation abilities of the base LLM during fine-tuning for 3D tasks.
- To demonstrate that LLMs can acquire complex spatial knowledge through learning numerical mesh representations in textual form.
Proposed method
- Represent 3D meshes as plain text using the standard OBJ file format, encoding vertex coordinates and face indices as sequences of numbers and keywords.
- Avoid vocabulary expansion by treating numerical mesh data as raw text, enabling direct input to the LLM without new tokenization schemes.
- Construct a supervised fine-tuning (SFT) dataset containing paired text-3D mesh examples and interleaved text-3D dialogues for instruction tuning.
- Fine-tune the LLaMA-3.1-8B-Instruct model on the curated SFT dataset to enable text-to-mesh generation, mesh understanding, and conversational 3D content creation.
- Leverage pre-existing spatial knowledge from the LLM’s pretraining on textual 3D tutorials and documentation to improve geometric reasoning.
- Use end-to-end training on interleaved text and mesh outputs to enable the model to generate both modalities simultaneously in a single inference pass.

Experimental results
Research questions
- RQ1Can a large language model be fine-tuned to generate 3D meshes directly from natural language prompts without modifying its tokenizer or vocabulary?
- RQ2How well can an LLM learn spatial reasoning and geometric structure by processing 3D mesh data in plain text format?
- RQ3Can a unified LLM maintain strong text generation performance while acquiring high-quality 3D mesh generation capabilities?
- RQ4To what extent can LLMs understand and describe 3D meshes using natural language after fine-tuning on text-3D dialogues?
- RQ5Is it possible to achieve mesh generation quality comparable to models trained from scratch using only fine-tuning on a pre-trained LLM?
Key findings
- LLaMA-Mesh achieves mesh generation quality comparable to specialized models such as MeshXL and Unique3D, as validated through qualitative and quantitative comparisons.
- The model generates diverse, high-quality 3D meshes with artist-like topology, including fine geometric details and complex shapes from text prompts.
- Fine-tuning on the SFT dataset enables the model to produce interleaved text and 3D mesh outputs in a conversational setting, supporting interactive 3D content creation.
- The approach reduces training computational cost compared to training large transformer models from scratch on mesh data, leveraging pre-trained LLMs efficiently.
- Despite fine-tuning, the model maintains strong language generation performance, though a slight degradation in language ability is observed, suggesting room for improvement with better instruction data.
- The method successfully unifies 3D mesh generation and language understanding within a single model, demonstrating the feasibility of multi-modal generation without architectural or vocabulary modifications.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.