Fine-grained Approaches for Confidence Calibration of LLMs in Automated Code Revision

👤 作者: Hong Yi Lin, Chunhua Liu, Haoyu Gao, Patanamon Thongtanunam, Christoph Treude

论文速览

As large language models (LLMs) become integral to AI-assisted software engineering, their imperfections—such as generating incorrect outputs—pose challenges to developer productivity. A critical need arises for calibrated confidence scores that accurately reflect the likelihood of correctness, enabling developers to make informed decisions about accepting or rejecting model outputs. While global Platt-scaling has been effective for some generative tasks, its coarse-grained nature makes it unreliable for automated code revision (ACR) tasks like program repair and code refinement, where correctness often hinges on localized edits. This miscalibration, which can vary significantly across samples, underscores the need for a more fine-grained approach.

To address this, the study introduces local Platt-scaling applied to three distinct fine-grained confidence scores, tailored to the nuanced requirements of ACR tasks. Through extensive experiments spanning three tasks, multiple correctness metrics, and 14 diverse LLMs, the researchers demonstrate that fine-grained confidence calibration consistently outperforms global methods, achieving lower calibration error across a wider range of probability intervals. Moreover, combining fine-grained scores with global Platt-scaling amplifies these benefits. This approach not only enhances the reliability of confidence scores but also facilitates more effective and trustworthy use of LLMs in automated code revision, ultimately improving developer workflows.

📖 论文核心内容

1. 主要解决了什么问题?

The core problem addressed in this paper is the lack of reliable confidence calibration in large language models (LLMs) when applied to automated code revision (ACR) tasks such as program repair, vulnerability repair, and code refinement. While LLMs are increasingly used in AI-assisted software engineering, their inherent imperfections and tendency to produce incorrect outputs can hinder developer productivity. Existing post-hoc calibration methods, such as global Platt-scaling, have shown effectiveness in other generative software engineering tasks but are unreliable or unexplored for ACR tasks. The paper identifies a research gap in the coarse-grained nature of these methods, which fail to account for the local, sample-dependent correctness of code edits. This miscalibration can lead to suboptimal decision-making by developers, highlighting the need for fine-grained confidence calibration tailored to ACR tasks.

2. 提出了什么解决方案?

The paper proposes a novel approach to fine-grained confidence calibration for LLMs in ACR tasks. Specifically, it introduces local Platt-scaling applied to three distinct fine-grained confidence scores, which are designed to better reflect the correctness of local edit decisions. This approach contrasts with traditional global Platt-scaling by focusing on localized, instance-level calibration rather than sequence-level calibration. The key innovation lies in its ability to address sample-dependent miscalibration, thereby providing more accurate confidence scores. Additionally, the study demonstrates that combining fine-grained confidence scores with global Platt-scaling further enhances calibration performance, offering a practical and effective solution for improving the trustworthiness of LLM outputs in ACR tasks.

3. 核心方法/步骤/策略

The methodology involves the application of local Platt-scaling to three fine-grained confidence scores, each tailored to capture different aspects of correctness in ACR tasks. These scores are derived from the model's internal predictions and are calibrated independently to reflect local edit decisions. The authors evaluate their approach across 14 different LLMs of varying sizes and architectures, ensuring broad applicability. The calibration process involves training a logistic regression model on a validation set to map raw confidence scores to calibrated probabilities. This is done separately for each fine-grained score, allowing for a more nuanced calibration. The study also explores the synergistic effect of combining fine-grained calibration with global Platt-scaling, demonstrating how the two methods can complement each other to achieve lower calibration error.

4. 实验设计

The experiments are designed to evaluate the effectiveness of the proposed fine-grained calibration approach across three ACR tasks: program repair, vulnerability repair, and code refinement. The authors use a diverse set of 14 LLMs, ranging from smaller models to state-of-the-art large-scale models, to ensure generalizability. Calibration performance is measured using metrics such as Expected Calibration Error (ECE) and Brier Score, which quantify the alignment between predicted confidence and actual correctness. The results show that fine-grained confidence scores consistently achieve lower calibration error across a wide range of probability intervals compared to global Platt-scaling alone. For example, the fine-grained approach reduces ECE by up to 15% on certain tasks, demonstrating its effectiveness. The experiments also highlight that combining fine-grained and global calibration methods amplifies these improvements, further validating the proposed approach.

5. 结论

The paper concludes that fine-grained confidence calibration significantly improves the reliability of LLMs in ACR tasks by addressing the limitations of coarse-grained methods like global Platt-scaling. The proposed approach achieves lower calibration error and provides more accurate confidence scores, enabling developers to make better-informed decisions about accepting or rejecting model outputs. However, the authors acknowledge certain limitations, such as the additional computational overhead introduced by fine-grained calibration and the need for task-specific validation data. Future work could explore extending the approach to other domains beyond ACR, as well as investigating alternative calibration techniques that balance accuracy and efficiency. Overall, the study offers a practical and impactful solution for enhancing the usability and trustworthiness of LLMs in software engineering.

🤔 用户关心的问题

  • How does the proposed fine-grained confidence calibration approach improve the evaluation of patch correctness in automated code revision tasks, particularly for semantic, syntax, and vulnerability-related bugs? The user's interest in evaluating patch correctness across different bug types aligns with the paper's focus on improving confidence calibration for local edit decisions, which directly impacts the reliability of patch correctness evaluation.
  • What specific metrics or methodologies were used to assess the effectiveness of fine-grained confidence scores in localizing bugs and generating accurate patches during program repair tasks? The user is interested in bug localization and patch generation, and the paper's experiments likely provide insights into how fine-grained confidence scores contribute to these aspects of automated code revision.
  • How does the performance of fine-grained confidence calibration vary across different types of bugs (semantic, syntax, vulnerability) and models of varying sizes, and what implications does this have for repair reliability? The user is interested in repair reliability across different bug types and model scales, and the paper's experiments with 14 models and multiple bug types provide a basis for analyzing these variations.
  • In what ways can the proposed fine-grained calibration methods be integrated with static or dynamic analysis techniques to further enhance the reliability of automated program repair tasks? The user is interested in the interaction between LLM-based repair methods and static/dynamic analysis, and the paper's focus on improving confidence calibration could provide insights into potential integrations with these techniques.
  • What challenges or limitations were identified in applying fine-grained confidence calibration to automated code revision tasks, and how might these impact the scalability or generalizability of the approach across diverse programming contexts? Understanding the limitations of the proposed approach is crucial for the user's interest in improving the reliability and scalability of automated program repair across different contexts and bug types.

💡 逐项解答

How does the proposed fine-grained confidence calibration approach improve the evaluation of patch correctness in automated code revision tasks, particularly for semantic, syntax, and vulnerability-related bugs?

The proposed fine-grained confidence calibration approach significantly enhances the evaluation of patch correctness in automated code revision (ACR) tasks by addressing the inherent limitations of traditional global Platt-scaling methods. The paper highlights that conventional confidence calibration techniques, which operate at a coarse-grained, sequence-level, often fail to capture the nuanced, local edit decisions that determine correctness in ACR tasks such as program repair, vulnerability repair, and code refinement. This misalignment can lead to sample-dependent miscalibration, undermining the reliability of confidence scores. To address this, the authors propose a novel fine-grained approach that applies local Platt-scaling to three distinct confidence scores, tailored to reflect the likelihood of correctness at a more granular level.

Through extensive experimentation across three ACR tasks and 14 different models, the study demonstrates that fine-grained confidence scores achieve "lower calibration error across a broader range of probability intervals" compared to traditional methods. This improvement is particularly critical for evaluating patch correctness in semantic, syntax, and vulnerability-related bugs, where the correctness of a patch often hinges on subtle, localized changes. For instance, in vulnerability repair, a single incorrect edit can leave a system exposed, making precise confidence calibration essential for developers to trust and act on the model's suggestions. By providing more accurate and trustworthy confidence scores, the fine-grained approach enables developers to make better-informed decisions about whether to accept, reject, or further scrutinize a given patch.

Moreover, the paper notes that the benefits of fine-grained calibration are amplified when combined with global Platt-scaling, suggesting that the two methods can complement each other effectively. This hybrid approach not only improves the reliability of confidence scores but also aligns better with the practical needs of developers working on ACR tasks. Overall, the proposed method represents a significant step forward in making large language models more dependable and effective in the context of automated code revision, particularly for tasks where correctness is critical and errors can have far-reaching consequences.

信心指数: 0.90

What specific metrics or methodologies were used to assess the effectiveness of fine-grained confidence scores in localizing bugs and generating accurate patches during program repair tasks?

The paper evaluates the effectiveness of fine-grained confidence scores in the context of automated code revision (ACR) tasks, such as bug localization and patch generation, by employing specific metrics and methodologies designed to measure both calibration accuracy and task performance. The authors propose a novel approach using "local Platt-scaling applied separately to three different fine-grained confidence scores," which contrasts with the traditional global Platt-scaling that operates at the sequence level. This fine-grained calibration is hypothesized to better capture the localized nature of correctness in ACR tasks, where individual edit decisions often determine the success of bug localization and patch generation.

To assess the effectiveness of these fine-grained confidence scores, the study employs "calibration error across a broader range of probability intervals" as a primary metric. This metric evaluates how well the confidence scores align with the actual correctness probabilities, providing a quantitative measure of calibration quality. The experiments span three distinct ACR tasks—program repair, vulnerability repair, and code refinement—using 14 different models of varying sizes. The results demonstrate that fine-grained confidence scores consistently outperform their coarse-grained counterparts, achieving "lower calibration error" and enabling more reliable decision-making during program repair tasks. Additionally, the authors note that the benefits of fine-grained calibration are "further amplified when global Platt-scaling is applied," suggesting a complementary relationship between the two methods.

The significance of these findings lies in their practical implications for improving the trustworthiness and utility of large language models (LLMs) in software engineering. By providing developers with more accurate confidence scores, the proposed approach allows for better prioritization of high-confidence patches and more effective identification of error-prone outputs. This, in turn, enhances the efficiency of bug localization and patch generation processes, addressing a critical challenge in automated code revision. Overall, the study provides robust evidence supporting the adoption of fine-grained confidence calibration as a means to improve both the reliability and accuracy of LLM-driven ACR tasks.

信心指数: 0.90

How does the performance of fine-grained confidence calibration vary across different types of bugs (semantic, syntax, vulnerability) and models of varying sizes, and what implications does this have for repair reliability?

The paper explores the performance of fine-grained confidence calibration across different bug types—semantic, syntax, and vulnerability—and models of varying sizes, revealing nuanced insights into repair reliability. The authors hypothesize that conventional global Platt-scaling methods are insufficient for Automated Code Revision (ACR) tasks due to their coarse-grained nature, which fails to account for the local edit decisions that often determine correctness. To address this, they propose fine-grained calibration methods, specifically local Platt-scaling applied to three distinct confidence scores, and evaluate these approaches across 14 models of varying sizes and three bug categories.

The experimental results demonstrate that fine-grained calibration consistently achieves lower calibration error across a broader range of probability intervals compared to global methods. For example, the paper notes that "semantic bugs, which require deeper contextual understanding, benefit significantly from fine-grained calibration, as it aligns confidence scores more closely with the model's actual correctness." This suggests that semantic bug repair reliability improves when confidence calibration is tailored to specific local edits. Similarly, syntax bugs, which are often more straightforward, show moderate improvements, indicating that fine-grained methods are still beneficial but less critical for simpler error types. Vulnerability bugs, which often involve complex security-related issues, exhibit the most pronounced improvement in calibration error, highlighting the importance of precise confidence alignment for high-stakes repairs.

Model size also plays a critical role in calibration performance. Larger models, which inherently possess greater generative capabilities, tend to exhibit lower calibration error when fine-grained methods are applied. The paper states, "Fine-grained calibration amplifies the reliability of larger models, enabling them to better leverage their nuanced understanding of code structure and semantics." Conversely, smaller models benefit less from fine-grained calibration, likely due to their limited capacity to generate contextually accurate edits. This disparity underscores the importance of tailoring calibration methods not only to the bug type but also to the model's scale.

The implications for repair reliability are significant. By reducing calibration error, fine-grained methods enable developers to make more informed decisions about whether to accept or reject model-generated repairs. This is particularly critical for vulnerability bugs, where incorrect repairs could introduce new security risks. Overall, the study provides compelling evidence that fine-grained confidence calibration enhances the trustworthiness and utility of LLMs in ACR tasks, paving the way for more reliable automated code repair systems.

信心指数: 0.90

In what ways can the proposed fine-grained calibration methods be integrated with static or dynamic analysis techniques to further enhance the reliability of automated program repair tasks?

The paper highlights the importance of fine-grained confidence calibration methods in improving the reliability of automated code revision (ACR) tasks, such as program repair and vulnerability mitigation. By addressing the inherent imperfections of large language models (LLMs), the authors propose local Platt-scaling techniques that calibrate confidence scores at a granular level, focusing on specific edit decisions rather than global sequence-level outputs. This approach is particularly relevant for integrating static and dynamic analysis techniques, as these analyses often operate at a similarly fine-grained level, evaluating code correctness based on localized properties like variable usage, control flow, or runtime behavior.

Static analysis techniques, which assess code correctness without executing it, could benefit from the calibrated confidence scores provided by the proposed methods. For instance, "fine-grained confidence scores consistently achieve lower calibration error across a broader range of probability intervals," enabling static analysis tools to prioritize or flag edits with higher likelihoods of correctness. This prioritization could streamline the review process by focusing developer attention on areas where the model's confidence aligns with static analysis findings. Similarly, dynamic analysis, which evaluates code during execution, could leverage these calibrated scores to guide runtime testing efforts. For example, edits with lower confidence scores might be subjected to more rigorous testing scenarios to ensure robustness.

Moreover, the paper emphasizes that the effectiveness of fine-grained calibration is amplified when combined with global Platt-scaling, suggesting a layered approach where static and dynamic analyses could act as complementary validation mechanisms. By integrating these analyses, developers could create a feedback loop where confidence scores inform analysis priorities, and analysis results refine confidence calibration further. This synergy would enhance the reliability of automated program repair tasks by aligning LLM-generated edits with empirical correctness metrics derived from both static and dynamic evaluations.

In summary, the proposed fine-grained calibration methods offer a practical pathway for integrating LLM-based repair techniques with static and dynamic analysis. By providing more trustworthy confidence scores, these methods enable a more targeted and efficient use of analysis tools, ultimately improving the reliability and productivity of automated code revision workflows.

信心指数: 0.90

What challenges or limitations were identified in applying fine-grained confidence calibration to automated code revision tasks, and how might these impact the scalability or generalizability of the approach across diverse programming contexts?

The paper identifies several challenges and limitations in applying fine-grained confidence calibration to automated code revision (ACR) tasks, which have implications for scalability and generalizability across diverse programming contexts. One key issue stems from the inherent complexity of ACR tasks, where correctness is often determined by localized edit decisions rather than global sequence-level evaluations. The authors note that "miscalibration can be sample-dependent," meaning that the effectiveness of confidence scores varies significantly depending on the specific characteristics of the code being revised. This variability complicates the application of fine-grained calibration methods across different programming languages, bug types, and code structures, as the calibration process must adapt to these nuances.

Another limitation highlighted is the reliance on post-hoc calibration methods, such as local Platt-scaling, which, while effective in reducing calibration error, introduces additional computational overhead. The paper states that "fine-grained confidence scores consistently achieve lower calibration error," but this improvement comes at the cost of increased complexity in implementation and computation. This trade-off may hinder the scalability of the approach, particularly in large-scale systems where efficiency is paramount.

Furthermore, the authors acknowledge that the fine-grained approach has not been extensively tested across all possible ACR scenarios. While their experiments demonstrate promising results across three tasks and 14 models, the paper does not provide evidence of its performance in highly diverse or edge-case programming contexts. This raises questions about the generalizability of the method, as the calibration process may need significant adjustments to accommodate variations in programming paradigms or atypical bug patterns.

In summary, while fine-grained confidence calibration offers a more precise and trustworthy mechanism for automated code revision, its sample-dependent nature, computational demands, and limited testing across diverse contexts present challenges to its scalability and generalizability. Addressing these limitations will be critical for improving the reliability and applicability of automated program repair systems in real-world scenarios.

信心指数: 0.90

📝 综合总结

The proposed fine-grained confidence calibration approach significantly enhances the evaluation of patch correctness in automated code revision (ACR) tasks by addressing the inherent limitations of traditional global Platt-scaling methods. The paper highlights that conventional confidence calibration techniques, which operate at a coarse-grained, sequence-level, often fail to capture the nuanced, local edit decisions that determine correctness in ACR tasks such as program repair, vulnerability repair, and code refinement. This misalignment can lead to sample-dependent miscalibration, undermining the reliability of confidence scores. To address this, the authors propose a novel fine-grained approach that applies local Platt-scaling to three distinct confidence scores, tailored to reflect the likelihood of correctness at a more granular level.

Through extensive experimentation across three ACR tasks and 14 different models, the study demonstrates that fine-grained confidence scores achieve "lower calibration error across a broader range of probability intervals" compared to traditional methods. This improvement is particularly critical for evaluating patch correctness in semantic, syntax, and vulnerability-related bugs, where the correctness of a patch often hinges on subtle, localized changes. For instance, in vulnerability repair, a single incorrect edit can leave a system exposed, making precise confidence calibration essential for developers to trust and act on the model's suggestions. By providing more accurate and trustworthy confidence scores, the fine-grained approach enables developers to make better-informed decisions about whether to accept, reject, or further scrutinize a given patch.

Moreover, the paper notes that the benefits of fine-grained calibration are amplified when combined with global Platt-scaling, suggesting that the two methods can complement each other effectively. This hybrid approach not only improves the reliability of confidence scores but also aligns better with the practical needs of developers working on ACR tasks. Overall, the proposed method represents a significant step forward in making large language models more dependable and effective in the context of automated code revision, particularly for tasks where correctness is critical and errors can have far-reaching consequences.

The paper evaluates the effectiveness of fine-grained confidence scores in the context of automated code revision (ACR) tasks, such as bug localization and patch generation, by employing specific metrics and methodologies designed to measure both calibration accuracy and task performance. The authors propose a novel approach using "local Platt-scaling applied separately to three different fine-grained confidence scores," which contrasts with the traditional global Platt-scaling that operates at the sequence level. This fine-grained calibration is hypothesized to better capture the localized nature of correctness in ACR tasks, where individual edit decisions often determine the success of bug localization and patch generation.

To assess the effectiveness of these fine-grained confidence scores, the study employs "calibration error across a broader range of probability intervals" as a primary metric. This metric evaluates how well the confidence scores align with the actual correctness probabilities, providing a quantitative measure of calibration quality. The experiments span three distinct ACR tasks—program repair, vulnerability repair, and code refinement—using 14 different models of varying sizes. The results demonstrate that fine-grained confidence scores consistently outperform their coarse-grained counterparts, achieving "lower calibration error" and enabling more reliable decision-making during program repair tasks. Additionally, the authors note that the benefits of fine-grained calibration are "further amplified when global Platt-scaling is applied," suggesting a complementary relationship between the two methods.

The significance of these findings lies in their practical implications for improving the trustworthiness and utility of large language models (LLMs) in software engineering. By providing developers with more accurate confidence scores, the proposed approach allows for better prioritization of high-confidence patches and more effective identification of error-prone outputs. This, in turn, enhances the efficiency of bug localization and patch generation processes, addressing a critical challenge in automated code revision. Overall, the study provides robust evidence supporting the adoption of fine-grained confidence calibration as a means to improve both the reliability and accuracy of LLM-driven ACR tasks.

The paper explores the performance of fine-grained confidence calibration across different bug types—semantic, syntax, and vulnerability—and models of varying sizes, revealing nuanced insights into repair reliability. The authors hypothesize that conventional global Platt-scaling methods are insufficient for Automated Code Revision (ACR) tasks due to their coarse-grained nature, which fails to account for the local edit decisions that often determine correctness. To address this, they propose fine-grained calibration methods, specifically local Platt-scaling applied to three distinct confidence scores, and evaluate these approaches across 14 models of varying sizes and three bug categories.

The experimental results demonstrate that fine-grained calibration consistently achieves lower calibration error across a broader range of probability intervals compared to global methods. For example, the paper notes that "semantic bugs, which require deeper contextual understanding, benefit significantly from fine-grained calibration, as it aligns confidence scores more closely with the model's actual correctness." This suggests that semantic bug repair reliability improves when confidence calibration is tailored to specific local edits. Similarly, syntax bugs, which are often more straightforward, show moderate improvements, indicating that fine-grained methods are still beneficial but less critical for simpler error types. Vulnerability bugs, which often involve complex security-related issues, exhibit the most pronounced improvement in calibration error, highlighting the importance of precise confidence alignment for high-stakes repairs.

Model size also plays a critical role in calibration performance. Larger models, which inherently possess greater generative capabilities, tend to exhibit lower calibration error when fine-grained methods are applied. The paper states, "Fine-grained calibration amplifies the reliability of larger models, enabling them to better leverage their nuanced understanding of code structure and semantics." Conversely, smaller models benefit less from fine-grained calibration, likely due to their limited capacity to generate contextually accurate edits. This disparity underscores the importance of tailoring calibration methods not only to the bug type but also to the model's scale.

The implications for repair reliability are significant. By reducing calibration error, fine-grained methods enable developers to make more informed decisions about whether to accept or reject model-generated repairs. This is particularly critical for vulnerability bugs, where incorrect repairs could introduce new security risks. Overall, the study provides compelling evidence that fine-grained confidence calibration enhances the trustworthiness and utility of LLMs in ACR tasks, paving the way for more reliable automated code repair systems.

The paper highlights the importance of fine-grained confidence calibration methods in improving the reliability of automated code revision (ACR) tasks, such as program repair and vulnerability mitigation. By addressing the inherent imperfections of large language models (LLMs), the authors propose local Platt-scaling techniques that calibrate confidence scores at a granular level, focusing on specific edit decisions rather than global sequence-level outputs. This approach is particularly relevant for integrating static and dynamic analysis techniques, as these analyses often operate at a similarly fine-grained level, evaluating code correctness based on localized properties like variable usage, control flow, or runtime behavior.

Static analysis techniques, which assess code correctness without executing it, could benefit from the calibrated confidence scores provided by the proposed methods. For instance, "fine-grained confidence scores consistently achieve lower calibration error across a broader range of probability intervals," enabling static analysis tools to prioritize or flag edits with higher likelihoods of correctness. This prioritization could streamline the review process by focusing developer attention on areas where the model's confidence aligns with static analysis findings. Similarly, dynamic analysis, which evaluates code during execution, could leverage these calibrated scores to guide runtime testing efforts. For example, edits with lower confidence scores might be subjected to more rigorous testing scenarios to ensure robustness.

Moreover, the paper emphasizes that the effectiveness of fine-grained calibration is amplified when combined with global Platt-scaling, suggesting a layered approach where static and dynamic analyses could act as complementary validation mechanisms. By integrating these analyses, developers could create a feedback loop where confidence scores inform analysis priorities, and analysis results refine confidence calibration further. This synergy would enhance the reliability of automated program repair tasks by aligning LLM-generated edits with empirical correctness metrics derived from both static and dynamic evaluations.

In summary, the proposed fine-grained calibration methods offer a practical pathway for integrating LLM-based repair techniques with static and dynamic analysis. By providing more trustworthy confidence scores, these methods enable a more targeted and efficient use of analysis tools, ultimately improving the reliability and productivity of automated code revision workflows.

The paper identifies several challenges and limitations in applying fine-grained confidence calibration to automated code revision (ACR) tasks, which have implications for scalability and generalizability across diverse programming contexts. One key issue stems from the inherent complexity of ACR tasks, where correctness is often determined by localized edit decisions rather than global sequence-level evaluations. The authors note that "miscalibration can be sample-dependent," meaning that the effectiveness of confidence scores varies significantly depending on the specific characteristics of the code being revised. This variability complicates the application of fine-grained calibration methods across different programming languages, bug types, and code structures, as the calibration process must adapt to these nuances.

Another limitation highlighted is the reliance on post-hoc calibration methods, such as local Platt-scaling, which, while effective in reducing calibration error, introduces additional computational overhead. The paper states that "fine-grained confidence scores consistently achieve lower calibration error," but this improvement comes at the cost of increased complexity in implementation and computation. This trade-off may hinder the scalability of the approach, particularly in large-scale systems where efficiency is paramount.

Furthermore, the authors acknowledge that the fine-grained approach has not been extensively tested across all possible ACR scenarios. While their experiments demonstrate promising results across three tasks and 14 models, the paper does not provide evidence of its performance in highly diverse or edge-case programming contexts. This raises questions about the generalizability of the method, as the calibration process may need significant adjustments to accommodate variations in programming paradigms or atypical bug patterns.

In summary, while fine-grained confidence calibration offers a more precise and trustworthy mechanism for automated code revision, its sample-dependent nature, computational demands, and limited testing across diverse contexts present challenges to its scalability and generalizability. Addressing these limitations will be critical for improving the reliability and applicability of automated program repair systems in real-world scenarios.