Training Visual Generative Model Using a Data Attribution Method for Object Detection Tasks

Gyuseong Lee, Soohyun Kim, Jihyun Kim, Hoseok DoCDEL @ ECCV 2026

TL;DR

This paper introduces an influence-guided fine-tuning framework that optimizes text-to-image (T2I) diffusion models to generate synthetic training data specifically tailored for object detection tasks. By using gradient-based data attribution as a reward signal in a reinforcement learning pipeline, the framework forces the generator to produce images that directly address the downstream detector's weaknesses, yielding significant performance gains on rare and challenging object categories.

What Problem Does This Paper Address?

While text-to-image diffusion models can generate incredibly realistic images, naively using this synthetic data to train visual perception models (like object detectors) often backfires, sometimes even degrading performance. This happens because visually stunning images do not always translate to useful learning signals; they may contain inherent biases, lack complex spatial contexts, or simply replicate patterns the model has already mastered.

Traditional solutions rely on post-hoc filtering using image quality metrics like Fréchet Inception Distance (FID). However, as shown in Figure 1, this approach is suboptimal: it discards potentially useful samples and fails to adapt the generative model to the specific structural and contextual needs of the target task. The authors tackle a fundamental question: How can we explicitly guide a generative model to produce synthetic data that maximally helps a downstream model learn?

Fig. 1: Motivation for our influence-guided data generation. (a) A baseline de- tection model is trained only on real dataset. (b) Naive data augmentation via filtering relies on image quality metrics, simply comparing the distributional similarity with real data. This approach is suboptimal as it may incorrectly discard task-beneficial samples. In contrast, (c) our proposed framework fine-tunes the generator using data attribution scores as a reward signal, explicitly steering it to target and generate task-beneficial samples and achieving substantial performance gains.

Methods

The authors propose a two-stage Influence-Guided Diffusion Fine-tuning framework (Figure 2):

  1. Influence Score Estimation:
  2. Difficulty-Stratified Validation Set ($D_{str}$): Instead of randomly sampling real data, they use a pre-trained detector to score and partition real images into easy, medium, and hard categories based on detection confidence, object congestion, and size bias. This ensures the validation set emphasizes the detector's current weaknesses.
  3. Surrogate Loss ($\mathcal{L}_{surr}$): Because synthetic images lack ground-truth bounding boxes, standard detection losses cannot be computed. The authors design a novel surrogate loss that uses objectness and class logits across all anchors, bypassing the need for manual annotations.
  4. Gradient Alignment: The influence score of a generated image is calculated via the cosine similarity between its gradient (derived from the surrogate loss) and the cached average gradient of the stratified validation set.
  5. Influence-Guided Policy Optimization:
  6. The influence scores are converted into rewards to fine-tune the T2I diffusion model (FLUX.1-dev) using Group Relative Policy Optimization (GRPO).
  7. To stabilize training against high-variance data attribution scores, they introduce a Rank-based Advantage Normalization technique alongside an Adaptive Temperature Scheduling mechanism to balance exploration and exploitation during the reinforcement learning process.
Fig. 2: Overview of our proposed influence-guided fine-tuning framework. Our method consists of two main stages. (1) Influence Score Estimation: A batch of generated images is fed into a perception model. Their influence scores are computed by measuring gradient alignment with a surrogate loss, Lsurr, against a difficulty-stratified validation set, where real data samples are divided into easy, medium (med), and hard categories. (2) Influence-guided Policy Optimization: These influence scores are transformed into rewards using rank-based normalization. The rewards then guide the fine-tuning of the T2I diffusion model, steering it to produce more high-influence data in next iteration.

Datasets

The framework was evaluated on subsets of two standard computer vision benchmarks:

  • MS-COCO: Focused on 9 rare/underrepresented categories (Scissors, Parking Meter, Sheep, Bear, Hot Dog, Donut, Toaster, Hair Dryer, Toothbrush), each containing roughly 1.5K real instances.
  • KITTI: Focused on 3 key autonomous driving categories with limited instances (Pedestrian, Cyclist, Van).

Key Insights and Ideas

  • Task Utility $\neq$ Visual Quality: Visually flawless images can be redundant if the detector already understands the concept. Conversely, complex, slightly imperfect images (e.g., featuring occlusions or unusual lighting) often provide a stronger learning signal.
  • Targeting the "Hard" Quantiles: By stratifying the validation set to include a deliberate mix of difficult examples, the generator is discouraged from overfitting to easy, well-learned patterns and is instead steered toward generating edge cases.
  • Label-Free Gradient Tracing: The introduction of $\mathcal{L}_{surr}$ elegantly solves the "chicken-and-egg" problem of generating bounding boxes for synthetic data before evaluating its utility, allowing direct gradient-based data attribution on unannotated generations.

Key Results

The downstream object detectors (YOLO11 variants) were trained on a mixture of real data and the generated synthetic data.

  • MS-COCO Improvements: The proposed method consistently outperformed standard LoRA fine-tuning and Flow-GRPO baselines across all model sizes. For YOLO11x, the baseline mAP of 44.1% was boosted to 48.0% (+3.9%). Notable per-class improvements included a massive +8.8 mAP boost for Hair Dryer and +3.2 mAP for Hot Dog.
  • KITTI Results: The gains on KITTI were much more modest (e.g., 66.9% to 67.1% mAP on YOLO11m). However, unlike competing generative baselines which caused performance to degrade due to distribution shifts, the proposed method successfully avoided generating harmful samples, maintaining or slightly improving baseline performance.

Limitations and Future Work

The authors note that their framework showed marginal improvements on the KITTI dataset. They attribute this to two factors: the already high quality of the baseline real driving data, and the persistent domain gap between standard T2I models and specific sensor/camera characteristics typical of autonomous driving datasets.

Future work will focus on developing more sophisticated influence functions capable of identifying beneficial samples even in high-data, high-quality scenarios, as well as bridging specialized domain gaps.

Summary updated

BibTeX
@inproceedings{lee2026training,
  author = {Gyuseong Lee and Soohyun Kim and Jihyun Kim and Hoseok Do},
  title = {{Training Visual Generative Model Using a Data Attribution Method for Object Detection Tasks}},
  booktitle = {CDEL @ ECCV},
  year = {2026},
  url = {https://openreview.net/forum?id=MdptVM7Ncp},
}
Figure