Abstract
While text-to-image (T2I) models like Stable Diffusion have transformed digital content creation, providing precise structural control remains a significant challenge. AnyControl is a novel multi-control image synthesis framework designed to combine arbitrary spatial conditions—such as depth maps, edge maps, and poses—with text prompts. By employing a specialized Multi-Control Encoder, the system effectively manages complex relationships between overlapping conditions while maintaining high fidelity to the original text description.
The Challenge of Multi-Control Synthesis
Existing solutions like ControlNet have introduced spatial conditioning to T2I models, allowing users to guide generation with specific structural inputs (e.g., edge maps). However, these models often struggle when presented with multiple simultaneous conditions. The authors identify three primary hurdles in current research:
- Input Flexibility: Most models rely on fixed-length input channels or Mixture of Experts (MoE) designs that fail to generalize to unseen combinations of conditions.
- Spatial Compatibility: When multiple spatial maps overlap or conflict (e.g., a depth map and a segmentation map from different sources), models frequently produce "blending artifacts" or ignore certain conditions.
- Textual Compatibility: Models often prioritize spatial maps so heavily that they neglect the nuances of the text prompt, leading to a loss of semantic control.
Methodology: The Multi-Control Encoder
The core innovation of AnyControl is the Multi-Control Encoder, which replaces simple weighted summations with an attention-based architecture. This encoder utilizes a set of learnable query tokens that act as a bridge to gather information from various sources.
Fusion and Alignment Blocks
The architecture consists of two primary alternating components:
- Multi-Control Fusion Block: This block uses cross-attention between the query tokens and the visual features of the spatial conditions. This allows the model to extract relevant structural information regardless of the number of conditions provided.
- Multi-Control Alignment Block: This block employs self-attention to mix query tokens with textual tokens from the prompt. This ensures that structural information (the "where") is semantically aligned with the text (the "what").
By repeating these blocks in sequence, the model iteratively refines the relationship between the text and the multiple spatial maps, using the text prompt as a "global regulator" to resolve conflicts between overlapping spatial inputs.
Datasets and Benchmarking
To train and validate AnyControl, the authors utilized several key datasets:
- MultiGen: A large-scale dataset of 2.8 million images derived from LAION for general multi-control training.
- Unaligned Training Data: To improve robustness, the authors created 0.44 million synthetic images where foreground and background conditions were pulled from different sources, teaching the model to handle "messy" real-world inputs.
- COCO-UM (New Benchmark): The authors introduced the Unaligned Multi-control benchmark. Unlike standard benchmarks where control maps are perfectly aligned, COCO-UM features occlusions and mismatched sources to better simulate actual user interactions.
Experimental Results
AnyControl demonstrated state-of-the-art performance in both quantitative and qualitative evaluations. On the COCO-UM benchmark, it achieved an FID of 44.28 and a CLIP-Score of 26.41, significantly outperforming competitors like Cocktail (FID 47.39) and Uni-ControlNet (FID 55.28).
Qualitatively, the model successfully avoids "sticker" artifacts and "miss-blending," producing harmonious images even with complex, overlapping conditions. It maintains high structural fidelity, as evidenced by the lowest Root Mean Square Error (RMSE) for depth and edge maps among tested models.
Limitations and Future Work
The authors noted that performance can degrade when the number of spatial conditions becomes excessively high (e.g., eight or more distinct maps). This is likely due to the limited capacity of the CLIP text encoder and a decrease in attention mechanism accuracy when dealing with an overwhelming number of visual tokens. Future research will focus on increasing the precision of the Multi-Control Encoder to handle higher densities of control signals without sacrificing semantic clarity.
Summary updated