TL;DR
Dude is the first dual-detection multi-agent system designed to automatically spot contradictions and omissions between research papers and their accompanying codebases. By deploying specialized LLM agents that cross-examine both the text-to-code and code-to-text directions, and allowing them to "negotiate" away ambiguities, Dude improves discrepancy detection recall by up to 22.8% and F1 scores by up to 18.7% over single-agent baselines.
What Problem Does This Paper Address?
With the explosion of AI research submissions, peer reviewers are stretched thin, making it nearly impossible to manually audit code repositories for consistency against paper claims. While large language models (LLMs) show promise in automating this task, existing single-agent approaches suffer from two fatal flaws:
- Context Window Limitations: Lengthy manuscripts combined with massive codebases easily overwhelm a single model's memory.
- One-Sided Bias: Standard LLM setups are "paper-oriented"—they extract a claim from the text and look for it in the code. This approach easily misses paper omissions (features implemented in the code but completely unmentioned or misrepresented in the text).
Furthermore, papers and code speak different languages. A paper describes concepts at a high, abstract level, while code is granular and concrete. This granularity asymmetry causes naive LLM systems to either over-interpret abstract text (creating false conflicts) or over-report trivial code like environment setups as missing paper contributions.
Methods
To bridge this gap, the authors introduce Dude, a multi-agent framework that breaks the problem down into specialized roles: Claimers (to extract assertions), Verifiers (to check consistency), Negotiators (to resolve ambiguities), and an Orchestrator (to manage the workflow).
Dude's core innovation relies on three pillars:
- Dual-Detection Pipeline: The system runs two parallel tracks. The paper-oriented track extracts text claims and verifies them in the codebase to catch code omissions and conflicts. Simultaneously, the code-oriented track extracts notable code implementations and checks the paper to catch paper omissions.
- Granularity-Aligned Negotiation: When a code verifier flags a discrepancy, a multi-round dialogue opens between a Paper Negotiator and a Code Negotiator. The paper agent progressively refines the high-level text description with grounded context until both agents agree on whether a true contradiction exists, mitigating over-interpretation.
- Two-Stage Salience Filtering: To prevent the system from flagging every minor helper function or execution script, Dude uses anchor-guided filtering (domain-specific knowledge anchors) and relevance-based filtering to filter out non-salient code before it gets cross-checked against the paper.
Datasets
The authors evaluated Dude using two primary sources:
- SciCoQA: The only pre-existing, real-world benchmark dataset specifically dedicated to scientific paper-code alignment.
- Recent Top-Tier Research: A newly curated dataset of 20 papers and public codebases accepted at recent premier AI conferences (ICML 2025 and ICLR 2026) to test the system on cutting-edge research.
Key Insights and Ideas
- Dual-detection is mandatory: Prompting a single LLM to look both ways doesn't work. Decomposing the task into specialized, directional agents is the only way to reliably surface hidden paper omissions.
- The Multi-Agent Precision Trap: Simply splitting tasks among multiple agents naturally increases recall, but it usually causes precision to plummet because agents over-report trivial mismatches. The negotiation and filtering modules in Dude are what make the multi-agent approach viable by keeping false positives in check.
- JSON-based Efficiency: Instead of using expensive, free-form natural language debates, Dude's agents communicate primarily through structured JSON files. This design choice drastically reduces token overhead, making it the most token-efficient multi-agent framework tested.
Key Results
Dude was tested across four major LLM backbones: GPT-5.4, DeepSeekV4, Claude 4.6, and Kimi-2.5.
- Substantial Metric Gains: Under the GPT-5.4 setting on SciCoQA, Dude achieved an 80.43% recall and 93.67% precision, outperforming the single-agent baseline by 21.74% in recall and boosting the overall F1 score by 15.03%.
- Conquering Paper Omissions: As shown in the breakdown below, Dude achieved its most dramatic improvements in the "Paper Omission" category—the exact blind spot that cripples traditional one-sided detection methods.
Limitations and Future Work
While Dude marks a significant leap forward, the authors note a few remaining hurdles:
- Implicit Discrepancies: Dude struggles when a contradiction is purely logical rather than explicit. For instance, if a paper describes a parameter as "unbounded" but the code passes it through a
sigmoidfunction (constraining it to 0-1), the system can miss it because it requires deep mathematical reasoning about code behavior. - Ambiguous Engineering Code: The system occasionally generates false positives when encountering unstructured repository files, such as undocumented
.ipynbdemonstration notebooks that use different hyperparameters than the official, authoritative implementation.
Future work will focus on giving agents deeper behavioral reasoning capabilities and optimizing token efficiency even further.
Summary updated