The Lottery Ticket Hypothesis in Denoising: Towards Semantic-Driven Initialization

Jiafeng Mao, Xueting Wang, Kiyoharu Aizawa

Abstract

Text-to-image diffusion models, while powerful, often struggle with precise spatial layout control, frequently requiring users to perform extensive "cherry-picking" to achieve desired results. This paper explores a previously overlooked variable: the initial Gaussian noise. Drawing inspiration from the Lottery Ticket Hypothesis, the authors demonstrate that random noise is not semantically neutral but contains "winning tickets"—specific pixel blocks naturally predisposed to becoming certain objects. The authors present Semantic-driven Initialization (SemI), a training-free framework that harvests these winning tickets to "rig" the initial noise, enabling predictable and precise layout control.

Introduction

Current solutions for layout control in diffusion models, such as ControlNet or complex guidance techniques, often require significant fine-tuning or heavy computational overhead during inference. This research addresses the root cause of layout failure: the "lottery" of random initialization. If the starting noise does not inherently support the requested objects in their specified locations, the denoising process is likely to fail. By identifying and transplanting semantic "winning tickets," SemI transforms the stochastic generation process into a deterministic, user-guided layout tool.

Methodology: Harvesting and Transplanting Noise

The proposed method operates in two primary phases: the discovery of semantic predispositions in noise and the application of these findings via Semantic-driven Initialization (SemI).

Identification and Collection

The authors identify "winning tickets" by analyzing the cross-attention layers of a pre-trained Stable Diffusion model at the very first denoising step. By examining which 4x4 pixel blocks in the initial noise exhibit high attention scores for specific tokens (e.g., "dog"), they can isolate patches that the model naturally associates with those concepts. To ensure specificity, a contrastive selection process is used—for instance, comparing attention for "dog" versus "car" within the same noise map to find blocks that uniquely favor one over the other.

Identification and collection of winning tickets from random noise using cross-attention maps.

Semantic-driven Initialization (SemI)

Once a database of winning tickets is established, SemI allows users to define a desired layout using bounding boxes. The algorithm selects corresponding tickets from the database and "transplants" them into the initial noise at the specified coordinates. The remaining areas are filled with "background" tickets. Despite this "Frankenstein" construction, the diffusion model remains robust, treating the resulting noise map as a valid starting point for high-quality image synthesis.

The Semantic-driven Initialization (SemI) pipeline for layout-controlled image generation.

Experimental Setup

The effectiveness of SemI was evaluated using the MS COCO 2017 dataset, specifically a subset of 6,000 samples featuring single and dual-object prompts. Stable Diffusion v1.4 served as the base model. Quantitative validation was performed using YOLOv7, an off-the-shelf object detector, to measure the success rate ($R_{suc}$) of generating objects within the requested bounding boxes.

Key Insights

  • Semantic Predispositions: Initial Gaussian noise is not a blank slate; it contains inherent "tendencies" that the U-Net recognizes early in the denoising process.
  • Migratability and Invariance: Winning tickets are modular. A "dog" ticket can be moved between different noise maps and remains effective regardless of descriptive modifiers in the prompt (e.g., "black dog" vs. "running dog").
  • Gaussian Robustness: The denoising process is surprisingly tolerant of non-standard initial distributions created by stitching together disparate noise blocks.

Results and Performance

SemI provides a training-free mechanism for layout control that rivals more complex methods. On its own, SemI achieved a success rate ($R_{suc}$) of 21.94%. When integrated with existing guidance methods (such as Soft or Swap), performance improved significantly, reaching an $R_{suc}$ of 29.29%. Furthermore, the method is highly efficient; while building a custom ticket set takes seconds, using a pre-computed database adds negligible overhead to the generation process.

Limitations and Future Work

While promising, the method faces challenges such as "property leakage," where a ticket might carry unintended traits like color. Additionally, generating very small objects remains difficult due to the limited number of available pixel blocks. Future research may expand the "lottery ticket" database to include attributes like pose, texture, and color, further refining the precision of semantic-driven initialization.

Summary updated

BibTeX
@inproceedings{mao2024lottery,
  author = {Jiafeng Mao and Xueting Wang and Kiyoharu Aizawa},
  title = {{The Lottery Ticket Hypothesis in Denoising: Towards Semantic-Driven Initialization}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72904-1\_6},
}
Figure