RealDev-QA: Trajectory-Level Diagnosis for Developer RAG Under Real-World Noises

Tianling Lan, Junxiao Yao, Cong Fu, Tingyang Chen, Cibo Yu, Siyuan Gong, Xiangyu Ke, Beng Chin OoiNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

When developers ask for help, they don't type clean search queries—they paste messy stack traces, failed attempts, and mistaken guesses. RealDev-QA is a new benchmark of 1,233 real-world developer questions that tests whether AI retrieval systems (RAG) can navigate this noise, reject plausible-but-wrong documentation, and stay on the right reasoning path. The catch? Even the best systems only solve about 31% of these problems, and most failures are decided in the very first search step.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) is supposed to help AI models answer questions by looking up relevant documents. Most existing benchmarks test RAG on clean, well-formed questions (like Wikipedia trivia) where the right documents look obviously different from the wrong ones.

Real-world software engineering is nothing like that. A single developer question mixes error logs, environment constraints, and wrong hypotheses. Meanwhile, the documentation space is full of "semantic collisions": advice that looks relevant on the surface but is completely invalid for the user's specific library version, API, or runtime setup. Standard metrics like "top-$k$ recall" or final answer accuracy don't tell us why a system failed—whether it misunderstood the question from the start, got distracted by an outdated doc, or gave up too early.

Methods

The authors reframe developer RAG as evidence-path control: deciding where to start, what to connect, what to reject, and how to recover.

To diagnose this, they built RealDev-QA using a two-stage "backward construction, forward testing" approach:

  1. Construction: Starting from resolved public developer discussions, they used an LLM to extract the noisy diagnostic query and trace a verified, multi-hop reasoning graph from official documentation and release notes. They also mined real "hard negatives"—documents that match the query's keywords but fail under the user's specific constraints.
  2. Evaluation: During testing, the resolution is hidden. Systems only see the noisy query and must recover the evidence path on their own.

The authors evaluated five RAG systems (spanning static, graph-based, and agentic architectures) and introduced trajectory-level diagnostics, including First Query Precision (FQP)—whether the system's very first search is precise, broad, or off-path—and a five-mode failure taxonomy.

Figure 1: Overview of RealDev-QA. Left: RealDev-QA is constructed from resolved public developer discussions by tracing verified multi-hop evidence paths and adversarial hard negatives from real documentation, release notes, and verified issues. Center: Evaluation removes the resolution and tests whether answer-blind RAG systems can recover and control the evidence path from a noisy diagnostic query. Trajectory-level annotations localize failures across query understanding, retrieval, evidence selection, iterative reasoning, and answer generation. Right: RealDev-QA compares retrieval, automatic, and human-grounded evaluation signals, revealing when systems appear successful under aggregate or automatic metrics but disagree under grounded audit.

Datasets

The paper introduces RealDev-QA, consisting of 1,233 multi-hop questions (spanning 2 to 8 reasoning hops) curated from post-June 2024 discussions on Stack Overflow (686), Discourse forums (369), and GitHub Issues (178).

Unlike benchmarks such as HotpotQA, 2WikiMultihopQA, or MuSiQue, RealDev-QA features:

  • Noisy, long queries (averaging ~928 tokens) that dilute semantic similarity.
  • Verified reasoning graphs with per-step gold evidence from authoritative sources.
  • 8,819 adversarial hard negatives (covering 1,232 of the 1,233 queries) that nearly overlap with gold evidence in both embedding similarity and entity overlap.
Figure 3: Gold evidence and hard negatives are difficult to separate. Empirical CDFs of query- document matching scores for positive and negative samples. Standard multi-hop QA benchmarks exhibit clearer positive/negative margins, while RealDev-QA’s gold and hard-negative distributions nearly overlap in both semantic similarity and lexical/entity overlap.

Key Insights and Ideas

  • Failures are decided early: Over 78% of incorrect trajectories fail to retrieve any gold evidence in their very first step. If a system starts with a broad or off-path query, hard negatives flood the context and pollute later reasoning—even if the system eventually finds the right document later on.
  • Systems fail in distinct ways: The authors identify five overlapping failure signatures: Misled Start, Distractor Dominance, Drift, Premature Termination, and Connection Failure. Notably, Connection Failure (finding all the right docs but still getting the answer wrong) only accounts for 4–7% of failures. The real bottleneck is finding and filtering evidence, not synthesizing it.
  • Automatic judges are fooled by the same traps: When using an LLM-as-a-judge (Qwen3.5-Flash), automatic accuracy was inflated by 8.3 to 18.3 percentage points compared to human-audited accuracy. Worse, the LLM judge reversed the leaderboard rankings because it fell for the exact same plausible-but-incompatible hard negatives that tricked the RAG systems.

Key Results

  • Overall Accuracy: Retrieval helps (closed-book Qwen3.5-Flash scores just 8.00% human-audited accuracy), but the task remains unsolved. The highest human-audited accuracy across three backbones (Qwen3.5-Flash, GPT-5.4-mini, Claude-Sonnet-4.6) is 31.33% (A-RAG with Claude-Sonnet-4.6), and 24.67% with Qwen3.5-Flash.
  • First-Query Precision Matters: Among trajectories that start with a precise first query and hit gold in round one, human-audited accuracy reaches 68.5%. Starting with a broad query drops round-one hit accuracy to 46.4%, and later-hit accuracy to 23.6%.
  • Retrieval Coverage $\neq$ Correctness: Shortening DevRAG's iteration budget from 8 turns to 3 actually increased Recall@10 (from 0.2822 to 0.3652) while halving human-audited accuracy (from 23.00% to 10.33%).

Limitations and Future Work

The authors note that their evaluation uses standardized document-level indexing without chunking, and covers five representative RAG systems; other architectures (like tree-search or explicit version-constraint solvers) might behave differently. Additionally, query reconstruction and negative mining relied on LLM assistance alongside human verification, and authoritative grounding excludes some undocumented community workarounds. Future work should focus on query distillation and first-round evidence discrimination to stop context pollution before it starts.

Summary updated

BibTeX
@inproceedings{lan2026realdev,
  author = {Tianling Lan and Junxiao Yao and Cong Fu and Tingyang Chen and Cibo Yu and Siyuan Gong and Xiangyu Ke and Beng Chin Ooi},
  title = {{RealDev-QA: Trajectory-Level Diagnosis for Developer RAG Under Real-World Noises}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PfvTJzO0lU},
}
Figure