Less-to-More Generalization: Unlocking More Controllability by In-Context Generation

Shaojin Wu, Mengqi Huang, Wenxu Wu, Yufeng Cheng, Fei Ding, Qian He · OpenReview

Abstract

Although subject-driven generation has been extensively explored in image generation due to its wide applications, it still has challenges in data scalability and subject expansibility. For the first challenge, moving from curating single-subject datasets to multiple-subject ones and scaling them is particularly difficult. For the second, most recent methods center on single-subject generation, making it hard to apply when dealing with multi-subject scenarios. In this study, we propose a highly-consistent data synthesis pipeline to tackle this challenge. This pipeline harnesses the intrinsic in-context generation capabilities of diffusion transformers and generates high-consistency multi-subject paired data. Additionally, we introduce UNO, which consists of progressive cross-modal alignment and universal rotary position embedding. It is a multi-image conditioned subject-to-image model iteratively trained from a text-to-image model. Extensive experiments show that our method can achieve high consistency while ensuring controllability in both single-subject and multi-subject driven generation.

Introduction: The Challenge of Customized Generation

Customized image generation—creating images that feature specific subjects from reference photos—has seen massive growth, but it hits a wall when moving from one subject to many. Two main bottlenecks exist:

  1. Data Scalability: It is incredibly difficult to find or curate high-quality, real-world datasets that show the same multiple subjects in diverse, paired settings.
  2. Model Controllability: Most existing models are "single-subject centric." When forced to handle multiple subjects, they often suffer from "attribute confusion" (e.g., the color of one subject leaking into another) or "copy-paste" behavior, where the model simply replicates the reference image rather than generating a new scene.

The authors aim to unlock "Less-to-More Generalization," where a model learns to handle complex multi-subject scenarios by training on high-quality synthetic data generated by simpler, less-controllable models.

Methodology

The researchers propose a two-pronged approach: a data curation pipeline and a specific model architecture.

Model-Data Co-evolution

Instead of relying on real data, they use a "model-data co-evolution" strategy. They use a powerful Text-to-Image (T2I) model (specifically FLUX.1) to generate "in-context" data—images where a subject appears in a grid or diptych alongside a target scene.

The model-data co-evolution paradigm: synthesizing high-consistency paired data for training more controllable models.

The pipeline uses a taxonomy of 365 classes to generate millions of prompts. These prompts are fed into the T2I model to create subject-consistent image pairs. To ensure quality, they use a multi-stage filter involving DINOv2 for visual consistency and Vision-Language Models (VLM) for fine-grained scoring on appearance and attributes.

The UNO Model

UNO is built on a Diffusion Transformer (DiT) backbone. Two key innovations make it work:

  • Progressive Cross-modal Alignment: The model is trained in two stages. Stage I focuses on single-subject data to teach the model how to "look" at a reference. Stage II introduces multi-subject data to handle complex interactions.
  • Universal Rotary Position Embedding (UnoPE): Standard position embeddings can cause the model to over-reference the spatial structure of the input image (leading to copy-pasting). UnoPE adjusts these indices, forcing the model to focus on the semantic content of the subjects rather than their exact pixel coordinates in the reference.

Datasets and Evaluation

The authors generated their own massive synthetic dataset consisting of 230,000 single-subject pairs for Stage I training and 15,000 multi-subject pairs for Stage II. For evaluation, they used the standard DreamBench for single subjects and a newly constructed multi-subject benchmark involving 30 different combinations of live and non-live objects.

Key Results and Insights

UNO achieves state-of-the-art (SOTA) results across both single and multi-subject tasks:

  • Single-Subject (DreamBench): UNO achieved a DINO score of 0.760 and a CLIP-I score of 0.835, outperforming established methods like RealCustom++ and OmniGen.
  • Multi-Subject: UNO maintained high consistency (DINO 0.542) while keeping competitive text fidelity.
High-quality generation of an anime-style subject, demonstrating UNO's ability to handle diverse artistic styles and complex backgrounds.

Qualitative results demonstrate that UNO is remarkably good at preserving fine details while still allowing for significant attribute editing that other models fail to follow. Analysis shows a clear correlation: as the VLM-based quality score of the training data increases, the model's performance improves significantly, proving that automated filtering is as important as the generation itself.

Conclusion

UNO demonstrates that high-quality synthetic data can be superior for training customization models compared to limited real-world data, as it allows for perfect control over diversity and perspective. By combining this data strategy with architectural fixes like UnoPE, the framework effectively solves the "copy-paste" problem and attribute confusion in multi-subject generation.

Summary updated

BibTeX
@inproceedings{wu2025less,
  author = {Shaojin Wu and Mengqi Huang and Wenxu Wu and Yufeng Cheng and Fei Ding and Qian He},
  title = {{Less-to-More Generalization: Unlocking More Controllability by In-Context Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure