Abstract
Diffusion models have shown strong capabilities in high-fidelity image generation but often falter when synthesizing rare concepts, i.e., prompts that are infrequently observed in the training distribution. In this paper, we introduce RAP, a principled framework that treats rare concept generation as navigating a latent causal path: a progressive, model-aligned trajectory through the generative space from frequent concepts to rare targets. Rather than relying on heuristic prompt alternation, we theoretically justify that rare prompt guidance can be approximated by semantically related frequent prompts. We then formulate prompt switching as a dynamic process based on score similarity, enabling adaptive stage transitions. Furthermore, we reinterpret prompt alternation as a second-order denoising mechanism, promoting smooth semantic progression and coherent visual synthesis. Through this causal lens, we align input scheduling with the model's internal generative dynamics. Experiments across diverse diffusion backbones demonstrate that RAP consistently enhances rare concept generation, outperforming strong baselines in both automated evaluations and human studies.
Introduction: The Challenge of Rare Concepts
While state-of-the-art diffusion models like SDXL, SD3, and Flux produce high-fidelity imagery, they suffer from a "long-tail" problem. They frequently struggle with prompts describing rare objects or unusual combinations—such as a "banana-shaped car"—that appear infrequently in their training datasets. In these cases, the model lacks sufficient stable gradients to synthesize the requested concept accurately.
Prior attempts to address this, such as the Rare-to-Frequent (R2F) framework, utilized Large Language Models (LLMs) to generate a sequence of prompts starting from common proxies (e.g., "a yellow car") and transitioning to the rare target. However, these methods rely on fixed schedules (e.g., switching at a specific denoising step). Because different models and prompts evolve at varying speeds, these rigid schedules are brittle: switching too early prevents the rare concept from emerging, while switching too late locks the model into a common concept, ignoring the rare details.
Methodology: Adaptive Prompt Switching (RAP)
RAP (Rare Concept Generation via Adaptive Prompt Switching) re-frames prompt switching through the lens of Score Replacement. In diffusion terms, the "score" is the gradient pointing toward higher data density. Rare prompts often have unreliable or "noisy" scores. RAP replaces these with the stable scores of semantically related, frequent prompts during the critical early stages of generation.
The Bounded Deviation Criterion
The core of RAP is a dynamic switching mechanism that monitors the model's internal signals rather than following a hardcoded clock:
- Adaptive Switching: RAP monitors the score difference ($\delta_t$) between the proxy prompt and the rare target prompt.
- Budget Accumulation: It accumulates this difference in a "budget bucket." A switch is triggered only when the accumulated deviation exceeds a specific threshold ($\delta_B^*$).
- Threshold Decay: Semantic similarity (calculated via text encoders like T5 or CLIP) is used to adjust the budget. Prompts semantically closer to the target are allowed less drift before a switch occurs.
- Model-Agnosticism: By listening to internal score dynamics, RAP works seamlessly across diverse architectures, including SDXL, SD3, Flux, and Sana.
Experimental Results
The researchers evaluated RAP on RareBench, a benchmark covering eight categories of rare concepts, and T2I-CompBench for compositional generation.
Key Findings
- Superior Performance: RAP consistently outperformed R2F and layout-control baselines like RPG and LMD. Notably, the Flux model—which struggled with previous methods—saw substantial gains.
- Human Preference: In a user study with 50 participants, RAP-generated images were preferred over baselines 62% to 72% of the time.
- Aesthetic Quality: Quantitative metrics (LAION-Aesthetics) confirmed that RAP produces images that are both more accurate to the prompt and more visually appealing.
- Robustness: Unlike previous methods that could degrade standard prompts, RAP's adaptive nature ensures that for non-rare prompts, the deviation remains low, and the model reverts to standard behavior.
Discussion and Conclusion
RAP identifies the "knee" of the score difference curve—the point where image structure begins to form—to automate optimal threshold calculation. This allows frequent prompts to establish a global structure (e.g., the shape of a car) while ensuring the rare prompt takes control in time to provide local identity (e.g., the banana texture).
While RAP is highly effective, it remains limited by the underlying capabilities of the base model. If a concept lies entirely outside the model's learned domain, even adaptive switching may fail. Future work will explore extending this approach to multi-modal conditions and developing frequent-to-rare training strategies to further improve inherent model priors.
Summary updated