Source Document

Wenji Bai, Muhammad Waseem, Jaakko Peltonen, Pekka Abrahamsson, "CLEW: An Agentic LLM Approach for Log-Guided Root-Cause Code Localization", arXiv:2611.19448 [cs.SE], submitted 2026-11-14. Affiliation: Tampere University, Finland. Follows the task definition of ICSE 2027 Industry Challenge Track #7 (log-guided root-cause code localization).

This session's network egress was fully blocked (a proxy policy denial reproduced against example.com, arxiv.org, and www.sunny34.com alike), so WebFetch could not open the source directly. The full text was instead verified against a primary-source snapshot (a copy of the arXiv HTML full text) that GitHub Actions had fetched at 2026-11-18T22:07:30Z — it is the complete text including table cells, so every figure below was checked the same way a direct read would be.

This is a preprint without peer review, primarily classed under software engineering (cs.SE). The authors cite their own implementation and dataset as "Anonymous Authors (2026)" in the reference list, which suggests a double-blind conference review (ICSE 2027) may be underway. All authors are academic researchers at Tampere University; the text names no corporate funding or commercial stake. The evaluated models (GPT-6.1 Sol, Gemini 4 Argon) were accessed only through the OpenRouter API, so no link to a model vendor is apparent.

Study Overview

The paper poses three research questions: RQ1 asks how accurately root-cause code can be localized from issue descriptions and log evidence; RQ2 asks how much each CLEW component (log-to-code anchoring, agentic exploration) contributes; RQ3 asks how robust the method is to noisy or incomplete log evidence.

The evaluation benchmark, LogLoc, has two parts. LogLoc-Issues combines 47 cases from SWE-bench Verified with 103 cases from the Python subset of MULocBench, drawn from 25 repositories (150 cases total); the ground truth is the non-test library functions changed by the actual fix. LogLoc-Airflow injects faults at 21 points under two workload configurations in Apache Airflow 2.10.5 (42 cases); the ground truth is the injected function itself.

The method runs in three phases. Phase 1, "log-to-code anchoring," links log events to source functions using fixed rules. Phase 2, "backward tracing," has an LLM agent start from the anchored symptom functions and walk the code graph upstream toward candidate causes. Phase 3 ranks the candidates, names the affected module, and builds an explanation linking the trace path to log events. The baselines — Base (BM25 retrieval only), Agentless (hierarchical search), and LocAgent (graph-guided agent) — all run on the same base model (GPT-6.1 Sol) for a controlled comparison.

Key Results

On LogLoc-Issues (150 cases), CLEW recorded the highest observed Acc@1 at 77.3%, but after Holm correction this was significant only against Base (60.7%) — not against LocAgent (72.0%) or Agentless (70.0%). On LogLoc-Airflow (42 cases), CLEW, LocAgent, and Agentless tied at 97.6%.

Dataset · MethodAcc@1Rec@5MRRCost ($/case)Time (s/case)
LogLoc-Issues · Base60.7%52.6%62.80.02710
LogLoc-Issues · Agentless70.0%64.7%74.30.03125
LogLoc-Issues · LocAgent72.0%75.6%78.60.103256
LogLoc-Issues · CLEW77.3%73.2%81.30.12557
LogLoc-Airflow · LocAgent97.6%100.0%98.80.33787
LogLoc-Airflow · CLEW97.6%100.0%98.80.26972

Averaged across all 192 cases, CLEW took 60 seconds per case versus 219 for LocAgent — about a 73% reduction — at a similar inference cost (\$0.157 vs \$0.154 per case, source: Table II). Recall@5 tells a different story, though: on LogLoc-Issues, LocAgent's 75.6% beats CLEW's 73.2%. CLEW is better at getting the top candidate right; LocAgent packs more correct answers into its top five.

The component ablation (Table IV) is the most important caveat here. Removing CLEW's signature design — structured log anchoring — changed Acc@1 by only 2.0 points on LogLoc-Issues (77.3% vs 75.3%) and 4.8 points on LogLoc-Airflow (97.6% vs 92.9%), and both 95% confidence intervals included zero: not statistically significant. Removing the agent entirely (the "anchor floor," which ranks by anchor score alone, no model calls) crashed Acc@1 to 20.0% and 4.8% respectively — so most of the gain clearly comes from agentic exploration, not from the anchoring mechanism itself.

Under deliberately degraded log evidence (RQ3, Table VI), injecting background noise (n=131) left Acc@1 unchanged within seed variation (78.6%→80.2%), and removing half the intermediate traceback frames (n=84) left it flat at 72.6% — both changes on the order of the 1.5–2.4 point seed-to-seed variation observed with unperturbed reruns.

Credibility Assessment

Several things earn trust. Every method was evaluated on the same base model and the same source snapshot, and statistical comparisons consistently used cluster-level permutation tests with Holm correction. Results held up with a second base model (Gemini 4 Argon: 76.0% Acc@1 on LogLoc-Issues, 90.7% top-1 agreement with the primary model), and code and data are released.

The caveats are just as clear. The authors themselves state that "the current evidence does not establish structured anchoring as a consistent accuracy improvement over the agent's own exploration" (Section V), and the headline comparison against LocAgent is not significant after correction. External validity is limited to 25 Python repositories for LogLoc-Issues and a single open-source system (Apache Airflow) for LogLoc-Airflow, and LogLoc-Issues was selected specifically from issues that already had log or error evidence. The structural grounding checks on the explanation (does the trace path start at an anchored function, etc.) are not the same as verifying that the path describes the actual causal mechanism — a distinction the authors state explicitly.

Related Work

All three share the premise that the code reporting a symptom can differ from the code containing the defect. CLEW tries to close that gap with log-to-code anchors and graph exploration.

Reviewer's Judgement

First, the authors' own admission that structured anchoring's accuracy contribution is "not established" is unusually candid, and it raises this reviewer's confidence in the paper overall rather than lowering it — many agentic papers soft-pedal a non-significant ablation. That candor cuts the other way too: quoting "CLEW achieves the highest Acc@1" as a standalone headline overstates the result, since the only significant comparison is against the weakest baseline (Base).

Second, the number worth trusting most here is not an accuracy figure but the 73% time reduction. At similar inference cost and equal-or-better accuracy, cutting per-case time to under a third of LocAgent's is reproducible under clearly stated conditions and directly useful for latency-sensitive issue triage.

Third, the lower Recall@5 versus LocAgent is a real trade-off, not noise to ignore. A workflow that inspects only the top candidate favors CLEW; one that reviews the top five favors LocAgent. Either way, switching tools on Acc@1 alone is premature.

Putting It to Work

  • Judge by a metric bundle, not a headline — weigh Recall@5, cost, and time alongside Acc@1, and match the choice to your workflow (single-candidate triage vs. reviewing several).
  • Don't swap tools on a non-significant result — check whether the corrected confidence interval includes zero before retiring an existing debugging tool.
  • Separate structural validity from causal correctness — CLEW's trace path is checked for starting at an anchored function, not for describing the true cause; use it for first-pass triage, not automated sign-off.
  • Re-test robustness on your own logs — the noise/incompleteness results here are specific to Python issues and one system (Airflow); don't assume they generalize to other languages or log formats.
  • Cite cost and time per dataset, not combined — LogLoc-Issues and LogLoc-Airflow move in opposite directions on cost and time (see the table); don't quote a figure without naming which dataset it's from.

Conclusion

CLEW combines log-to-code anchoring with agentic backward tracing to find root causes even when the symptom and the defect sit in different functions. Its roughly 73% speed advantage over LocAgent holds up clearly under matched conditions, but the authors' own ablation did not statistically establish an accuracy advantage from its signature design. Read the numbers as a directional signal, and consider the tool for triage support rather than automated judgment. For the broader design pattern of moving completion judgment away from self-report and onto independent verification, see the Coding Agent Completion-Gate Checklist.

References

Ask AI about this review

The assistant has read this review and the numbers it verified. Ask anything — it answers from the text and says so when something isn't in it.

Loading the chat…