MaterialFusion: Enhancing Inverse Rendering with Material Diffusion Priors

Yehonathan Litman, Or Patashnik, Kangle Deng, Aviral Agrawal, Rushikesh Zawar, Fernando De la Torre, Shubham Tulsiani

TL;DR

Disentangling geometry, lighting, and materials from multi-view images is fundamentally ambiguous, often causing inverse rendering pipelines to bake shadows and reflections directly into surface textures. MaterialFusion resolves this by introducing StableMaterial, a 2D diffusion model trained on physically based rendering (PBR) assets to act as a prior over plausible albedo and material properties. By distilling this 2D prior into a 3D inverse rendering pipeline via Score Distillation Sampling (SDS), the method significantly improves material estimation and novel-lighting relighting on both synthetic and real-world scenes.

What Problem Does This Paper Address?

Inverse rendering aims to decompose multi-view 2D images of an object under fixed, unknown illumination into three independent components: 3D geometry, environmental lighting, and surface reflectance (specifically albedo, roughness, and metallicness).

Standard reconstruction losses alone cannot uniquely resolve this decomposition. Multiple combinations of illumination and material properties can reproduce the exact same observed RGB pixel values. Consequently, standard optimization routines often confuse diffuse texture colors with specular highlights or environment reflections. When these reconstructed assets are placed into novel lighting environments, they render unrealistically.

Methods

MaterialFusion couples a 2D material diffusion prior with a 3D inverse rendering pipeline:

  1. StableMaterial (2D Material Diffusion Prior):
  2. Fine-tunes Stable Diffusion 2.1 to predict diffuse albedo ($I_d$) and an ORM map ($I_{orm}$: occlusion, roughness, metallicness) from an input RGB image under arbitrary illumination.
  3. Conditioning: The UNet receives 12 input channels—the clean VAE latent of the input image concatenated with 8 noisy latent channels (4 for albedo, 4 for ORM)—along with a global CLIP image embedding instead of text tokens.
  4. Multi-View Attention at 2D Inference: During pure 2D inference across multiple views (e.g., 4 views), self-attention layers cross-attend across views, producing coherent material estimates without 3D optimization.
  5. Prior-Guided Inverse Rendering:
  6. Built on top of nvdiffrecmc, which models geometry via a Signed Distance Function (SDF) extracted using DMTet, material parameters via UV maps ($k_d, k_{orm}$), and lighting via an HDR environment map.
  7. In addition to standard pixel reconstruction and mesh regularization losses, MaterialFusion renders predicted albedo and ORM maps and applies a modified Score Distillation Sampling loss ($\mathcal{L}_{\text{SDS+}}$).
  8. Dual-Space SDS Guidance: Inspired by HiFA, the SDS loss operates in both latent space and decoded pixel (RGB) space: $$\mathcal{L}_{\text{SDS+}} = \mathbb{E} \left[ \lambda_{\text{latent}} \|z - \hat{z}\|^2 + \lambda_{\text{rgb}} \|\mathcal{D}(z) - \mathcal{D}(\hat{z})\|^2 \right]$$
  9. Decaying Prior Weight: The weight on the SDS loss ($\gamma_i$) decays over training iterations, allowing the diffusion prior to guide early factorization while letting reconstruction losses recover fine details later.
Multi-view Images ──► Differentiable Rendering (nvdiffrecmc) ──► Reconstructed (Mesh, UV Albedo/ORM, HDR Light)
                             │
                             ├─► Reconstruction Loss (L_recon)
                             └─► Rendered (Albedo, ORM) ──► SDS+ Guidance from StableMaterial (L_SDS+)

Datasets

  • BlenderVault (New): A newly curated, artist-designed synthetic dataset of ~12K high-quality 3D objects with complex PBR textures spanning arbitrary commercial categories. Glass surfaces were standardized to a rough black material to prevent non-Lambertian transmission issues.
  • Training Corpus: Combined BlenderVault with filtered subsets of Objaverse (~8.5K objects) and ABO (~8K objects), totaling ~28K synthetic objects rendered under StreetLearn, Laval indoor HDR maps, and directional light sources.
  • Evaluation Benchmarks: Evaluated across four benchmarks:
  • NeRF Synthetic (5 objects)
  • NeRFactor (4 objects)
  • BlenderVault test set (9 objects for 3D relighting, 8 for 2D evaluation)
  • Stanford-ORB (14 real-world objects with calibrated lighting and camera poses)

Key Insights and Ideas

  • Decoded Pixel-Space SDS is Critical for Materials: Standard latent SDS gradients backpropagated through the VAE encoder introduce severe artifacts into the estimated UV maps. Adding an explicit decoder-level image loss ($\lambda_{\text{rgb}}$) stabilized the optimization and boosted relighting PSNR by nearly 5 dB.
  • Scheduling the Prior Prevents Blurring: Strong diffusion guidance is invaluable during early iterations to push albedo and roughness out of degenerate local minima. However, keeping the diffusion weight $\gamma_i$ constant blurs fine surface details; annealing it over time yields crisp textures.
  • Semantic Material Disentanglement: Because StableMaterial is trained across diverse PBR models, it develops an intuitive semantic understanding (e.g., identifying that a soda can is metallic aluminum vs. paper labeling), properly placing specular reflections into the ORM blue channel instead of baking them into albedo.

Key Results

MaterialFusion consistently outperformed leading inverse rendering baselines (nvdiffrecmc, TensoIR, Relightable 3D Gaussian):

  • Novel-View Relighting: Achieved the highest PSNR across all test benchmarks, including 26.33 dB on BlenderVault (vs. 25.11 dB for nvdiffrecmc) and 31.68 dB on real objects in Stanford-ORB (vs. 31.10 dB for nvdiffrecmc).
  • Direct Material Accuracy (BlenderVault 3D):
  • Albedo: 29.31 dB PSNR / 0.015 L1 error (closest baseline: 28.24 dB / 0.021).
  • ORM: 22.21 dB PSNR / 0.033 L1 error (closest baseline: 20.96 dB / 0.041; nvdiffrecmc scored only 15.93 dB).
  • 2D Material Estimation: In single- and multi-view 2D evaluations, StableMaterial outperformed single-image baselines (IIR, IID, Derender3D). Incorporating multi-view cross-attention (StableMaterialMV) further boosted 2D ORM accuracy to 26.34 dB PSNR.

Limitations and Future Work

  • Transparent and Translucent Materials: The method replaces glass and refractive surfaces with an opaque preset during training, leaving transmissive/refractive BRDF modeling unaddressed.
  • Computational Cost: Running 5-step DDIM sampling inside the SDS loop increases per-iteration optimization time compared to standard reconstruction pipelines.
  • Sparse-View Scenarios: While MaterialFusion relies on dense multiview setups, the authors note that the multi-view attention mechanism in StableMaterial holds untapped promise for sparse-view inverse rendering and pure 2D material estimation.

Summary updated

BibTeX
@inproceedings{litman2025materialfusion,
  author = {Yehonathan Litman and Or Patashnik and Kangle Deng and Aviral Agrawal and Rushikesh Zawar and Fernando De la Torre and Shubham Tulsiani},
  title = {{MaterialFusion: Enhancing Inverse Rendering with Material Diffusion Priors}},
  booktitle = {3DV},
  year = {2025},
  url = {https://openreview.net/forum?id=ZmZXUtyN1I},
}

Loading related content...

Figure