arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2205.13147cs.LGcs.CV
收藏

Matryoshka表示学习

Matryoshka Representation Learning

University of Washington(华盛顿大学);Google Research(谷歌研究院);Harvard University(哈佛大学)

Aditya Kusupati, Gantavya Bhatt, Aniket Rege, Matthew Wallingford, Aditya Sinha, Vivek Ramanujan, William Howard-Snyder, Kaifeng Chen, Sham Kakade, Prateek Jain, Ali Farhadi

AI总结:

本文提出Matryoshka表示学习(MRL),通过编码多粒度信息使单个嵌入适应不同计算约束,实现更小嵌入、更快检索和更高少样本准确率,且兼容多种模态。

摘要:

学习到的表示是现代机器学习系统中的核心组成部分,服务于众多下游任务。在训练此类表示时,通常每个下游任务的计算和统计约束是未知的。在这种背景下,刚性、固定容量的表示可能对当前任务而言要么过度适应,要么适应不足。这引出了我们的问题:我们能否设计一种灵活的表示,能够适应具有不同计算资源的多个下游任务?我们的主要贡献是Matryoshka表示学习(MRL),它编码不同粒度的信息,并允许单个嵌入适应下游任务的计算约束。MRL最小程度地修改现有的表示学习流程,并且在推理和部署期间不增加额外成本。MRL学习从粗到细的表示,这些表示至少与独立训练的低维表示一样准确和丰富。学习到的Matryoshka表示中的灵活性提供:(a)在相同准确度水平下,ImageNet-1K分类的嵌入大小最多可减小14倍;(b)在ImageNet-1K和4K上的大规模检索可实现高达14倍的实际速度提升;(c)长尾少样本分类的准确度提升高达2%,同时与原始表示一样稳健。最后,我们展示了MRL可以无缝扩展到各种模态的网络规模数据集(ImageNet、JFT)——视觉(ViT、ResNet)、视觉+语言(ALIGN)和语言(BERT)。MRL代码和预训练模型已在https://github.com/RAIVNLab/MRL开源。

英文摘要:

Learned representations are a central component in modern ML systems, serving a multitude of downstream tasks. When training such representations, it is often the case that computational and statistical constraints for each downstream task are unknown. In this context rigid, fixed capacity representations can be either over or under-accommodating to the task at hand. This leads us to ask: can we design a flexible representation that can adapt to multiple downstream tasks with varying computational resources? Our main contribution is Matryoshka Representation Learning (MRL) which encodes information at different granularities and allows a single embedding to adapt to the computational constraints of downstream tasks. MRL minimally modifies existing representation learning pipelines and imposes no additional cost during inference and deployment. MRL learns coarse-to-fine representations that are at least as accurate and rich as independently trained low-dimensional representations. The flexibility within the learned Matryoshka Representations offer: (a) up to 14x smaller embedding size for ImageNet-1K classification at the same level of accuracy; (b) up to 14x real-world speed-ups for large-scale retrieval on ImageNet-1K and 4K; and (c) up to 2% accuracy improvements for long-tail few-shot classification, all while being as robust as the original representations. Finally, we show that MRL extends seamlessly to web-scale datasets (ImageNet, JFT) across various modalities -- vision (ViT, ResNet), vision + language (ALIGN) and language (BERT). MRL code and pretrained models are open-sourced at https://github.com/RAIVNLab/MRL.

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

↑