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

TL;DR
Matryoshka Representation Learning (MRL) creates adaptable, multi-granularity embeddings that optimize for various downstream tasks without extra inference costs, improving efficiency and accuracy across multiple datasets and modalities.
Contribution
MRL introduces a flexible, coarse-to-fine representation learning method that adapts to different computational constraints without additional inference costs.
Findings
Up to 14x smaller embeddings with maintained accuracy.
Up to 14x speed-ups in large-scale retrieval tasks.
2% accuracy improvements in long-tail few-shot classification.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗nomic-ai/nomic-embed-text-v1.5model· 10.4M dl· ♡ 78710.4M dl♡ 787
- 🤗nomic-ai/nomic-embed-text-v2-moemodel· 1.5M dl· ♡ 4641.5M dl♡ 464
- 🤗sentence-transformers/static-retrieval-mrl-en-v1model· ♡ 56♡ 56
- 🤗sentence-transformers/static-similarity-mrl-multilingual-v1model· ♡ 76♡ 76
- 🤗huyydangg/DEk21_hcmute_embeddingmodel· 202k dl· ♡ 34202k dl♡ 34
- 🤗dwb2023/artic-embed-sw-ft-12979a9b-5e10-426a-a140-66385a68406cmodel· 4 dl· ♡ 14 dl♡ 1
- 🤗MongoDB/mdbr-leaf-mtmodel· 19k dl· ♡ 2619k dl♡ 26
- 🤗MongoDB/mdbr-leaf-mt-asymmodel· ♡ 6♡ 6
- 🤗tomaarsen/qwen3-vl-2b-vdrmodel· 19 dl· ♡ 119 dl♡ 1
- 🤗kietnt0603/nrk-legal-smallmodel· ♡ 1♡ 1
Videos
Taxonomy
TopicsDomain Adaptation and Few-Shot Learning · Multimodal Machine Learning Applications · COVID-19 diagnosis using AI
