Skip to content

Graph representation learning guides large language models to achieve efficient code analysisEfficient Code Analysis via Graph Representation Learning-Guided Large Language Models

arXiv· arXiv:2601.12890· Hang Gao, Tao Peng, Baoquan Cui, Hong Huang, Fengge Wu, Junsuo Zhao, Jian Zhang·Indexed by this site · 17 days ago· Originally publishedDefenses
AI summary

The researchers propose a graph-centric attention acquisition pipeline that uses a graph neural network to guide a large language model in locating malicious behavior scattered across multiple files. The method parses a project into a code graph, uses a large language model to encode node semantics and structural signals, trains a graph neural network for preliminary detection, and then, based on the predictions, identifies the key regions most likely to contain malicious behavior to guide the large language model in in-depth analysis. It reduces interference from irrelevant context, has low annotation cost, and outperforms existing methods on multiple public and self-built datasets.

Read originalarxiv.org