Christopher Fifty, Dennis Duan, Ronald G. Junkins, Ehsan Amid, Jure Leskovec, Christopher Re, Sebastian Thrun
Large Language Models like ChatGPT demonstrate a remarkable capacity to learn new concepts during inference without any fine-tuning. However, visual models trained to detect new objects during inference have been unable to replicate this ability, and instead either perform poorly or require meta-training and/or fine-tuning on similar objects. In this work, we propose a meta-learning algorithm that emulates Large Language Models by learning new visual concepts during inference without fine-tuning. Our approach leverages a frozen pre-trained feature extractor, and analogous to in-context learning, recasts visual meta-learning as sequence modeling over datapoints with known labels and a test datapoint with an unknown label. On 8 out of 11 meta-learning benchmarks, our approach -- without meta-training or fine-tuning -- exceeds or matches the state-of-the-art algorithm, P>M>F, which is meta-trained on these benchmarks. Our code is available at https://github.com/cfifty/CAML.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Image Classification | CUB 200 5-way 5-shot | Accuracy | 98.7 | CAML [Laion-2b] |
| Image Classification | CUB 200 5-way 1-shot | Accuracy | 95.8 | CAML [Laion-2b] |
| Image Classification | CIFAR-FS 5-way (1-shot) | Accuracy | 83.3 | CAML [Laion-2b] |
| Image Classification | Mini-Imagenet 5-way (5-shot) | Accuracy | 98.6 | CAML [Laion-2b] |
| Image Classification | Mini-Imagenet 5-way (1-shot) | Accuracy | 96.2 | CAML [Laion-2b] |
| Image Classification | Tiered ImageNet 5-way (1-shot) | Accuracy | 96.8 | CAML [Laion-2b] |
| Image Classification | Tiered ImageNet 5-way (5-shot) | Accuracy | 98.8 | CAML [Laion-2b] |
| Image Classification | CIFAR-FS 5-way (5-shot) | Accuracy | 93.5 | CAML [Laion-2b] |
| Few-Shot Image Classification | CUB 200 5-way 5-shot | Accuracy | 98.7 | CAML [Laion-2b] |
| Few-Shot Image Classification | CUB 200 5-way 1-shot | Accuracy | 95.8 | CAML [Laion-2b] |
| Few-Shot Image Classification | CIFAR-FS 5-way (1-shot) | Accuracy | 83.3 | CAML [Laion-2b] |
| Few-Shot Image Classification | Mini-Imagenet 5-way (5-shot) | Accuracy | 98.6 | CAML [Laion-2b] |
| Few-Shot Image Classification | Mini-Imagenet 5-way (1-shot) | Accuracy | 96.2 | CAML [Laion-2b] |
| Few-Shot Image Classification | Tiered ImageNet 5-way (1-shot) | Accuracy | 96.8 | CAML [Laion-2b] |
| Few-Shot Image Classification | Tiered ImageNet 5-way (5-shot) | Accuracy | 98.8 | CAML [Laion-2b] |
| Few-Shot Image Classification | CIFAR-FS 5-way (5-shot) | Accuracy | 93.5 | CAML [Laion-2b] |