ECKPN: Explicit Class Knowledge Propagation Network for Transductive Few-Shot Learning

Chaofan Chen, Xiaoshan Yang, Changsheng Xu, Xuhui Huang, Zhe Ma

Abstract

Few-shot learning (FSL) remains a significant challenge in computer vision, as models must generalize from a very limited number of labeled samples. While transductive graph-based methods improve performance by considering relationships between support and query samples, they primarily focus on instance-level interactions. This paper presents the Explicit Class Knowledge Propagation Network (ECKPN), a novel framework that explicitly models class-level knowledge. By combining multi-head visual relations with semantic word embeddings and refined class prototypes, ECKPN establishes more robust decision boundaries. Experimental results across four standard benchmarks demonstrate that ECKPN achieves state-of-the-art performance, especially in the challenging 1-shot setting.

Introduction

Humans possess a remarkable ability to learn new concepts from just one or two examples by leveraging prior knowledge about categories. In contrast, deep learning models often overfit to the specific features of the few available samples, failing to capture the broader distribution of the class. Transductive few-shot learning attempts to mitigate this by utilizing the statistics of unlabeled query samples during inference. However, existing graph-based transductive methods often overlook the importance of explicit category-level representations, leading to ambiguity at class boundaries.

Problem Statement: Instance vs. Class Knowledge

The primary limitation of current graph-based FSL methods is their heavy reliance on instance-level relations. While sample-to-sample similarities provide local structure, they are often noisy and insufficient for defining clear global category boundaries. As shown in Figure 1, query samples near the intersection of different class distributions are prone to misclassification when only pairwise relations are considered. ECKPN addresses this by introducing explicit class-level knowledge to guide the propagation process.

Conceptual illustration of class-level knowledge vs. instance-level relations in few-shot learning.

Methodology

The ECKPN architecture is designed to transition from fine-grained instance relations to refined class-level representations through three integrated modules.

The ECKPN architecture featuring Comparison, Squeeze, and Calibration modules for multi-modal knowledge propagation.

1. Comparison Module

This module constructs an initial instance-level graph. To capture nuanced visual similarities, it employs a multi-head relation mechanism. Visual features are partitioned into multiple subspaces (heads), allowing the model to independently evaluate different semantic attributes such as shape, color, or texture. This results in a more comprehensive adjacency matrix compared to single-scalar similarity measures.

2. Squeeze Module

The Squeeze module aggregates instance-level features into initial class-level prototypes. By "squeezing" the graph, the model transitions from individual sample representations to a more stable category-level view. These prototypes serve as the foundation for the subsequent calibration step.

3. Calibration Module

To further refine class representations, the Calibration module incorporates external semantic word embeddings (e.g., GloVe vectors of class names). This multi-modal approach provides a linguistic "prior" that helps anchor visual features. The module models the relationships between different classes, producing highly discriminative representations that are used to guide the final classification of query samples.

Experimental Results

ECKPN was evaluated on four major benchmarks: miniImageNet, tieredImageNet, CIFAR-FS, and CUB-200-2011.

Performance Highlights

  • State-of-the-Art Accuracy: On miniImageNet (5-way 1-shot), ECKPN achieved an accuracy of 70.48% using a ResNet-12 backbone, outperforming the previous state-of-the-art DPGN by approximately 2.7%.
  • Robustness in 1-Shot Scenarios: The performance gains were most significant in 1-shot tasks, where visual data is most scarce. This confirms that explicit class-level knowledge and semantic priors are crucial when labeled examples are minimal.
  • Ablation Success: Experiments confirmed that both the multi-head relation mechanism and the semantic calibration module are essential. Removing the semantic embeddings or the class-level propagation led to a consistent drop in classification accuracy.

Conclusion

ECKPN introduces a powerful paradigm for transductive few-shot learning by explicitly modeling class-level knowledge. By bridging the gap between instance-level visual features and high-level category concepts through multi-modal calibration, the model achieves superior generalization. Future work will explore the application of this explicit knowledge framework to incremental learning and more complex, large-scale few-shot scenarios.

Summary updated

BibTeX
@inproceedings{chen2021eckpn,
  author = {Chaofan Chen and Xiaoshan Yang and Changsheng Xu and Xuhui Huang and Zhe Ma},
  title = {{ECKPN: Explicit Class Knowledge Propagation Network for Transductive Few-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00653},
}
Figure