Skip to main content
QUICK REVIEW

[论文解读] LLaMA-Mesh: Unifying 3D Mesh Generation with Language Models

Z. Maggie Wang, Jonathan Lorraine|arXiv (Cornell University)|Nov 14, 2024
3D Shape Modeling and AnalysisEngineering被引用 3
一句话总结

LLaMA-Mesh 提出了一种统一框架,使大型语言模型(LLMs)能够通过将顶点坐标和面定义表示为 OBJ 格式的纯文本,直接从文本生成并理解 3D 网格。该模型在包含文本-3D 对和交错对话的监督数据集上进行微调,生成的网格质量与专用模型相当,同时保持了强大的文本生成能力,标志着首次在不扩展词汇表或修改分词器的前提下,成功将 3D 网格生成整合进单一统一的 LLM 中。

ABSTRACT

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.

研究动机与目标

  • 将大型语言模型(LLMs)的能力从文本生成扩展至直接生成 3D 网格。
  • 解决将 3D 网格数据分词以无缝集成到 LLM 中的挑战,而无需扩展词汇表或修改分词器。
  • 使单一统一模型能够在对话式、交错的输出中同时生成文本和 3D 网格。
  • 在微调用于 3D 任务时,保持基础 LLM 强大的语言理解与生成能力。
  • 证明 LLM 可通过学习以文本形式表示的数值网格表示,获得复杂的空间知识。

提出的方法

  • 使用标准的 OBJ 文件格式将 3D 网格表示为纯文本,将顶点坐标和面索引编码为数字和关键字的序列。
  • 通过将数值网格数据视为原始文本,避免词汇表扩展,从而无需新的分词方案,可直接输入 LLM。
  • 构建一个监督微调(SFT)数据集,包含配对的文本-3D 网格示例以及交错的文本-3D 对话,用于指令微调。
  • 在筛选后的 SFT 数据集上微调 LLaMA-3.1-8B-Instruct 模型,以支持从文本生成网格、理解网格以及对话式 3D 内容创作。
  • 利用 LLM 在文本 3D 教程和文档上预训练所获得的既有空间知识,提升几何推理能力。
  • 通过端到端训练交错的文本和网格输出,使模型能够在单次推理中同时生成两种模态。
Figure 2 : Overview of our method. Llama-Mesh unifies text and 3D mesh in a uniform format by representing the numerical values of vertex coordinates and face definitions of a 3D mesh as plain text. Our model is trained using text and 3D interleaved data end-to-end. Therefore, with a single, unified
Figure 2 : Overview of our method. Llama-Mesh unifies text and 3D mesh in a uniform format by representing the numerical values of vertex coordinates and face definitions of a 3D mesh as plain text. Our model is trained using text and 3D interleaved data end-to-end. Therefore, with a single, unified

实验结果

研究问题

  • RQ1大型语言模型是否可以经过微调,直接从自然语言提示生成 3D 网格,而无需修改其分词器或词汇表?
  • RQ2LLM 在以纯文本格式处理 3D 网格数据时,其空间推理和几何结构的学习能力如何?
  • RQ3统一的 LLM 是否能够在获得高质量 3D 网格生成能力的同时,保持强大的文本生成性能?
  • RQ4LLM 在经过文本-3D 对话微调后,能够在多大程度上理解并用自然语言描述 3D 网格?
  • RQ5仅通过在预训练 LLM 上微调,是否可以实现与从零开始训练的模型相当的网格生成质量?

主要发现

  • LLaMA-Mesh 的网格生成质量与 MeshXL 和 Unique3D 等专用模型相当,经定性与定量比较验证。
  • 该模型能从文本提示生成多样化、高质量的 3D 网格,具有类似艺术家的拓扑结构,包含精细的几何细节和复杂形状。
  • 在 SFT 数据集上微调后,模型能够在对话环境中生成交错的文本与 3D 网格输出,支持交互式 3D 内容创作。
  • 与从零开始在网格数据上训练大型 Transformer 模型相比,该方法显著降低了训练计算成本,高效利用了预训练 LLM。
  • 尽管经过微调,模型仍保持强大的语言生成性能,但观察到语言能力略有下降,表明通过更优质的指令数据仍有改进空间。
  • 该方法成功在单一模型中统一了 3D 网格生成与语言理解,证明了无需架构或词汇表修改即可实现多模态生成的可行性。
Figure 3 : Gallery of generations from Llama-Mesh . We can generate high-quality and diverse meshes with artist-like created topology.
Figure 3 : Gallery of generations from Llama-Mesh . We can generate high-quality and diverse meshes with artist-like created topology.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。