Multi-Perspective Data Augmentation for Few-shot Object Detection

Anh Khoa Nguyen Vu, Truong Quoc Truong, Vinh-Tiep Nguyen, Thanh Duc Ngo, Thanh-Toan Do, Tam V. Nguyen

Introduction

Few-shot object detection (FSOD) aims to enable models to detect novel object classes using only a handful of training examples (typically 1 to 10). While standard object detection models thrive on massive datasets, FSOD models frequently suffer from severe overfitting due to the extreme scarcity of novel data. Recent attempts to mitigate this using synthetic data from text-to-image diffusion models have faced two primary hurdles: the generation of overly generic "typical" samples that do not challenge the model's decision boundaries, and a failure to account for the complex relationship between foreground objects and their backgrounds.

This paper introduces the Multi-Perspective Data Augmentation (MPAD) framework. MPAD leverages Large Language Models (LLMs) and diffusion models to synthesize a diverse spectrum of training data, ranging from detailed typical samples to strategically "hard" edge cases, significantly improving detection performance across standard benchmarks.

The MPAD Framework

MPAD addresses data scarcity through three distinct modules that manipulate the generative process from different perspectives:

1. In-Context learning for Object Synthesis (ICOS)

Standard diffusion prompts like "a photo of a [CLASS]" often result in repetitive, generic images. ICOS utilizes an LLM (such as ChatGPT) to extract a rich set of physical attributes and fine-grained sub-categories for each novel class. By feeding these detailed descriptions into a controllable diffusion model (PowerPaint), the framework generates a wide variety of "typical" foreground objects that represent the natural diversity of the class.

2. Harmonic Prompt Aggregation Scheduler (HPAS)

To improve the robustness of the detector, the model needs "hard" samples—objects that lie near the decision boundary between classes. HPAS achieves this by dynamically mixing the prompt embeddings of a novel class with those of a visually similar base class during the diffusion process. This latent-space blending forces the model to synthesize hybrid objects that retain the high-level identity of the novel class while incorporating low-level features of the base class, effectively creating synthetic support vectors.

3. Background Proposal (BAP)

Object detection requires accurate localization, which is heavily influenced by the background. BAP intelligently selects backgrounds from the base dataset to serve as canvases for synthetic objects. It prioritizes two types of backgrounds:

  • Hard Backgrounds: Images visually similar to the novel object (identified via ViT encoder cosine similarity), which force the model to learn better discriminative features to avoid false positives.
  • Typical Cluttered Backgrounds: High-entropy images that challenge the model's ability to localize objects in complex scenes.

Experimental Results

The authors evaluated MPAD on the PASCAL VOC and MS COCO benchmarks, using the DeFRCN detector as a baseline.

PASCAL VOC Performance

MPAD demonstrated transformative gains on PASCAL VOC, achieving an average increase of 17.5% nAP50 over the baseline. The impact was most pronounced in extreme low-shot settings; in the 1-shot scenario, MPAD improved performance by a massive +31.0% nAP50.

MS COCO Performance

On the more complex MS COCO dataset, which features 80 classes and more intricate scenes, MPAD improved the baseline by an average of 11.5%. This suggests that the framework generalizes well to large-scale, diverse environments.

Comparison to Traditional Augmentation

When compared against standard image-level augmentation techniques such as Cutout, CutMix, and AutoAugment, MPAD outperformed them by approximately 9% nAP50, proving that targeted synthetic data generation is far more effective for FSOD than simple geometric or color-space perturbations.

Conclusion and Future Work

MPAD demonstrates that the quality and diversity of synthetic data are more important than sheer volume in few-shot learning. By using LLMs to expand attribute diversity and latent-space blending to create hard samples, the framework provides a robust solution to the overfitting problem in FSOD.

While the results are promising, the authors note that diffusion models can still produce hallucinations or low-quality images. Future research may focus on automated filtering of synthetic data and the use of parameter-efficient fine-tuning (e.g., LoRA) to further align the generative model with the specific domain of the few-shot task.

Summary updated

BibTeX
@inproceedings{vu2025multi,
  author = {Anh Khoa Nguyen Vu and Truong Quoc Truong and Vinh-Tiep Nguyen and Thanh Duc Ngo and Thanh-Toan Do and Tam V. Nguyen},
  title = {{Multi-Perspective Data Augmentation for Few-shot Object Detection}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=qG0WCAhZE0},
}
Figure