Manuscript Offprint

arXiv:2610.02388

Octrees as an Explicit 3D Language

Ran Dan, Si-Tong Wei, Pengfei Xiong, Wei Zhang, Yadong Mu, Peng-Shuai Wang

Ran Dan 1^{1} Si-Tong Wei 1^{1} Pengfei Xiong 2^{2} Wei Zhang 2^{2} Yadong Mu 1^{1} Peng-Shuai Wang 1†^{1\dagger}

1^{1}Peking University 2^{2}Independent Researcher

Project Page: https://plurato.github.io/OctLLM-page/

Figure

Figure 1: OctLLM unifies 3D generation and 3D understanding in a single LLM. Left: 3D assets generated by OctLLM from text and image conditions. Right: natural-language descriptions it produces for 3D inputs. Bottom right: a shape written as an S-Octree, the coarse-to-fine occupancy sequence OctLLM reads and writes, shown at octree depths 3 to 6. Generation and understanding share this explicit 3D language. Zoom in for a better view.

ABSTRACT

Existing 3D large language models (LLMs) compromise on two fronts: they compress shapes into latent codebook indices or coordinate text, which removes spatial structure from what the model observes, and they acquire the 3D modality by fine-tuning the backbone, which overwrites its general language ability. We present OctLLM, which addresses both limitations. Geometry enters as an explicit 3D sequence of octree occupancy tokens. However, full octree sequences grow rapidly with depth; OctLLM therefore randomly empties penultimate-level nodes and omits descendants while preserving shape, yielding a shorter coordinate- and depth-anchored Sparse Octree (S-Octree) for position-aware mask-modeling generation and 3D understanding. On the other front, existing methods introduce a new modality with full fine-tuning or LoRA, but full fine-tuning is costly, LoRA limits 3D capacity, and both modify the language pathway. OctLLM instead adds 3D capacity in parameters separate from the pretrained ones: mesh tokens are routed through independent trainable branches in a subset of blocks while text and image tokens retain the frozen vision-language pathway, and the two streams interact through shared self-attention. It trains far fewer parameters than full fine-tuning, yet sets a new state of the art among unified multimodal LLMs, lowering image-to-3D FID by 17.4% and raising render-grounded captioning by 28.7 points over ShapeLLM-Omni, while matching the backbone on general language benchmarks.

1 INTRODUCTION

Large language models (LLMs) have advanced rapidly, with recent systems showing strong general-purpose reasoning and instruction-following ability across both proprietary and open settings (OpenAI, 2023; Meta AI, 2023; Team GLM, 2024; DeepSeek-AI, 2024). Multimodal extensions have carried

†^{\dagger}Corresponding author these capabilities from text to images and video, and recent systems such as GPT-5 and Qwen3.5-Omni now handle several modalities natively inside a single model (Li et al., 2023; Liu et al., 2023a; Wang et al., 2024a; Bai et al., 2025; Li et al., 2024b; Lin et al., 2024; OpenAI, 2025; Qwen Team, 2026b). Extending the same autoregressive paradigm to 3D content, however, remains far less mature. We argue that a 3D LLM must satisfy two requirements at once: 3D geometry should enter the model in an explicit form that preserves its spatial structure, and acquiring this new modality should not erode the general language ability of the underlying model.

Existing 3D LLMs fall short on one or both requirements. The first problem lies in how 3D geometry enters the model. ShapeLLM-Omni (Ye et al., 2025) compresses each shape into VQVAE codebook indices, so the LLM observes only latent codes from which fine geometric detail has already been lost and whose spatial organization is no longer explicit, while LLaMA-Mesh (Wang et al., 2024c) serializes meshes as OBJ text, treating vertex coordinates as ordinary character strings and hiding the locality and hierarchy of the shape; related interfaces built on point-cloud encoders or mesh-derived tokens inherit similar trade-offs (Hong et al., 2023; Xu et al., 2024; Fang et al., 2025). The second problem lies in how the backbone absorbs the new modality. These systems typically adapt the LLM through full-model fine-tuning, which overwrites the pretrained text and vision-language behaviors: as we show in Section 4, both ShapeLLM-Omni and LLaMA-Mesh lose a substantial fraction of their general language ability after 3D training. Existing methods therefore trade away either the spatial structure of the 3D input or the pretrained ability of the language model.

In this paper, we propose OctLLM, a 3D-native multimodal LLM built around two insights. First, an octree can serve as an explicit spatial language for 3D geometry, preserving locality and hierarchy hidden by latent codes or raw mesh text. To handle sequence growth with depth, OctLLM exploits redundant fine-level occupancy by randomly emptying a fraction of second-to-last-level nodes and omitting their finest-level descendants, producing a Sparse Octree (S-Octree). Each occupancy token remains anchored to its 3D coordinates and depth, so the LLM can directly model spatial structure when generating and interpreting shapes. With this representation, OctLLM better preserves part structure in generation and produces more accurate 3D descriptions than prior unified multimodal LLMs, including ShapeLLM-Omni (Tables 1 and 2a). Sparsification also reduces training memory and time without sacrificing generation quality (Section D).

Second, introducing 3D demands new capacity without overwriting language ability. Full-parameter fine-tuning is expressive but expensive and exposes every pretrained weight to 3D gradients. LoRA is cheaper but confines 3D learning to a low-rank update that, when merged, still changes the language pathway (Hu et al., 2022). OctLLM instead routes mesh and position-query tokens through full-rank 3D branches at a subset of blocks, training far fewer parameters than full fine-tuning, while text and image tokens stay on the frozen vision-language pathway. Shared self-attention connects the streams; separate mesh embeddings and output head keep occupancy prediction from competing with the language vocabulary. OctLLM reproduces the backbone exactly on MMLU and HellaSwag and stays within one point on GSM8K, whereas ShapeLLM-Omni still loses 34.5 and 40.7 points on the first two despite additional text training data (Table 2b). Our contributions are as follows:

  • We introduce OctLLM, which reads and writes S-Octrees as an explicit 3D language, using position-aware masks for generation and direct S-Octree input for understanding.

  • We develop a token-routed dual-stream transformer with full-rank 3D branches, mesh embeddings, and a mesh head beside a frozen text-image pathway.

  • OctLLM achieves state-of-the-art 3D generation and understanding among unified multimodal LLMs while preserving the backbone’s language ability.

References (94)