[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-327566-105":3,"detail-sidebar-cat-0-en-105":73,"doc-detail-327566-en":123,"doc-similar-327566":155},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":66,"head_meta":68,"extra_data":70,"updated_unix":72},105,"en","a-preliminary-study-on-explaining-risk-of-code-changes-using-llm-based-prediction-models","A Preliminary Study on Explaining Risk of Code Changes using LLM-Based Prediction Models","","Machine learning and AI models are often questioned when their outputs lack intelligible explanations, especially in just-in-time defect prediction. This study uses attention weights from an LLM-based Diff Risk Score (DRS) model to identify which parts of a software change (diff) the model relies on for risk assessment. Token-level attention is aggregated into interpretable code units—lines, hunks, and files—and the top units are presented to developers during code review. Evaluations on expert-labeled outage-causing changes show strong coverage for highlighted hunks while reducing the review scope, and the method scales with standard inference and low additional latency.",{"@graph":14,"@context":65},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/a-preliminary-study-on-explaining-risk-of-code-changes-using-llm-based-prediction-models/327566/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/a-preliminary-study-on-explaining-risk-of-code-changes-using-llm-based-prediction-models/327566.png","ImageObject",300,407,{"name":42,"@type":43},"Maeve","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-27","2026-09-21",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",12,{"@type":57,"mainEntity":58},"FAQPage",[59],{"name":60,"@type":61,"acceptedAnswer":62},"How is the approach evaluated and what are the key results?","Question",{"text":63,"@type":64},"It is evaluated using expert-labeled changes that caused real outages. The highlighted snippets cover the expert-labeled outage-causing change lines frequently for top hunks, while requiring developers to review a smaller portion of changed lines on average.","Answer","https://schema.org",{"og:url":32,"og:type":67,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":69,"canonical":32},"index,follow",{"doc_id":71,"site_id":7},327566,1790998501,{"code":4,"msg":74,"data":75},"success",[76,80,84,88,93,98,103,107,112,115,119],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":77,"show_sort_weight":78,"slug":79},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":81,"show_sort_weight":82,"slug":83},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Exam",70,"exam",{"id":89,"doc_module":4,"doc_module_name":25,"category_name":90,"show_sort_weight":91,"slug":92},5,"Comic",60,"comic",{"id":94,"doc_module":4,"doc_module_name":25,"category_name":95,"show_sort_weight":96,"slug":97},6,"Technology",50,"technology",{"id":99,"doc_module":4,"doc_module_name":25,"category_name":100,"show_sort_weight":101,"slug":102},7,"Healthcare",40,"healthcare",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":105,"slug":106},8,30,"research-report",{"id":108,"doc_module":4,"doc_module_name":25,"category_name":109,"show_sort_weight":110,"slug":111},9,"Religion & Spirituality",20,"religion-spirituality",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":113,"show_sort_weight":110,"slug":114},"World Cup","world-cup",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":116,"slug":118},10,"Lifestyle","lifestyle",{"id":120,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":89,"slug":122},19,"General","general",{"code":4,"msg":74,"data":124},{"doc_id":71,"user_id":125,"nickname":42,"user_avatar":126,"doc_module":4,"category_id":104,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":127,"file_id":128,"file_url":129,"file_type":130,"file_size":131,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":108,"language":132,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":133,"faqs":134,"seo_title":135,"seo_description":12,"update_tm":136,"read_time":137,"preview_page_count":33,"preview_urls":138},5909877438554,"https://ap-avatar.wpscdn.com/avatar/5600025385ad2bf12a7?_k=1778553567797529272","A Preliminary Study on Explaining Risk of Code Changes using  \nLLM-Based Prediction Models  \narXiv :2607 .02782v 1 [ cs . SE] 2 Jul 2026  \nYalin Liu Kosay Jabre Rui Abreu  \nZachariah J. Carmichael  \n[yalinliu@meta.com](yalinliu@meta.com)[ ](yalinliu@meta.com)[kosayjabre@meta.com](kosayjabre@meta.com)[ ](kosayjabre@meta.com)[ruiabreu@meta.com](ruiabreu@meta.com)[ ](ruiabreu@meta.com)[craymichael@meta.com](craymichael@meta.com)[ ](craymichael@meta.com)Meta Platforms, Inc. Menlo Park, CA, USA  \nVijayaraghavan Murali Akshay Patel Jun Ge Weiyan Sun Cong Zhang  \n[vijaymurali@meta.com](vijaymurali@meta.com)[akshaypatel@meta.com](akshaypatel@meta.com)[ ](akshaypatel@meta.com)[jakege@meta.com](jakege@meta.com)[ ](jakege@meta.com)[wysun@meta.com](wysun@meta.com)[ ](wysun@meta.com)[conzhang@meta.com](conzhang@meta.com)[ ](conzhang@meta.com)Meta Platforms, Inc. Menlo Park, CA, USA  \nAudris Mockus David Khavari Nachiappan Nagappan  \nPeter C. Rigby∗  \n[audris@meta.com](audris@meta.com)[ ](audris@meta.com)[dkhavari@meta.com](dkhavari@meta.com)[ ](dkhavari@meta.com)[nnachi@meta.com](nnachi@meta.com)[ ](nnachi@meta.com)[pcr@meta.com](pcr@meta.com)[ ](pcr@meta.com)Meta Platforms, Inc. Menlo Park, CA, USA  \nAbstract  \nPredictions 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-􀀠 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.  \nCCS Concepts  \n• Software and its engineering → Risk management.  \nKeywords  \nCode Risk Score, LLMs, Explainability, Applied Research  \nACM Reference Format:  \nYalin Liu, Kosay Jabre, Rui Abreu, Zachariah J. Carmichael, Vijayaraghavan Murali, Akshay Patel, Jun Ge, Weiyan Sun, Cong Zhang, Audris Mockus,  \n∗ Rigby is also a professor at Concordia University in Montreal, QC, Canada.  \nThis work is licensed under a Creative Commons Attribution 4 .0 International License.  \nAIware ’26, Montreal, QC, Canada  \n© 2026 Copyright held by the owner/author(s) .  \nACM ISBN 979-8-4007-2601-9/2026/07  \n[https://doi.org/10.1145/3805760.3814916](https://doi.org/10.1145/3805760.3814916)  \nDavid Khavari, Nachiappan Nagappan, and Peter C. Rigby. 2026. A Preliminary Study on Explaining Risk of Code Changes using LLM-Based Prediction Models. In Proceedings of the 3rd ACM International Conference on AI-Powered Software (AIware ’26), July 6–7, 2026, Montreal, QC, Canada. ACM, New York, NY, USA, 9 pages. [https://doi.org/10.1145/3805760.3814916](https://doi.org/10.1145/3805760.3814916)  \n1 Introduction  \nIn the (big) tech industry, software quality has a direct impact on revenue, and various tools are utilized to help maintain quality to the highest standards. A just-in-time defect prediction system (e.g., Diff Risk Score (DRS) [1, 15]) is employed by some companies to predict potential issues in code changes. This type of system produces a risk score indicating the likelihood of a service outage if a particular code change is landed. If the risk is deemed","cbCaijLNFXISNgwc","https://ap.wps.com/l/cbCaijLNFXISNgwc","pdf",1785685,"English","# Abstract\n# Keywords\n# 1 Introduction\n## Just-in-time defect prediction and risk scoring\n## Logistic regression for gating risky diffs\n## Limitations and motivation for LLM-based prediction\n# 2 (partial)","[{\"question\":\"How is the approach evaluated and what are the key results?\",\"answer\":\"It is evaluated using expert-labeled changes that caused real outages. The highlighted snippets cover the expert-labeled outage-causing change lines frequently for top hunks, while requiring developers to review a smaller portion of changed lines on average.\"}]","A Preliminary Study on Explaining Risk of Code Changes using LLM-Based Prediction Models | PDF",1789977572,23,[139,143,147,151],{"page_no":22,"url":140,"width":141,"height":142},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/ae83b2abd40ef8af8c80ec466055fd2b.webp",983,1272,{"page_no":26,"url":144,"width":145,"height":146},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/146a6a178ffad5eb50a6b4f2bac55bab.webp",982,1270,{"page_no":30,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2fb360b0f65f6914d0aa015ee5414503.webp",981,1269,{"page_no":33,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2a8ee02ad0ee3f44d961f00dfc76f539.webp",980,1268,{"list":156,"token":11},[157,163,170,176,183,189,196,203,210,216],{"doc_id":158,"doc_title":159,"file_type":130,"home_preview_img_url":160,"slug":161,"view_count":26,"category_name":29,"create_tm":162},684322,"End-to-End Test-Time Training for Long Context","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000059215/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=CCHIgtg8Nb8QtiW1Ie2e2oLeyp0%3D","end-to-end-test-time-training-for-long-context",1794004474,{"doc_id":164,"doc_title":165,"file_type":130,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":29,"create_tm":169},85999,"From Self Attention to Connection Laplacian: A Unified Operator View of Transformers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809496075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=xc7ONEumE3CnJg7EcLmTnIBzuKg%3D","from-self-attention-to-connection-laplacian-a-unified-operator-view-of-transformers",32,1784207686,{"doc_id":171,"doc_title":172,"file_type":130,"home_preview_img_url":173,"slug":174,"view_count":55,"category_name":29,"create_tm":175},327966,"TORINO: Token Reduction via Interpretable Concept Overlap in Vision-Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909356324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=nm6KNwYAp%2BgF5DYYaRhESITDdFA%3D","torino-token-reduction-via-interpretable-concept-overlap-in-vision-language-models",1789978402,{"doc_id":177,"doc_title":178,"file_type":130,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":29,"create_tm":182},273383,"STS - Efficient Sparse Attention with Speculative Token Sparsity","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899931880/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=b2atnOacRfhMQh4A4%2BnuIjHJNNo%3D","sts-efficient-sparse-attention-with-speculative-token-sparsity",16,1789471160,{"doc_id":184,"doc_title":185,"file_type":130,"home_preview_img_url":186,"slug":187,"view_count":108,"category_name":29,"create_tm":188},327141,"TokenScope - Token-Level Explainability and Interpretability - for Code-Oriented Tasks in Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909305026/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=s5JNzm4wo5sV2cjr6h9IPDqDyIU%3D","tokenscope-token-level-explainability-and-interpretability-for-code-oriented-tasks-in-large-language-models",1789976523,{"doc_id":190,"doc_title":191,"file_type":130,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":29,"create_tm":195},84653,"Embodied.cpp: A Portable Inference Runtime of Embodied AI Models on Heterogeneous Robots","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809194652/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=LJ3QY6Nz3CosYXr3R2826SL%2FkJ8%3D","embodiedcpp-a-portable-inference-runtime-of-embodied-ai-models-on-heterogeneous-robots",28,1784197504,{"doc_id":197,"doc_title":198,"file_type":130,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":29,"create_tm":202},82801,"MOSAIC: Interpretable Multi-Token Cross-Attention of Biophonetic and Self-Supervised Representations for Unified Voice Anti-Spoofing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808910213/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=sYS3mw4VQdHcYo26%2BxIrrNplN24%3D","mosaic-interpretable-multi-token-cross-attention-of-biophonetic-and-self-supervised-representations-for-unified-voice-anti-spoofing",22,1784183033,{"doc_id":204,"doc_title":205,"file_type":130,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":29,"create_tm":209},84660,"Attention Dynamics in Diffusion Models Visual Analytics Framework for Human AI Collaboration","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809195077/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=OtXqDGBcVw8zwRDErtjqTmo3AbA%3D","attention-dynamics-in-diffusion-models-visual-analytics-framework-for-human-ai-collaboration",24,1784197537,{"doc_id":211,"doc_title":212,"file_type":130,"home_preview_img_url":213,"slug":214,"view_count":201,"category_name":29,"create_tm":215},84940,"NativeMEM: Native Memory Compression for Long-Horizon Robotic Manipulation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809223327/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=uNDxDDkeCUvaC1%2BFPu9clarkaUs%3D","nativemem-native-memory-compression-for-long-horizon-robotic-manipulation",1784199593,{"doc_id":217,"doc_title":218,"file_type":130,"home_preview_img_url":219,"slug":220,"view_count":89,"category_name":29,"create_tm":221},489276,"Taking Note(s) - Lorraine Daston - ABSTRACT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926986939/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111339&Signature=SunqnG4k1fguf4HN6jCvNttz5Xg%3D","taking-notes-lorraine-daston-abstract",1790821912]