TL;DR
Current text-to-image diffusion models operate as "black boxes" that entangle geometry, materials, and lighting into a single RGB image, making precise post-generation editing incredibly difficult. This paper introduces a two-stage framework that first generates a multi-channel G-buffer (geometry, material, and lighting channels) directly from a text prompt, and then renders the final image using a physically-based rendering (PBR) inspired branch network. This clean separation allows users to perform fine-grained, channel-wise edits—such as changing an object's material, adjusting local lighting, or inserting new objects—with flawless physical consistency.
What Problem Does This Paper Address?
State-of-the-art text-to-image models (like Stable Diffusion or FLUX) generate stunningly realistic images, but they lack granular control. Because they map text directly to RGB pixels, they inherently entangle the scene's layout, material properties (like roughness or shininess), and illumination.
If an artist wants to make a specific modification—for instance, changing a wooden table to marble or moving a chair—traditional diffusion models usually require regenerating the entire image or using imprecise inpainting masks. This often alters surrounding details or creates physically unrealistic lighting and shadows. Existing structural control methods (like standard ControlNet) only operate on the image level, missing the deep semantic properties of the scene, while neural decomposition methods are often slow and restricted to narrow datasets.
Methods
The authors break the text-to-image process into a two-stage pipeline that separates scene generation from image rendering:
- Text-to-G-Buffer via Latent-Space ControlNet: Given a text prompt, the model generates a 13-channel G-buffer containing per-pixel information for geometry (normals, depth), materials (albedo, roughness, metallic), and lighting (shading, plus an editing mask). Crucially, this modified ControlNet operates directly within the latent space of the diffusion model, bypassing information-losing image-space decode-encode cycles.
- PBR-Inspired Branch Renderer: To turn these intermediate channels into a final photorealistic image, the authors design a rendering network modeled after the microfacet BRDF rendering equation. Instead of processing everything through a single monolithic network, the architecture splits into three distinct branches:
- Geometry Branch ($G$): Processes surface normals and depth maps.
- Material Branch ($M$): Processes albedo, roughness, and metallic maps.
- Lighting Branch ($L$): Processes shading maps and editing masks.
Each branch uses a 4-layer CNN encoder paired with Diffusion Transformer (DiT) blocks. A fusion module ($H$) then combines these independent streams before passing them to a fine-tuned Stable Diffusion backbone to generate the final RGB output.
Datasets
To train the network without causing the base diffusion model to overfit or suffer from "catastrophic forgetting," the authors utilized a combined dataset of over 120,000 samples:
- InteriorVerse: 50k+ synthetic indoor images providing ground-truth albedo, normal, roughness, depth, and metallic channels.
- Hypersim: 70k+ photorealistic indoor samples providing shading and irradiance data.
Key Insights and Ideas
- The Power of Latent-Space Manipulation: Operating the ControlNet directly on diffusion latents preserves rich, implicit geometric and material distributions that are often lost when projecting down to standard RGB space.
- Physics as an Inductive Bias: Factoring the rendering network into separate geometry, material, and lighting streams provides a powerful structural prior. This physics-inspired factorization reduced reconstruction error by a staggering 76% compared to a standard end-to-end network layout.
- Dynamic Shading Recomputation: By setting edited regions in the shading channel to zero and utilizing a mask guide, the network can dynamically re-estimate local lighting and global illumination inter-reflections for newly inserted or moved objects.
Key Results
- Quantitative Improvements: In G-buffer-to-image reconstruction tasks, the branch network architecture achieved a massive performance leap over monolithic baselines, dropping Mean Squared Error (MSE) from 0.0288 to 0.0068 and LPIPS from 0.2686 to 0.0973.
- High Image Fidelity: The pipeline maintains the generative quality of the base model, achieving a comparable FID score (22.97 vs. Stable Diffusion's 22.96) and securing the highest CLIP Aesthetic Score (0.0054) among tested baselines.
- Fine-Grained Editing: The explicit separation of channels enables intuitive, localized post-generation edits. Users can seamlessly swap materials, alter colors, adjust lighting, or insert objects with realistic shadow casting.
- User Study: A study involving 156 participants demonstrated a clear human preference for this method over existing baselines (like RGB$\leftrightarrow$X and Diffusion Handles), with preference rates ranging between 64.48% and 72.67% for natural lighting and overall composition quality.
Limitations and Future Work
- Single-Bounce Approximation: The rendering network relies on a simplified single-bounce light transport assumption. As a result, the model can occasionally produce overly soft shadows or blurry specular highlights in scenes dominated by complex multi-bounce global illumination.
- Domain Bias: Because the training datasets (InteriorVerse and Hypersim) focus entirely on indoor environments, the model's performance remains weaker on highly complex outdoor scenes, such as aerial landscapes or underwater environments.
- Inference Speed: The two-stage nature of the pipeline inherently introduces computational overhead, increasing inference times compared to direct text-to-RGB generation. The authors note that exploring single-stage architectures is a promising direction for future efficiency gains.
Summary updated