Adaptive Anchor Label Propagation for Transductive Few-Shot Learning

Michalis Lazarou, Yannis Avrithis, Guangyu Ren, Tania Stathaki

Abstract

Transductive few-shot learning (FSL) leverages the structural information of unlabeled query data to improve classification accuracy. However, traditional Label Propagation (LP) methods are often limited by the assumption that initial feature embeddings are fixed and optimal. We present Adaptive Anchor Label Propagation ($A^2LP$), a novel approach that treats labeled examples as "anchors" and iteratively optimizes their positions on the data manifold. By updating anchor embeddings via gradient descent based on manifold similarity, $A^2LP$ significantly improves graph alignment. Experimental results across four benchmarks demonstrate substantial gains, including a 7% improvement on the CUB dataset and state-of-the-art performance on tieredImageNet.

Introduction

Few-shot learning (FSL) addresses the challenge of classifying novel categories using only a handful of labeled examples, known as the support set. To bridge the gap between limited supervision and high-dimensional data, transductive inference has emerged as a powerful paradigm. Unlike inductive methods that process each query image in isolation, transductive methods utilize the entire query set at once to understand the underlying data structure.

Label Propagation (LP) is a cornerstone of transductive FSL. It constructs a graph where nodes represent images and edges represent similarities, allowing labels to "spread" from the support set to the query set. However, standard LP assumes that the initial feature embeddings—the mathematical positions of images—are perfect. In practice, when data is scarce, these embeddings are often sub-optimal, leading to an inaccurate graph and poor classification. $A^2LP$ addresses this by making the support set embeddings dynamic and adaptive.

Methodology

The $A^2LP$ framework shifts the focus from static inference to dynamic manifold adaptation. The process consists of the following steps:

  1. Feature Extraction: Images are converted into feature vectors using a standard pre-trained backbone, such as ResNet-12 or WideResNet-28-10.
  2. Graph Construction: A $k$-nearest neighbor graph is built based on the cosine similarity between all support and query images.
  3. Label Propagation: Standard LP is applied to estimate class probabilities for each image based on the current graph structure.
  4. Anchor Adaptation: This novel step treats the labeled support points as "anchors." The model calculates a cross-entropy loss between the anchors' predicted manifold similarity and their actual ground-truth labels.
  5. Optimization: Using gradient descent (specifically the Adam optimizer), the system updates the feature embeddings of these anchors. This process "nudges" the labeled points into better positions on the manifold to better reflect the local geometry of the unlabeled data.
  6. Iteration: Steps 2 through 5 are repeated for approximately 1,000 iterations until the anchors and the manifold are optimally aligned.

Experimental Evaluation

The researchers evaluated $A^2LP$ on four gold-standard few-shot learning benchmarks: miniImageNet, tieredImageNet, CUB (for fine-grained classification), and CIFAR-FS.

Key Results

The results demonstrate that "moving the anchors" provides a significant performance boost over static methods:

  • Significant Accuracy Gains: $A^2LP$ outperformed standard Label Propagation by 7% in 1-shot settings on the CUB dataset and by 2% in 5-shot settings.
  • State-of-the-Art (SOTA) Performance: On tieredImageNet (1-shot), $A^2LP$ achieved 82.82% accuracy, outperforming several complex SOTA methods such as LaplacianShot and SIB.
  • Robustness: The improvement was consistent across all four datasets and both network architectures, suggesting that the method is not overfit to specific data types or backbones.

Discussion and Insights

The primary insight of $A^2LP$ is that the embedding space should be treated as a dynamic landscape rather than a static one. Most FSL methods treat the initial feature extraction as the final word on data relationships. $A^2LP$ recognizes that the "landmarks" (labeled data) can be adjusted to better reflect the specific distribution of the query set currently being evaluated.

Because the adaptation is driven by manifold similarity, the method is inherently "manifold-aware." It does not require complex meta-learning or synthetic data generation, relying instead on a differentiable loss function and standard optimization. This simplicity makes it relatively easy to integrate into existing FSL pipelines.

Limitations and Future Work

While $A^2LP$ demonstrates clear success, there are considerations for its application:

  • Inference Latency: The iterative nature of the algorithm (1,000 optimization steps per task) introduces higher computational overhead during the inference phase compared to simple one-shot classifiers.
  • Loss Function Exploration: While standard cross-entropy was used for adaptation, exploring specialized loss functions for anchor movement could potentially yield further gains.
  • Hyperparameter Tuning: The method introduces new hyperparameters, such as the learning rate for adaptation and the number of iterations. While these were fixed during experiments, real-world applications might require tuning for specific data distributions.

Conclusion

Adaptive Anchor Label Propagation ($A^2LP$) provides a robust solution to the limitations of static transductive inference. By allowing labeled anchors to adapt to the unlabeled data manifold, the method significantly improves the accuracy of label propagation in few-shot scenarios, setting a new standard for transductive performance.

Summary updated

BibTeX
@inproceedings{lazarou2023adaptive,
  author = {Michalis Lazarou and Yannis Avrithis and Guangyu Ren and Tania Stathaki},
  title = {{Adaptive Anchor Label Propagation for Transductive Few-Shot Learning}},
  booktitle = {ICIP},
  year = {2023},
  url = {https://openreview.net/forum?id=K8mttDMlsuj},
}
Figure