Skip to content

##基于图神经网络的程序错误诊断与修复

Aug 2026 · Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research

Abstract

This paper proposes a novel approach to program error diagnosis and repair leveraging Graph Neural Networks (GNNs). Traditional methods for software defect detection and correction often rely on manual inspection or rule-based systems, which can be time-consuming, expensive, and prone to human error. Our approach transforms program code into a graph structure, representing dependencies between code elements. A GNN is then employed to learn these dependencies and identify patterns associated with errors. This learned representation enables automated diagnosis of errors, and crucially, the generation of potential repair code. We demonstrate the feasibility and effectiveness of this method through a conceptual framework and illustrate the potential benefits of automating this critical aspect of software development. The core claim of this work is the utilization of GNNs to analyze program code dependencies for automated error diagnosis and repair. The core mechanism involves representing code as a graph, utilizing GNNs to learn dependencies and error patterns, and generating repair code.

View source

Similar papers

Locality-Preserving Graph Laplacian Manifold Learning Based Model Predictive Control for Three-Phase Inverters

This article presents a model predictive control (MPC) strategy for three-phase inverters based on locality preserving projections (LPPs). Unlike conventional machine learning–based MPC approaches that rely on predefined or high-dimensional input features, the proposed LPP-MPC automatically extracts compact, informative representations by preserving the data’s intrinsic geometric structure. This dimensionality reduction enables fast linear control-law evaluation with computational complexity O(1), making the controller well-suited for real-time implementation. Experimental results demonstrate that the LPP-MPC achieves lower total harmonic distortion (THD) and reduced tracking error compared to quadratic-programming MPC under both linear and nonlinear load conditions, and the proposed controller maintains consistently lower THD throughout load transients than other methods such as two-degree-of-freedom MPC. Compared to existing model-free MPC and deep learning neural network, the LPP-MPC has the lowest THD and root mean square error with the least computational time owing to its efficient linear structure and strong generalization capability.

Jianwu Zeng, Lizheng Cheng, V. Winstead et al. · 1 citation

Related blog posts