Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Posterior Learning: few-shot learning with a surprise-based memory module

Tiago Ramalho, Marta Garnelo|arXiv (Cornell University)|Feb 7, 2019
Domain Adaptation and Few-Shot LearningComputer Science42 citations
TL;DR

APL is a few-shot learning method that stores only the most surprising observations in an external memory and uses a relational decoder to infer posteriors, achieving competitive accuracy with a smaller memory footprint and scalable to thousands of classes.

ABSTRACT

The ability to generalize quickly from few observations is crucial for intelligent systems. In this paper we introduce APL, an algorithm that approximates probability distributions by remembering the most surprising observations it has encountered. These past observations are recalled from an external memory module and processed by a decoder network that can combine information from different memory slots to generalize beyond direct recall. We show this algorithm can perform as well as state of the art baselines on few-shot classification benchmarks with a smaller memory footprint. In addition, its memory compression allows it to scale to thousands of unknown labels. Finally, we introduce a meta-learning reasoning task which is more challenging than direct classification. In this setting, APL is able to generalize with fewer than one example per class via deductive reasoning.

Motivation & Objective

  • Enable few-shot learning by approximating posterior distributions using stored past experiences.
  • Minimize memory usage by writing only highly surprising examples to memory.
  • Combine external memory with a working memory and a relational decoder to enable scalable reasoning.
  • Train to approximate posterior updates online without backpropagating through entire sequences.

Proposed method

  • Encoder generates a representation for each input.
  • External memory stores selected (embedding, label) pairs, with writing controlled by a surprise-based mechanism.
  • Memory is queried via k-nearest neighbors to retrieve relevant past observations.
  • A decoder (relational self-attention, relational working memory, or LSTM) uses query embedding and memory neighbors to produce class logits.
  • Memory writing uses surprise S = -log(y_t); write if S > sigma, with sigma ~ -log(N) for N classes.
  • Training updates at each time step minimize cross-entropy loss without backpropagating through the full sequence; episodic data drives online adaptation.

Experimental results

Research questions

  • RQ1Can APL approximate posterior updates with minimal memory and online updates during episodes?
  • RQ2How does surprise-based memory writing affect memory efficiency and accuracy in few-shot tasks?
  • RQ3Do relational decoding architectures enable effective non-trivial reasoning over recalled memories?
  • RQ4How well does APL scale to large numbers of classes (thousands) on real datasets?
  • RQ5Can APL generalize to meta-learning style reasoning tasks beyond standard classification?

Key findings

  • APL achieves competitive few-shot classification accuracy with a smaller memory footprint than baselines.
  • The memory controller writes only highly surprising observations, leading to sparse, task-relevant memory usage.
  • External memory plus a relational decoder enables scalable reasoning and supports all-to-all attention over retrieved items.
  • APL scales to thousands of classes on ImageNet with high top-1 accuracy for 20/100/1000-way tasks, using a pretrained encoder.
  • On a dedicated number-analogy reasoning task, APL achieves strong generalization with fewer than one example per class in some settings, demonstrating deductive-like reasoning capabilities.

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.