[Paper Review] Learning to Learn Kernels with Variational Random Features
This paper proposes MetaVRF, a meta-learning framework that uses variational inference to learn adaptive random Fourier features for kernel methods in few-shot learning. By modeling the spectral distribution of random features as a latent variable and leveraging an LSTM-based inference network to distill shared knowledge across tasks, MetaVRF achieves high-performance kernels with low sampling rates, enabling fast adaptation to new tasks.
In this work, we introduce kernels with random Fourier features in the meta-learning framework to leverage their strong few-shot learning ability. We propose meta variational random features (MetaVRF) to learn adaptive kernels for the base-learner, which is developed in a latent variable model by treating the random feature basis as the latent variable. We formulate the optimization of MetaVRF as a variational inference problem by deriving an evidence lower bound under the meta-learning framework. To incorporate shared knowledge from related tasks, we propose a context inference of the posterior, which is established by an LSTM architecture. The LSTM-based inference network can effectively integrate the context information of previous tasks with task-specific information, generating informative and adaptive features. The learned MetaVRF can produce kernels of high representational power with a relatively low spectral sampling rate and also enables fast adaptation to new tasks. Experimental results on a variety of few-shot regression and classification tasks demonstrate that MetaVRF delivers much better, or at least competitive, performance compared to existing meta-learning alternatives.
Motivation & Objective
- To address the challenge of learning informative and discriminative kernels in few-shot learning, where data scarcity limits kernel quality.
- To integrate kernel learning with meta-learning by treating random Fourier feature bases as latent variables.
- To enable fast adaptation to new tasks by leveraging shared knowledge from related tasks through a structured inference mechanism.
- To reduce the spectral sampling rate required for effective kernel approximation while maintaining high representational power.
- To develop a flexible, end-to-end framework that generalizes across diverse few-shot learning settings, including inconsistent training and test conditions.
Proposed method
- Formulates kernel learning in meta-learning as a variational inference problem, treating the random Fourier feature basis as a latent variable.
- Derives a novel evidence lower bound (ELBO) for meta-learning, enabling principled optimization of the spectral distribution of random features.
- Introduces an LSTM-based inference network to model the posterior over the spectral distribution, combining task-specific support set information with context from prior tasks.
- Uses the LSTM’s hidden state to accumulate and refine shared meta-knowledge across episodes, enabling long-term dependency modeling.
- Employs a bi-directional LSTM variant to further improve context integration and feature representation quality.
- Enables efficient kernel approximation by learning task-adaptive spectral distributions with low sampling rates (D), reducing computational cost.
Experimental results
Research questions
- RQ1Can variational inference be effectively applied to learn adaptive random Fourier features within a meta-learning framework for few-shot learning?
- RQ2How can shared knowledge from multiple related tasks be leveraged to improve kernel quality and generalization in low-data regimes?
- RQ3To what extent can an LSTM-based inference network enhance the representational power of random features by integrating context from prior tasks?
- RQ4Does MetaVRF achieve competitive or superior performance compared to existing meta-learning methods, especially under low sampling rates?
- RQ5Can MetaVRF generalize effectively to diverse few-shot settings with inconsistent training and test conditions (e.g., different numbers of ways or shots)?
Key findings
- MetaVRF with a bi-LSTM achieves 63.80% accuracy on the 5-way 1-shot mini-ImageNet benchmark, outperforming prior methods like LEO (61.76%) and SNAIL (55.71%).
- On the 5-way 5-shot setting, MetaVRF with bi-LSTM reaches 77.97% accuracy, surpassing the performance of regular RFFs even with significantly fewer bases.
- MetaVRF maintains strong performance under low spectral sampling rates: it outperforms standard RFFs with the same number of bases, demonstrating high efficiency.
- The model generalizes robustly to challenging test conditions, achieving 94% accuracy on a 100-way classification task when trained on a 20-way-5-shot task.
- MetaVRF with pre-trained WRN-28-10 embeddings achieves state-of-the-art performance on mini-ImageNet, confirming its compatibility with deep feature extractors.
- Ablation studies show that the LSTM-based context inference is critical—MetaVRF without LSTM underperforms, and the bi-LSTM variant yields the best results.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.