HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Contextual Squeeze-and-Excitation for Efficient Few-Shot Image Classification

Massimiliano Patacchiola John Bronskill Aliaksandra Shysheya Katja Hofmann Sebastian Nowozin Richard E. Turner

Contextual Squeeze-and-Excitation for Efficient Few-Shot Image Classification

Abstract

Recent years have seen a growth in user-centric applications that require effective knowledge transfer across tasks in the low-data regime. An example is personalization, where a pretrained system is adapted by learning on small amounts of labeled data belonging to a specific user. This setting requires high accuracy under low computational complexity, therefore the Pareto frontier of accuracy vs. adaptation cost plays a crucial role. In this paper we push this Pareto frontier in the few-shot image classification setting with a key contribution: a new adaptive block called Contextual Squeeze-and-Excitation (CaSE) that adjusts a pretrained neural network on a new task to significantly improve performance with a single forward pass of the user data (context). We use meta-trained CaSE blocks to conditionally adapt the body of a network and a fine-tuning routine to adapt a linear head, defining a method called UpperCaSE. UpperCaSE achieves a new state-of-the-art accuracy relative to meta-learners on the 26 datasets of VTAB+MD and on a challenging real-world personalization benchmark (ORBIT), narrowing the gap with leading fine-tuning methods with the benefit of orders of magnitude lower adaptation cost.

Code Repositories

mpatacchiola/contextual-squeeze-and-excitation
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
few-shot-image-classification-on-meta-datasetUpperCaSE-EfficientNetB0
Accuracy: 76.1
few-shot-image-classification-on-meta-datasetUpperCaSE-ResNet50
Accuracy: 74.9
image-classification-on-vtab-1k-1UpperCaSE-EfficientNetB0
Top-1 Accuracy: 58.4
image-classification-on-vtab-1k-1UpperCaSE-ResNet50
Top-1 Accuracy: 56.6

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp