paper-with-me

홈 › Papers

A Preliminary Study on Explaining Risk of Code Changes using LLM-Based Prediction Models

2026-07-02 · Yalin Liu, Kosay Jabre, Rui Abreu, Zachariah J. Carmichael, Vijayaraghavan Murali, Akshay Patel, Jun Ge, Weiyan Sun, Cong Zhang, Audris Mockus, David Khavari, Peter C. Rigby, Nachiappan Nagappan arxiv

Predictions by machine learning (ML) and artificial intelligence (AI) models are often received skeptically unless they are paired with intelligible explanations. In the context of just-in-time defect prediction, highlighting small portions of a software change (diff) -- beyond rule-based lints -- where risk may be concentrated has not yet been extensively investigated. In this work, we leverage attention weights from an LLM-based Diff Risk Score (DRS) model to highlight parts of a diff that the model focuses on when predicting risk. We aggregate token-level attention into interpretable code units (lines, hunks, and files), and present the top-K units to developers as a lightweight form of guidance during code review. We evaluate our approach using expert-labeled changes that have caused real outages. Results show that the highlighted snippets cover expert-labeled outage-causing change lines 53.85% of the time when highlighting the top-2 hunks, while requiring developers to review 26.28% of the changed lines on average. Because attention is produced during standard model inference, the approach is scalable for large development workflows and can be surfaced in the code review UI with low additional latency.

📄 PDF Abstract BibTeX arXiv:2607.02782

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

DeltaSHAP: Explaining Prediction Evolutions in Online Patient Monitoring with Shapley Values

2025-07-03 · Changhun Kim, Yechan Mun, Sangchul Hahn, Eunho Yang arxiv

This study proposes DeltaSHAP, a novel explainable artificial intelligence (XAI) algorithm specifically designed for online patient monitoring systems. In clinical environments, discovering the causes driving patient ris…

Computational Efficiency

Choose Your Own Adventure: Non-Linear AI-Assisted Programming with EvoGraph

2026-04-20 · Vassilios Exarhakos, Jinghui Cheng, Jin L. C. Guo arxiv

Current AI-assisted programming tools are predominantly linear and chat-based, which deviates from the iterative and branching nature of programming itself. Our preliminary study with developers using AI assistants sugge…

Explaining the root causes of unit-level changes

2022-06-26 · Kailash Budhathoki, George Michailidis, Dominik Janzing

Existing methods of explainable AI and interpretable ML cannot explain change in the values of an output variable for a statistical unit in terms of the change in the input values and the change in the "mechanism" (the f…

ABI Approach: Automatic Bias Identification in Decision-Making Under Risk based in an Ontology of Behavioral Economics

2024-05-22 · Eduardo da C. Ramos, Maria Luiza M. Campos, Fernanda Baião

Organizational decision-making is crucial for success, yet cognitive biases can significantly affect risk preferences, leading to suboptimal outcomes. Risk seeking preferences for losses, driven by biases such as loss av…

Decision MakingSystematic Literature Review

A Dataset and Preliminary Study of Using GPT-5 for Code-change Impact Analysis

2025-12-22 · Katharina Stengg, Christian Macho, Martin Pinzger arxiv

Understanding source code changes and their impact on other code entities is a crucial skill in software development. However, the analysis of code changes and their impact is often performed manually and therefore is ti…