Introduction
Controllable text-to-image generation has transformed the landscape of AI-driven art, enabling users to guide models like Stable Diffusion with structural inputs such as sketches, human poses, or depth maps. Frameworks like ControlNet and T2I-Adapter have set the standard for this "adapter-based" control. However, these methods are notoriously data-intensive, often requiring hundreds of thousands of image-condition pairs to achieve high-quality results. This paper introduces a novel framework that drastically reduces this requirement, enabling effective learning with 1,000 times less data—as few as 100 training examples.
The Challenge: Overcoming Textual Bias
The primary obstacle to few-shot learning in controllable diffusion is Textual Bias. In standard training regimes, the model attempts to align a new visual condition (e.g., a sketch) with both the target image and the text prompt simultaneously. When training data is scarce, the deeply ingrained relationship between text and images in pre-trained models overpowers the new structural condition. This leads to "structural misalignment," where the model prioritizes textual descriptions over the user's provided structural "hints."
Proposed Methodology
To address these issues, the researchers propose a two-stage optimization framework designed to decouple structural control from textual influence.
1. Prompt-free Conditional Learning (PCL)
The framework utilizes a "prompt-free encoder" derived from the original Stable Diffusion architecture. The key innovation is the pruning of text-conditional links within the spatial transformer blocks. By removing these links, the encoder is forced to focus exclusively on the visual features of the input condition. Furthermore, during fine-tuning, the model employs a Null-Text Strategy, replacing all input text with a null prompt to ensure the mapping from condition to image is learned directly without textual interference.
2. Condition-specific Negative Rectification (CNR)
Standard diffusion models rely on Classifier-Free Guidance (CFG) with generic negative prompts (e.g., "blurry," "low quality"). The authors argue that few-shot models require more precise guidance. They introduce the Negative Rectifier, a lightweight spatial transformer block that dynamically adjusts the negative prompt embedding based on the specific structural features of the input. This creates a personalized "no-go zone" for pixel generation, significantly improving the model's ability to respect boundaries defined by the input condition.
Experimental Setup and Datasets
The framework was evaluated across five modalities (Sketch, Segmentation, Pose, Depth, and Canny edges) using the following datasets:
- COCO: For sketch and segmentation tasks.
- Human-Art: For pose-guided generation.
- instructPix2Pix: For depth and edge conditions.
In all few-shot experiments, the models were trained on only 100 randomly sampled pairs, representing a tiny fraction of the data typically used for such tasks.
Key Results
The proposed method ("Ours-100") was benchmarked against few-shot versions of ControlNet and T2I-Adapter.
- Image Quality: On the COCO sketch-to-image task, the method achieved a Fréchet Inception Distance (FID) of 21.049, outperforming ControlNet-100's 27.598.
- Structural Fidelity: Using the cSSIM metric, the model consistently demonstrated superior alignment with input structures, often rivaling models trained on full-scale datasets (100k+ samples).
- Pose Accuracy: On the Human-Art dataset, the method achieved an Average Precision (AP) of 23.10, a significant improvement over ControlNet-100 (19.64) and T2I-Adapter-100 (13.80).
Discussion and Limitations
While the framework achieves remarkable efficiency—training in under 4 hours on a single RTX 3090—some challenges remain. There can be occasional text-image disagreements; for instance, while the structure is perfectly preserved, specific details like eye color might deviate slightly from the text prompt (e.g., the specific shade of eye color appearing slightly different than the "blue eyes" requested). Additionally, future research will explore multi-condition learning and performance on extreme out-of-distribution data.
Conclusion
By removing textual constraints during training and implementing dynamic negative rectification, this research democratizes controllable AI. It enables the creation of custom structural controllers for niche applications without the need for massive datasets or extensive computational resources.
Summary updated