Imagine by Reasoning: A Reasoning-Based Implicit Semantic Data Augmentation for Long-Tailed Classification

Xiaohua Chen, Yucan Zhou, Dayan Wu, Wanqian Zhang, Yu Zhou 0015, Bo Li, Weiping Wang

Introduction

In real-world scenarios, visual data often follows a long-tailed distribution where a few "head" categories possess abundant samples, while numerous "tail" categories suffer from extreme data scarcity. Deep learning models trained on such imbalanced datasets typically struggle to generalize to tail classes due to a lack of intra-class diversity. While standard data augmentations like flipping or cropping provide some relief, they fail to capture complex semantic transformations—such as changes in pose, viewing angle, or background—that are crucial for robust recognition.

The Concept of Semantic "Imagination"

The proposed Reasoning-Based Implicit Semantic Data Augmentation (RISDA) framework addresses this by enabling models to "imagine" rare objects in novel contexts. The core intuition is that semantic variations are often shared across related categories. For instance, if a model understands how a common bird (e.g., a Sparrow) looks from different angles or in different poses, it can reason about how a rare bird (e.g., a Kingfisher) might appear in similar conditions, even if those specific variations are missing from the training set.

Conceptual overview of RISDA: A tail class (Kingfisher) leverages prior knowledge from similar head classes (Sparrow, Parrot) to "imagine" variations in view angle, pose, and background.

Methodology

RISDA operates through a two-stage pipeline designed to transfer semantic knowledge from head to tail classes effectively and efficiently.

Stage I: Knowledge Graph Construction

The process begins by training an initial classifier on the imbalanced dataset. From this, a directed knowledge graph is constructed based on a confusion matrix. This graph identifies "similar" categories by observing which classes the model frequently confuses. This ensures that semantic transformations are only "borrowed" from relevant neighbors—transferring pose variations from a Sparrow to a Kingfisher is meaningful, whereas transferring them from a car would not be.

Stage II: Reasoning-Based Transformation and Implicit Augmentation

In the second stage, the model performs online augmentation for tail classes:

  1. Covariance Transfer: The covariance matrix of a class represents its typical feature variations. RISDA allows a tail class to refine its limited covariance by aggregating the matrices of its similar neighbors in the knowledge graph.
  2. Feature Complementation: Tail samples missing specific features (e.g., a certain wing position) "borrow" prototypes from similar classes to fill these gaps.
  3. Implicit Augmentation: To avoid the high computational cost of generating synthetic images, RISDA employs Implicit Semantic Data Augmentation (ISDA). It optimizes an upper bound of the cross-entropy loss that accounts for infinite variations within a Gaussian distribution, providing the benefits of massive augmentation with negligible overhead.
The RISDA architecture: Stage I builds a knowledge graph from class confusion; Stage II uses a reasoning module to refine tail-class distributions and perform implicit data augmentation.

Experimental Results

RISDA was evaluated on three major long-tailed benchmarks: CIFAR-100-LT, ImageNet-LT, and iNaturalist 2018. The framework consistently achieved state-of-the-art (SOTA) performance. Notably, on CIFAR-100-LT with an imbalance factor of 200, RISDA reduced the error rate to 55.24%, significantly outperforming previous methods like MetaSAug (60.06%). Qualitative analysis confirmed that the "imagined" features successfully introduced variations in background and posture that were entirely absent from the original tail-class samples.

Conclusion and Future Work

RISDA demonstrates that reasoning by analogy is a powerful tool for overcoming data scarcity in long-tailed classification. By leveraging shared semantic transformations, it enriches tail classes without the need for explicit image generation. Future research will focus on reducing the GPU memory requirements for feature complementation on large-scale datasets and refining the reasoning module to ensure even more physically plausible augmentations.

Summary updated

BibTeX
@inproceedings{chen2022imagine,
  author = {Xiaohua Chen and Yucan Zhou and Dayan Wu and Wanqian Zhang and Yu Zhou and Bo Li and Weiping Wang},
  title = {{Imagine by Reasoning: A Reasoning-Based Implicit Semantic Data Augmentation for Long-Tailed Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i1.19912},
}
Figure