ReMarNet: Conjoint Relation and Margin Learning for Small-Sample Image Classification

Xiaoxu Li, Liyun Yu, Xiaochen Yang, Zhanyu Ma, Jing-Hao Xue, Jie Cao, Jun Guo

TL;DR

ReMarNet is a novel neural network architecture designed to tackle the "small-sample" problem in image classification, where labeled data is scarce. By combining two distinct classification strategies—one based on similarity to class prototypes and another based on traditional decision boundaries—the model learns highly discriminative features that resist overfitting and outperform existing state-of-the-art methods.

What Problem Does This Paper Address?

Deep learning models are notoriously data-hungry. When trained on small datasets, deep networks tend to overfit, memorizing the noise in the training data rather than learning generalizable patterns. To prevent this, researchers try to learn "discriminative features"—essentially ensuring that images of the same class are clustered tightly together (intra-class compactness) while different classes are pushed far apart (inter-class separability).

Existing solutions often rely on specific loss functions (like Center Loss or Triplet Loss) that make rigid assumptions about how data is distributed. The authors of this paper argue that these single-strategy approaches are limited. They propose that a more robust model should mimic the human recognition mechanism, which often identifies objects by both comparing them to known "prototypes" and by distinguishing them across conceptual boundaries.

Methods

The authors introduce the Relation-and-Margin learning Network (ReMarNet). The architecture consists of a shared feature embedding module (using a backbone like VGG16) followed by a two-branch classification module:

  1. The Relation Module (RM) Branch: This branch focuses on "prototype similarity." It randomly selects one sample from each class to act as a "prototype." The network then learns to calculate a relation score (similarity) between a new input and these prototypes. It is trained using Mean Square Error (MSE) to minimize the distance between a sample and its corresponding class prototype.
  2. The Fully Connected (FC) Branch: This is a standard classification branch that uses a cross-entropy loss function. It focuses on establishing "decision boundaries" (margins) between classes.

The network is trained end-to-end by minimizing the sum of the losses from both branches. During the prediction phase, the final classification is determined by combining the outputs of both branches, leveraging the strengths of both similarity-based and boundary-based reasoning.

Datasets

The researchers evaluated ReMarNet on four diverse image datasets to test its versatility:

  • LabelMe (LM): 8 classes of natural scenes (e.g., mountains, streets).
  • UIUC-Sports: 8 classes of sports activities (e.g., rowing, snowboarding).
  • 15Scenes: A comprehensive scene classification dataset with 15 categories.
  • BMW-10: An "ultra-small" fine-grained dataset containing 10 types of BMW vehicles.

To simulate "small-sample" conditions, the authors created reduced versions of these datasets (e.g., LM-80, where the number of training samples per class is significantly slashed).

Key Insights and Ideas

  • Conjoint Learning: The "aha moment" is that prototype-based learning and boundary-based learning are complementary. Training them together forces the feature extractor to produce embeddings that satisfy both constraints, leading to much "cleaner" feature clusters than either method could achieve alone.
  • Human-Inspired Logic: By mimicking the dual-pathway recognition of humans, the model achieves better generalization. It doesn't just learn where the line between classes is; it learns what a class fundamentally looks like.
  • Backbone Agnostic: While the primary experiments used VGG16, the authors showed that ReMarNet provides a performance boost regardless of whether the underlying "engine" is AlexNet or DenseNet-121.

Key Results

  • Superior Accuracy: ReMarNet consistently outperformed the baseline (standard cross-entropy) and several specialized loss-based methods (like Center Loss and Large Margin Cosine Loss) across almost all datasets. For example, on the UIUC-Sports dataset, ReMarNet achieved 95.81% accuracy compared to the baseline's 94.76%.
  • Resilience to Data Scarcity: As the training set size decreased, the performance gap between ReMarNet and other methods actually widened. On the most stripped-down version of the LabelMe dataset, ReMarNet maintained a significant lead while other methods' accuracies plummeted.
  • Visual Evidence: t-SNE visualizations (plots that map high-dimensional features into 2D space) clearly show that ReMarNet produces much tighter, more distinct clusters for each class compared to traditional methods.

Limitations and Future Work

  • Prototype Selection: Currently, the "prototypes" are selected randomly at the start of training. The authors acknowledge that developing a method to learn or select more "representative" prototypes could further improve performance.
  • Computational Overhead: ReMarNet has slightly more parameters than a standard single-branch network (e.g., 16.1M vs 15.5M for the VGG16 version). While the boost in accuracy is significant, it comes at a small cost in model size.
  • Broader Applications: While this paper focused on images, the authors suggest the framework is generic enough to be applied to other data types, such as text classification, which remains a promising direction for future research.

Summary updated

BibTeX
@article{li2021remarnet,
  author = {Xiaoxu Li and Liyun Yu and Xiaochen Yang and Zhanyu Ma and Jing-Hao Xue and Jie Cao and Jun Guo},
  title = {{ReMarNet: Conjoint Relation and Margin Learning for Small-Sample Image Classification}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2021},
  doi = {10.1109/tcsvt.2020.3005807},
}
Figure