Abstract
Current 3D scene generation systems typically employ a declarative approach, where a model describes desired spatial constraints for a solver to resolve. This paper proposes a shift toward an imperative paradigm, where Large Language Models (LLMs) generate step-by-step programs to construct scenes. By leveraging the coding proficiency of LLMs and a specialized error-correction mechanism, this method produces complex, structured layouts that significantly outperform existing declarative baselines in human evaluations.
Introduction: The Limits of Declarative Scene Generation
Generating 3D scenes from text prompts—such as "a post-apocalyptic campsite"—is a challenging spatial reasoning task. Most state-of-the-art systems use a declarative paradigm: the LLM generates a list of constraints (e.g., "the chair is next to the table"), and a separate solver attempts to find a valid configuration.
However, this approach faces significant hurdles. As scene complexity increases, the number of constraints grows quadratically, leading to solver failures. Furthermore, declarative languages often struggle to express highly structured patterns, like rows of seating. Finally, LLMs frequently "hallucinate" impossible constraints when forced to use abstract declarative logic.
The Imperative Approach: Programming the Scene
The researchers propose an imperative paradigm where the LLM generates a Python-like program to place objects sequentially.
Imperative Domain Specific Language (DSL)
The proposed DSL allows for explicit geometric relationships and standard programming constructs like loops and variables. This enables the creation of repetitive or symmetrical structures with ease. Objects are positioned relative to existing elements, ensuring local coherence even in expansive environments.
LLM-Free Error Correction
To address common LLM errors like object overlaps, the system employs a coordinate descent-inspired local search. This optimizer tweaks parameters within the generated code to minimize a loss function—penalizing overlaps and out-of-bounds placements—without requiring expensive LLM re-generation. This "shared variable" approach means adjusting a single parameter (like spacing) can fix an entire row of objects simultaneously.
Benchmarking Open-Universe Generation
To test the limits of this approach, the authors developed a benchmark of 70 scene prompts categorized by size, location, realism, and structure. This "open-universe" set ranges from realistic classrooms to fantastical environments like the "Depths of Hell."
Key Results and Evaluation
The study introduced LLMCompare, a metric using GPT-4o to evaluate scene quality, which showed 77% agreement with human judgment—far exceeding standard metrics like CLIPScore.
- Human Preference: In forced-choice studies, human evaluators preferred imperative layouts 82.86% of the time over a strong declarative baseline and 94.29% of the time over Holodeck, a leading declarative system.
- Robustness and Efficiency: The error correction mechanism reduced layout errors from approximately 17 to 2 per scene. Despite this optimization step, total synthesis time remained comparable to declarative methods (~38 seconds), as the local optimizer is significantly faster than global constraint solvers.
Conclusion and Future Directions
While the imperative paradigm offers a significant leap in scene generation quality, limitations remain. Current orientations are restricted to cardinal directions, and the error correction cannot fix fundamental logic errors in the LLM's object selection. Future work will explore arbitrary rotations and extending the paradigm to dynamic, interactive scenes.
Summary updated