Structural Code Monitors: Graph Matching Networks on Code Property Graphs for Topology-Aware Trusted Monitoring
Our hackathon project demonstrated that program structure can provide a useful complementary signal for trusted monitoring in AI control. We built a Graph Matching Network that compares Code Property Graphs of untrusted code against trusted reference solutions using syntax, control-flow and data-flow information. On 200 Apps-Control-Arena trajectories, the monitor achieved 0.946 AUC and 70% Recall@2%FPR, substantially outperforming the LLM monitoring baselines we evaluated at the low false-positive operating point relevant to constrained human audit budgets. gnn_monitor
Funding would allow us to turn this prototype into a more robust AI-control research contribution.
First, we would investigate how structural monitoring behaves under weaker, imperfect or alternative reference mechanisms, addressing the main practical limitation raised during review.
Second, we would evaluate adaptive attacks where the adversary knows that structural monitoring is being used, including topology-preserving attacks such as literal or constant modifications that are known failure modes of the current system.
Third, we would study hybrid monitoring systems combining structural and LLM-based monitors. Our hypothesis is that the two approaches may have complementary failure modes because one reasons primarily over program structure while the other reasons over semantic and textual information.
Finally, we would broaden evaluation across additional attack scenarios and ControlArena settings, improve the open-source implementation, and prepare the results for workshop or conference publication.
The aim is not to replace LLM monitors, but to determine whether structural monitoring can provide a useful, independent defense-in-depth signal for increasingly capable coding agents.
For an ideal ask of $30,000:
- Researcher stipends / research time — $17,000
Continued development, experiments, analysis and publication work. - LLM API and adversarial evaluation costs — $6,000
Attack generation, trusted-model outputs, monitoring baselines and adaptive red-team experiments. - Compute — $4,000
GNN training, model sweeps, CPG processing and evaluation runs. - Publication, workshop and dissemination costs — $3,000
Conference/workshop submission, travel where appropriate, and research dissemination.
For the minimum ask of $15,000, we would narrow the scope to the highest-priority research questions: reference robustness, adaptive attacks and structural+LLM monitor complementarity, with a smaller evaluation budget and researcher allocation.
Private comment. Only shown to approved funders and grant reviewers.