Meta-Learning without Memorization

Mingzhang Yin, George Tucker, Mingyuan Zhou, Sergey Levine, Chelsea Finn

TL;DR

Standard meta-learning algorithms often "cheat" by memorizing training tasks instead of learning to adapt, causing them to fail on novel data. This paper introduces meta-regularization, an information-theoretic approach that restricts the information flow from test inputs and model parameters, forcing the learner to rely on task-specific training data to make accurate predictions.

The Memorization Problem in Meta-Learning

Meta-learning aims to create models that can learn new concepts from just a few examples by leveraging experience from previous tasks. However, the authors identify a subtle but pervasive failure mode: the memorization problem.

In many meta-learning setups, researchers carefully design tasks to be "mutually exclusive" (e.g., by randomly shuffling labels in image classification). If tasks are not mutually exclusive—meaning the test input contains enough information to identify the task—the model can simply memorize a single function that solves all training tasks "zero-shot." When this happens, the model ignores the small support set (training data) provided for adaptation. Consequently, when faced with a truly novel task at test time, the model fails because it never actually learned the mechanism of adaptation; it just learned to recognize its training set.

Proposed Method: Meta-Regularization

The authors propose Meta-Regularization (MR), a technique grounded in information theory (specifically the Information Bottleneck principle). The goal is to minimize the mutual information between the predictive distribution and sources other than the task-specific training data.

They introduce two primary variants:

  1. MR on Activations (MR-A): This places a stochastic bottleneck on the intermediate representations. By penalizing the KL divergence between the activation distribution and a simple prior, the model is discouraged from passing too much "task-identifying" information directly from the test input to the output.
  2. MR on Weights (MR-W): This treats the meta-parameters ($\theta$) as random variables. By regularizing the information content of the weights using a PAC-Bayes framework, the authors limit the model's capacity to store a "lookup table" of all training tasks within its parameters.

These regularizers are algorithm-agnostic and were successfully integrated into both gradient-based methods like MAML (Model-Agnostic Meta-Learning) and contextual methods like CNP (Conditional Neural Processes).

Evaluation Datasets

The authors evaluated their approach on several benchmarks specifically designed to trigger the memorization problem:

  • Sinusoid Regression: A toy problem modified so that the input includes a "task ID," allowing vanilla models to memorize the curves.
  • Pose Prediction: A realistic 3D regression task using Pascal 3D data. Models must predict the orientation of an object. Since the number of training objects is small, vanilla models tend to memorize specific object geometries rather than learning to use the support set to infer orientation.
Pose Prediction Task Examples
  • Non-Mutually-Exclusive (NME) Omniglot & MiniImageNet: Modified versions of standard few-shot classification benchmarks where class-to-label assignments are fixed across tasks, making it possible to solve training tasks without adaptation.

Key Insights

  • Memorization is Task-Level Overfitting: Unlike standard overfitting (memorizing specific datapoints), the memorization problem is a failure to generalize to new tasks. The model generalizes fine to new points within a known task but cannot handle a task it hasn't seen.
  • The "Aha!" Moment: To make meta-learning work on real-world, non-shuffled data, we must artificially restrict the model's "cheating" pathways. By making it "expensive" (in terms of information bits) to use the test input or the global weights, the model is forced to use the "cheap" information available in the task-specific support set.
  • Weight vs. Activation Regularization: The authors found that regularizing weights is generally more robust. Clever neural networks can sometimes "hide" information in specific dimensions of an activation bottleneck, but limiting the information capacity of the weights themselves is harder to bypass.

Key Results

The results demonstrate that meta-regularization is essential when tasks are not perfectly curated to be mutually exclusive.

Quantitative Results on Sinusoid Regression
  • Sinusoid Regression: As shown in the table above, MR-MAML achieved an MSE of 0.06 (10-shot), while vanilla MAML struggled at 0.13. Vanilla CNP was even worse at 0.92, but MR-CNP brought the error down to 0.09.
  • Pose Prediction: On unseen objects, MR-MAML reached an MSE of 2.26, significantly outperforming vanilla MAML (5.39) and standard fine-tuning (7.33).
  • NME Omniglot: In the 20-way 1-shot setting, MR-MAML achieved 83.3% accuracy, whereas vanilla MAML collapsed to nearly random performance at 7.8%.
  • Robustness: Importantly, the authors showed that meta-regularization does not degrade performance on standard mutually-exclusive tasks, making it a "safe" addition to the meta-learning toolkit.

Limitations and Future Work

  • Hyperparameter Sensitivity: The strength of the regularization ($\beta$) is a critical knob. If $eta$ is too high, the model lacks the capacity to solve the task; if it's too low, memorization still occurs.
  • Scope: The paper focuses on supervised learning. Extending these information-theoretic constraints to Meta-Reinforcement Learning, where memorization of environments is a major hurdle, is a promising but unexplored direction.
  • Complexity: Implementing weight-based regularization requires a variational (Bayesian) approach to neural networks, which increases computational overhead compared to standard point-estimate training.

Summary updated

BibTeX
@inproceedings{yin2020meta,
  author = {Mingzhang Yin and George Tucker and Mingyuan Zhou and Sergey Levine and Chelsea Finn},
  title = {{Meta-Learning without Memorization}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure