WACV 2027 · Round 1 Accept

Improving Diffusion-Based Augmentation for Data-Scarce Image Classification via Mask-Guided Reference Attention and Repulsive Noise Optimization

MGR Attention + RNO

Hyun-Jic Oh*, GaYeon Koh*, Won-Ki Jeong

High Performance Visual Computing Lab, Korea University

* Equal contribution

Overview of the sampling pipeline. Repulsive Noise Optimization is applied to the initial noise before denoising; Mask-Guided Reference Attention is applied from the mask extraction timestep onward.
(a) Sampling pipeline. RNO optimizes the initial noise before denoising; at the mask extraction timestep tm a foreground mask is obtained from the decoded intermediate image, and MGR Attention runs for the remaining steps. (b) RNO pushes each target noise away from frozen anchors in the Tweedie domain. (c) MGR Attention updates only the foreground value tokens with reference features. All model weights stay frozen.

Abstract

Diffusion-based data augmentation has emerged as a powerful strategy for addressing data-scarce image classification. Recent pipelines typically adapt a pretrained text-to-image diffusion model to a limited number of class examples and subsequently sample synthetic images using diverse textual prompts. However, in extreme data-scarce regimes such as long-tailed single-sample settings, this approach suffers from a dual failure mode: the generated samples often lack discriminative foreground details crucial for classifier training, and the adapted class prior can bias the early denoising process, causing output images to exhibit similar patterns despite varying text prompts.

To overcome these limitations, we propose a sampling-side framework of two complementary components that simultaneously enhance fine details and diversity. First, Mask-Guided Reference (MGR) Attention updates only foreground value tokens with reference features via zero-shot segmentation, limiting reference influence to the target object and mitigating excessive global feature injection. Second, Repulsive Noise Optimization (RNO) encourages initial noise trajectories to diverge from dominant generative modes of the adapted model, enabling target prompts to express broader contextual variation. Extensive evaluations show consistent improvements, with the largest gains in long-tailed single-sample settings of up to 2.50 and 2.94 points on CUB-LT IF100, and further robustness across few-shot and background-shift evaluations.

Method

Both components act at sampling time on top of an already-adapted Stable Diffusion v1.5 model. Neither one touches the model weights, so they drop into an existing augmentation pipeline without retraining.

MGR Attention

Keep the reference where it belongs

Zero-shot segmentation localizes the foreground of the target image, and only the foreground value tokens are updated with reference features. Confining the reference to the object recovers the discriminative detail a classifier needs, without the global feature bleed that washes out the background.

RNO

Push the noise off the dominant mode

Before denoising starts, each initial noise is optimized with a repulsion-only objective against frozen anchors drawn from the adaptation prompt. Trajectories spread away from the adapted model's dominant modes, so varying the text prompt actually varies the output.

Three-stage sampling. Stage 1 applies RNO and denoises to the mask extraction timestep, dumping intermediate images and latents. Stage 2 extracts foreground masks with SAM3. Stage 3 resumes from the dumped latents with MGR Attention. See the repository for runnable examples on CUB-LT IF100 and Flower-LT IF100.

Results

+2.50 pts
CUB-LT IF100, long-tailed single-sample setting
+2.94 pts
CUB-LT IF100, largest reported gain
0
Model weights changed — both modules act at sampling time

Gains are consistent across settings and largest where data is scarcest. The paper additionally reports few-shot and background-shift evaluations, along with ablations isolating each component. Full tables are in the paper.

BibTeX

@inproceedings{oh2027improving,
  title     = {Improving Diffusion-Based Augmentation for Data-Scarce Image
               Classification via Mask-Guided Reference Attention and
               Repulsive Noise Optimization},
  author    = {Oh, Hyun-Jic and Koh, GaYeon and Jeong, Won-Ki},
  booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications
               of Computer Vision (WACV)},
  year      = {2027}
}