IRCLSep 24, 2024

Making Text Embedders Few-Shot Learners

arXiv:2409.15700v1102 citationsh-index: 25Has Code
Originality Highly original
AI Analysis

This work addresses the challenge of improving text embeddings for various NLP tasks, offering a novel approach that enhances few-shot learning capabilities.

The authors tackled the problem of generating high-quality text embeddings by leveraging in-context learning from large language models, resulting in a new model that sets state-of-the-art performance on benchmarks like MTEB and AIR-Bench.

Large language models (LLMs) with decoder-only architectures demonstrate remarkable in-context learning (ICL) capabilities. This feature enables them to effectively handle both familiar and novel tasks by utilizing examples provided within their input context. Recognizing the potential of this capability, we propose leveraging the ICL feature in LLMs to enhance the process of text embedding generation. To this end, we introduce a novel model bge-en-icl, which employs few-shot examples to produce high-quality text embeddings. Our approach integrates task-related examples directly into the query side, resulting in significant improvements across various tasks. Additionally, we have investigated how to effectively utilize LLMs as embedding models, including various attention mechanisms, pooling methods, etc. Our findings suggest that retaining the original framework often yields the best results, underscoring that simplicity is best. Experimental results on the MTEB and AIR-Bench benchmarks demonstrate that our approach sets new state-of-the-art (SOTA) performance. Our model, code and dataset are freely available at https://github.com/FlagOpen/FlagEmbedding .

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes