NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

3D Space as a Scratchpad for Editable Text-to-Image Generation

Oindrila Saha, Vojtĕch Krs, Radomír Měch, Tamir Hazan, Matheus Gadelha, Kevin Blackburn-Matzen

Abstract

Recent progress in large language models (LLMs) has shown that reasoning improves when intermediate thoughts are externalized into explicit workspaces, such as chain-of-thought traces or tool-augmented reasoning. Yet, visual language models (VLMs) lack an analogous mechanism for spatial reasoning, limiting their ability to generate images that accurately reflect geometric relations, object identities, and compositional intent. We introduce the concept of a spatial scratchpad — a 3D reasoning substrate that bridges linguistic intent and image synthesis. Given a text prompt, our framework parses subjects and background elements, instantiates them as editable 3D meshes, and employs agentic scene planning for placement, orientation, and viewpoint selection. The resulting 3D arrangement is rendered back into the image domain with identity-preserving cues, enabling the VLM to generate spatially consistent and visually coherent outputs. Unlike prior 2D layout-based methods, our approach supports intuitive 3D edits that propagate reliably into final images. Empirically, it achieves a 32% improvement in text alignment on GenAI-Bench, demonstrating the benefit of explicit 3D reasoning for precise, controllable image generation.

Introduction

Current state-of-the-art text-to-image (T2I) models, such as Flux or DALL-E 3, excel at generating high-fidelity textures and styles but frequently struggle with complex spatial reasoning. When presented with prompts involving intricate positional relationships or occlusions—such as "a cat behind a chair and to the left of a lamp"—these models often fail to maintain geometric consistency.

The fundamental limitation lies in the lack of a persistent, structured workspace for geometric deliberation. While LLMs utilize "Chain-of-Thought" processing to solve linguistic problems, T2I models typically attempt a direct mapping from text to pixels. Previous attempts to mitigate this using 2D bounding box layouts fail to capture the depth, rotation, and perspective required for realistic three-dimensional scenes. We propose a 3D spatial scratchpad to serve as an intermediate reasoning layer, allowing models to "think" in three dimensions before synthesis.

The 3D Spatial Scratchpad framework enables precise spatial reasoning and interactive editing by using 3D meshes as an intermediate representation.

Methodology

Our framework treats 3D space as a reasoning substrate through a multi-agent pipeline. This process externalizes spatial thoughts into an editable 3D scene before final image generation.

The Four-Stage Pipeline

  1. Identification & Instantiation: An LLM agent parses the prompt into discrete subjects. Each subject is generated as a 3D mesh using image-to-3D techniques, ensuring identity consistency across different views.
  2. 3D Scene Planning: A BboxPlanner agent arranges these meshes within a virtual 3D environment. The system utilizes text-based descriptions of 3D spatial bounds to guide the LLM in coordinate placement.
  3. Refining Transformations: To overcome the inherent difficulty LLMs face with 3D rotations, we employ an OrientationEstimator that analyzes 2D crops of objects and a TransformPlanner that iteratively suggests adjustments until the 3D scene aligns with the linguistic intent.
  4. 3D-Guided Synthesis: The finalized 3D scratchpad is rendered into a depth map. This map, alongside the original subject images, is processed by SIGMA-Gen—a multi-subject identity-preserving generator—to produce the final output.
The multi-agent pipeline: (1) Subject Identification, (2) 3D Scene Planning, (3) Transformation Refinement, and (4) 3D-Guided Synthesis.

Results and Evaluation

The framework was evaluated against major benchmarks for compositional reasoning, including GenAI-Bench, CompoundPrompts, and T2I-CompBench.

Our approach achieved a 32% improvement in text alignment on GenAI-Bench compared to existing baselines. Notably, the model demonstrated superior performance in handling complex linguistic constructs such as negations (e.g., "a room where all chairs are occupied except one"). By explicitly planning for the empty space in the 3D scratchpad, the model avoids the common failure mode where standard diffusion models ignore negative constraints.

Furthermore, on the VQAScore metric, which evaluates prompt-to-image fidelity, our method outperformed both DALL-E 3 and specialized 2D-layout models across categories such as counting, comparison, and attribute differentiation.

Discussion and Future Work

By grounding image generation in 3D geometry, we avoid the "spatial hallucinations" typical of pure diffusion models. The 3D representation also enables intuitive, identity-preserving edits—such as moving a character closer to the camera or adjusting object sizes—that propagate reliably to the final image.

Future work will address current limitations, such as the use of rigid meshes which prevent complex reposing (e.g., making a standing character sit). Integrating physics simulators to prevent object clipping and utilizing articulated 3D models represent the next steps toward fully realized spatial AI.

Summary updated

BibTeX
@inproceedings{saha2026d,
  author = {Oindrila Saha and Vojtĕch Krs and Radomír Měch and Tamir Hazan and Matheus Gadelha and Kevin Blackburn-Matzen},
  title = {{3D Space as a Scratchpad for Editable Text-to-Image Generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=GrnSJg5bRQ},
}
Figure