PrimitiveAnything: Human-Crafted 3D Primitive Assembly Generation with Auto-Regressive transformer

Jingwen Ye, Yuze He, Yanning Zhou, Yiqin Zhu, Kaiwen Xiao, Yong-Jin Liu, Wei Yang, Xiao Han

Abstract

PrimitiveAnything reformulates 3D shape abstraction—the process of decomposing complex 3D objects into simple geometric parts—as a sequence generation task. By utilizing a shape-conditioned, decoder-only transformer trained on a massive new dataset of human-crafted assemblies, the model learns to decompose diverse 3D shapes in a manner that aligns with human intuition while maintaining high geometric fidelity. This approach enables highly editable, memory-efficient 3D content generation suitable for interactive media and gaming applications.

Introduction

Humans naturally perceive complex 3D environments by mentally breaking them down into simple geometric primitives, such as boxes, cylinders, and spheres. In computer graphics, replicating this cognitive process is known as "shape primitive abstraction." Despite its importance for tasks like physics simulation and 3D editing, existing methods often fall short.

Historically, researchers have relied on two primary strategies: optimization-based methods and learning-based methods. Optimization-based approaches use geometric fitting to match primitives to a 3D surface; while mathematically precise, they often lack semantic understanding, leading to fragmented and unintuitive segmentations. Conversely, learning-based methods have been hindered by small, category-specific datasets, limiting their ability to generalize to the vast variety of objects found in the real world. PrimitiveAnything addresses these limitations by treating 3D abstraction as a semantic sequence generation problem capable of open-world generalization.

Methodology

3D Abstraction as Sequence Generation

PrimitiveAnything abandons traditional geometric fitting in favor of a shape-conditioned decoder-only transformer. This architecture treats 3D abstraction like a language modeling problem, predicting primitives one by one, analogous to how a Large Language Model (LLM) predicts the next word in a sentence. This sequential approach allows the model to learn the implicit "grammar" of object construction—for instance, understanding that table legs typically support a tabletop.

Ambiguity-Free Parameterization

A significant challenge in training neural networks for primitive generation is parameter symmetry. For example, rotating a cuboid 90 degrees and swapping its X and Y scales results in an identical shape. This ambiguity creates "mode confusion" during training, where the model struggles to converge because multiple valid parameter combinations exist for the same target. To solve this, the authors developed a strict mathematical rule set using Euler angles to uniquely define parameter ordering, effectively eliminating ambiguity and stabilizing the learning process.

Cascaded Primitive Decoder

Rather than predicting all attributes of a primitive simultaneously, the model employs a cascaded decoder. It predicts attributes in a logical sequence: Class → Translation → Rotation → Scale. This hierarchy mimics human logic—selecting a shape, placing it, orienting it, and finally sizing it—and explicitly models the dependencies between these geometric attributes.

Data and Training

The HumanPrim Dataset

To overcome the lack of large-scale training data, the authors introduced HumanPrim, a dataset containing 120,000 samples. It includes 3D meshes, point clouds, and manual primitive assemblies utilizing cuboids, elliptical cylinders, and ellipsoids. This dataset allows the model to learn human-centric decomposition patterns that automated optimization methods often miss.

Training Objectives

The model is trained using a dual-loss strategy:

  1. Cross-Entropy Loss: Used for next-token prediction of the primitive sequence.
  2. Chamfer Distance Loss: Ensures the generated sequence maintains high geometric fidelity relative to the target 3D shape.

Results and Evaluation

Performance Benchmarks

On the HumanPrim test set, PrimitiveAnything significantly outperformed state-of-the-art optimization methods such as EMS and Marching-Primitives. It achieved a Voxel-IoU of 0.484 (compared to 0.259 for EMS) and a Chamfer Distance of 0.0404 (compared to 0.0546 for EMS).

Zero-Shot Generalization

The model demonstrated remarkable zero-shot capabilities. When tested on the ShapeNet Chair category—a dataset it was never trained on—it achieved a Chamfer Distance of 0.0553, vastly outperforming previous category-specific models (which reached 0.1343). This suggests that the model has learned a generalizable logic for 3D structure.

Human Alignment and Efficiency

A user study involving 30 participants evaluated the model's performance on Objaverse shapes. PrimitiveAnything scored above 4.1 out of 5 across geometric similarity, anthropomorphism (human-likeness), and editability. Furthermore, representing 3D objects as primitive sequences reduces storage requirements by over 95% compared to traditional mesh representations, offering a significant advantage for large-scale digital environments.

Limitations and Future Work

While a significant step forward, the model has limitations. It currently struggles with complex topologies, such as rings, because its "vocabulary" lacks a torus primitive. Additionally, because it generates parts sequentially without global symmetry constraints, it can occasionally produce asymmetrical results for symmetrical objects. Finally, the current pipeline focuses on geometry and does not yet include native texture generation. Future research will focus on expanding the primitive vocabulary, integrating global symmetry rules, and incorporating native texture synthesis.

Summary updated

BibTeX
@inproceedings{ye2025primitiveanything,
  author = {Jingwen Ye and Yuze He and Yanning Zhou and Yiqin Zhu and Kaiwen Xiao and Yong-Jin Liu and Wei Yang and Xiao Han},
  title = {{PrimitiveAnything: Human-Crafted 3D Primitive Assembly Generation with Auto-Regressive transformer}},
  booktitle = {SIGGRAPH (Conference Paper Track)},
  year = {2025},
  doi = {10.1145/3721238.3730732},
}

Loading related content...

Figure