arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.09702cs.LG
收藏

一种用于深度少样本元学习的分层贝叶斯模型

A Hierarchical Bayesian Model for Deep Few-Shot Meta Learning

Samsung AI Center(三星人工智能中心);University of Edinburgh(爱丁堡大学)

Minyoung Kim, Timothy Hospedales

AI总结:

针对少样本元学习的大量任务场景,提出带全局-局部分层结构的Normal-Inverse-Wishart贝叶斯模型,通过局部后验近似闭式解实现一次性情节优化,无需维护每情节完整计算图,优于MAML及现有单变量贝叶斯元学习方法。

摘要:

我们提出了一种新颖的分层贝叶斯模型,用于处理包含大量(可能无限多)任务/情节的学习场景,非常适配少样本元学习问题。我们引入逐情节的随机变量来建模特定于情节的目标生成过程,这些局部随机变量由更高层级的全局随机变量调控。该全局变量有助于记忆历史情节中的重要信息,同时以严谨的贝叶斯方式控制模型对新情节的适配程度。在我们的模型框架内,对新情节/任务的预测可被视为一个贝叶斯推理问题。然而,在以在线方式处理大量/无限多局部随机变量的学习中,一个主要障碍是无法像传统变分推理中常见的那样,存储当前局部随机变量的后验分布以供频繁的未来更新。我们需要能够将每个局部变量视为优化过程中的一次性迭代项。我们提出了一种Normal-Inverse-Wishart(正态逆威沙特)模型,并证明由于局部后验分布存在近似闭式解,这种一次性迭代优化是可行的。所得算法相比MAML(模型无关元学习)更具优势,因为它无需为每个情节的整个梯度优化步骤维护计算图。我们的方法也不同于现有的贝叶斯元学习方法:现有方法通常为所有情节处理单个随机变量,而我们的方法具有分层结构,支持一次性情节优化,这对于处理大量/无限任务的严谨贝叶斯学习而言是理想的特性。代码可在https://github.com/minyoungkim21/niwmeta 获取。

英文摘要:

We propose a novel hierarchical Bayesian model for learning with a large (possibly infinite) number of tasks/episodes, which suits well the few-shot meta learning problem. We consider episode-wise random variables to model episode-specific target generative processes, where these local random variables are governed by a higher-level global random variate. The global variable helps memorize the important information from historic episodes while controlling how much the model needs to be adapted to new episodes in a principled Bayesian manner. Within our model framework, the prediction on a novel episode/task can be seen as a Bayesian inference problem. However, a main obstacle in learning with a large/infinite number of local random variables in online nature, is that one is not allowed to store the posterior distribution of the current local random variable for frequent future updates, typical in conventional variational inference. We need to be able to treat each local variable as a one-time iterate in the optimization. We propose a Normal-Inverse-Wishart model, for which we show that this one-time iterate optimization becomes feasible due to the approximate closed-form solutions for the local posterior distributions. The resulting algorithm is more attractive than the MAML in that it is not required to maintain computational graphs for the whole gradient optimization steps per episode. Our approach is also different from existing Bayesian meta learning methods in that unlike dealing with a single random variable for the whole episodes, our approach has a hierarchical structure that allows one-time episodic optimization, desirable for principled Bayesian learning with many/infinite tasks. The code is available at \url{https://github.com/minyoungkim21/niwmeta}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑