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.
Low Cost, High Efficiency: LiDAR Place Recognition in Vineyards with Matryoshka Representation Learning
University Institute for Engineering Research, Miguel Hernández University(工程研究院,米格尔·赫尔内亚大学);Department of Electronics and Communications, Politecnico di Torino(电子与通信系,托里诺理工学院)
Uncovering Neural Scaling Laws in Molecular Representation Learning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of California, Los Angeles(加州大学洛杉矶分校);University of Washington(华盛顿大学);Cornell University(康奈尔大学);The Chinese University of Hong Kong(香港中文大学)
MolCAP: Molecular Chemical reActivity pretraining and prompted-finetuning enhanced molecular representation learning
School of Software, Shandong University(山东大学软件学院);Joint SDU-NTU Centre for Artificial Intelligence Research (C-FAIR), Shandong University(山东大学联合SDU-NTU人工智能研究中心(C-FAIR))
Contextual Molecule Representation Learning from Chemical Reaction Knowledge
Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院);University of Copenhagen(哥本哈根大学);Academy of Mathematics and Systems Science, Chinese Academy of Sciences(中国科学院数学与系统科学研究院)
GlycoNMR: Dataset and benchmarks for NMR chemical shift prediction of carbohydrates with graph neural networks
Brandeis University(布兰迪斯大学);Harvard Medical School(哈佛医学院);Kempner Institute for the Study of Natural Artificial Intelligence(坎普纳自然与人工智能研究所);Harvard University(哈佛大学);Complex Carbohydrate Research Center(复合碳水化合物研究中心);University of Georgia(佐治亚大学)