Efficient 3D Shape Generation via Diffusion Mamba with Bidirectional SSMs

Shentong MoarXiv 2024 · DOI

Introduction

Generating high-fidelity 3D shapes presents a significant computational challenge. While Diffusion Transformers (DiTs) have set new standards in 2D image generation, their application to 3D point clouds and voxels is hindered by a "complexity wall." As 3D resolution increases, the number of tokens grows exponentially. The self-attention mechanism inherent in Transformers scales quadratically or cubically with sequence length, leading to prohibitive memory requirements and frequent "Out of Memory" (OOM) errors during high-resolution modeling.

To address these limitations, we present DiM-3D, a novel diffusion architecture that replaces resource-intensive Transformers with efficient Mamba-based State Space Models (SSMs). By achieving linear complexity relative to sequence length, DiM-3D enables high-fidelity 3D generation and point cloud completion with significantly reduced computational costs and enhanced scalability.

The DiM-3D Framework

The core of the DiM-3D framework is the replacement of standard attention layers with Bidirectional State Space Models. The architecture follows a structured pipeline designed for spatial data:

  1. Voxel-to-Sequence Transformation: The model processes 3D voxelized point clouds by partitioning them into flattened patches or tokens.
  2. Linear Complexity via Mamba: Unlike the global attention of Transformers, Mamba utilizes a selective state space approach. This allows the model to process sequences with $O(L)$ complexity, ensuring that computational requirements scale linearly with input size.
  3. Bidirectional Processing: Standard SSMs are typically causal, processing data in a single direction. Since 3D spatial data lacks a fixed temporal order, DiM-3D employs both forward and backward SSMs. This bidirectional approach allows the model to capture global context from all directions, which is essential for maintaining structural integrity in 3D shapes.
  4. Diffusion Backbone: The Mamba-based architecture serves as the denoiser within a standard diffusion process, iteratively transforming random noise into structured 3D point clouds.
The DiM-3D architecture overview, showcasing the integration of Mamba blocks and bidirectional SSMs within the diffusion framework.

Experimental Evaluation

The model was evaluated using the ShapeNet and ShapeNet-55 datasets. ShapeNet provides a standard benchmark for common categories like chairs, airplanes, and cars, while ShapeNet-55 offers a broader range of 55 diverse classes to test the model's generalization capabilities.

Key Results

DiM-3D demonstrates state-of-the-art performance across multiple metrics, particularly in efficiency and high-resolution tasks:

  • Superior Accuracy: On the ShapeNet "Chair" category, DiM-3D achieved a 1-NNA (CD) score of 45.78, outperforming DiT-3D-XL (49.11).
  • Computational Efficiency: At a resolution of 1024, DiM-3D required 4700 Gflops, compared to 5482 Gflops for DiT-3D.
  • High-Resolution Scalability: DiM-3D successfully generated shapes at 2048 resolution (18,798 Gflops), a task where traditional DiT models failed due to memory constraints.
A high-fidelity 3D point cloud of a chair generated by the DiM-3D model, illustrating the detail achievable through efficient linear scaling.

Conclusion

DiM-3D represents a significant step forward in scalable 3D generative modeling. By leveraging the linear complexity of Bidirectional SSMs, the framework overcomes the memory bottlenecks of Transformer-based models. While the approach still requires substantial GPU resources for extreme resolutions, it paves the way for more accessible high-fidelity 3D content creation. Future work will focus on integrating text-to-3D capabilities and expanding the model's training to even larger, more diverse datasets.

Summary updated

BibTeX
@misc{mo2024efficient,
  author = {Shentong Mo},
  title = {{Efficient 3D Shape Generation via Diffusion Mamba with Bidirectional SSMs}},
  year = {2024},
  eprint = {2406.05038},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.05038},
}
Figure