Knowledge Graph Transfer Network for Few-Shot Recognition

Riquan Chen, Tianshui Chen, Xiaolu Hui, Hefeng Wu, Guanbin Li, Liang Lin · DOI

Abstract

Few-shot learning aims to learn novel categories from very few samples given some base categories with sufficient training samples. The main challenge of this task is that novel categories are prone to being dominated by the specificity of the few training samples—such as color, texture, shape, or background context—which are not common for the corresponding categories. We find that transferring information from correlated base categories can help learn novel concepts and avoid this domination by specificity. By incorporating semantic correlations in the form of a structured knowledge graph, we propose the Knowledge Graph Transfer Network (KGTN). KGTN adaptively propagates classifier information from base categories to novel ones through a learned propagation mechanism. Extensive experiments on ImageNet and a newly constructed ImageNet-6K dataset demonstrate that KGTN significantly outperforms current leading competitors.

The Challenge of Specificity

In few-shot learning, the core difficulty lies in "specificity." When a model only sees one or two examples of a new category, it often overfits to irrelevant details like the background or specific lighting of those images rather than capturing the general essence of the class. For instance, if the only training image of a "Kerry blue terrier" has a specific park background, a standard model might incorrectly learn that the park is part of the definition of the dog.

Figure 1: Comparison of few-shot recognition. Baseline models (SGM) often fail when test images differ from the specific context of the training samples, while KGTN generalizes successfully.

Humans avoid this by using prior knowledge; we know a new dog breed is related to other dogs we already recognize. KGTN mimics this by leveraging semantic correlations to regularize the learning process and focus on features that actually matter.

Knowledge Graph Transfer Network (KGTN)

The KGTN framework consists of three integrated modules designed to facilitate information transfer across categories.

Figure 6: Overview of the KGTN architecture, illustrating the Feature Extraction, Knowledge Graph Transfer, and Prediction modules.

1. Feature Extraction

A standard CNN (e.g., ResNet-50) is used to map input images into a high-dimensional feature space, denoted as vector x. This provides the raw visual descriptors used for classification.

2. Knowledge Graph Transfer Module

This module is the core innovation. It represents categories as nodes in a graph, where edges denote semantic or hierarchical relationships derived from sources like WordNet or GloVe embeddings.

  • Initialization: Each node is initialized with the classifier weights (w<sup>init</sup>) of its corresponding category.
  • Propagation: A Gated Graph Neural Network (GGNN) is employed to pass messages between nodes. This allows the well-defined classifier weights of "base" categories (those with plenty of data) to flow toward and refine the weights of "novel" categories, resulting in optimized weights (w<sup>*</sup>).

3. Prediction

Instead of using a standard linear classifier, the refined node states from the graph are treated as "prototypes." The final classification is performed by calculating the similarity (e.g., Cosine Similarity or Pearson Correlation) between the extracted image features and these prototypes to produce a label distribution.

Experimental Evaluation

The authors evaluated KGTN on several benchmarks to test its accuracy and scalability:

  • ImageNet-FS: A standard benchmark with 1,000 categories. KGTN achieved a top-5 accuracy of 62.1% in the 1-shot setting, a 2.0% improvement over previous state-of-the-art methods.
  • ImageNet-6K: To test large-scale performance, the authors introduced this dataset with 6,000 categories (1,000 base, 5,000 novel). KGTN maintained its lead, proving that structured knowledge transfer scales effectively to massive taxonomies.

Key Insights

  • Correlation as Regularization: By learning from the relationships between concepts, the model doesn't just rely on the few provided images. If it knows what a "terrier" is generally, it only needs minimal information to identify a specific subtype.
  • Initialization Strategy: Interestingly, the authors found that randomly initializing base category weights in the graph often led to better generalization than using pre-trained weights, as it forced the GGNN to learn the transfer mechanism more robustly from scratch.
  • Semantic vs. Hierarchical Graphs: While both WordNet (hierarchy) and GloVe (semantic similarity) improved performance, semantic similarity was slightly more effective, suggesting that conceptual "closeness" is a powerful signal for weight transfer.

Conclusion

The Knowledge Graph Transfer Network (KGTN) addresses the fundamental "specificity" problem in few-shot learning by incorporating external structured knowledge. By allowing information to flow from well-known categories to rare ones, KGTN builds more robust classifiers that generalize beyond the limited context of a few training samples.

Summary updated

BibTeX
@inproceedings{chen2020knowledge,
  author = {Riquan Chen and Tianshui Chen and Xiaolu Hui and Hefeng Wu and Guanbin Li and Liang Lin},
  title = {{Knowledge Graph Transfer Network for Few-Shot Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=ceBDP7TFf1W},
}
Figure