Abstract
Diffusion-based image generation models such as DALL-E 3 and Stable Diffusion-XL demonstrate remarkable capabilities in generating images with realistic and unique compositions. Yet, these models are not robust in precisely reasoning about physical and spatial configurations of objects, especially when instructed with unconventional, thereby out-of-distribution descriptions, such as "a chair with five legs". In this paper, we propose a language agent with chain-of-3D-thoughts (L3GO), an inference-time approach that can reason about part-based 3D mesh generation of unconventional objects that current data-driven diffusion models struggle with. More concretely, we use large language models as agents to compose a desired object via trial-and-error within the 3D simulation environment. To facilitate our investigation, we develop a new benchmark, Unconventionally Feasible Objects (UFO), as well as SimpleBlenv, a wrapper environment built on top of Blender where language agents can build and compose atomic building blocks via API calls. Human and automatic GPT-4V evaluations show that our approach surpasses the standard GPT-4 and other language agents (e.g., ReAct and Reflexion) for 3D mesh generation on ShapeNet. Moreover, when tested on our UFO benchmark, our approach outperforms other state-of-the-art text-to-2D image and text-to-3D models based on human evaluation.
Introduction: The Spatial Reasoning Gap
While modern diffusion models like DALL-E 3 and Stable Diffusion XL produce stunningly realistic images, they are notoriously limited in precise spatial reasoning and counting. If prompted for a "chair with five legs," these models often produce chairs with four, six, or seven legs because they rely on statistical patterns seen during training rather than a fundamental understanding of 3D geometry.
These models struggle with "out-of-distribution" prompts—descriptions of objects that are physically possible but rare in the real world. L3GO addresses this gap by moving away from pure pixel hallucination toward a system that explicitly reasons through the physical construction of an object.
Methodology: Building with Chain-of-3D-Thoughts
L3GO treats 3D generation as a multi-step reasoning and acting task. The framework utilizes SimpleBlenv, a custom wrapper for Blender that allows an LLM to build objects using five basic "atomic" shapes (cubes, cylinders, cones, spheres, and toruses) via Python API calls.
The core of the approach is the Chain-of-3D-Thoughts pipeline:
- Part Specifications Generator/Critic: Identifies necessary components (e.g., "front right leg") and critiques them for clarity.
- Spatial Specifications Generator: Determines relative positioning between parts.
- Coordinate Calculator: The LLM writes Python code to calculate precise X, Y, Z coordinates, ensuring mathematical accuracy rather than guessing values.
- Spatial & Completion Critics: The agent checks for errors—such as floating parts or overlaps—after each step and determines when the object is complete.
- Refinement: The final 3D mesh is rendered into a grayscale image and processed through ControlNet (using Canny edge detection) to produce a textured 2D image that maintains the precise geometry of the 3D model.
Benchmarking Unconventionality
The authors evaluated L3GO using two primary datasets:
- ShapeNet-13: A subset of the standard ShapeNet dataset featuring 13 common categories (airplanes, chairs, tables, etc.) to test basic construction abilities.
- UFO (Unconventionally Feasible Objects): A new benchmark introduced in this paper consisting of 50 difficult prompts requiring precise spatial understanding, such as "a sofa with legs longer than its backrest" or "a mug with five handles."
Key Results
- Superior Prompt Adherence: In human evaluations on the UFO benchmark, L3GO significantly outperformed DALL-E 3 and SDXL. While diffusion models often ignored the "unconventional" aspects of a prompt, L3GO followed them strictly.
- Agent Performance: L3GO achieved a mean accuracy of 0.60 on ShapeNet, outperforming other LLM-based agent frameworks like ReAct (0.42) and Reflexion (0.40).
- Logical Construction: By using Blender as a "ground truth" environment, the agent receives immediate feedback. This allows it to self-correct spatial gaps that would otherwise result in physically impossible 2D generations.
Limitations and Future Work
Despite its reasoning strengths, L3GO faces several challenges. Generating an object is computationally expensive, taking between 3 to 20 minutes compared to the seconds required by diffusion models. Additionally, because models are built from five basic geometric primitives, the resulting meshes are relatively "blocky."
Future research will focus on expanding the "action space" to include more complex mesh deformations and professional modeling operations, as well as improving the computational efficiency of the iterative modeling loops.
Summary updated