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?
Methods
The authors propose a two-stage Influence-Guided Diffusion Fine-tuning framework (Figure 2):
- Influence Score Estimation:
- 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.
- 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.
- 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.
- Influence-Guided Policy Optimization:
- The influence scores are converted into rewards to fine-tune the T2I diffusion model (FLUX.1-dev) using Group Relative Policy Optimization (GRPO).
- 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.
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