computer vision

Steering Diffusion Models via Class-Contrastive Influence for Few-Shot Medical Classification

arXiv:2607.12464

summary

The paper introduces Class-Contrastive Influence (C2I) to evaluate how useful diffusion‑generated images are for few‑shot medical classification, and uses reinforcement learning to steer diffusion models toward high‑C2I samples, improving accuracy and robustness.

Abstract

When labeled data are scarce, off-the-shelf diffusion models can augment training sets for few-shot medical image classification, but not all generated samples are equally useful for the downstream task. Existing approaches largely improve synthetic data by increasing realism, diversity, or domain adaptation, while overlooking a more fundamental question: how should sample usefulness for classification be measured and optimized? We address this with Class-Contrastive Influence (C2I), a criterion that quantifies a sample's usefulness through its gradient-based influence on the classifier. We find that effective samples exhibit a strong C2I gap: their loss gradients align with validation gradients from the same class and oppose those from other classes. Our analysis further suggests that such high-C2I samples are hard, boundary-proximal examples that help refine the decision boundary and improve robustness. Building on this insight, we fine-tune diffusion models with reinforcement learning using a C2I-based reward to steer generation toward class-informative samples. Across several few-shot medical imaging benchmarks, C2I-guided generation improves downstream accuracy and robustness over diffusion-based augmentation baselines, showing that synthetic augmentation is most effective when guided by task usefulness rather than image quality alone.

Topics & keywords

#few-shot learning#diffusion models#medical image classification#data augmentation#reinforcement learningclass-contrastive influencegradient-based influencesynthetic augmentationboundary-proximal samplesRL reward
Steering Diffusion Models via Class-Contrastive Influence for Few-Shot Medical Classification · wovepaper