Difficulty Controlled Diffusion Model for Synthesizing Effective Training Data

Zerun Wang, Jiafeng Mao, Xueting Wang, Toshihiko Yamasaki

Abstract

Generative models have become a powerful tool for synthesizing training data in computer vision tasks. Current approaches solely focus on aligning generated images with the target dataset distribution. As a result, they capture only the common features in the real dataset and mostly generate "easy samples", which are already well learned by models trained on real data. In contrast, those rare "hard samples", with atypical features but crucial for enhancing performance, cannot be effectively generated. Consequently, these approaches must synthesize large volumes of data to yield appreciable performance gains, yet the improvement remains limited. To overcome this limitation, we present a novel method that can learn to control the learning difficulty of samples during generation while also achieving domain alignment. Thus, it can efficiently generate valuable "hard samples" that yield significant performance improvements for target tasks. This is achieved by incorporating learning difficulty as an additional conditioning signal in generative models, together with a designed encoder structure and training–generation strategy. Experimental results across multiple datasets show that our method can achieve higher performance with lower generation cost. Specifically, we obtain the best performance with only 10% additional synthetic data, saving 63.4 GPU hours of generation time compared to the previous SOTA on ImageNet. Moreover, our method provides insightful visualizations of category-specific hard factors, serving as a tool for analyzing datasets.

Introduction: The Dilemma of Easy Samples

Generative models like Stable Diffusion have revolutionized image synthesis, yet their application in data augmentation for computer vision remains constrained. Most existing methods prioritize domain alignment—ensuring synthetic images match the target dataset's distribution. However, this focus creates a "dilemma": fine-tuned generators naturally learn to reproduce the most common, and thus "easiest," features.

For a classifier, these easy samples are redundant. The truly valuable data—"hard samples" with atypical features or complex backgrounds—are rare in real datasets and even rarer in synthetic outputs. To capture enough hard samples to improve performance, current methods require massive, computationally expensive data volumes. This paper introduces a Difficulty Controlled Diffusion Model to specify the "hardness" of synthetic images, targeting a model's weaknesses while saving resources.

Methodology: Difficulty-Aware Synthesis

The proposed framework disentangles domain alignment from difficulty control through a three-step process:

  1. Difficulty Scoring: Real images are scored using a pre-trained classifier. The difficulty score ($s$) is defined as $1 - c$, where $c$ is the probability assigned to the correct class. Low scores indicate "easy" images; high scores indicate "hard" ones.
  2. Difficulty-Aware Fine-Tuning: A standard text-to-image model is augmented with a Difficulty Encoder (an MLP). This encoder processes the difficulty score and class ID. The model is fine-tuned using LoRA (Low-Rank Adaptation), enabling it to learn the visual correlates of difficulty without retraining the entire network.
  3. Controllable Generation: During synthesis, the model is prompted with specific difficulty scores (e.g., 0.5 for medium difficulty), bypassing the inherent "easy sample" bias.
The Difficulty Controlled Diffusion Model architecture, featuring a Difficulty Encoder and LoRA-based fine-tuning.

Experimental Results

The method was evaluated on diverse benchmarks: Imagenette, CUB (birds), Stanford Cars, EuroSAT (satellite), and ImageNet.

Performance and Efficiency

Across all datasets, the difficulty-controlled approach consistently outperformed baselines. On the Stanford Cars dataset, accuracy improved by over 1.2% compared to the previous state-of-the-art (Real-Fake). Crucially, the method is highly efficient; on ImageNet, it achieved peak performance with only 10% additional synthetic data, saving 63.4 GPU hours of generation time compared to previous methods.

Performance comparison across four benchmarks, showing the proposed method (green) consistently outperforms baselines at various difficulty levels.

The "Goldilocks" Zone of Difficulty

A key finding is that "extremely hard" samples are not always optimal. On Imagenette and EuroSAT, performance peaked with medium-level difficulty (scores around 0.5–0.75). Samples that are too hard may contain excessive noise or atypicality that does not generalize well, suggesting a "Goldilocks zone" for effective training data.

Discussion and Insights

  • Visualizing Hard Factors: By generating images at high difficulty levels, the model reveals what makes a category challenging. For example, "garbage trucks" are difficult when placed in crowded scenes, while "churches" are harder when surrounded by dense buildings.
  • Distribution Matching: T-SNE visualizations indicate that this method effectively fills the "boundaries" of the feature distribution, whereas older methods tend to cluster synthetic data in the "easy" center zone.
  • Limitations: The method currently relies on a pre-trained classifier for initial scoring, which may introduce its own biases. Future work could explore dynamic sampling based on the target model's real-time learning state.

Conclusion

The Difficulty Controlled Diffusion Model offers a targeted approach to data synthesis. By moving beyond simple domain alignment to specify learning difficulty, researchers can generate high-value training samples that significantly improve model performance with a fraction of the computational cost.

Summary updated

BibTeX
@inproceedings{wang2026difficulty,
  author = {Zerun Wang and Jiafeng Mao and Xueting Wang and Toshihiko Yamasaki},
  title = {{Difficulty Controlled Diffusion Model for Synthesizing Effective Training Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i12.38007},
}
Figure