Meta-Learning Neural Procedural Biases

Christian Raymond, Qi Chen, Bing Xue, Mengjie Zhang · Submission to ICLR 2025 · Rejected

TL;DR

Neural Procedural Bias Meta-Learning (NPBML) unifies gradient-based few-shot learning by simultaneously meta-learning a network’s parameter initialization, optimizer, and loss function, while dynamically adapting all three to individual tasks via feature-wise modulation. By jointly optimizing these core procedural biases, NPBML significantly outperforms prior Model-Agnostic Meta-Learning (MAML) variants across standard benchmarks without requiring test-time model ensembling.

What Problem Does This Paper Address?

In few-shot learning, models must adapt to new tasks using only a handful of labeled training examples. Standard gradient-based approaches like MAML optimize a shared parameter initialization during an outer meta-training loop, but leave the inner task-adaptation process rigid—relying on standard Stochastic Gradient Descent (SGD) with a fixed loss function (such as cross-entropy) and a fixed learning rate.

While subsequent works developed meta-learned optimizers (e.g., preconditioned gradient descent) or meta-learned loss functions in isolation, they generally treat them as disconnected problems and enforce identical update rules across all tasks. This paper addresses the gap by asking: Can we learn an end-to-end, task-adaptive inner learning algorithm where the starting point, the loss geometry, and the optimization trajectory are all meta-learned and specialized per task?

Methods

NPBML targets the three pillars of procedural inductive biases—the mechanisms determining how an algorithm traverses parameter space:

[Initialization θ]  -->  Starting point in loss landscape
[Loss Function M_ϕ] -->  Defines local loss geometry & gradients
[Optimizer P_ω]     -->  Warps gradient descent update trajectory
         \                       /
          +-- [FiLM Modulation] --+ (Task-Adaptive Conditioning)
  1. Meta-Learned Optimizer ($P_\omega$): Building on preconditioned gradient descent (inspired by T-Nets), linear projection layers $\omega$ are interleaved between encoder layers. In the inner loop, these act as a block-diagonal preconditioning matrix $(\omega\omega^T)$ that rescales parameter space gradients.
  2. Meta-Learned Loss Function ($M_\phi$): Rather than standard cross-entropy, the inner loop minimizes a parameterized objective composed of three components:
  3. An inductive loss ($\mathcal{L}^S$) conditioned on support-set predictions, labels, and base error.
  4. A transductive loss ($\mathcal{L}^Q$) conditioning query-set predictions against relational embeddings from a pre-trained relation network.
  5. A weight regularizer ($R$) tracking layer-wise weight statistics (mean, standard deviation, $L_1$, and $L_2$ norms).
  6. Task-Adaptive Modulation ($\text{FiLM}_\psi$): To prevent one-size-fits-all optimization, Feature-wise Linear Modulation (FiLM) layers scale and shift activations within both the feature encoder and the loss networks, specializing them to each task's distribution.
  7. Stable Initialization & Modular Training: To prevent meta-training instability, $\omega$ is initialized to identity matrices, and loss/modulation networks are initialized near zero to recover standard MAML at step zero. Additionally, following prior feature-reuse findings, only the final network module is modified and adapted, freezing earlier layers to reduce memory overhead.

Datasets

The authors evaluate NPBML on four standard few-shot image classification benchmarks under 5-way 1-shot and 5-way 5-shot episodic settings, across both 4-layer convolutional networks (4-CONV) and ResNet-12 backbones:

  • mini-ImageNet: 100 classes randomly sampled from ImageNet (64 train / 16 val / 20 test).
  • tiered-ImageNet: 608 classes grouped into hierarchical categories (34 high-level categories split into 20 train / 6 val / 8 test).
  • CIFAR-FS: 100 classes derived from CIFAR-100 with random class splits (60 train / 20 val / 20 test).
  • FC-100: 100 classes from CIFAR-100 split by superclasses (12 train / 4 val / 4 test) to create greater domain shift between meta-splits.

Key Insights and Ideas

  • Implicit Meta-Learning: The authors prove that learning the loss function and preconditioner simultaneously implicitly learns several other common meta-learning hyperparameters. A flexible loss function implicitly adjusts scalar learning rates, step schedules, and label-smoothing regularizers, while block-diagonal preconditioning implicitly tunes layer-wise learning rates.
  • Orthogonal Synergy: Ablations reveal that learned optimizers (+2.09% accuracy on mini-ImageNet 5-shot) and learned loss functions (+6.37%) provide complementary improvements. Combining them along with FiLM modulation yields a cumulative +9.63% boost over standard MAML.
  • Shared Capacity Without Ensembles: Prior top-performing methods (such as MeTAL and ALFA) relied on ensembling the top 3–5 models from training runs to achieve their scores. NPBML outperforms them as a single model.

Key Results

NPBML consistently outperforms existing gradient-based meta-learning baselines across benchmarks:

  • tiered-ImageNet (ResNet-12):
  • 1-shot: 72.22% (vs. ALFA's 64.62% and MeTAL's 63.89%)
  • 5-shot: 85.41% (vs. ALFA's 82.48% and ModGrad's 81.17%)
  • mini-ImageNet (4-CONV):
  • 1-shot: 57.49% (vs. GAP's 54.86% and SCA's 54.84%)
  • 5-shot: 75.01% (vs. SCA's 71.85% and ALFA's 69.12%)
  • CIFAR-FS & FC-100 (ResNet-12):
  • Achieves 69.30% (1-shot) / 83.72% (5-shot) on CIFAR-FS.
  • Achieves 43.63% (1-shot) / 59.85% (5-shot) on the challenging FC-100 benchmark.

Limitations and Future Work

  • Meta-Overfitting on Small Datasets: On smaller datasets (e.g., mini-ImageNet and CIFAR derivatives) paired with expressive backbones like ResNet-12, the high parameter count of the combined meta-learned components caused meta-overfitting, requiring increased pre-training weight decay.
  • Simple Preconditioner Form: The current formulation relies on a relatively basic T-Net style linear projection. Incorporating non-linear or lower-rank curvature approximations (e.g., WarpGrad or ModGrad) remains unexplored.
  • Scope: The evaluation is currently restricted to standard few-shot computer vision tasks. The authors suggest extending task-adaptive procedural biases to cross-domain few-shot learning and continual learning.

Summary updated

BibTeX
@misc{raymond2024meta,
  author = {Christian Raymond and Qi Chen and Bing XUE and Mengjie Zhang},
  title = {{Meta-Learning Neural Procedural Biases}},
  year = {2024},
  eprint = {2406.07983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.07983},
}
Figure