arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.01105stat.MLcs.LG
收藏

大图像下的内存高效元学习

Memory Efficient Meta-Learning with Large Images

University of Cambridge(剑桥大学);Microsoft Research(微软研究院)

John Bronskill, Daniela Massiceti, Massimiliano Patacchiola, Katja Hofmann, Sebastian Nowozin, Richard E. Turner

AI总结:

针对大图像元训练内存瓶颈,提出LITE方案,通过梯度分解与随机子集反向传播实现单GPU高效训练,并在ORBIT及VTAB+MD基准上达到领先精度。

摘要:

元学习方法在测试时计算效率高,只需几步优化或单次前向传播即可学习新任务,但其训练过程仍然高度消耗内存。这一限制源于一个任务的全部支持集(可能包含多达1000张图像)必须在执行优化步骤之前被处理。因此,利用大图像带来的性能提升,要么需要将元学习器并行化到多个GPU上(这可能不可用),要么在内存受限时在任务大小和图像大小之间进行权衡。我们通过提出LITE来改进这两种方案,LITE是一种通用且内存高效的 episodic 训练方案,能够在单个GPU上对由大图像组成的大型任务进行元训练。我们通过观察到任务的梯度可以分解为该任务训练图像上梯度的总和来实现这一点。这使我们能够对任务的整个训练集执行前向传播,但仅通过反向传播这些图像的随机子集来实现显著的内存节省,我们证明这是对完整梯度的无偏近似。我们使用LITE训练元学习器,并在真实的ORBIT基准测试和具有挑战性的VTAB+MD基准测试的4个部分中的3个部分上,相对于领先的元学习器展示了新的最先进准确率。LITE还使元学习器能够与迁移学习方法竞争,但测试时计算成本仅为后者的一小部分,从而对最近“迁移学习就是少样本分类所需的一切”的说法提出了反驳。

英文摘要:

Meta learning approaches to few-shot classification are computationally efficient at test time, requiring just a few optimization steps or single forward pass to learn a new task, but they remain highly memory-intensive to train. This limitation arises because a task's entire support set, which can contain up to 1000 images, must be processed before an optimization step can be taken. Harnessing the performance gains offered by large images thus requires either parallelizing the meta-learner across multiple GPUs, which may not be available, or trade-offs between task and image size when memory constraints apply. We improve on both options by proposing LITE, a general and memory efficient episodic training scheme that enables meta-training on large tasks composed of large images on a single GPU. We achieve this by observing that the gradients for a task can be decomposed into a sum of gradients over the task's training images. This enables us to perform a forward pass on a task's entire training set but realize significant memory savings by back-propagating only a random subset of these images which we show is an unbiased approximation of the full gradient. We use LITE to train meta-learners and demonstrate new state-of-the-art accuracy on the real-world ORBIT benchmark and 3 of the 4 parts of the challenging VTAB+MD benchmark relative to leading meta-learners. LITE also enables meta-learners to be competitive with transfer learning approaches but at a fraction of the test-time computational cost, thus serving as a counterpoint to the recent narrative that transfer learning is all you need for few-shot classification.

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

↑