🎉 Super stoked to share that our work is accepted to the main conference of ACL 2026!!
See you in sunny San Diego 🌞
#ACL2026#NLProc
Paper thread below 🧵
With all the recent hype around 🪆Matryoshka Representation Learning 🪆(Thanks @OpenAI !), I finally put my longstanding plan of writing a detailed blog about MRL to action
aniketrege.github.io/blog/20…
This blog is NOT a paper walkthrough (see @RitvikRastogi19 for that!)
(1/7)
Really clean + simple video walking through 🪆MRL🪆
(incoming shameless self plug)
For some more background into representation learning and why we created MRL, checkout my blog from earlier this year!
aniketrege.github.io/blog/20…
Matryoshka Representation Learning (MRL) is a super exciting approach to improving the quality and efficiency of embedding models and strategies ✨
MRL allows models to store more information in the earlier dimensions of their data vectors. This method not only boosts performance in tasks like classification and retrieval, but is also a super cool compression technique!
Paper: arxiv.org/pdf/2205.13147
For compression: weaviate.io/blog/openais-mat…
It’s been so much fun learning and making this video with @DanielW966, thanks for all your help!
Super happy to share that I'm joining the @UWMadison CSE #PhD program this Fall, focusing on #MachineLearning and #computervision research. Huge thanks to all my collaborators and mentors (esp. @adityakusupati) for all their help and guidance through this super chaotic process!
Doing an Andhrasian popup delivery lunch with Chef Puja from The Salt&Pepper Story this weekend! We have gone mad and this is the result 😂♥️
Orders can be placed for the dish of your choice up till this Thursday, 27th June 2024. Deliveries will happen on 29th June 2024, this Saturday.
Contact Misha on +91 98452 07778 to place orders or simply DM @/thesaltandpepperstory on IG :)
You can also tweet here and we’ll be in touch.
Video of this talk is up on YouTube!
piped.video/watch?v=IbfdvzPw…
I walk through our Matryoshka Representation Learning 🪆 (MRL) and Adaptive Web-Scale Semantic Search 💃(AdANNS) works
#ml twitter pls feel free to share your thoughts, always happy to chat! 😄
Hi Twitter! I'm giving a talk on the recently popular Matryoshka Representation Learning and followup web-scale semantic search work at @UWMadisonECE MLOPT Seminar
mlopt.ece.wisc.edu/idea-semi…
Time: April 26, 2024, 12:30 PM – 1:30 PM CT
Everyone is welcome to join on Zoom! :D
1/n
Introducing💃AdANNS: A Framework for Adaptive Semantic Search🕺
TL;DR: Up to 90× faster nearest neighbor retrieval and 2× lower memory cost for web-scale search.
Applies to vector search at scale & improves all "retrieval" augmented models!
arxiv.org/abs/2305.19435
[1/8]
Hi Twitter! I'm giving a talk on the recently popular Matryoshka Representation Learning and followup web-scale semantic search work at @UWMadisonECE MLOPT Seminar
mlopt.ece.wisc.edu/idea-semi…
Time: April 26, 2024, 12:30 PM – 1:30 PM CT
Everyone is welcome to join on Zoom! :D
1/n
Well done to the states of Alabama, Georgia, Kentucky, Missouri, and Ohio who have somehow managed to build a time machine to the 1920s: old white men deciding what rights women have over their own bodies #abortionisahumanright
To appear at #iclr 2025!!
I'm excited to talk about how to build generative models that are more representative of the diverse, heterogeneous human values present across global cultures - happy to chat!
Happy to introduce 🤝PAL🤝 , a simple framework for Pluralistic ALignment
Tl;dr: simple and cheap alignment to diverse human preferences for LLMs and text-to-image models
Project Page: pal-alignment.github.io/
Paper: arxiv.org/abs/2406.08469
(1/12)
I LOVE Studio Ghibli films and consider their art and Miyazaki's vision timeless, haunting, thought-provoking, and deeply, uniquely human.
I'm also a PhD student working on text-to-image models.
Join me on a short philosophical journey as I break down my inner conflict
🧵 1/n
Training text-to-image models?
Want your models to represent cultures across the globe but don't know how to systematically evaluate them?
Introducing ⚕️CuRe⚕️ a new benchmark and scoring suite for cultural representativeness through the lens of information gain
(1/10)
Training text-to-image models?
Want your models to represent cultures across the globe but don't know how to systematically evaluate them?
Introducing ⚕️CuRe⚕️ a new benchmark and scoring suite for cultural representativeness through the lens of information gain
(1/10)
For anyone who is interested in 🪆 Matryoshka embeddings 🪆, I'll be presenting our follow-up work on adaptive semantic search (NeurIPS '23) next week at the @_superAGI Leap Summit! 😄
Paper: arxiv.org/abs/2305.19435
Teaser from my blog: aniketrege.github.io/blog/20…
Had a fantastic time at #CVPR2025 and my spotlight talk on culturally representative T2I models at the DemoDiv workshop was definitely the highlight
Thanks @polkirichenko and all the organizers, attendees and panelists for a super engaging & thought provoking workshop!
Omgggg I got another TA'ship for the winter quarter at @UW 😭😭😭
Idk who is blessing me with all this luck but thank you I can continue to recklessly drop $75 each time I hit up Trader Joe's for another 3 months
As #DeepLearning models become more widely used, it is increasingly important that they be both robust and efficient. Today we summarize some of our many efforts to improve #ML efficiency through algorithms research. → goo.gle/3I6asCj
Introducting🪆Matryoshka Representations for Adaptive Deployment🪆
TL;DR: up to 14× lower real-world classification & retrival costs at web-scale at no loss in accuracy & w/o any overhead across setups.
Paper: arxiv.org/abs/2205.13147
Code: github.com/RAIVNLab/MRL
[1/11]
Happy to introduce 🤝PAL🤝 , a simple framework for Pluralistic ALignment
Tl;dr: simple and cheap alignment to diverse human preferences for LLMs and text-to-image models
Project Page: pal-alignment.github.io/
Paper: arxiv.org/abs/2406.08469
(1/12)
Super cool use-case of MRL by @vespaengine - shortlist with small embeddings and rerank with large embeddings!
MRL means the small embedding is just a slice of the large one - no need for any bells and whistles!
For people who read in code:
x_small = x_large [:k]
I’m excited to share this comprehensive exploration of OpenAI’s Matryoshka 🪆embeddings and how to make the most out of them with Vespa by @andreer!
It's great to see another use case for Vespa’s phased retrieval and ranking support.
blog.vespa.ai/matryoshka-emb…
I and @BhattGantavya will be presenting and talking about MRL tomorrow with @latentspacepod 😁
Register if you'd like to discuss + chat flexible representation learning / vector search!
We r so back lol - pretty phenomenal lineup this week for the @latentspacepod discord's paper club
We've got @wregss and @BhattGantavya presenting on their paper Matryoshka Representation Learning which Open AI uses under the hood for their new embedding model
We've got @aimuggle presenting on representation learning and how to control LLMs with just feature vectors
It's been one week of grad school and man has it kicked my ass so far! Feels super weird to be doing homework (how old am I again) but alsoooo overall it's been super nice? Idk, thoughts
Yet another piece of the puzzle 🧩
Simple and elegant follow up to our previous MRL🪆 work - 100s of transformers for free with mix n match routing for truly elastic deployment!
Shameless plug: for more on elastic search, also check out our work AdANNS💃 at NeurIPS '23
Announcing MatFormer - a nested🪆(Matryoshka) Transformer that offers elasticity across deployment constraints.
MatFormer is an architecture that lets us use 100s of accurate smaller models that we never actually trained for!
arxiv.org/abs/2310.07707 1/9
Just realised I've been listening to my ipad in this flight with ear plugs+speakers instead of airpods for the last 45 minutes... hope everyone enjoys jujutsu kaisen
Want to align LLMs and text-to-image models to heterogeneous preferences?
Check out our #ICLR2025 paper on learning personalizable rewards (PAL) in a sample efficient way.
iclr.cc/virtual/2025/poster/…
When: Friday Apr 25th from 10 am
Where: Hall 3 + Hall 2B #196, Poster Session 3
(1/n) Inspired by @abolijoshi and my own boredom, here are some of my culinary experiments during this period of self-isolation.
First up, this classic cheesecake (Tasty) generously topped with sea salt caramel! [Mar 14]
If interested, pls suggest things you'd like to see!
More visualizations helping me understand my own paper 🤪 amazing work @ZainHasan6 !
When creating MRL, we thought about the marginal utility of increasing dims (e.g. what really changes if we jump from 64-d to 128-d? How much additional information do we get?)
(1/n)
How does the underlying data representation change as you use more and more dimensions of a Matryoshka embedding?
Below every frame is a 3d vector space that was generated using PCA on up to only a certain number of MRL vector dimensions.
Took 10k random samples from DBpedia stored in @weaviate and embedded using the openai text-embed-3-large model and then reduced them down to 2d space using PCA; started off using only 4-dims all the way up to using all 3072-dims.
You can see that by the time we get to using 512 dims, the data structure is already defined, after this dims 513+ are mainly used to tighten data representation inside the larger structure.
By the time we get to dims 2000+ we only see small jittering of the data points, probably because the contributions of the incremental dimensions are negligible and can't be seen in the first 3 principal components.
Put a batch of brownies in a preheated oven, and the mains went just as I turned the knob to 30 min and I tripped the entire house. hows your day going
Today I made this bomb ass beef bulgogi and I surprised myself by taking a feels trip back to my 2019 trip 😭
맛있게 드세요
mas-issge deuseyo!
And also mashed potatoes because why not
My personal favorite from this year so far:
The rebuttal has addressed most of my concerns, but I acknowledge other reviewers concerns and maintain my score 🫠
Hello to all I made this Tres Leches with dulce de Leche and fresh berries and it tasted a lot better than it looked which was still pretty good imo that'll be all have a nice day
Returning to Bangalore after 10 days in Paris, Helsinki, Tallinn and London, the trip hangover is reaaaal. But BJP lost in Delhi so I'M HAPPY huehuehue
You can now use MRL embeddings🪆in Sentence Transformers ft @tomaarsen , @osanseviero and @xenovacom !!
This is a really nice blog walking through how to use the flexibility of Matryoshka embeddings for similarity search 😁
More info here: aniketrege.github.io/blog/20…
🔥Sentence Transformers v2.4.0 is released! It introduces Matryoshka Embedding models (training & inference), 2 new state-of-the-art loss functions, prompt templates, instructor model support & more. See the🧵
Observations in Korea (Week 1)
- Koreans are extremely polite, nice, respectful
- Everyone loves coffee, and drinks 1 of exactly 4 types: vanilla/hazelnut latte, cafe mocha, or caramel machiatto
- small dogs in purses everywhere
- autumn is gorgeous af
Amazing work @cohere !!
I didn't see it mentioned in the blog post, but super happy to see that Embed 4, like OpenAI's text-embedding-3, provides flexible elastic embeddings with MRL🪆
What does this mean for users?
I wrote a blog discussing it!
aniketrege.github.io/blog/20…
Introducing Embed 4: our latest state-of-the-art multimodal embedding model that enables enterprises to securely add powerful search and retrieval capabilities to their agentic AI applications!
Note to self for next pandemic, stock up on 2 Parm blocks, 1L olive oil, 10x200g fresh coffee beans packed in the freezer, 10 cans of condensed milk, 5L of heavy cream, maintain a basil plant, somehow grow a vanilla bean forest, BUY A KITCHEN SCALE
Aditya is an amazing researcher, teacher and mentor, and I've been incredibly lucky to work with him!
He has an uncanny knack of thinking about impactful and practical research problems, so keep an eye out for his application 👨🎓
📢📢At the last minute, I decided to go on the job market this year!!!
Grateful for RTs & promotion at your univ.😇
CV & Statements: adityakusupati.com
Will be at #NeurIPS2023! presenting AdANNS, Priming, Objaverse & MADLAD. DM if you are around, would love to catch up👋
Inspired by @ShibaniSan, @tatsu_hashimoto et al. [ICML, 23'], we ask: whose preferences or opinions should foundation models align to?
Status quo reward modeling (Bradley-Terry) assumes everyone shares one, homogeneous preference.
But humans are diverse!
🧵
Thanks for the share and pointer @ZhaiAndrew ! We have had lots of belief in Matryoshka embeddings🪆 being flexible for web-scale retrieval (pick your budget!) and happy that @OpenAI seems to agree with us :)
Super excited for my first @NeurIPSConf !! Presenting my joint first author paper🪆on 11/29, Hall J #640 at 11 am! If you are hiring #PhD students in computer vision & large scale representation learning, I would love to chat and talk research (I’m here all week!) #NeurIPS2022
Introducting🪆Matryoshka Representations for Adaptive Deployment🪆
TL;DR: up to 14× lower real-world classification & retrival costs at web-scale at no loss in accuracy & w/o any overhead across setups.
Paper: arxiv.org/abs/2205.13147
Code: github.com/RAIVNLab/MRL
[1/11]
So I've been back from Korea for the last hour, here are my thoughts
- Four weeks behind on observations series thread thing
- I got used to the cold and now 18 degrees feels way too hot
- Ready to eat some waran bhaat and join CAA-NRC repeal protests
Fantastic work extending Matryoshka loss to integer precision of model weights !! I am shocked at how well this does even at extreme (2bit) compression 🤯strong interpolation performance just like OG MRL (in fp32 embedding space) - big implications for retrieval!
Announcing Matryoshka Quantization! A single Transformer can now be served at any integer precision!! In addition, our (sliced) int2 models outperform the baseline by 10%. Work co-led w/ @puranjay1412, in colab w/ @JeffDean, @jainprateek_ & @adityakusupati.
1/7
I made the mistake (?) of listening to YouTube's recommended Boy with Luv by BTS a few times (dammit it's catchy af) and now all my social media feeds are overrun. What have I done
We did quite a bit of work on showing how MRL works *super* well for both primary building blocks of vector search at scale (ANNS)
arxiv.org/abs/2305.19435
A short thread 🧵
1/n
🪆embeddings play very well with quantization!
MRL and quantization are complementary and user need not just pick one (a common misconception)!
See more in arxiv.org/abs/2305.19435
cc: @wregss
Observations in Korea (Week 2)
- Halloween (or maybe just Itaewon?) is lit af
- Palaces and mountains are everywhere and fun to trek around
- street food (pork BBQ, bulgogi, etc.) is to die for
- its v easy to blow $100 shopping for cute things (lookin at u Daiso)
Dear ML twitter,
@wregss, a master's student at UW ECE had his @NeurIPSConf grant application denied.
Does anyone have a complimentary registration that could be transferred to him? He will be applying for PhD this cycle & is terrific at getting things to work!! Thanks.
Observations in Korea (Week 3)
- I think I'm in love with Bulgogi
- chopsticks skills are now 3/5
- Korean Karaoke is an absolute blast, courtesy @dosasndiamonds and friends!
- coffee is still to die for
- People are actually reading this thread :')