[Paper Review] Learning to Learn Variational Semantic Memory
This paper proposes variational semantic memory (VSM), a long-term external memory module that learns to accumulate and retrieve probabilistic semantic knowledge from past tasks in a hierarchical Bayesian framework. By formulating memory recall as variational inference over a latent memory variable, VSM enables principled, task-adaptive retrieval of semantic prototypes, achieving state-of-the-art performance across four few-shot learning benchmarks by modeling prototypes as distributions rather than deterministic vectors.
In this paper, we introduce variational semantic memory into meta-learning to acquire long-term knowledge for few-shot learning. The variational semantic memory accrues and stores semantic information for the probabilistic inference of class prototypes in a hierarchical Bayesian framework. The semantic memory is grown from scratch and gradually consolidated by absorbing information from tasks it experiences. By doing so, it is able to accumulate long-term, general knowledge that enables it to learn new concepts of objects. We formulate memory recall as the variational inference of a latent memory variable from addressed contents, which offers a principled way to adapt the knowledge to individual tasks. Our variational semantic memory, as a new long-term memory module, confers principled recall and update mechanisms that enable semantic information to be efficiently accrued and adapted for few-shot learning. Experiments demonstrate that the probabilistic modelling of prototypes achieves a more informative representation of object classes compared to deterministic vectors. The consistent new state-of-the-art performance on four benchmarks shows the benefit of variational semantic memory in boosting few-shot recognition.
Motivation & Objective
- To address the limitation of short-term memory in few-shot meta-learning by introducing a long-term memory module that accumulates general semantic knowledge.
- To improve few-shot recognition by modeling class prototypes as probabilistic distributions rather than deterministic vectors, enabling more informative representations.
- To provide a principled mechanism for memory recall and update through variational inference in a hierarchical Bayesian framework.
- To enable efficient and adaptive knowledge transfer to new tasks by retrieving contextually relevant semantic information from consolidated memory.
- To demonstrate that long-term semantic memory enhances few-shot learning performance across diverse benchmarks.
Proposed method
- The method introduces a variational semantic memory (VSM) module that stores semantic summaries of object categories as probabilistic embeddings, learned from feature representations of support sets across tasks.
- Memory recall is formulated as variational inference of a latent memory variable, allowing the model to retrieve relevant semantic knowledge tailored to each task's input.
- The model uses an attention mechanism to dynamically attend to relevant memory entries during inference, enabling adaptive retrieval based on query content.
- The entire system is trained end-to-end via hierarchical variational inference, jointly optimizing memory recall, prototype inference, and model parameters in a Bayesian framework.
- The memory is incrementally updated and consolidated over time, allowing long-term knowledge accumulation without catastrophic forgetting.
- Prototypes are modeled as distributions (e.g., Gaussian) rather than fixed vectors, improving representational capacity and robustness in low-shot regimes.
Experimental results
Research questions
- RQ1Can a long-term memory module that accumulates semantic knowledge from past tasks improve few-shot learning performance?
- RQ2How can memory recall be made principled and adaptive to individual tasks in a meta-learning setting?
- RQ3Does modeling class prototypes as probabilistic distributions lead to better generalization than deterministic vectors in few-shot learning?
- RQ4Can variational inference over a latent memory variable enable effective and efficient retrieval of relevant semantic knowledge?
- RQ5How does the proposed variational semantic memory compare to existing short-term memory mechanisms in terms of generalization and scalability?
Key findings
- The proposed variational semantic memory (VSM) achieves state-of-the-art performance on all four benchmark datasets: miniImageNet, tieredImageNet, CIFAR-FS, and FC100.
- On miniImageNet (5-way 1-shot), VSM achieves 65.72% accuracy, surpassing the previous SOTA (Tian et al. [70]) by 0.90% using a deep feature extractor.
- On tieredImageNet (5-way 1-shot), VSM achieves 72.01% accuracy, outperforming the second-best method (Tian et al. [70]) by 0.49%.
- On CIFAR-FS (5-way 1-shot), VSM achieves 63.42% accuracy, exceeding the second-best method (R2D2) by 1.12%.
- The use of probabilistic prototypes in VSM leads to more informative and robust class representations compared to deterministic vectors.
- The ablation study confirms that the hierarchical variational inference mechanism and memory consolidation process are essential for the model's performance gains.
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.