Skip to main content
QUICK REVIEW

[Paper Review] Multi-scale Adaptive Task Attention Network for Few-Shot Learning

Haoxing Chen, Huaxiong Li|arXiv (Cornell University)|Nov 30, 2020
Domain Adaptation and Few-Shot LearningComputer Science32 references15 citations
TL;DR

This paper proposes Multi-scale Adaptive Task Attention Network (MATANet), a novel few-shot learning framework that enhances metric learning by jointly leveraging multi-scale local representations and task-aware attention to dynamically emphasize the most discriminative features across different scales. MATANet achieves state-of-the-art performance on standard benchmarks, with 53.63% accuracy on 5-way 1-shot and 72.67% on 5-way 5-shot ImageNet tasks using ResNet12.

ABSTRACT

The goal of few-shot learning is to classify unseen categories with few labeled samples. Recently, the low-level information metric-learning based methods have achieved satisfying performance, since local representations (LRs) are more consistent between seen and unseen classes. However, most of these methods deal with each category in the support set independently, which is not sufficient to measure the relation between features, especially in a certain task. Moreover, the low-level information-based metric learning method suffers when dominant objects of different scales exist in a complex background. To address these issues, this paper proposes a novel Multi-scale Adaptive Task Attention Network (MATANet) for few-shot learning. Specifically, we first use a multi-scale feature generator to generate multiple features at different scales. Then, an adaptive task attention module is proposed to select the most important LRs among the entire task. Afterwards, a similarity-to-class module and a fusion layer are utilized to calculate a joint multi-scale similarity between the query image and the support set. Extensive experiments on popular benchmarks clearly show the effectiveness of the proposed MATANet compared with state-of-the-art methods.

Motivation & Objective

  • Address the limitation of existing local representation-based methods that treat all local features equally across tasks, regardless of their discriminative relevance.
  • Overcome the issue of scale variation in dominant objects across images, which hampers performance in complex backgrounds.
  • Improve few-shot classification by modeling inter-feature relationships within the entire task context rather than independently per support sample.
  • Enable end-to-end learning of task-relevant, multi-scale local representations for better generalization with few labeled examples.

Proposed method

  • Employ a multi-scale feature generator to extract local representations (LRs) at multiple spatial scales from both query and support images.
  • Introduce an adaptive task attention module that computes task-aware attention scores for each local representation, emphasizing features most relevant to the current classification task.
  • Construct a semantic relation matrix to measure similarity between query and support features across all LRs in the task context.
  • Implement a similarity-to-class module that maps multi-scale similarities to class-level predictions using weighted aggregation.
  • Apply an adaptive fusion layer to combine multi-scale similarities based on learned attention weights, enhancing robustness to scale variations.
  • Train the entire network end-to-end using cross-entropy loss for classification, with the attention mechanism jointly optimized.
Multi-scale Adaptive Task Attention Network for Few-Shot Learning

Experimental results

Research questions

  • RQ1How can local representations be dynamically weighted based on their discriminative relevance within a given few-shot task?
  • RQ2To what extent does multi-scale feature representation improve few-shot classification when dominant objects vary in scale across images?
  • RQ3Can a task-aware attention mechanism improve performance by focusing on the most informative local features rather than treating all LRs equally?
  • RQ4How does the integration of multi-scale features and adaptive attention compare to single-scale or uniform-weighting baselines in few-shot learning?

Key findings

  • MATANet achieves 53.63% accuracy on the 5-way 1-shot mini-ImageNet benchmark using ResNet12, outperforming state-of-the-art methods under the same setting.
  • On the 5-way 5-shot setting, MATANet reaches 72.67% accuracy with ResNet12, demonstrating strong generalization with limited support samples.
  • Ablation studies show that removing the adaptive task attention module reduces accuracy by 3.7% on 1-shot and 4.8% on 5-shot tasks, confirming its critical role.
  • The multi-scale feature generator contributes significantly, with a 1.3% accuracy gain on 1-shot and 0.9% on 5-shot tasks when included.
  • The similarity-to-class module contributes 1.1% and 0.8% improvement on 1-shot and 5-shot tasks, respectively, validating its effectiveness in class-level aggregation.
  • Cosine similarity is the optimal metric function in the adaptive attention module, outperforming Euclidean distance and Tanimoto index in ablation studies.
Multi-scale Adaptive Task Attention Network for Few-Shot 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.