← Lab /AI/ML

Graph reasoning boosts LLM cybersecurity analysis accuracy by up to 12.2%

Graph reasoning topology improves LLM cybersecurity analysis accuracy by 9.8-12.2 percentage points over few-shot prompting

AI/ML arXiv 21 Sep 2026 Measurement Simulation evidence

Published as “Reasoning Topology Matters: A Controlled Study of LLM-Based Cybersecurity Analysis”

Why it matters

Incorporating graph-structured reasoning can measurably improve automated security analysis accuracy, so system designers should treat reasoning topology as an explicit design dimension.

Summary

Graph-of-Thought (GoT) reasoning achieves the highest accuracy-85.0% on ATT&CK and CTI and 82.0% on CVE-outperforming few-shot prompting and the strong RAG baseline, with statistically significant gains (p < 0.001). Improvements grow with reasoning-structure complexity (Linear < Branching < Graph) and are consistent across model families and scales from 7B to 70B parameters. Separating system-level topology instructions from task inputs further boosts performance, especially for GoT (+3.7 points). The evidence is strong, based on multiple models, three public security datasets, and significance testing.

What they found 3

  1. Graph reasoning (GoT) yields the highest mean accuracy on all three datasets.

    “GoT achieves the highest mean accuracy on all three datasets, reaching 85.0% on ATT&CK and CTI and 82.0% on CVE.”

  2. GoT significantly outperforms few-shot prompting and also improves over the RAG baseline.

    “GoT significantly outperforms few-shot prompting on all three datasets (p < 0.001) and also improves over RAG (p < 0.05).”

  3. Separating system-level topology instructions from user prompts improves accuracy, especially for GoT.

    “The separated design consistently achieves the highest accuracy. Averaged across the three datasets, separating system and user prompts improves accuracy over the user-only setting by 1.9 percentage points for CoT, 2.9 points for ToT, and 3.7 points for GoT.”

Caveats 2

  • First, the current evaluation focuses on analytical performance and does not explicitly quantify token consumption or end-to-end inference latency; a fuller analysis of accuracy-cost trade-offs is left for future work.
  • Second, we do not systematically categorize topology-specific failure modes. Possible failure modes include ineffective branch selection in Branching reasoning and inconsistent or hallucinated dependencies in Graph reasoning, which warrant further investigation.

What’s new here 4

  • Introduces a reasoning-topology perspective (Linear, Branching, Graph) for LLM-based cybersecurity analysis.
  • Provides a controlled evaluation framework that isolates reasoning structure by separating system prompts from task inputs.
  • Empirically compares the three topologies across three heterogeneous security datasets and several LLM families and scales.
  • Demonstrates that prompt organization (system vs. user) materially affects the effectiveness of topology-based reasoning.