arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29477

MUDDLE: Measuring Understanding of Documents under Distractor and Length Effects

Jason Luo, Saibilila Abudukelimu, Judy Song, Andrew Feng, Shivank Garg, Vasu Sharma, Kevin Zhu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Document question-answering systems increasingly answer questions over collections of retrieved documents rather than one clean source, so robustness to distracting context matters as much as reading ability. When such systems fail, it is often unclear whether the context was too long or the distractors were too close to the topic, because prior work tends to conflate these two effects. We present MUDDLE, a controlled benchmark that separates them. MUDDLE uses 270 human-annotated questions, each tied to a single source document, and instantiates every question in five conditions: the source alone, the source with two or four topically similar hard negatives, and the source with two or four random distractors. The random distractors are matched to the hard negatives in length and provenance, so an accuracy gap between the two arms reflects topical similarity rather than length. All five conditions are rendered in markdown, page images, and raw PDF, but the distractor sweep reported here is run in markdown, since a source plus its distractors exceeds current image and PDF input limits. We score answers with an LLM judge across three model families. In the complete markdown sweep, hard negatives lower accuracy more than length-matched random documents at both context sizes for gpt-5-mini, while random documents stay near the no-distractor baseline. The effect is small but directionally consistent, and for gpt-5-mini hard negatives significantly underperform length-matched random distractors when pooled across context sizes. We release the data and evaluation code for a reproducible study of context degradation.

1 Introduction

Large vision-language models are increasingly used not to read a single, clean document but to work over whole collections of documents pulled on demand. An analyst's question is answered by retrieving reports, papers, and filings; an agent grounds a claim by reading whatever a search turns up. Two trends drive this. First, context windows have grown by orders of magnitude, yet models use that capacity unevenly and degrade as inputs lengthen (Hsieh et al., 2024). This tempts systems to drop an entire retrieved bundle into one prompt rather than curating it first. Second, retrieval-augmented generation is now the standard way to ground outputs in external knowledge (Lewis et al., 2020). The retrieved set is rarely clean: corpora are messy and retrievers are imperfect, so the one document that answers the question often arrives buried among plausible look-alikes that do not. Whether a model can still find that document and reason over it while ignoring the rest is a core property of any document-grounded system, not an edge case.

Two lines of work speak to this, but neither isolates the failure we care about. One studies how models use long contexts and finds that they use them unevenly: accuracy depends on where the evidence sits and declines as the context grows (Liu et al., 2024). The other studies retrieval noise and shows that irrelevant or misleading passages pull answers off course, though carefully placed random documents can sometimes help (Shi et al., 2023; Cuconasu et al., 2024). Both rely on short, text-only, open-domain passages, where a distraction is a sentence or a paragraph rather than a full document with its own layout. Multimodal long-document benchmarks close part of the gap. MMLongBench-Doc (Ma et al., 2024), for instance, shows that reading even one lengthy PDF is hard, with the best-performing model they test (GPT-4o) reaching an F1 of only 44.9%. But these benchmarks judge the source document on its own. They never place it among the related-but-wrong documents a retriever would surface, so a practitioner cannot tell whether a failure comes from the length of the context or from distractors that look like the answer. That distinction decides whether to curate the retrieved set or simply truncate it, and it is exactly what existing benchmarks leave unmeasured.

Our starting point is that the failure mode worth isolating is not context length on its own, but semantic adjacency: documents that share a topic and vocabulary with the source, and so look as though they answer the question, yet do not actually contain the answer. We call these documents hard negatives, borrowing the term from dense retrieval, where hard negatives are the topically close but non-relevant passages a retriever is most likely to return (Karpukhin et al., 2020). We expect hard negatives to be more corrosive than the same amount of random text. The form a document takes when it reaches the model, whether a native PDF, text extracted to markdown, or rendered page images, also exposes its layout differently, so we treat input modality as an explicit axis. These considerations lead to four research questions that organize the paper. (RQ1) Topical similarity: at a matched context length, do hard negatives degrade answer accuracy more than random distractors? (RQ2) Length: does adding more distractor documents ( k=0→2→4k=0 \rightarrow 2 \rightarrow 4) degrade accuracy, independent of distractor type? (RQ3) Modality, a baseline check rather than a hypothesis test: on the source-only condition, does answer accuracy differ when the same document is presented as markdown, page images, or a raw PDF? (RQ4) Model: do these effects hold across models from different families? We answer RQ1, RQ2, and RQ4 in markdown, where the full distractor sweep is servable, and treat the distractor sweep in image and PDF as an extension that our released code supports (Section 6). Our distractor findings are therefore text-based, and we do not claim the same margin holds for page images or PDF.

To answer these questions we built MUDDLE on top of MMLongBench-Doc. We start from 270 human-annotated questions over 85 source documents. For each question we assemble five context conditions that hold the source fixed and change only what surrounds it: a control with the source alone; HN-2 and HN-4, which add two and four hard negatives; and Random-2 and Random-4, which add two and four random distractors. The hard negatives are curated to be on topic yet free of the answer, and the random distractors are drawn so that the two arms differ only in topical relevance (Section 3.5). Every condition is rendered in markdown, page images, and raw PDF and scored with an LLM judge for semantic correctness. The design separates three factors that earlier work tends to mix together: whether extra context is present, how many distractors there are, and what kind of distractor it is.

Our contributions are:

  • A controlled, multi-document evaluation suite that varies distractor type and distractor count over long, real-world documents, holding the source document fixed and matching context length between distractor types. The same conditions are rendered in three input modalities (markdown, page images, and raw PDF); the distractor sweep is evaluated in markdown, and the image and PDF renderings support a source-only modality comparison. 1^{1}

  • A hard-negative curation pipeline. We retrieve real documents by search, filter them with a model that keeps topical look-alikes while rejecting any that may contain the answer, and verify the result by hand. Each hard negative is matched in length to the random distractor pool, and each question is checked to be answerable only from its source document.

• An evaluation protocol and an empirical finding. Under paired, same-question comparison on the complete five-condition markdown sweep, topical adjacency degrades accuracy beyond length alone for gpt-5-mini, significant when pooled across context sizes, while the effect stays small and directional across the three

1^{1}Data and code: https://github.com/luoojason/muddle.

families. Our released code extends the protocol to image and PDF distractor conditions once they can be served at scale.

References (19)

  • LongBench: A bilingual, multitask benchmark for long context understanding
  • The power of noise: Redefining retrieval for RAG systems
  • LongDocURL: A comprehensive multimodal long document benchmark integrating understanding, reasoning, and locating
  • RULER: What's the real context size of your long-context language models? In Proceedings of the First Conference on Language Modeling (COLM), 2024
  • Dense passage retrieval for open-domain question answering
  • Retrieval-augmented generation for knowledge-intensive NLP tasks
  • Lost in the middle: How language models use long contexts
  • G-Eval: NLG evaluation using GPT-4 with better human alignment
  • MMLongBench-Doc: Benchmarking long-context document understanding with visualizations
  • DocVQA: A dataset for VQA on document images
  • UniDoc-Bench: A unified benchmark for document-centric multimodal RAG. arXiv preprint arXiv:2510.03663, 2025 (opens arXiv in a new tab)
  • SQuAD: 100,000+ questions for machine comprehension of text
  • Large language models can be easily distracted by irrelevant context
  • IRPAPERS: A visual document benchmark for scientific retrieval and question answering (opens arXiv in a new tab)
  • Document understanding dataset and evaluation (DUDE)
  • Approximate nearest neighbor negative contrastive learning for dense text retrieval
  • Making retrieval-augmented language models robust to irrelevant context
  • Judging LLM-as-a-judge with MT-Bench and chatbot arena
  • Jason Luo designed the benchmark, built the shared evaluation pipeline, curated the hard negatives, and ran the GPT and Claude evaluations; Saibilila Abudukelimu built and ran the Gemini evaluations and baselines