Share from 0:00
0:00
/

Paper Title: "2D Matryoshka Training for Information Retrieval"

Generated the podcast on this paper with Google's Illuminate.

Paper - https://arxiv.org/abs/2411.17299

Train once, embed anywhere: 2D Matryoshka lets models generate flexible-sized embeddings from any layer.

2D Matryoshka Training enables models to generate embeddings of varying dimensions from different layers simultaneously, reducing computational costs while maintaining effectiveness.

-----

πŸ€” Original Problem:

β†’ Modern transformer models require significant computational resources for text encoding, especially during query processing in search scenarios.

β†’ Current approaches either sacrifice model performance for speed or maintain high computational costs.

-----

πŸ”§ Solution in this Paper:

β†’ 2D Matryoshka Training introduces two versions for simultaneous training across layers and dimensions.

β†’ Version 1 combines last layer embeddings with random sub-layer embeddings, using KL divergence for distribution alignment.

β†’ Version 2 employs logarithmic weighting across all layers with PCA alignment and dimension-specific losses.

β†’ The approach enables flexible embedding generation from any layer and dimension configuration.

-----

πŸ’‘ Key Insights:

β†’ Smaller dimension embeddings (below 128) show significant performance drop in retrieval tasks

β†’ Fixed document encoders don't consistently improve performance across all setups

β†’ Training on multiple target dimensions smooths effectiveness curve but trades off performance at higher dimensions

-----

πŸ“Š Results:

β†’ Outperforms traditional Matryoshka training on sub-dimensions

β†’ Version 2 achieves higher effectiveness than Version 1 across most configurations

β†’ Training requires 600+ GPU hours on H100

Discussion about this video

User's avatar

Ready for more?