Mosaic-SDF for 3D Generative Models

Lior Yariv, Omri Puny, Oran Gafni, Yaron Lipman · DOI

Abstract

Current diffusion or flow-based generative models for 3D shapes divide to two: distilling pre-trained 2D image diffusion models, and training directly on 3D shapes. When training a diffusion or flow models on 3D shapes a crucial design choice is the shape representation. An effective shape representation needs to adhere three design principles: it should allow an efficient conversion of large 3D datasets to the representation form; it should provide a good tradeoff of approximation power versus number of parameters; and it should have a simple tensorial form that is compatible with existing powerful neural architectures. While standard 3D shape representations such as volumetric grids and point clouds do not adhere to all these principles simultaneously, we advocate in this paper a new representation that does. We introduce Mosaic-SDF (M-SDF): a simple 3D shape representation that approximates the Signed Distance Function (SDF) of a given shape by using a set of local grids spread near the shape's boundary. The M-SDF representation is fast to compute for each shape individually making it readily parallelizable; it is parameter efficient as it only covers the space around the shape's boundary; and it has a simple matrix form, compatible with Transformer-based architectures. We demonstrate the efficacy of the M-SDF representation by using it to train a 3D generative flow model including class-conditioned generation with the ShapeNetCore-V2 (3D Warehouse) dataset, and text-to-3D generation using a dataset of about 600k caption-shape pairs.

The Representation Bottleneck in 3D Generation

Generating 3D shapes presents unique challenges compared to 2D image synthesis. While images are structured as simple grids of pixels, 3D shapes are inherently sparse—most of a 3D volume consists of empty space. Existing representations often force a trade-off that hinders large-scale generative modeling. Volumetric grids scale cubically ($O(N^3)$), wasting memory on empty space, while point clouds lack surface connectivity. Meshes are difficult to process with standard neural layers, and high-quality implicit representations (Neural Fields) are often too slow to fit to datasets containing hundreds of thousands of objects.

To overcome this "representation bottleneck," we propose Mosaic-SDF (M-SDF). This approach is designed to satisfy three critical requirements: preprocessing efficiency, parameter efficiency, and a simple structure compatible with modern Transformer architectures.

Methods: The M-SDF Framework

The core innovation of this work is the Mosaic-SDF representation. Rather than using a single global grid, M-SDF represents a shape as a collection of many small, local $7 \times 7 \times 7$ grids. These grids are strategically placed using farthest point sampling to ensure even coverage across the shape's surface. Each local grid stores values of the Signed Distance Function (SDF), which describes the distance from any point to the nearest surface.

Overview of the M-SDF framework, including the conversion of 3D models to local SDF grids, training with Flow Matching, and the sampling process.

By treating a 3D object as a set of these local "mosaic tiles," we can leverage the permutation invariance of Transformers. The model is trained using Flow Matching, a powerful alternative to traditional Diffusion Models. Flow Matching regresses a straight-line velocity field that transforms noise into structured data, offering faster training and sampling times.

Datasets and Evaluation

We evaluated M-SDF on two major benchmarks to test its versatility:

  • ShapeNetCore-V2: A dataset of ~50,000 models across 55 categories used for class-conditioned generation.
  • Large-scale Text-to-3D: A massive collection of ~600,000 shape-caption pairs, enabling the generation of 3D objects from natural language prompts like "a magical sword" or "a baby penguin."

Key Results and Insights

M-SDF demonstrates that sparsity is a feature rather than a bug. By focusing computational resources only on the boundary of the shape, the representation achieves much higher resolution where it matters most. Furthermore, because M-SDF can be computed for each shape independently in under two minutes, it is highly parallelizable and suitable for million-scale datasets.

Qualitative comparison of M-SDF against other 3D representations, highlighting its ability to capture fine details efficiently.

Quantitatively, M-SDF outperforms baselines like 3DILG and Neural Wavelets in terms of Frechet Inception Distance (FPD) and Kernel Inception Distance (KPD), indicating superior realism and diversity. Visually, it produces sharper surfaces compared to the "blobby" results often seen in other methods. Surface extraction is also significantly faster; for a $512^3$ resolution, M-SDF takes approximately 21 seconds, whereas many competing methods either take much longer or fail due to memory constraints.

Limitations and Future Directions

While M-SDF excels at capturing geometry, it currently does not encode texture, color, or material properties. Future work may involve integrating local convolutions or autoencoders to further enhance resolution. Additionally, making the model "rotation-aware" (equivariant) by adding local coordinate frames to each grid could improve its ability to generalize to objects in various orientations.

Summary updated

BibTeX
@misc{yariv2023mosaic,
  author = {Lior Yariv and Omri Puny and Oran Gafni and Yaron Lipman},
  title = {{Mosaic-SDF for 3D Generative Models}},
  year = {2023},
  eprint = {2312.09222},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.09222},
}
Figure