Skip to content

Dynamic Semantic Topology Learning and Program Reasoning

Aug 2026 · Zenodo (CERN European Organization for Nuclear Research)
Advanced Graph Neural Networks

Abstract

This paper introduces a novel approach to program understanding and optimization, termed Dynamic Semantic Topology Learning and Program Reasoning. The core claim is that program behavior is not solely determined by its source code, but significantly influenced by the dynamic semantic relationship network within its runtime environment, which evolves during execution. We propose a mechanism utilizing Graph Neural Networks (GNNs) to construct and continuously update a program semantic topology. Nodes in this topology represent program elements such as functions, variables, and data structures, while edges represent their semantic dependencies – including call relationships, data flow relationships, and control flow relationships. A reinforcement learning-based GNN learning algorithm leverages feedback signals from program execution (e.g., results, errors, resource consumption) to adjust the topology, enhancing its accuracy in reflecting program behavior. This dynamic approach overcomes limitations of static semantic representations like Abstract Syntax Trees (ASTs) and Control Flow Graphs (CFGs) by capturing the complex, runtime-dependent relationships, ultimately leading to improved program understanding and optimization. The methodology offers a new paradigm for analyzing and reasoning about program logic, particularly in dynamic and complex systems.

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