TL;DR
TRELLIS is a 3D generator built on one shared latent format, Structured LATents (SLat). Each object is stored as a sparse set of occupied voxels, and each occupied voxel carries a feature vector taken from many rendered views of the object. Two rectified flow transformers generate this latent from a text prompt or an image, and small decoders turn it into 3D Gaussians, radiance fields, or meshes. The largest model has 2 billion parameters and was trained on about 500K 3D assets.
Builds on: Rectified Flow, Diffusion Transformer (DiT), Variational Autoencoder, Voxel Grid, DINOv2: Learning Robust Visual Features without Supervision · Leads to: Latent Diffusion Model
Why it mattered
Before this work, 3D generators tended to fix one output format. Models that produced meshes had weak appearance, while models that produced 3D Gaussians or radiance fields looked good but often had poor geometry. TRELLIS gives one latent from which all of these formats can be decoded, so one generator can feed a game engine that wants meshes, a viewer that wants Gaussians, and a renderer that wants a radiance field.
It also showed that the recipe that worked for 2D images carries over to 3D. Latent generative models with rectified flow had become the backbone of large image and video systems. TRELLIS applies the same backbone to 3D assets in three sizes, B, L and XL, with the largest at 2 billion parameters, and in its size ablation quality rises with each step up.
The problem
To generate a 3D object, a model has to learn a distribution over shapes and appearances. Three obstacles stood in the way.
- Dense 3D data is large. A 64 by 64 by 64 grid has 262,144 cells, and most are empty for any real object.
- Different formats need different networks. A mesh is a graph of triangles, a Gaussian set is an unordered list of blobs, and a radiance field is a function of position and viewing direction. One network cannot read all three well.
- Appearance is hard to encode. A latent that keeps only shape loses colour and texture, and a latent fitted to each object in a costly pre-processing step does not scale.
TRELLIS addresses all three with one design: keep the 3D structure sparse, fill it with strong image features instead of hand-built 3D features, and generate the structure and the features in two separate stages.
How it works
Here is the pipeline on a toy scale, in pipeline order.
- Input. A 3D asset, for example a mug. Render it from many random camera positions on a sphere (the paper uses 150 views per asset).
- Find the occupied voxels. Lay a grid over the object and mark each cell that touches the surface as active. Suppose a 4 by 4 by 4 toy grid has 3 active cells out of 64. The active cells give the coarse shape, and the other 61 cells are never stored. Check: 3 out of 64 is about 4.7 percent.
- Attach a visual feature to each active cell. Project each active cell into every rendered view and read a DINOv2 feature at that spot. Average the vectors over the views. Each active cell now holds one feature vector that describes the local shape and colour. Check: 3 cells means 3 vectors, not the whole image.
- Encode. A transformer VAE takes the list of (feature, position) pairs and outputs one latent vector per active cell, a smaller code that still keeps enough to rebuild the asset.
- Decode. A decoder maps each latent to the output format. For Gaussians, one latent becomes several Gaussians placed near its cell. For meshes, one latent becomes values on a small set of cube corners, and a surface extraction step turns those into triangles.
- Generate stage 1: the structure. A rectified flow transformer starts from random noise on a small dense grid, denoises it into a feature grid conditioned on the prompt, and decodes that grid to the set of active cells.
- Generate stage 2: the latents. A second rectified flow transformer takes that set of active cells and generates one latent vector per cell, under the same prompt.
- Output. Pass the generated latents through the chosen decoder to get a 3D asset in the format you asked for.
flowchart LR A[3D asset] --> B[Render many views] B --> C[DINOv2 features projected onto active voxels] A --> D[Active voxels: coarse shape] C --> E[Sparse VAE encoder] D --> E E --> F[Structured latent z] F --> G1[Gaussian decoder] F --> G2[Radiance field decoder] F --> G3[Mesh decoder] H[Text or image prompt] --> I[Stage 1: rectified flow, sparse structure] I --> J[Stage 2: rectified flow, latents on that structure] J --> F
The math
A structured latent is a set of pairs . Each is the integer position of an active voxel in an grid, and each is a vector of length attached to that voxel. The paper uses , and is on average about .
Step 2 in symbols: sparsity
The grid has cells and only are active, with . For , , so an average object with fills about of the grid. The stored latent has vectors, not .
Step 3 in symbols: feature averaging
For active voxel , let be the DINOv2 feature read at its projection in view , out of views. The voxel feature is . Averaging makes the feature less dependent on which views were sampled, as long as there are enough of them.
Step 4 in symbols: the VAE
The encoder maps to , and the decoder maps back to the output format. Training minimises a reconstruction loss between the decoded asset and the ground truth, plus a KL penalty that pulls each toward a standard normal distribution, as in the Variational Autoencoder.
Step 5 in symbols: the Gaussian decoder
Each latent decodes to Gaussians with offsets . Their positions are kept near the voxel: . Since squashes its input into the range from to , a latent cannot place its blobs far outside its own cell.
Step 6 in symbols: rectified flow
The forward path is a straight line between a data sample and a noise sample :
The network learns the velocity along that line, with training loss
Generation runs the learned velocity backward, from noise at to data at , by integrating it numerically in small steps.
Traced on one pair: take , and . The point on the line is , and the regression target is . The velocity is the same at every point of one pair's line, which is what "rectified" means here.
Results
Reconstruction (Table 1). Measured on the decoded output, TRELLIS reaches appearance PSNR 32.74 with Gaussian decoding and 32.19 with radiance field decoding, against 26.44 for LN3Diff and 25.34 for 3DTopia-XL (which the paper scores on shaded renders of its PBR meshes). Geometry Chamfer distance is 0.0083, against 0.0124 for CLAY and 0.0128 for 3DTopia-XL, and the F-score is 0.9999, against 0.9976 for CLAY. Normal-map PSNR is 36.11, against 35.35 for CLAY.
Text-to-3D (Table 2, Toys4k). The XL model reaches CLIP score 26.70 and a DINOv2 Fréchet distance of 237.48. The best baseline on that distance, InstantMesh, reaches 478.92, and the best baseline on CLIP, InstantMesh again, reaches 25.56.
Image-to-3D (Table 2, Toys4k, L model). CLIP score 85.77 against 84.43 for InstantMesh, and DINOv2 Fréchet distance 67.21 against 264.36 for InstantMesh. The image-to-3D rows do not include the XL model.
Stage by stage (Table 4, Toys4k, DINOv2 Fréchet distance, lower is better). Stage 1 with diffusion gives 295.90, with rectified flow 269.56, a reduction of , about 8.9 percent. Stage 2 with diffusion gives 244.08, with rectified flow 240.20, a reduction of 3.88, about 1.6 percent. The structure stage gains more from rectified flow than the latent stage does.
Latent size (Table 3). At a 32 by 32 by 32 latent resolution the PSNR plateaus near 31.6 to 31.9 as channels grow from 16 to 64. Moving to 64 by 64 by 64 with 8 channels gives 32.74. The paper keeps this setting.
Model size (Table 5). On the training distribution, the CLIP score rises from 25.41 (B) to 25.62 (L) to 25.71 (XL), and the distance falls from 121.45 to 99.92 to 93.96.
User study. Over 100 participants compared methods on 68 text prompts and 67 image prompts, and users strongly preferred TRELLIS. The paper gives its preference results in a figure and in its supplement.
Limits. The two-stage pipeline can be less efficient than a single-stage method. The image-to-3D model bakes lighting from the reference image into the asset, so shading and highlights do not come out as separate material properties, and the paper leaves that to future work.
Reading guide
- Abstract and Section 1 (Introduction): the motivation for one latent across formats. Needs Voxel Grid and Point Cloud for the representation vocabulary.
- Section 3.1 (Structured Latent Representation): the set . Needs Voxel Grid.
- Section 3.2 (Encoding and Decoding): the DINOv2 averaging needs DINOv2: Learning Robust Visual Features without Supervision; the sparse VAE needs Variational Autoencoder and Shifted Window Attention for its local attention; the Gaussian decoder builds on Gaussian Splatting.
- Section 3.3 (Generation): rectified flow needs Rectified Flow and Flow Matching; the transformer blocks need Diffusion Transformer (DiT) and Adaptive Layer Normalization; text and image conditioning use Learning Transferable Visual Models From Natural Language Supervision (CLIP) features injected through Attention Mechanism; the guidance at inference is Classifier-Free Guidance.
- Section 3.4 (Editing): region editing adapts an inpainting idea from 2D diffusion, and works because the voxels are local.
- Section 4 (Experiments): read the tables with the Results section open. Reconstruction uses PSNR, LPIPS, Chamfer distance and F-score; generation uses CLIP score and Fréchet and kernel distances.
- Appendix E (Limitations): the two-stage cost and the baked-in lighting.
Check yourself
QuestionRecall: what is an active voxel in TRELLIS, and why does the latent store only active voxels?Show answer
QuestionCompute: a grid has N = 64 and an object has L = 20,000 active voxels. What fraction of the grid is active?Show answer
QuestionWhy: the paper uses DINOv2 features rather than a dedicated 3D encoder. What does that buy?Show answer
QuestionApplied: you want to generate a 3D chair and export it as a mesh for a game engine. Which parts of the pipeline do you use?Show answer
Sources
- Xiang et al., "Structured 3D Latents for Scalable and Versatile 3D Generation," arXiv:2412.01506 (2024): https://arxiv.org/abs/2412.01506
- The same paper by DOI: https://doi.org/10.48550/arXiv.2412.01506