NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Wandering Within a World: Online Contextualized Few-Shot Learning

Mengye Ren, Michael L. Iuzzolino, Michael C. Mozer, Richard S. Zemel

Abstract

We aim to bridge the gap between typical human and machine-learning environments by extending the standard framework of few-shot learning to an online, continual setting. In this setting, episodes do not have separate training and testing phases, and instead models are evaluated online while learning novel classes. As in the real world, where the presence of spatiotemporal context helps us retrieve learned skills in the past, our online few-shot learning setting also features an underlying context that changes throughout time. Object classes are correlated within a context and inferring the correct context can lead to better performance. Building upon this setting, we propose a new few-shot learning dataset based on large scale indoor imagery that mimics the visual experience of an agent wandering within a world. Furthermore, we convert popular few-shot learning approaches into online versions and we also propose a new contextual prototypical memory model that can make use of spatiotemporal contextual information from the recent past.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
RoamingRoomsCPM 1-ShotAverage accuracy95.7+2.2 vs baselineImage Classification · 1-shot · label-delay=1–2 time steps
Source quote
L1274: CPM 1-Shot │ \bf{95.7} │ \bf{92.2} │ \bf{85.7} │ \bf{75.2} │ \bf{70.0} │ \bf{66.4}
RoamingImageNetCPM 1-ShotAverage accuracy13.8Image Classification · 1-shot · label-delay=51–100 time steps
Source quote
L1295: CPM 1-Shot │ \bf{67.5} │ \bf{52.9} │ \bf{35.5} │ 24.2 │ 18.3 │ 13.8
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
RoamingRoomsOPN 1-Shot baselineAverage accuracy93.5Image Classification · 1-shot · label-delay=1–2 time steps
Source quote
L1272: OPN 1-Shot │ 93.5 │ 89.3 │ 79.4 │ 67.2 │ 60.3 │ 60.1
RoamingImageNetOPN 1-Shot baselineAverage accuracy21.4Image Classification · 1-shot · label-delay=51–100 time steps
Source quote
L1293: OPN 1-Shot │ 40.8 │ 35.9 │ 33.0 │ \bf{30.7} │ \bf{27.0} │ \bf{21.4}
BibTeX
@inproceedings{ren2021wandering,
  author = {Mengye Ren and Michael L. Iuzzolino and Michael C. Mozer and Richard S. Zemel},
  title = {{Wandering Within a World: Online Contextualized Few-Shot Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=oZIvHV04XgC},
}
Figure