Introduction
Few-shot learning (FSL) represents a significant challenge in computer vision: the ability to generalize to novel classes given only a handful of labeled examples. While traditional inductive methods classify each query instance in isolation, transductive approaches leverage the collective structure of the unlabeled query set to improve classification accuracy. However, existing transductive methods often struggle with either high class variance (prototype-based) or rigid, error-prone graph structures (graph-based).
This paper introduces protoLP, a novel framework that bridges these two paradigms. By constructing a dynamic bipartite graph between samples and class prototypes and iteratively refining both, protoLP achieves state-of-the-art performance while remaining computationally efficient.
The Challenges of Transductive Learning
Transductive FSL methods generally fall into two categories, each with distinct limitations:
- Prototype-based methods: These compute a central representation (prototype) for each class. While intuitive, they often fail when classes overlap significantly or exhibit high intra-class variance.
- Graph-based methods: These propagate labels across a network of sample similarities. Their primary weakness lies in their reliance on fixed graphs; if initial links are established between different classes, the resulting label noise persists throughout the inference process.
ProtoLP addresses these issues by treating the graph and the prototypes as co-evolving entities, allowing the model to correct structural errors over time.
Methodology: Prototype-based Label Propagation
The core of the protoLP framework is the construction of a bipartite graph that connects unlabeled query samples directly to class prototypes, rather than to other samples. This architectural choice leads to several technical advantages:
Iterative Graph Refinement
Unlike static graph methods, protoLP does not rely on a pre-defined adjacency matrix. Instead, the graph is dynamic. As the model updates its estimation of class prototypes, the connection weights in the bipartite graph are recalculated. This iterative process ensures that the graph structure becomes increasingly accurate as the prototypes converge.
Parameterized Label Prediction
To prevent overfitting to potentially noisy initial graph states, the authors introduce a linear projection layer ($A$). This layer acts as a regularizer during the label propagation process, making the model more robust to outliers and initial misclassifications.
Bipartite Diffusion and Efficiency
By utilizing a bipartite structure (samples to prototypes), the model effectively performs a "2-hop" diffusion. This simplifies the underlying linear algebra and significantly reduces computational complexity from $O(n^2)$—typical of sample-to-sample graphs—to a much leaner profile. Consequently, protoLP can perform inference in approximately 5.8 milliseconds on a standard CPU, making it roughly 10 times faster than many iterative competitors.
Robustness to Unbalanced Data
Many transductive methods rely on a "uniform prior" assumption, where the query set is assumed to be perfectly balanced across classes. ProtoLP remains effective even when this assumption is violated. While it can utilize the Sinkhorn-Knopp algorithm for balanced scenarios, its core mechanism is inherently robust to the skewed class distributions often found in real-world applications.
Experimental Evaluation
The authors evaluated protoLP across four standard benchmarks: mini-ImageNet, tiered-ImageNet, CIFAR-FS, and CUB. The method was tested using various backbones, including ResNet-12, ResNet-18, WRN-28-10, DenseNet, and MobileNet.
Performance and Robustness
On the mini-ImageNet 1-shot task, protoLP achieved an accuracy of 70.77%, which increased to 84.35% with the inclusion of data augmentation. These results significantly outperform previous state-of-the-art methods like LaplacianShot and BD-CSPN.
Crucially, in experiments involving unbalanced query sets, protoLP maintained a high accuracy of 73.7% on mini-ImageNet. In contrast, competing methods such as PT-MAP experienced performance drops of nearly 20% under the same conditions, highlighting protoLP's practical utility.
Conclusion and Future Work
ProtoLP offers a compelling solution to the transductive few-shot learning problem by combining the strengths of prototype-based and graph-based approaches. Its iterative refinement process and bipartite architecture provide a unique balance of accuracy, robustness, and speed.
While the method currently operates as a post-processing step during inference, future research could explore integrating the protoLP refinement process directly into the meta-learning phase. Additionally, investigating the framework's performance in extreme scenarios, such as zero-shot learning or environments with high label noise, remains a promising avenue for further development.
Summary updated