arXiv:2611.04242cs.CVNov 2026

Manuscript Offprint

arXiv:2611.04242

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

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

Hyun-Jic Oh1,2∗^{1,2*}

GaYeon Koh1∗^{1*}

Won-Ki Jeong1,2†^{1,2\dagger}

1^{1}Korea University, Republic of Korea

2^{2}VIENCE Inc., Republic of Korea

{hyunjic0127,wkjeong}@korea.ac.kr

Code: https://github.com/hvcl/MGRAttn-RNO

Figure

Figure 1. Rare-class generations illustrating the two failure modes. (Left) Ours corrects foreground artifacts in concept-learning (CL) (e.g., incorrect red coloration on the bird's head) and better preserves foreground details. (Right) CL generates similar outputs despite varying prompts; Ours produces diverse prompt-conditioned samples while preserving foreground details.

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.

1. Introduction

Training high-performing image classifiers under data-scarce regimes remains a fundamental challenge, particularly in long-tailed and single-sample settings where certain categories contain only a handful of labeled instances [27, 43, 48]. This constraint is especially severe in fine-grained classification, where deployable vision backbones must capture subtle, highly localized foreground attributes such as specific texture patterns or color contours to effectively distinguish visually similar sub-categories.

Synthetic data augmentation powered by pretrained text-to-image diffusion models [28, 33] has emerged as a promising solution to alleviate this scarcity by generat-

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

ing additional training samples with diverse synthetic variants [1, 13, 29]. For these synthetic samples to benefit downstream classifier training, they must simultaneously satisfy two criteria: preserving class-discriminative fine-details while maintaining broad contextual diversity.

Diffusion-based augmentation methods typically adapt a text-to-image diffusion model via concept-learning techniques such as Textual Inversion [8] or LoRA [16], and sample synthetic images using diverse textual prompts. While effective to an extent, we observe that in extreme data-scarce regimes such as long-tailed single-sample cases, this approach suffers from a distinct dual failure mode (see Fig. 1). (i) Fine-Detail Degradation: the adapted model often fails to reproduce precise, discriminative foreground details, as adapting from only a few examples can yield weak fine-grained priors. (ii) Diversity Collapse: the adapted class prior can dominate the early denoising process, causing generated images to collapse into similar geometric structures despite varying text prompt suffixes.

To overcome fine-detail degradation, we propose Mask-Guided Reference (MGR) Attention, a sampling-time localized attention strategy. Existing attention-manipulation methods [3, 17] are designed for image editing such as style transfer or spatial layout control, where replacing self-attention key-value tokens with those from a reference is appropriate. However, directly applying such techniques to data augmentation is not straightforward: global key-value replacement propagates reference features across the entire synthesized image, suppressing contextual variation driven by the text prompt. Instead, MGR Attention uses a zero-shot segmenter [4, 19] to obtain foreground boundaries, updating only foreground value tokens with reference features.

To address diversity collapse, we introduce Repulsive Noise Optimization (RNO), a latent optimization method applied before the denoising process begins. While standard noise optimization techniques like CNO [18] enforce an attraction-repulsion balance to stabilize generic generation, we observed that retaining an attraction term in adapted-model augmentation forces the latent trajectories right back into the dominant collapsed class prior. RNO establishes fixed anchors from the adaptation prompt, representing the dominant generative modes of the adapted model, and optimizes initial latent trajectories via a repulsion-only objective, encouraging diverse prompt-conditioned generation across broader layout spaces.

Our framework operates entirely at sampling time, making it compatible with existing concept-learning pipelines on UNet-based latent diffusion models as a plug-and-play component. This is particularly effective in single-sample regimes, where concept-learning approaches cannot exploit reference information beyond what was captured during adaptation, whereas our modules leverage a real reference image at every generation step. Extensive evaluations demonstrate consistent improvements in classification accuracy across long-tailed single-sample, few-shot, and Waterbirds background-shift settings, with the largest gains in the most data-scarce regimes. Our main contributions are summarized as follows:

• We introduce MGR Attention, a sampling-time localized attention strategy that updates target foreground value tokens with reference features via zero-shot segmentation, limiting reference influence to the target object region.

• We propose RNO, a latent optimization method that refines initial noise trajectories via a repulsion-only objective against fixed anchors from the adaptation prompt, encouraging diverse prompt-conditioned generation.

• We demonstrate consistent improvements with the largest gains in long-tailed single-sample settings, and further robustness across few-shot and background-shift settings.

References (47)