SceneBooth: Diffusion-based Framework for Subject-preserved Text-to-Image Generation

Shang Chai, Zihang Lin, Min Zhou, Xubin Li, Liansheng Zhuang, Houqiang LiarXiv 2025 · DOI

Abstract

SceneBooth introduces a novel two-stage diffusion framework for "subject-preserved" text-to-image generation. Instead of attempting to learn and regenerate a subject's features from scratch—a process prone to distortion—it fixes the original subject image as the foreground and generates a semantically coherent, layout-guided background around it. This approach guarantees perfect subject fidelity while allowing for diverse, prompt-driven scene creation.

Introduction

Personalizing image generation—such as placing a specific consumer product on a snowy mountain or a user's selfie in front of the Eiffel Tower—is a highly sought-after capability for advertising and creative applications. Current "subject-driven" methods like DreamBooth or Textual Inversion tackle this by fine-tuning a diffusion model to learn a subject's representation. However, these models often suffer from overfitting or "language drift," leading to distorted details. For high-stakes applications like advertising, a slightly misspelled logo or warped bottle shape is unacceptable.

The input subject image used for generation.

SceneBooth proposes a shift from subject-driven to subject-preserved generation. While standard image inpainting could theoretically address this, existing models struggle to automatically determine the correct size and position for the subject in a new scene. SceneBooth bridges this gap by automating both layout generation and background harmonization.

Methodology

SceneBooth utilizes a coarse-to-fine, two-stage pipeline to integrate a fixed subject into a generated background:

1. Multimodal-Conditioned Layout Generation (MCLayoutDM)

This module determines the spatial arrangement of the scene. It takes the subject image, a list of object phrases (e.g., "dog", "frisbee"), and a scene caption. Using CLIP to extract visual and textual features, it generates a bounding-box layout via a diffusion process. This automatically determines the optimal scale and position of the subject and surrounding objects based on visual semantics.

2. Background Painting (PaintNet)

Once the layout is established, PaintNet generates the background. Built on the Latent Diffusion Model (LDM), it employs two specialized adapters:

  • Gated Self-Attention: Injects spatial layout information.
  • ControlNet: Injects visual features of the subject to ensure environmental consistency.

Unlike standard inpainting models trained on random masks, PaintNet is trained using "instance masks." It is explicitly taught to hallucinate a harmonious, realistic background around a complete foreground subject.

Experimental Results

The framework was evaluated on the COCO2017 dataset, specifically focusing on scenes with 3 to 8 objects.

Quantitative Performance

SceneBooth significantly outperformed baselines like StableDiffusion-inpaint and ControlNet-inpaint. It achieved an FID of 20.89, indicating superior image quality and realism. Furthermore, it dominated in subject fidelity metrics (CLIP-I: 0.8023, DINO: 0.7501), as the subject pixels are preserved by design.

Qualitative Analysis

Human evaluations showed that SceneBooth was preferred 51.4% of the time for overall quality and 64.4% of the time for object phrase alignment. The layout-first approach creates much more coherent scenes compared to traditional inpainting or fine-tuning methods.

Diverse scenes generated by SceneBooth while preserving the original perfume bottle subject.

Discussion and Conclusion

By treating personalization as a specialized layout-and-inpaint problem, SceneBooth bypasses the subject distortion issues inherent in concept-learning methods. Key insights include the importance of visual embeddings for layout generation and the necessity of instance masking during training to prevent a "copy-pasted" appearance.

While highly effective, the model faces challenges with partially occluded input subjects and extremely crowded scenes. Future work will focus on handling multiple preserved subjects and imposing stricter aspect ratio constraints to further refine the output.

Summary updated

BibTeX
@misc{chai2025scenebooth,
  author = {Shang Chai and Zihang Lin and Min Zhou and Xubin Li and Liansheng Zhuang and Houqiang Li},
  title = {{SceneBooth: Diffusion-based Framework for Subject-preserved Text-to-Image Generation}},
  year = {2025},
  eprint = {2501.03490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.03490},
}
Figure