Skip to main content
QUICK REVIEW

[Paper Review] TAFE-Net: Task-Aware Feature Embeddings for Low Shot Learning

Xin Wang, Fisher Yu|arXiv (Cornell University)|Apr 11, 2019
Domain Adaptation and Few-Shot LearningComputer Science40 references12 citations
TL;DR

TAFE-Net introduces a meta-learning framework that generates task-aware feature embeddings (TAFEs) by dynamically adapting image features based on task descriptions, using a meta-learner to produce task-specific weights for feature layers. It achieves state-of-the-art performance on zero-shot and few-shot benchmarks, improving accuracy by 4–15 points on unseen attribute-object composition tasks without data generation.

ABSTRACT

Learning good feature embeddings for images often requires substantial training data. As a consequence, in settings where training data is limited (e.g., few-shot and zero-shot learning), we are typically forced to use a generic feature embedding across various tasks. Ideally, we want to construct feature embeddings that are tuned for the given task. In this work, we propose Task-Aware Feature Embedding Networks (TAFE-Nets) to learn how to adapt the image representation to a new task in a meta learning fashion. Our network is composed of a meta learner and a prediction network. Based on a task input, the meta learner generates parameters for the feature layers in the prediction network so that the feature embedding can be accurately adjusted for that task. We show that TAFE-Net is highly effective in generalizing to new tasks or concepts and evaluate the TAFE-Net on a range of benchmarks in zero-shot and few-shot learning. Our model matches or exceeds the state-of-the-art on all tasks. In particular, our approach improves the prediction accuracy of unseen attribute-object pairs by 4 to 15 points on the challenging visual attribute-object composition task.

Motivation & Objective

  • To address the limitation of generic feature embeddings in low-shot learning, where shared representations are suboptimal for new or rare tasks.
  • To enable dynamic, task-specific adaptation of image features without requiring task-specific fine-tuning or additional data.
  • To improve generalization across diverse and sparse training tasks by jointly clustering images and tasks via metric learning.
  • To reduce the complexity of parameter generation for large networks by factorizing task-specific and shared weights.
  • To achieve state-of-the-art performance in zero-shot and few-shot learning without relying on data hallucination.

Proposed method

  • A meta-learner generates task-specific parameters for feature layers in a prediction network based on a task embedding (e.g., from GloVe).
  • The network uses a weight factorization scheme, splitting parameters into low-dimensional task-specific weights and high-dimensional shared weights to reduce training complexity.
  • An embedding loss based on metric learning couples image and task representations, encouraging joint clustering of similar images and tasks.
  • The model employs a shared classifier across all tasks, taking TAFEs as input to predict outcomes using a task-independent linear boundary.
  • The architecture is trained end-to-end using SGD with momentum, with learning rate decay and batch sampling of 100 classes per iteration.
  • The method is applicable to both zero-shot and few-shot learning, with evaluation on ImageNet-based few-shot benchmarks and MITStates for attribute-object composition.

Experimental results

Research questions

  • RQ1Can a meta-learning framework generate task-aware feature embeddings that generalize better than generic embeddings in low-shot settings?
  • RQ2How can parameter generation for feature layers be made efficient and scalable when generating weights from low-dimensional task embeddings?
  • RQ3Can joint metric learning over images and tasks improve generalization across unseen tasks?
  • RQ4Does the proposed weight factorization scheme reduce training complexity while maintaining performance?
  • RQ5Can TAFE-Net outperform state-of-the-art models on zero-shot and few-shot benchmarks without data augmentation or hallucination?

Key findings

  • TAFE-Net achieves state-of-the-art performance on three out of five standard zero-shot learning benchmarks without data generation.
  • On the MITStates dataset, TAFE-Net improves accuracy by 4 to 15 points on unseen attribute-object composition tasks compared to prior methods.
  • In few-shot learning on the ImageNet-based benchmark, TAFE-Net matches or exceeds the performance of state-of-the-art meta-learning models like Prototypical Networks and Matching Networks.
  • The model achieves a top-5 accuracy of 61.9% on all classes and 53.9% on novel classes with n=2 few-shot examples, outperforming the baseline LogReg and competitive with PN and MN.
  • The addition of a hallucinator to TAFE-Net is feasible and could further boost performance, though not explored due to time constraints.
  • The proposed embedding loss and weight factorization significantly improve generalization and training stability in low-data regimes.

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.