L-CiteEval: Do Long-Context Models Truly Leverage Context for Responding?

Zecheng Tang, Keyan Zhou, Juntao Li, Baibei Ji, jianye hou, Min Zhang · Submission to ICLR 2025 · Withdrawn

TL;DR

Long-context large language models (LCMs) can process tens of thousands of tokens, but do they actually ground their answers in the provided text or simply hallucinate from memorized training data? To answer this, the authors introduce L-CiteEval, an automated multi-task benchmark spanning contexts from 8K to 48K tokens that requires models to generate precise citations alongside their responses. The findings reveal a dramatic gap: while open-source models often match proprietary models in raw answer generation, their citation quality trails significantly behind, indicating heavy reliance on parametric memory rather than input context.

What Problem Does This Paper Address?

Evaluating long-context models purely on standard generation metrics (such as exact match, accuracy, or ROUGE) is inherently flawed. A model might answer a question correctly simply because it memorized the fact during pre-training, not because it successfully retrieved and synthesized information from the prompt's 40,000-token context. Furthermore, human verification across book-length inputs is tedious and expensive.

Existing long-context attribution benchmarks suffer from two major flaws:

  1. They focus largely on short contexts (rarely exceeding 32K tokens).
  2. They rely on costly, non-reproducible LLM-as-a-judge approaches (such as GPT-4 evaluation).

The authors address this by building an automated, multi-task benchmark that scores both generation quality (is the answer right?) and citation quality (is every generated statement supported by exact chunk-level citations in the text?) without requiring human or proprietary LLM judges.

Methods

  • Fine-Grained Chunking & Structured Output: Contexts are partitioned into citation chunks (128 or 256 tokens depending on task density). The model is prompted one-shot to output structured responses: each factual statement must be immediately followed by its supporting chunk index (e.g., Statement [12]).
  • Automated NLI-Based Attribution: Instead of using GPT-4, citation faithfulness is evaluated automatically using a long-context natural language inference model (deberta-base-long-nli):
  • Citation Recall (CR): Measures whether generated statements are fully entailed by the cited passages.
  • Citation Precision (CP): Detects redundant or irrelevant citations.
  • Citation $F_1$: The harmonic mean of CP and CR.
  • Controlled Evaluation Variants:
  • L-CiteEval-Length: Keeps test questions identical while scaling context length from 8K to 16K to 32K using entity-filtered padding data (filtering out passages with entity overlap $\delta > 5$ via spaCy NER to avoid spurious clues).
  • L-CiteEval-Hardness: Fixes context length while categorizing queries into Easy, Medium, and Hard based on model performance.
  • Mechanistic Attention Analysis: Evaluates whether citation generation corresponds to internal Transformer attention by measuring the Pearson correlation between generated citations and segments attended to by the model’s "retrieval heads."

Datasets

The authors constructed L-CiteEval consisting of 2,080 evaluation instances across 11 tasks and 5 categories:

  • Single-Document QA: NarrativeQA, Natural Questions
  • Multi-Document QA: HotpotQA, 2WikiMultihopQA
  • Summarization: GovReport, MultiNews, QMSum
  • Dialogue Understanding: LoCoMo, DialSim
  • Synthetic Tasks: Needle In A Haystack (NIAH), Counting Stars

The benchmark controls length distributions across six intervals: 0–8K, 8–16K, 16–24K, 24–32K, 32–40K, and 40–48K.

Key Insights and Ideas

  • The "Faithfulness Illusion" of Open-Source LCMs: Open-source models produce answers that appear correct at the surface level, but their citation $F_1$ scores lag far behind closed-source models (GPT-4o, Claude-3.5-Sonnet). They frequently fail to pinpoint where their answers originated, exposing an over-reliance on internal knowledge.
  • Model Size $\neq$ Citation Ability: Larger models do not automatically cite better. Compact models (like Llama-3.1-8B and GLM-4-9B) often achieve citation scores comparable to 70B models. Meanwhile, sparse Mixture-of-Experts architectures (such as Qwen2-57B-A14B) struggle significantly compared to dense models.
  • Reasoning Models Stumble on Dispersed Retrieval: OpenAI’s o1-mini excels in standard reasoning benchmarks, but its citation quality collapses on long-context synthetic tasks (Counting Stars $F_1$: 38.45 vs. GPT-4o's 81.71) and summarization, indicating that strong step-by-step reasoning does not imply strong context-grounded retrieval.
  • Citations Directly Reflect Attention Heads: Pearson correlation coefficients between the model's generated citations and its internal top attention retrieval heads exceed $r > 0.70$ ($p < 0.0001$), verifying that citation generation reflects true internal attention rather than post-hoc guesswork.
  • RAG Restores Faithfulness: Augmenting open-source models with top-32 dense retrieval segments (via GTR-T5-XXL) dramatically improves their citation $F_1$ to competitive closed-source levels, though with a slight trade-off in generation recall.

Key Results

The benchmark evaluated 11 LCMs (3 closed-source, 8 open-source):

  • Information-Dispersed Citation Quality: On Counting Stars, GPT-4o achieved an 81.71 citation $F_1$ (CP: 83.37, CR: 81.18). In contrast, most open-source models scored below 20 $F_1$ (e.g., Llama-3.1-8B: 19.18; Qwen2.5-3B: 2.01). Llama-3.1-70B was the only open-source model to show strong retrieval here (63.73 $F_1$).
  • Information-Concentrated Tasks: On Needle in a Haystack, GPT-4o scored 76.39 $F_1$, whereas Llama-3.1-70B achieved 46.67 $F_1$ and Phi-3.5-mini scored 11.53 $F_1$.
  • Length Degradation (L-CiteEval-Length): As context length increased from 8K to 32K on HotpotQA, Llama-3.1-8B's citation $F_1$ fell from 51.83 to 40.83 and generation recall fell from 85.25% to 67.75%. In contrast, GPT-4o maintained a remarkably steady citation $F_1$ (65.67 at 8K vs. 63.75 at 32K).
  • RAG Enhancement: On LoCoMo, adding RAG elevated Llama-3.1-70B's citation $F_1$ from baseline performance directly into parity with GPT-4o (~78–80 $F_1$).

Limitations and Future Work

  • Metric Sensitivity to Verbosity: Traditional precision-based generation metrics penalize closed-source models for producing verbose explanations even when the facts are correct. Integrating external RAG-assisted answer extractors could resolve this discrepancy.
  • Data Contamination: Public evaluation tasks face the risk of data leakage over time. The authors plan an anonymous, dynamic submission platform to continuously refresh evaluation splits.
  • Benchmark Size: At 2,080 samples, L-CiteEval prioritizes execution efficiency over comprehensive coverage. The authors plan an expanded L-CiteEval-Ultra variant covering larger distributions and longer contexts.

Summary updated

BibTeX
@misc{tang2024l,
  author = {Zecheng Tang and Keyan Zhou and Juntao Li and Baibei Ji and jianye hou and Min Zhang},
  title = {{L-CiteEval: Do Long-Context Models Truly Leverage Context for Responding?}},
  year = {2024},
  eprint = {2410.02115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.02115},
}
Figure