CompoNeRF: Text-guided Multi-object Compositional NeRF with Editable 3D Scene Layout

Haotian Bai, Yuanhuiyi Lyu, Lutao Jiang, Sijia Li, Haonan Lu, Xiaodong Lin, Lin Wang

TL;DR

CompoNeRF is an innovative text-to-3D generation framework that synthesizes complex, multi-object scenes by pairing an editable 3D layout with localized Neural Radiance Fields (NeRFs). By utilizing dual-level text guidance (global scene prompts combined with local object subtexts), it overcomes the common "guidance collapse" issue in diffusion models, enabling flexible scene composition, decomposition, and editing.

What Problem Does This Paper Address?

Recent breakthroughs in text-to-3D generation have successfully combined NeRFs with pre-trained text-to-image diffusion models (like Stable Diffusion) via Score Distillation Sampling (SDS). While these methods excel at generating isolated, single objects, they fail spectacularly when tasked with complex, multi-object environments.

When given a multi-object prompt, standard diffusion priors suffer from guidance collapse. The model becomes semantically confused, frequently omitting objects, blending distinct attributes together (e.g., rendering a red banana instead of a red apple and a yellow banana), or failing to generate accurate quantities. Furthermore, even if individual objects are rendered, forcing them into a single global NeRF makes it incredibly difficult to achieve realistic scene interactions, such as natural lighting, shadows, and reflections between objects.

Guidance collapse in standard diffusion models

Methods

CompoNeRF solves this by decomposing the scene generation process into an editable 3D layout populated by localized NeRFs. The framework operates in three main dimensions:

  1. Editable 3D Layout: The scene is structured using customizable 3D bounding boxes (Axis-Aligned Bounding Boxes). Each box defines a local coordinate frame for a single object, governed by its own independent NeRF and a specific "subtext" prompt (e.g., "a table lamp").
  2. Density-Based Composition Module: To render the global scene, rays are cast through the global frame and projected into the overlapping local frames. CompoNeRF utilizes a density-based residual learning architecture. Global MLPs (a density calibrator and a color calibrator) fine-tune the combined outputs, allowing the system to learn complex global interactions like shadows and reflections while preserving individual object geometries.
  3. Dual-Level Text Guidance: During optimization, the system applies two distinct SDS losses simultaneously: a global text loss to ensure overall scene coherence, and a local subtext loss to maintain the fidelity and color accuracy of individual components.

Because the architecture is modular, it natively supports decomposition and recomposition. Trained object NeRFs can be saved to a cache and later reloaded into entirely new layouts or modified via textual edits (e.g., swapping "wine" for "juice").

CompoNeRF framework overview

Datasets

The authors do not introduce a new 3D dataset. Instead, CompoNeRF leverages the open-source Stable Diffusion (v1.4 and v1.5) model as its generative prior. To evaluate the system, they curated a suite of multi-object text prompts representing various challenging scenarios, ranging from simple object pairs ("a red apple and a yellow banana") to highly intricate arrangements ("a white king and a black queen chess piece on a chess board").

Key Insights and Ideas

  • Subtexts Prevent Semantic Chaos: Providing explicit, localized textual supervision for each bounding box anchors the diffusion model, ensuring it accurately represents the unique identity and color of each object without cross-contamination.
  • Density Calibration is Crucial: The authors compared density-based composition against color-based composition. They discovered that calibrating global density yields significantly sharper geometric details and faster convergence. Color-only composition, by contrast, introduces sparse density artifacts (holes) and unnatural shadows.
  • The Necessity of Bounding Box Overlap: For objects to interact realistically, their bounding boxes must slightly overlap. Without this overlap, the radiance fields fail to share gradient context, resulting in "floating" artifacts where objects look disconnected from their environment.
Density-based vs color-based composition comparison

Key Results

  • Quantitative Performance: CompoNeRF significantly outperforms existing text-to-3D baselines like Latent-NeRF and SJC. Notably, in complex multi-object test cases, CompoNeRF achieved up to a 54% improvement in multi-view CLIP scores, demonstrating vastly superior alignment with text prompts.
  • Qualitative Excellence: Visual results demonstrate that CompoNeRF successfully generates distinct, highly detailed objects within a single scene, complete with realistic inter-object reflections (such as a lamp casting a warm glow onto a nearby bed).
  • User Study: A study involving 15 participants confirmed that CompoNeRF drastically improves semantic accuracy, multi-view consistency, and individual object recognizability compared to standard methods.

Limitations and Future Work

  • The Janus (Multi-Face) Problem: Like most SDS-based methods, CompoNeRF occasionally suffers from the multi-face problem, where an object might generate duplicate faces when viewed from different angles. While incorporating exact mesh constraints (instead of simple bounding boxes) mitigates this, it requires tedious manual editing.
  • Prior Dependency: The framework's output quality is fundamentally bounded by the pre-trained diffusion model. If Stable Diffusion lacks a strong internal representation of a rare object or an unusual layout, CompoNeRF will struggle to generate it accurately.
  • Manual Layout Initialization: Currently, users must manually define the initial 3D bounding boxes. Automating this step via text-to-layout models is a promising avenue for future research.

Summary updated

BibTeX
@misc{bai2023componerf,
  author = {Haotian Bai and Yuanhuiyi Lyu and Lutao Jiang and Sijia Li and Haonan Lu and Xiaodong Lin and Lin Wang},
  title = {{CompoNeRF: Text-guided Multi-object Compositional NeRF with Editable 3D Scene Layout}},
  year = {2023},
  eprint = {2303.13843},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13843},
}
Figure