๐ค AI Summary
To address semantic fragmentation caused by chunking and the inability of existing embedding models to effectively encode long-context documents in long-document RAG, this paper proposes SitEmb, a contextualized embedding model. SitEmb introduces a conditional encoding mechanism and a context-aware training paradigm, enabling short text chunks to be jointly modeled within broad document contextsโthereby preserving both local evidence interpretability and global semantic coherence. Built upon the BGE-M3 architecture, SitEmb supports multi-scale dense retrieval. On our curated book-plot retrieval benchmark, it substantially outperforms state-of-the-art models with an order-of-magnitude larger parameter count: the 1B-parameter SitEmb-v1 surpasses 7โ8B models, while the 8B-parameter SitEmb-v1.5 achieves over 10% further improvement. Moreover, SitEmb demonstrates strong cross-lingual transferability and robust generalization across downstream tasks.
๐ Abstract
Retrieval-augmented generation (RAG) over long documents typically involves splitting the text into smaller chunks, which serve as the basic units for retrieval. However, due to dependencies across the original document, contextual information is often essential for accurately interpreting each chunk. To address this, prior work has explored encoding longer context windows to produce embeddings for longer chunks. Despite these efforts, gains in retrieval and downstream tasks remain limited. This is because (1) longer chunks strain the capacity of embedding models due to the increased amount of information they must encode, and (2) many real-world applications still require returning localized evidence due to constraints on model or human bandwidth.
We propose an alternative approach to this challenge by representing short chunks in a way that is conditioned on a broader context window to enhance retrieval performance -- i.e., situating a chunk's meaning within its context. We further show that existing embedding models are not well-equipped to encode such situated context effectively, and thus introduce a new training paradigm and develop the situated embedding models (SitEmb). To evaluate our method, we curate a book-plot retrieval dataset specifically designed to assess situated retrieval capabilities. On this benchmark, our SitEmb-v1 model based on BGE-M3 substantially outperforms state-of-the-art embedding models, including several with up to 7-8B parameters, with only 1B parameters. Our 8B SitEmb-v1.5 model further improves performance by over 10% and shows strong results across different languages and several downstream applications.