Improving Neural Processes in the Low-Data Regime via Context-Subset Training and Self-Distillation

Hyungi Lee, Jangho KimNeurIPS 2026

TL;DR

Neural Processes (NPs) are brilliant at predicting unknown functions along with calibrated uncertainty—until you starve them of diverse training tasks, causing them to memorize functions and collapse into wild overconfidence. This paper introduces CSSDNP, a clever training recipe that forces a "student" model to predict from partial clues while learning from a "teacher" model that sees the whole picture. Best of all, it rescues low-data performance across multiple NP architectures without changing a single layer of the network or adding any test-time compute.

What Problem Does This Paper Address?

Imagine trying to guess the shape of a curve—say, predator-prey populations over time—from just a handful of data points. Neural Processes (NPs) are meta-learning models built for exactly this: they combine the probabilistic uncertainty of Gaussian Processes with the speed of neural networks. To work, NPs meta-train on thousands of related tasks (curves) to learn a shared "prior" over how functions behave. In each task, they observe a context set (known points) and predict a target set (unknown points).

Here is the catch: in science and engineering, tasks correspond to expensive lab experiments or rare clinical trajectories. You rarely have tens of thousands of them. The authors show that in this low-meta-data regime (hundreds of tasks instead of tens of thousands), standard NP training suffers a dramatic generalization collapse.

Figure 1: Loss and target log-likelihood in the low-meta-data regime on RBF GP regression with CANP and TNP.

As training progresses on scarce tasks, training loss smoothly drops, yet performance on unseen test tasks falls off a cliff. Instead of learning how to infer functions from context, the network memorizes the specific functions in the training set.

Methods

To cure task-level memorization without altering model architectures, the authors propose Context-Subset Self-Distillation Neural Processes (CSSDNP). It relies on a deliberate information asymmetry during training, pairing two mechanisms:

  1. Context-Subset Training (The Student's Challenge): Instead of feeding the model the full context set $D^{(c)}$, CSSDNP randomly subsamples a smaller "refined" context $D^{(r)} \subset D^{(c)}$. Predicting targets from fewer clues makes memorization much harder and generates many distinct conditional views from a single scarce task.
  2. Full-Context Self-Distillation (The Teacher's Guidance): Dropping context throws away real information, making the student's job noisy. To compensate, an Exponential Moving Average (EMA) copy of the student acts as a teacher. The teacher gets to see the full context $D^{(c)}$ and outputs a rich, well-informed predictive distribution.

The student is trained on a combined loss: standard target prediction plus the forward Kullback-Leibler (KL) divergence from the full-context teacher to the reduced-context student. For latent NPs (where exact KL is intractable), this is cleanly approximated via Monte Carlo sampling from the teacher. At test time, the teacher is discarded, adding zero inference overhead.

Datasets

The authors evaluate CSSDNP on existing synthetic and real-world benchmarks (no new datasets are introduced):

  • 1D & Multidimensional Gaussian Process (GP) Regression: Synthetic curves generated using RBF, Matérn, and Rational Quadratic (RQ) kernels—testing standard low-data training, zero-shot kernel shift, and few-shot finetuning.
  • Lotka–Volterra Predator–Prey System (Sim-to-Real): Models are meta-trained on synthetic ODE trajectories and evaluated zero-shot on real historical Hudson Bay lynx and hare population records.
  • (Referenced in appendices) Image completion and climate prediction tasks.

Key Insights and Ideas

  • Overfitting in NPs is really "uncertainty collapse": When standard NPs memorize scarce tasks, their mean predictions still roughly trace the right curve shape. The catastrophic drop in log-likelihood happens because their predicted variance shrinks to the minimum allowed floor—they become pathologically overconfident everywhere, even far from observed data.
  • Context subsampling isn't just noise injection: In standard consistency regularization (like cropping images), two views represent the exact same underlying object. In NPs, removing context points fundamentally alters the true Bayesian posterior. Distilling a full-context teacher into a partial-context student forces the student to average over what is missing.
  • Why Forward KL matters: Using forward KL (teacher $\to$ student) rather than reverse KL forces the student to cover all plausible modes predicted by the teacher instead of collapsing onto a single mode. Theoretically, if the teacher is calibrated, this recovers the exact Bayes-optimal reduced-context predictor while shrinking finite-sample variance.

Key Results

CSSDNP is tested across four NP backbones—deterministic (CANP, TNP) and latent (ANP, DANP)—consistently turning collapses into stable learning:

  • Rescuing Low-Data GP Regression: With only 50 training batches (16 tasks/batch) on the challenging Matérn kernel, standard models collapse into negative target log-likelihoods (CANP: -0.888, TNP: -0.569, DANP: -0.518), whereas CSSDNP keeps them positive or near-zero (CSSDCANP: -0.017, CSSDTNP: 0.124, CSSDDANP: 0.200). With just 100 batches, CSSDNP matches standard training with 1,000 batches.
  • Zero-Shot Domain Shift: Trained on 50 batches of RBF curves and tested zero-shot on Matérn curves, every base model fails severely while every CSSDNP variant maintains positive log-likelihoods.
  • Sim-to-Real Transfer: On real Hudson Bay lynx-hare data (trained on 20 simulated batches), base models produce razor-thin, overconfident intervals with log-likelihoods plunging toward -30, whereas CSSDNP outputs well-calibrated uncertainty bands that accurately bracket real population spikes.
  • Forward vs. Reverse KL: Across all four architectures, forward KL beats reverse KL by 0.124 to 0.248 in target log-likelihood.

Limitations and Future Work

CSSDNP squeezes much more signal out of scarce tasks, comedy miracles aren't on the menu: in extreme data scarcity—such as training on literally a single batch of tasks—CSSDNP still outperforms standard training, but cannot prevent generalization failure. Extending context-asymmetric distillation to survive ultra-scarce, one-batch meta-learning regimes remains an open challenge for future work.

Summary updated

Abstract

Neural processes (NPs) are flexible uncertainty-aware meta-learners, but often fail when meta-training tasks are scarce, losing generalization and collapsing into task memorization. We propose Context-Subset Self-Distillation Neural Processes (CSSDNP), a training framework that trains a student on random context subsets while distilling the full-context predictive distribution of an EMA teacher from the same task. This context-asymmetric objective combines reduced-context predictive learning with forward-KL distillation, enforcing conditional consistency across different context views without architectural or test-time changes. Theoretically, we show that context-subset training learns the reduced-context prediction problem while augmenting each task, and that calibrated full-context distillation preserves the asymptotic Bayes target while improving finite-sample estimation via teacher-guided shrinkage. Empirically, CSSDNP improves robustness and generalization across NP variants and tasks, especially in low-meta-data regimes.
BibTeX
@inproceedings{lee2026improving,
  author = {Hyungi Lee and Jangho Kim},
  title = {{Improving Neural Processes in the Low-Data Regime via Context-Subset Training and Self-Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uieGKHJk47},
}
Figure