Skip to main content
QUICK REVIEW

[Paper Review] PARN: Position-Aware Relation Networks for Few-Shot Learning

Ziyang Wu, Yuwei Li|arXiv (Cornell University)|Sep 10, 2019
Domain Adaptation and Few-Shot LearningComputer Science28 references7 citations
TL;DR

This paper proposes Position-Aware Relation Networks (PARN), a novel few-shot learning framework that enhances relation networks (RNs) by introducing a deformable feature extractor (DFE) and a dual correlation attention mechanism (DCA) to improve spatial awareness and robustness in metric learning. PARN achieves state-of-the-art performance on Omniglot and Mini-ImageNet, with a 5-way 1-shot accuracy of 54.36% on Mini-ImageNet and surpassing previous 5-way 5-shot results on Omniglot.

ABSTRACT

Few-shot learning presents a challenge that a classifier must quickly adapt to new classes that do not appear in the training set, given only a few labeled examples of each new class. This paper proposes a position-aware relation network (PARN) to learn a more flexible and robust metric ability for few-shot learning. Relation networks (RNs), a kind of architectures for relational reasoning, can acquire a deep metric ability for images by just being designed as a simple convolutional neural network (CNN) [23]. However, due to the inherent local connectivity of CNN, the CNN-based relation network (RN) can be sensitive to the spatial position relationship of semantic objects in two compared images. To address this problem, we introduce a deformable feature extractor (DFE) to extract more efficient features, and design a dual correlation attention mechanism (DCA) to deal with its inherent local connectivity. Successfully, our proposed approach extents the potential of RN to be position-aware of semantic objects by introducing only a small number of parameters. We evaluate our approach on two major benchmark datasets, i.e., Omniglot and Mini-Imagenet, and on both of the datasets our approach achieves state-of-the-art performance with the setting of using a shallow feature extraction network. It's worth noting that our 5-way 1-shot result on Omniglot even outperforms the previous 5-way 5-shot results.

Motivation & Objective

  • To address the limitation of standard relation networks (RNs) in few-shot learning, which are sensitive to spatial position due to local receptive fields in CNNs.
  • To enhance the metric learning capability of RNs by making them aware of semantic object positions and fine-grained features across images.
  • To design a lightweight, parameter-efficient method that improves generalization without relying on deep feature extractors.
  • To achieve state-of-the-art performance on standard few-shot benchmarks using only a shallow feature extractor.

Proposed method

  • Introduces a deformable feature extractor (DFE) that learns adaptive sampling offsets to focus on relevant semantic objects and reduce background noise.
  • Proposes a dual correlation attention mechanism (DCA) that models global spatial relationships between two input features using cross-attention and self-attention.
  • Uses cross-attention (CCA) to compute inter-feature relationships based on similarity, enabling preliminary comparison before RN processing.
  • Uses self-attention (SCA) to capture intra-feature dependencies and refine feature representations within each input.
  • Combines CCA and SCA in DCA to enable dense, position-aware feature aggregation, allowing the RN to compare features across different spatial positions.
  • Employs a simple CNN-based RN as the metric module, with DFE and DCA enhancing its ability to handle spatially displaced or fine-grained features.

Experimental results

Research questions

  • RQ1Can a relation network be made more robust to spatial position variations in few-shot image comparison?
  • RQ2How can attention mechanisms improve the ability of RNs to compare features that are not spatially aligned?
  • RQ3Can a lightweight, shallow feature extractor achieve state-of-the-art few-shot learning performance with proper attention and feature extraction design?
  • RQ4Does introducing deformable convolutions and dual attention improve generalization in few-shot learning benchmarks?

Key findings

  • PARN achieves a 54.36% accuracy on the 5-way 1-shot Mini-ImageNet benchmark, outperforming the baseline RN by 3.07 percentage points.
  • On the 5-way 5-shot Mini-ImageNet task, PARN reaches 70.50% accuracy, exceeding the previous 5-way 1-shot results on Omniglot.
  • The ablation study confirms that combining CCA and SCA in DCA yields the highest performance gain, with a 3.21% improvement over the baseline RN.
  • Grad-CAM visualization confirms that DCA enables the network to attend to relevant, non-overlapping semantic features across images, improving comparison robustness.
  • The effective receptive field (ERF) visualization of DFE shows adaptive focus on object regions, filtering out irrelevant background features.
  • Training with DCA leads to faster convergence, indicating improved learning dynamics and better feature representation learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.