On the Exploration of Incremental Learning for Fine-grained Image Retrieval

Wei Chen, Yu Liu, Weiping Wang, Tinne Tuytelaars, Erwin M. Bakker, Michael S. Lew

Introduction

Fine-grained image retrieval (FGIR) involves identifying specific sub-categories within a broad class, such as distinguishing between various bird species or dog breeds. A significant challenge in real-world applications is the need to update models with new categories without retraining from scratch on the entire cumulative dataset—a process known as joint training. While computationally efficient, simply fine-tuning a model on new data typically leads to "catastrophic forgetting," where the model loses its ability to retrieve images from previously learned classes.

Unlike standard image classification, which focuses on decision boundaries, retrieval depends on the precise distances between images in a high-dimensional feature space. This makes FGIR particularly sensitive to the "feature drift" that occurs during incremental learning.

Methodology

The proposed framework addresses this by utilizing a dual-network architecture. A Frozen Network, representing the model's state after initial training on $n$ classes, serves as a reference. An Adaptive Network is then trained on $m$ additional new classes.

Overview of the incremental learning framework for FGIR, showing the retrieval comparison (a) and the dual-network architecture with associated losses (b).

To maintain performance on original classes while adapting to new ones, the authors employ three distinct loss functions:

  1. Semantic Preserving Loss: Combines Cross-Entropy with Triplet Loss to ensure that similar images remain clustered in the feature space. Triplet loss is essential for FGIR to maintain the relative distances between similar and dissimilar items.
  2. Knowledge Distillation (KD) Loss: Encourages the Adaptive Network to produce "soft label" logits similar to the Frozen Network for new data samples, preserving the old model's classification logic.
  3. Maximum Mean Discrepancy (MMD) Loss: This is the core innovation. MMD loss minimizes the distance between the feature distributions of the Frozen and Adaptive networks. By aligning these distributions, the model ensures that the global feature space remains stable even when the original training images are no longer available.
Visualization of the MMD mapping process, illustrating how feature distributions are aligned in the Reproducing Kernel Hilbert Space (RKHS) to minimize discrepancy.

Experiments and Results

The method was evaluated on the CUB-Birds (200 species) and Stanford-Dogs (120 breeds) datasets. In a single-step incremental task on CUB-Birds (adding 100 classes to an initial 100), the proposed method achieved a 74.41% Recall@1 on the original classes, significantly outperforming standard fine-tuning (53.90%) and other incremental methods like LwF.

In multi-step scenarios, where classes are added in smaller batches, the model demonstrated superior stability. After four incremental steps, it maintained 66.40% Recall@1 on the first batch, whereas competing methods like L2 loss dropped below 46%. Furthermore, the incremental approach was roughly 50% faster than joint training while achieving comparable performance.

Conclusion

By focusing on feature space distribution rather than just decision boundaries, this incremental learning framework effectively mitigates catastrophic forgetting in fine-grained retrieval tasks. The integration of MMD loss ensures that the model's internal representation remains consistent even as new knowledge is integrated, offering a scalable and efficient solution for evolving image databases.

Summary updated

BibTeX
@inproceedings{chen2020exploration,
  author = {Wei Chen and Yu Liu and Weiping Wang and Tinne Tuytelaars and Erwin M. Bakker and Michael S. Lew},
  title = {{On the Exploration of Incremental Learning for Fine-grained Image Retrieval}},
  booktitle = {BMVC},
  year = {2020},
}
Figure