Abstract
Retrieval-Augmented Generation (RAG) has emerged as a crucial framework in natural language processing (NLP), improving factual consistency and reducing hallucinations by integrating external document retrieval with large language models (LLMs). However, the effectiveness of RAG is often hindered by coreferential complexity in retrieved documents, which can introduce ambiguity and interfere with in-context learning. In this study, we systematically investigate how entity coreference affects both document retrieval and generative performance in RAG-based systems, focusing on retrieval relevance, contextual understanding, and overall response quality. We demonstrate that coreference resolution enhances retrieval effectiveness and improves question-answering (QA) performance. Through comparative analysis of different pooling strategies in retrieval tasks, we find that mean pooling demonstrates superior context capturing ability after applying coreference resolution. In QA tasks, we discover that smaller models show greater improvement from the disambiguation process, likely due to their limited inherent capacity for handling referential ambiguity. With these findings, this study aims to provide a deeper understanding of the challenges posed by coreferential complexity in RAG, offering guidance for improving retrieval and generation in knowledge-intensive AI applications.
Introduction
Retrieval-Augmented Generation (RAG) systems rely on two main steps: finding the right document (retrieval) and generating an answer based on that document (generation). However, human language is full of "coreferential complexity." We frequently use pronouns ("it," "she," "their") and abbreviations (e.g., "GR" for General Relativity) to avoid repetition. While humans handle this naturally, these linguistic shortcuts create a significant gap for AI systems.
This coreferential ambiguity leads to two primary failure modes:
- Retrieval Failure: If a user query mentions "General Relativity" but the relevant document snippet only uses the pronoun "It," a vector search might fail to find the connection because the pronoun lacks the semantic weight of the original entity.
- Generation Failure: Even if the correct document is retrieved, smaller LLMs may lose the "reasoning chain" if they cannot correctly link a pronoun back to its subject several sentences earlier in the context window.
Methodology
To address these challenges, this research proposes a preprocessing step that resolves ambiguities before the RAG process begins. The system uses an LLM-powered function to transform ambiguous text into explicit text. For example, a sentence like "it moves in a parabola" is resolved to "the basketball moves in a parabola."
The study utilized GPT-4o-mini as the primary resolver, with Qwen2.5-7B tested as a cost-effective alternative. The impact was evaluated across four diverse benchmarks: BELEBELE (multilingual comprehension), SQuAD2.0 (Wikipedia-based QA), BoolQ (natural language inference), and NanoSCIDOCS (scientific retrieval).
Key Insights and Results
The "Small Model" Equalizer
A striking finding of the study is that smaller models (1B–3B parameters) benefit disproportionately from coreference resolution. While larger models possess enough latent capacity to resolve some ambiguity internally, smaller models struggle. By "fixing" the text for them, smaller models can sometimes match the performance of much larger models working on raw, ambiguous text.
Retrieval and QA Performance
Coreference resolution improved retrieval across all tested embedding models. LLM2Vec saw the most significant gains, with average nDCG scores improving by up to 0.012 points. The effect was even more pronounced in generative tasks. On the SQuAD2.0 dataset, Qwen2.5-3B-Instruct saw its performance skyrocket from an F1-score of 0.2972 to 0.5500 simply by resolving coreferences in the source text.
Mean Pooling Synergy
Embedding models utilizing "Mean Pooling" (averaging vectors of all tokens) showed the greatest improvement. Replacing a content-light pronoun with a content-heavy noun shifts the "average" vector of the sentence toward the actual subject matter, making it significantly easier for retrievers to match documents to specific queries.
Discussion and Limitations
While effective, LLM-based coreference resolution introduces new challenges. Preprocessing every document in a massive database is computationally expensive and adds latency to the pipeline. Furthermore, there is a risk of "cascading hallucinations": if the resolver model incorrectly identifies a pronoun (e.g., misidentifying the subject of a sentence), that error is permanently baked into the document, potentially leading to factual inaccuracies in the final output.
Conclusion
Coreference resolution acts as a powerful "de-fuzzer" for RAG systems, significantly improving both retrieval relevance and QA accuracy. This preprocessing step is particularly transformative for resource-efficient, smaller models, allowing them to overcome inherent limitations in handling referential ambiguity. Future research may focus on developing more lightweight resolution models or integrating coreference awareness directly into the training of embedding models to mitigate computational costs.
Summary updated