Learning Adaptive Defense Strategies: Fine-Tuned LLMs for Network Security Games under Network Mobility
Organizations: University of Texas at El Paso, El Paso, Texas 79968, USA · Yokogawa Corporation of America · DEVCOM Army Research Laboratory, MD 20783, USA
Abstract
Large language models(LLM) show promise for strategic reasoning, yet their ability to compute game-theoretic equilibria under dynamic conditions remains largely unexplored. This work investigates whether fine-tuned LLMs can serve as solver-free surrogates for online equilibrium computation in honeypot allocation, a setting in which network mobility continuously reshapes the underlying attack graph and forces repeated re-solving of a two-player zero-sum game. We construct a dataset of 270 security games on networks of 8--25 nodes with solver-grounded equilibrium labels, and evaluate four classes of predictor over 1{,}524 held-out mobility events: non-learned baselines, six open-weight architectures evaluated zero-shot, the same six after LoRA fine-tuning, and four proprietary models as an external reference point. Predictions are scored without post-hoc repair against exact game-theoretic criteria: exploitability against an optimal attacker best-response, equilibrium support accuracy, and distributional distance. Fine-tuning reduces exploitability across every architecture, and fine-tuned open-weight models of modest size outperform every zero-shot predictor, including proprietary ones; no zero-shot model at any tier reaches the floor set by uniform allocation. Stratifying by mobility type exposes a qualitative shift that aggregate metrics conceal: zero-shot models do not condition on whether a departing node lies on an attack path, while fine-tuned models recover this distinction. We further find that validation loss is negatively rank-correlated with task performance, and that output validity, rather than predictive accuracy, is the binding constraint on further progress.
Figures & tables
| Symbol | Meaning |
| number of nodes; mean degree, so | |
| edges lying on at least one attack path, | |
| , number of simple entry target paths | |
| mean attack-path length | |
| for fixed | |
| LP solve exponent, |
| Model | Base Model Parameters | LoRA Trainable Parameters | Adapted Layers | Adapter Size |
| Phi-3-mini-4k | 3.8B | 6,291,456 (0.165%) | 128 | 25 MB |
| Mistral-7B-v0.3 | 7.2B | 20,971,520 (0.289%) | 224 | 81 MB |
| Intel Neural-Chat | 7.2B | 3,407,872 (0.047%) | 64 | 14 MB |
| Qwen 2.5-7B | 7.6B | 20,185,088 (0.265%) | 196 | 78 MB |
| LLaMA-3.1-8B | 8.0B | 16,252,928 (0.202%) | 192 | 63 MB |
| Gemma-3-12B | 12.2B | 25,362,432 (0.208%) | 288 | 97 MB |
| Strategy/Model | Gap | Value | F1 Score | TV Dist. | KL Div. | Valid. | Latency (s) | On-Path Gap | Off-Path Gap | Ratio | N (On/Off) |
| Baselines | |||||||||||
| Uniform Distribution | 479.94 | -843.91 | 0.637 | 0.650 | 9.58 | 1.00 | 3.73e-06 | 450.94 | 496.79 | 0.91 | 560 / 964 |
| Greedy Centrality | 636.30 | -1000.26 | 0.381 | 0.695 | 5.99 | 1.00 | 3.14e-05 | 562.85 | 678.96 | 0.83 | 560 / 964 |
| Mock-Oracle (LP) | 9.09 | -373.06 | 0.842 | 0.029 | 0.013 | 1.00 | 0.100 | 6.63 | 10.52 | 0.63 | 560 / 964 |
| Zero-Shot LLMs: Open-Weight Models | |||||||||||
| Qwen 2.5-7B | 590.02 | -953.99 | 0.428 | 0.751 | 12.64 | 0.10 | 2.64 | 516.50 | 632.73 | 0.82 | 560 / 964 |
LLMs for Cybersecurity
Large language models for cybersecurity support threat analysis, vulnerability research, security operations, and cyber defense.
See all 295 papers