Reasoning Topology Matters: A Controlled Study of LLM-Based Cybersecurity Analysis
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Large Language Models (LLMs) are increasingly used in cybersecurity, where accurate analysis often requires multi-step and context-dependent reasoning over complex and heterogeneous data. However, existing prompting approaches typically focus on eliciting reasoning without explicitly considering how intermediate reasoning steps are structurally organized. We introduce Security Reasoning Topology, which models reasoning through three representative structures: Linear, Branching, and Graph. To evaluate their effects, we conduct controlled experiments on three cybersecurity datasets covering MITRE ATT&CK network traffic, cyber threat intelligence (CTI), and CVE vulnerability analysis. We evaluate multiple LLMs, including Llama 2 (7B, 13B, 70B), GPT-5.1, and Mistral Large 3, while keeping task inputs consistent and controlling reasoning structure through system-level prompting. Results show that reasoning topology substantially affects performance: Graph reasoning achieves the highest overall accuracy, improving over few-shot prompting by 9.8-12.2 percentage points across datasets, while Branching provides a strong intermediate solution. The results further show that the effect of reasoning topology remains consistent across model families and scales, highlighting reasoning topology as an important design factor for LLM-based cybersecurity analysis.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 14 of its 23 references that are in the map. First posted on arXiv 21 Sep 2026.
Builds on
14 of 23 references.
Closest ancestors · 1
Same direction, newest first
Other references · 13
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 452
- 2022Reasoning with Language Model Prompting: A Surveycited by 252
- 2024Forest-of-Thought: Scaling Test-Time Compute for Enhancing LLM Reasoningcited by 110
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
- 2023AGIR: Automating Cyber Threat Intelligence Reporting with Natural Language Generationcited by 16
- 2025Think Inside the JSON: Reinforcement Strategy for Strict LLM Schema Adherencecited by 16
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineeringcited by 15
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Structured but Fragile: On the Limits of LLMs in Cybersecurity Decision-Making
- 2025AttackSeqBench: Benchmarking the Capabilities of LLMs for Attack Sequences Understanding
- 2025AthenaBench: A Dynamic Benchmark for Evaluating LLMs in Cyber Threat Intelligence
- 2026NeuroGraph: An AI Graph-Driven Neuro-Symbolic Framework for Explainable Threat Reasoning in Advanced Manufacturing
- 2026Llama-3.1-FoundationAI-SecurityLLM-Reasoning-8B Technical Report
- 2025Reasoning Under Threat: Symbolic and Neural Techniques for Cybersecurity Verification
- 2025Uncovering Vulnerabilities of LLM-Assisted Cyber Threat Intelligence
- 2026Reasoning Topology Matters: Network-of-Thought for Complex Reasoning Tasks