Introduction
While Large Language Models (LLMs) excel at generating text-based "how-to" guides, they lack the native ability to provide accompanying visual aids. Standard Text-to-Image (T2I) models, when tasked with generating a sequence of images for a multi-step process, often fail to maintain visual consistency. A blue bowl in Step 1 might become a red one in Step 2, or the appearance of the ingredients might change jarringly. This paper introduces StackedDiffusion, a framework designed to generate personalized, high-quality, and visually coherent multi-step instructions from a single natural language query.
Methodology: Spatial Tiling and Stacked Text Conditioning
The core innovation of StackedDiffusion is the concept of spatial tiling. Rather than generating images for each step independently, the model treats a sequence of $N$ steps as a single, large "stacked" image.
By tiling the latent representations of these images together during both training and inference, the model leverages the internal self-attention mechanisms of the Diffusion U-Net. This allows the model to "see" all steps simultaneously, ensuring that objects, tools, and environmental lighting remain consistent across the entire instructional gallery.
To guide this process, the researchers implemented Stacked Text Conditioning. The model separately encodes the overall "Goal" (e.g., "Bake a Seattle-themed cake") and each individual "Step." A learned step-positional encoding is added to the text features, instructing the image generator which specific text description corresponds to which tile in the visual stack. This prevents "goal neglect" (losing context) or "step neglect" (showing the final product prematurely).
Key Results and Human Preference
The researchers evaluated StackedDiffusion using the Visual Goal-Step Inference (VGSI) dataset, focusing on the "Recipes" category due to its high requirement for visual logic.
Key findings include:
- Superior Consistency: The model showed significant quantitative gains in Step Faithfulness (SF) and Cross-Image Consistency (CIC) compared to independent generation baselines.
- Human Preference: In head-to-head evaluations, StackedDiffusion outperformed state-of-the-art models like GILL by massive margins. Remarkably, in 30% of cases, human evaluators preferred the AI-generated instructions over original human-curated content from WikiHow.
- Long-Tail Versatility: Unlike retrieval-based systems, StackedDiffusion can generate visuals for highly specific or unusual requests, such as incorporating specific leftover ingredients or creating themed decorations.
Conclusion
StackedDiffusion demonstrates that cross-image consistency in sequential tasks can be effectively framed as a spatial consistency problem. By unifying the generation process through spatial tiling and dual text conditioning, the model bridges the gap between abstract text instructions and coherent visual guidance. Future work aims to extend this logic to video generation and broader, more abstract task domains.
Summary updated