Diffusing Differentiable Representations

Yash Savani, Marc Anton Finzi, J Zico Kolter

Abstract

Generating complex 3D assets and high-resolution panoramas often requires specialized models or expensive training. This paper, presented at NeurIPS 2024, introduces DDRep (Diffusing Differentiable Representations), a training-free framework that enables the sampling of complex objects using standard, pre-trained 2D image diffusion models. By leveraging differential geometry to "pull back" the diffusion process into the parameter space of differentiable representations, DDRep avoids the common pitfalls of mode-seeking optimization, resulting in high-fidelity, diverse, and geometrically consistent outputs.

Introduction

The success of 2D generative AI, particularly models like Stable Diffusion, has sparked significant interest in extending these capabilities to 3D objects (via Neural Radiance Fields, or NeRFs) and 360-degree panoramas. However, bridging the gap between 2D priors and 3D representations is non-trivial. Existing training-free methods, such as DreamFusion (utilizing Score Distillation Sampling, or SDS) and Score Jacobian Chaining (SJC), attempt to optimize a representation so that its rendered views align with a 2D diffusion model's expectations.

While functional, these methods are fundamentally mode-seeking. They attempt to find the single most probable configuration in a high-dimensional space. In such spaces, the "mode" is often an atypical, blurry average of the data—a manifestation of the thin-shell phenomenon. DDRep addresses this by shifting the paradigm from optimization to true sampling, preserving the texture, detail, and diversity inherent in the original 2D model.

Methodology

DDRep treats the reverse diffusion process as a trajectory defined by a vector field, specifically the Probability Flow ODE. The core innovation lies in how this vector field is applied to a differentiable representation (diffrep).

The Geometric Pullback

The authors identify that previous methods like SDS and SJC were mathematically incomplete for the purpose of sampling. Using tools from differential geometry, they demonstrate that a mathematically rigorous update rule requires "pulling back" the vector field from the image space to the parameter space of the object. Crucially, this involves the inverse of the pulled-back metric $(J^ op J)^{-1}$, where $J$ is the Jacobian of the rendering function. Including this term allows the model to perform true sampling rather than simple gradient ascent toward a mode.

Efficient Optimization and Consistency

Directly calculating $(J^ op J)^{-1}$ is computationally prohibitive for complex representations. To solve this, DDRep reformulates each diffusion step as a small non-linear least-squares optimization problem. This allows the use of efficient standard optimizers like Adam to approximate the pullback score quickly.

To ensure that the generated content remains consistent across different views—a major challenge when using 2D priors for 3D objects—the authors adapt the RePaint technique. This approach intersperses forward (noising) and reverse (denoising) steps, effectively allowing the model to "negotiate" between the 2D diffusion prior and the strict geometric constraints imposed by the differentiable representation (e.g., a NeRF or a SIREN).

Experimental Results

The authors evaluated DDRep using Stable Diffusion 1.5 as the base model across several tasks, including Image SIRENs (using MS-COCO 2017 validation captions), 360-degree SIREN panoramas, and 3D NeRFs (using the voxNeRF architecture).

Fidelity and Diversity

In 2D image representation tests, DDRep produced images nearly indistinguishable from reference Stable Diffusion samples. It significantly outperformed SJC across standard metrics, including PSNR, SSIM, and KID. More importantly, DDRep demonstrated superior diversity. While SJC often collapses to similar-looking outputs for a given prompt, DDRep generates a wide variety of distinct assets, reflecting the full distribution of the underlying diffusion model.

Computational Efficiency

DDRep offers a substantial speedup over previous state-of-the-art methods:

  • SIREN Images: A batch of eight images took 82 seconds with DDRep, compared to 694 seconds for SJC.
  • 3D NeRFs: Sampling time was reduced from approximately 34 minutes to 24 minutes.

Zero-Shot Capabilities

Without any 3D-specific training, DDRep successfully generated complex 360-degree landscapes and detailed 3D models, such as intricate roses and food items, demonstrating its robustness as a general-purpose framework for lifting 2D priors into higher dimensions.

Discussion and Future Work

DDRep represents a significant step forward in training-free 3D generation by prioritizing sampling over optimization. However, some challenges remain. The use of RePaint steps increases the number of function evaluations (NFEs), adding computational overhead. Additionally, the Monte Carlo estimates used for the pullback score can be noisy if the representation's Jacobian is ill-conditioned.

Future research directions include the application of importance sampling to reduce stochastic variance and adapting the framework for more modern representations, such as 3D Gaussian Splatting, which could further enhance the speed and quality of the generated assets.

Conclusion

By grounding the diffusion process in differential geometry, DDRep provides a mathematically sound method for sampling differentiable representations. It effectively bridges the gap between powerful 2D generative models and the need for high-quality, diverse 3D and panoramic content, all without the need for additional training or fine-tuning.

Summary updated

BibTeX
@inproceedings{savani2024diffusing,
  author = {Yash Savani and Marc Anton Finzi and J Zico Kolter},
  title = {{Diffusing Differentiable Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=SKhR5CuiqQ},
}
Figure