paper-with-me

홈 › Papers

2D Matryoshka Sentence Embeddings

2024-02-22 · Xianming Li, Zongxi Li, Jing Li, Haoran Xie, Qing Li

Common approaches rely on fixed-length embedding vectors from language models as sentence embeddings for downstream tasks such as semantic textual similarity (STS). Such methods are limited in their flexibility due to unknown computational constraints and budgets across various applications. Matryoshka Representation Learning (MRL) \cite{aditya2022matryoshka} encodes information at finer granularities, i.e., with lower embedding dimensions, to adaptively accommodate \emph{ad hoc} tasks. Similar accuracy can be achieved with a smaller embedding size, leading to speedups in downstream tasks. Despite its improved efficiency, MRL still requires traversing all Transformer layers before obtaining the embedding, which remains the dominant factor in time and memory consumption. This prompts consideration of whether the fixed number of Transformer layers affects representation quality and whether using intermediate layers for sentence representation is feasible. In this paper, we introduce a novel sentence embedding model called \textit{Two-dimensional Matryoshka Sentence Embedding} (2DMSE)\footnote{Our code is available at \url{https://github.com/SeanLee97/AnglE/blob/main/README_2DMSE.md}.}. It supports elastic settings for both embedding sizes and Transformer layers, offering greater flexibility and efficiency than MRL. We conduct extensive experiments on STS tasks and downstream applications. The experimental results demonstrate the effectiveness of our proposed model in dynamically supporting different embedding sizes and Transformer layers, allowing it to be highly adaptable to various scenarios.

📄 PDF Abstract BibTeX arXiv:2402.14776

Code (1)

SeanLee97/AnglE 공식 구현 pytorch

Tasks

RAGRepresentation LearningRetrievalSemantic Textual SimilaritySentenceSentence EmbeddingSentence-EmbeddingSentence EmbeddingsSTS

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Weight Decay 설명 없음
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
WordPiece 설명 없음
BART BART is a denoising autoencoder for pretraining sequence-to-sequence models. It is trained by (1) corrupting text…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
BERT BERT, or Bidirectional Encoder Representations from Transformers, improves upon standard Transformers by removing the…

Similar Papers 제목 키워드 기반

Enhancing Semantic Similarity Understanding in Arabic NLP with Nested Embedding Learning

2024-07-30 · Omer Nacar, Anis Koubaa

This work presents a novel framework for training Arabic nested embedding models through Matryoshka Embedding Learning, leveraging multilingual, Arabic-specific, and English-based models, to highlight the power of nested…

Natural Language InferenceSemantic SimilaritySemantic Textual SimilaritySentence+2

SMEC: Rethinking Matryoshka Representation Learning for Retrieval Embedding Compression

2025-10-14 · Biao Zhang, Lixin Chen, Tong Liu, Bo Zheng arxiv

Large language models (LLMs) generate high-dimensional embeddings that capture rich semantic and syntactic information. However, high-dimensional embeddings exacerbate computational complexity and storage requirements, t…

Dimensionality ReductionRepresentation Learning

Hierarchical Level-Wise News Article Clustering via Multilingual Matryoshka Embeddings

2025-05-30 · Hans W. A. Hanley, Zakir Durumeric

Contextual large language model embeddings are increasingly utilized for topic modeling and clustering. However, current methods often scale poorly, rely on opaque similarity metrics, and struggle in multilingual setting…

ArticlesClusteringLanguage ModelingLanguage Modelling+1

MATE: Matryoshka Audio-Text Embeddings for Open-Vocabulary Keyword Spotting

2026-01-20 · Youngmoon Jung, Myunghun Jung, Joon-Young Yang, Yong-Hyeok Lee 외 arxiv

Open-vocabulary keyword spotting (KWS) with text-based enrollment has emerged as a flexible alternative to fixed-phrase triggers. Prior utterance-level matching methods, from an embedding-learning standpoint, learn embed…

Keyword SpottingMetric Learning

MIPIC: Matryoshka Representation Learning via Self-Distilled Intra-Relational and Progressive Information Chaining

2026-04-27 · Phung Gia Huy, Hai An Vu, Minh-Phuc Truong, Thang Duc Tran 외 arxiv

Representation learning is fundamental to NLP, but building embeddings that work well at different computational budgets is challenging. Matryoshka Representation Learning (MRL) offers a flexible inference paradigm throu…

Representation Learning