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

Selecting Auxiliary Data Using Knowledge Graphs for Image Classification with Limited Labels

Elaheh Raisi, Stephen H. BachWorkshops @ CVPR 2020

Abstract

Training deep neural networks for fine-grained image classification often fails when labeled data is scarce. KGAuxLearn addresses this by using a knowledge graph (ConceptNet) to automatically identify and retrieve semantically related images from massive datasets like ImageNet 22K to serve as an auxiliary training task. This multi-task learning approach acts as a powerful regularizer, significantly improving accuracy on specialized datasets with minimal computational overhead.

Introduction

Deep learning thrives on massive datasets, but in many real-world applications, labeling is prohibitively expensive. This is particularly evident in fine-grained visual categorization (FGVC), which requires distinguishing between very similar sub-categories, such as specific species of birds or flowers. When only a few dozen images per class are available, standard fine-tuning often leads to overfitting as the model lacks sufficient signal to learn generalizable features.

While auxiliary tasks—training on a second, related dataset—can mitigate this, the primary challenge lies in data selection. Identifying which external images will benefit a specific model typically requires expensive image-by-image similarity calculations or complex meta-learning loops that are difficult to scale.

Methods

The KGAuxLearn framework leverages high-level semantic knowledge to guide auxiliary data selection. The process consists of four main stages:

  1. Knowledge Graph Mapping: ConceptNet, a semantic network of 8 million concepts, is linked to the categories in ImageNet 22K.
  2. Semantic Querying: For a target task (e.g., classifying "roses"), the system queries ConceptNet for related terms such as "petal," "flower," or "blossom."
  3. Source Task Construction: Images corresponding to these retrieved concepts are collected from ImageNet 22K to create a massive auxiliary "source" dataset.
  4. Multi-Task Architecture: A shared convolutional neural network (CNN) backbone branches into two separate fully connected heads: one for the target task and one for the auxiliary source task.
The KGAuxLearn architecture uses a knowledge graph to select source data for a multi-task learning framework.

The model is trained using an alternating procedure, optimizing for the auxiliary task and the target task in succession. This forces the shared backbone to learn features useful for both, preventing the model from simply memorizing the small target dataset.

Key Insights

  • Semantics as a Proxy for Visual Similarity: Linguistic relationships in a knowledge graph serve as an efficient, low-cost proxy for visual relevance. Querying a graph is nearly instantaneous compared to computing visual descriptors for millions of images.
  • MTL as Regularization: Multi-task learning (MTL) provides a "hint" to the model regarding which features are important. By learning to recognize general concepts like "petals," the model becomes more adept at identifying specific target classes like "roses."
  • Efficiency in Imbalance: The auxiliary task is often orders of magnitude larger than the target task. Balancing these signals requires using a much larger batch size for the source task (e.g., 128) compared to the target task (e.g., 8) during training.

Experimental Results

KGAuxLearn was evaluated on two primary target datasets with limited labels: Oxford Flowers 102 (10 images per class) and CUB-200-2011. The framework consistently outperformed standard fine-tuning and other state-of-the-art selection methods.

  • Oxford Flowers 102: Achieved 96.49% mean accuracy, surpassing the Selective Joint method (95.8%) and standard fine-tuning (94.38%).
  • CUB-200-2011: Achieved 83.00% mean accuracy, beating MetaFGNet (80.3%) and fine-tuning (80.37%).
Error rate comparison across different numbers of images per class, showing KGAuxLearn's robustness in data-scarce scenarios.

As shown in the figure above, KGAuxLearn maintains a significant lead over baselines even in extreme few-shot scenarios (as few as 2 images per class), proving its utility when data is highly scarce.

Conclusion

KGAuxLearn demonstrates that semantic knowledge graphs can effectively automate the selection of auxiliary data for fine-grained classification. While some semantic noise exists (e.g., retrieving "rose bowl" for "rose"), the model remains robust. Future work may involve finer-grained image selection within categories and expanding the framework to other domains where knowledge graphs and large unlabeled data pools are available.

Summary updated

BibTeX
@inproceedings{raisi2020selecting,
  author = {Elaheh Raisi and Stephen H. Bach},
  title = {{Selecting Auxiliary Data Using Knowledge Graphs for Image Classification with Limited Labels}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00473},
}
Figure