SitEmb-v1.5: Improved Context-Aware Dense Retrieval for Semantic Association and Long Story Comprehension

Junjie Wu, Jiangnan Li, Yuqing Li, Lemao Liu, Liyan Xu, Jiwei Li, Dit-Yan Yeung, Jie Zhou, Mo YuarXiv 2025 · DOI

Abstract

Retrieval-Augmented Generation (RAG) systems often struggle with the "context-loss" problem when processing long documents. Standard chunking methods either lose narrative flow in small segments or suffer from information compression bottlenecks in larger ones. This paper introduces SitEmb, a situated embedding approach that conditions short text chunks on their broader surrounding context using a novel residual learning framework. By training on a large-scale dataset of narrative associations, SitEmb achieves state-of-the-art retrieval performance, particularly in long-story comprehension, significantly outperforming models with much larger parameter counts.

Introduction: The Chunking Dilemma

In standard RAG pipelines, long documents are partitioned into smaller chunks for indexing. This approach presents a fundamental trade-off: small chunks are computationally efficient but lack the necessary narrative context for accurate retrieval in complex stories. Conversely, increasing chunk size or context windows leads to a "capacity bottleneck," where a fixed-length embedding vector fails to capture the nuances of a large text block.

A critical observation in this research is the "Zero-Shot Failure" of existing state-of-the-art models. As shown in Figure 1, models like Jina-V3 and NV-Embed-V2 often exhibit a performance degradation as context or chunk sizes increase, indicating they are not inherently equipped to handle "situated" meaning.

Performance degradation in existing models as context size increases.

Methodology

To address these limitations, the authors propose the Situated Embedding (SitEmb) framework, which explicitly conditions a chunk's representation on its surrounding context.

Residual Learning Framework

To ensure the model effectively utilizes the provided context rather than relying solely on local text, a residual architecture is employed. The system maintains a baseline model ($\Theta^b$) for the chunk alone and a situated model ($\Theta^s$) for the chunk-plus-context. The final embedding is the sum of both outputs, forcing the situated model to learn the residual information—the specific semantic shifts introduced by the broader narrative.

Context-Aware Training Data

The models were trained on a massive dataset of approximately 1.6 million query-chunk pairs derived from Douban book notes. These notes represent human-curated semantic associations where a user's commentary (the query) is linked to a specific underlined passage (the chunk) within a book. This data provides a rich signal for how context informs the meaning of specific text segments.

Evaluation and Results

The researchers introduced the NDP-v1 dataset, an expanded version of PlotRetrieval featuring 7 books and 1,394 narrative-focused queries. Performance was also measured across various downstream tasks including DetectiveQA and LongStoryQA.

Key Performance Metrics

As detailed in Figure 2, the SitEmb models demonstrate superior retrieval capabilities. Notably, the SitEmb-v1 (1B) model outperforms several 7B-8B parameter models. The SitEmb-v1.5 (8B) variant achieves a performance gain of over 10% compared to standard baselines, excelling in "clue recall"—the ability to identify subtle, indirect semantic links within a story.

Comparative performance of SitEmb models against state-of-the-art baselines.

Discussion and Limitations

While SitEmb represents a significant advancement in long-context retrieval, several challenges remain. The current optimization is heavily focused on narrative data; its efficacy in technical or legal domains, where context functions differently, requires further investigation. Additionally, future work will focus on improving the controllability of the residual learning process and incorporating instruction-following capabilities to allow users to specify which contextual elements the model should prioritize.

Conclusion

SitEmb-v1.5 demonstrates that smarter, context-aware architectural choices can outperform brute-force scaling in retrieval tasks. By focusing on the "situated" meaning of text, the model provides a more robust solution for RAG systems dealing with complex, long-form narratives.

Summary updated

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.
BibTeX
@misc{wu2025sitemb,
  author = {Junjie Wu and Jiangnan Li and Yuqing Li and Lemao Liu and Liyan Xu and Jiwei Li and Dit-Yan Yeung and Jie Zhou and Mo Yu},
  title = {{SitEmb-v1.5: Improved Context-Aware Dense Retrieval for Semantic Association and Long Story Comprehension}},
  year = {2025},
  eprint = {2508.01959},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01959},
}
Figure