From Ambiguity to Accuracy: The Transformative Effect of Coreference Resolution on Retrieval-Augmented Generation systems

Youngjoon Jang, Seongtae Hong, Junyoung Son, Sungjin Park, Chanjun Park, Heuiseok Lim · OpenReview

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, introducing ambiguity that disrupts 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 benefit more 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, providing guidance for improving retrieval and generation in knowledge-intensive AI applications.

Introduction: The Challenge of Coreferential Ambiguity

Retrieval-Augmented Generation (RAG) systems are designed to ground AI responses in factual, external data. However, these systems often struggle with "messy data" where entities are replaced by pronouns like "it," "they," or "this." This phenomenon, known as coreferential ambiguity, creates a significant bottleneck. For instance, a document might introduce "General Relativity" once and subsequently refer to it using acronyms or pronouns for several paragraphs.

An illustration of how coreference resolution clarifies ambiguous text for a RAG system.

This ambiguity leads to two primary failures:

  1. Retrieval Failure: Embedding models struggle to map specific queries to text snippets that rely heavily on pronouns, as the semantic link to the original entity is weakened.
  2. Reasoning Failure: During generation, the LLM may fail to maintain a coherent reasoning chain if the retrieved context is too vague, resulting in hallucinations or imprecise answers.

Methodology

The researchers developed a systematic pipeline to evaluate the impact of Coreference Resolution (CR) on RAG performance.

The Resolution Pipeline

The study utilized gpt-4o-mini as a dedicated engine to transform original, ambiguous documents into "coreferentially explicit" versions. This pre-processing step involves replacing pronouns and vague references with their specific antecedent entities (e.g., replacing "it" with "the basketball").

Evaluation Framework

The impact of CR was tested across two main stages:

  • Retrieval: A variety of embedding models were evaluated, including encoder-based architectures (e.g., e5-large-v2) and decoder-based models (e.g., LLM2Vec). The study specifically analyzed how different pooling strategies—such as mean pooling, [CLS], and last token—responded to the clarified text.
  • Generation: Several instruction-tuned LLMs with parameters ranging from 1B to 9B (including Llama 3.2, Qwen 2.5, Gemma 2, and Mistral) were used to generate final answers based on the retrieved context.

Datasets

The findings were validated across four diverse benchmarks: BELEBELE (reading comprehension), SQuAD 2.0 (Wikipedia-based QA), BoolQ (yes/no queries), and NanoSCIDOCS (scientific document retrieval).

Key Insights and Results

The application of coreference resolution yielded several transformative insights into RAG performance.

Small Models as Primary Beneficiaries

A significant finding is that smaller models (2B–3B parameters) derive substantially more benefit from CR than their larger counterparts (7B–9B parameters). While larger models possess the internal capacity to resolve some referential ambiguity on the fly, smaller models lack this "horsepower." Removing ambiguity allows these smaller models to perform at levels previously reserved for much larger systems.

Performance comparison of various LLMs on original vs. coreference-resolved (C+R) text.

The Efficacy of Mean Pooling

In the retrieval phase, models employing "mean pooling" (averaging the embeddings of all tokens) showed the most significant gains. By replacing short pronouns with descriptive nouns, CR increases the "semantic weight" of the relevant entities within a text chunk, making them easier for mean-pooling-based embedding models to identify.

Quantitative Performance Gains

  • Retrieval: Using the LLM2Vec model, CR improved the average nDCG@1 by 0.012 points.
  • QA Accuracy: On the BELEBELE benchmark, Qwen2.5-3B-Instruct achieved an accuracy jump of 0.0778.
  • Closing the Gap: Notably, the gemma-2-2b-it model achieved an F1-score of 0.6209 on SQuAD 2.0 with resolved text, outperforming its baseline of 0.5185 and narrowing the gap with larger models like Llama-3.1-8B (which scored 0.5583 on original text).

Discussion and Limitations

While CR significantly enhances accuracy, several challenges remain for large-scale deployment:

  • Computational Overhead: Using high-end LLMs for pre-processing entire document corpora is computationally expensive. While smaller models like Qwen2.5-7B can perform CR, it still adds an extra step to the pipeline.
  • Text Naturalness: Explicitly replacing every reference can make the text repetitive, which might impact the stylistic flexibility of the generative model.
  • Potential Bias: The resolution process depends on the "resolver" model's accuracy; errors in resolution could introduce new hallucinations or misinterpretations of technical jargon.

Conclusion

This study demonstrates that coreference resolution is a powerful tool for improving both the retrieval and generation components of RAG systems. By simplifying referential complexity—reducing pronoun counts by nearly 50%—CR enables more accurate document matching and clearer reasoning, particularly for smaller, more efficient language models. Future work may explore native embedding support for referential ambiguity or more cost-effective "on-the-fly" resolution techniques.

Summary updated

BibTeX
@inproceedings{jang2025from,
  author = {Youngjoon Jang and Seongtae Hong and Junyoung Son and Sungjin Park and Chanjun Park and Heuiseok Lim},
  title = {{From Ambiguity to Accuracy: The Transformative Effect of Coreference Resolution on Retrieval-Augmented Generation systems}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=Vii7GAKIvy},
}
Figure