NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DCGAN Feature-Enhancement-Based YOLOv8n Model in Small-Sample Target Detection

Peng Zheng, Yun Cheng, Wei Zhu, Bo Liu, Chenhao Ye, Shijie Wang, Shuhong Liu, Jinyin BaiComput 2025

TL;DR

This paper introduces DCGAN-YOLOv8n, a novel framework that significantly boosts small-sample target detection by using a generative adversarial network (DCGAN) to enhance features and a refined multi-scale feature pyramid. This approach tackles the critical challenge of recognizing objects with very limited training data, achieving state-of-the-art results on the NWPU VHR-10 dataset.

What Problem Does This Paper Address?

Small-sample target detection is a crucial but challenging problem in computer vision. It involves accurately identifying and locating objects belonging to new classes when only a handful of labeled examples are available (typically from a few to dozens per class). Traditional deep learning models struggle in these low-data regimes due to several bottlenecks:

  • Limited Feature Representation: Models often fail to capture the nuanced details of objects when training data is scarce, leading to poor discriminability.
  • Data Distribution Bias: The small number of real samples may not adequately represent the variability and complexity of the target's appearance and the background.
  • Insufficient Cross-Scale Adaptation: Existing feature pyramid networks can struggle to effectively detect objects of vastly different sizes within the same image.

These issues lead to models that are less robust, prone to misclassification, and perform poorly in real-world scenarios where data is often limited.

Methods

The DCGAN-YOLOv8n model builds upon the YOLOv8n architecture and introduces several key innovations:

  • Adversarial Feature Enhancement Module (AFEM): This module is the core of the proposed approach. It leverages a conditional DCGAN to reconstruct discriminative multi-scale features. AFEM uses a dual-channel approach to process low-level (edges, texture) and high-level (semantic structure) features separately. It aims to mitigate mode collapse in generative models and enhance feature expression.
  • Multi-Scale Feature Fusion: The model incorporates a deformable multi-scale feature pyramid. This pyramid dynamically fuses the high-resolution features generated by DCGAN with the hierarchical semantic representations from YOLOv8n. An attention-weighted fusion mechanism, specifically the SE module, is used to adaptively assign weights and focus on key information.
  • Triple Marginal Constraint (TMC): To further improve feature discriminability, a TMC framework is introduced. This framework comprises three loss components:
  • Intra-Class Compactness Loss: Encourages features of the same class to cluster tightly around their centroid, reducing variance within a class.
  • Inter-Class Separation Loss: Enforces a minimum margin between class centroids to maximize decision boundary clarity and prevent class confusion.
  • Adversarial Distribution Alignment Loss: Uses DCGAN-generated features to align the synthetic and real feature distributions, bridging the gap caused by limited real data.

These components are jointly optimized to create a geometrically structured and distributionally consistent embedding domain.

Datasets

The primary dataset used for training and evaluation in this paper is:

  • NWPU VHR-10: A remote sensing target detection benchmark dataset containing 800 high-resolution images with 10 object categories. It's known for its imbalanced class distribution and significant variations in object sizes, making it a challenging benchmark for small-sample detection.

The authors also mention using PASCAL VOC 2012 and MS COCO 2017 for transferability experiments.

Key Insights and Ideas

  • Generative Augmentation is Key for Small Samples: The paper strongly demonstrates that using DCGAN to generate synthetic data is crucial for overcoming the limitations of scarce real-world data in object detection. The generated features help fill data gaps and alleviate the long-tail distribution problem.
  • Feature-Level Adversarial Training Outperforms Pixel-Level: The authors highlight that their feature-level adversarial training approach is more effective than pixel-level optimization schemes, leading to better accuracy and localization.
  • Multi-Scale Fusion with Attention is Powerful: Dynamically fusing features from different scales, guided by an attention mechanism, significantly enriches feature representations and improves the model's ability to handle objects of varying sizes.
  • Structured Feature Space is Essential: The triple marginal constraint framework is vital for creating a well-structured feature space that is both compact within classes and well-separated between classes, leading to improved discriminative properties.
  • Balancing Synthetic and Real Data is Critical: While synthetic data is beneficial, training exclusively on it leads to performance degradation due to domain shift and distribution discrepancies. A balanced mix of real and synthetic data (around 80% synthetic) proves optimal.

Key Results

The DCGAN-YOLOv8n model achieved state-of-the-art performance on the NWPU VHR-10 dataset:

  • mAP50: 90.46%
  • mAP50-95: 57.06%

These results represent significant improvements of 4.52% and 4.08% over the baseline YOLOv8n, respectively. The model also demonstrated superior performance compared to other methods like FFCA-YOLO and TIDE in terms of precision, recall, and F1-score. The DCGAN enhancement reduced the background false positive rate by 10.6% and the false negative rate by 5.7% while maintaining real-time performance.

Limitations and Future Work

  • Data Distribution Bias in DCGAN: While DCGAN generates high-fidelity samples, its learned distribution is a compressed approximation of the real data distribution. This approximation may lack the full spectrum of high-frequency details, rare edge cases, and complex noise patterns found in real-world imagery, potentially leading to a covariate shift when evaluated on real test data.
  • Domain Adaptation Challenges: The paper notes that while the model shows good cross-domain transferability, further research is needed to address domain drift problems in cross-domain scenarios.
  • Computational Complexity: Adversarial training can increase computational complexity, although the authors have focused on lightweight designs.
  • Future Work: The authors suggest exploring lightweight deployment, dynamic scene adaptation optimization, video target detection under spatio-temporal consistency constraints, and dynamic feature generation paradigms based on diffusion models.

Summary updated

BibTeX
@article{zheng2025dcgan,
  author = {Peng Zheng and Yun Cheng and Wei Zhu and Bo Liu and Chenhao Ye and Shijie Wang and Shuhong Liu and Jinyin Bai},
  title = {{DCGAN Feature-Enhancement-Based YOLOv8n Model in Small-Sample Target Detection}},
  journal = {Comput.},
  year = {2025},
  doi = {10.3390/computers14090389},
}
Figure