← Lab /AI/ML

Adaptive Q-learning cuts LLM escalations by 58.78% while keeping ~88% detection accuracy

The authors claim their multi-layer IDS with adaptive thresholds reduces LLM escalations by 58.78% and maintains high detection performance

AI/ML arXiv 15 May 2026 Method Prototype evidence

Published as “A Multi-Layer Cloud-IDS Pipeline with LLM and Adaptive Q-Learning Calibration”

Why it matters

The approach makes cloud IDS deployments more cost-effective by sharply cutting LLM inference expenses while preserving high detection accuracy across most layers.

Summary

The proposed multi-layer cloud IDS cuts unnecessary LLM escalations by 58.76% while keeping overall detection accuracy at 88.68% (with network and hypervisor layers reaching 98.02% and 97.08% accuracy). It uses per-layer XGBoost classifiers combined with a Q-learning agent that learns adaptive confidence thresholds, then routes low-confidence events through a memory match gate and finally to an LLM for semantic analysis. Evaluation on 15,000 test events (5,000 per layer) shows a 58.76% reduction in escalation cost and strong end-to-end performance, though host-layer F1 remains low at 60.40%.

What they found 2

  1. Overall detection accuracy of the adaptive pipeline is 88.68% with precision 85.29% and recall 84.72%

    “reducing unnecessary LLM escalations by 58.78%, thereby lowering operational inference cost while maintaining strong end-to-end performance (88.68% accuracy, 85.29% precision, 84.72% recall, and 85.00% F1).”

  2. Network and hypervisor layers achieve very high accuracies (98.02% and 97.08%)

    “The network and hypervisor layers achieved accuracies of 98.02% and 97.08%, respectively”

Caveats 3

  • HIDS F1 score remains low (60.40%) due to noisier host-level behavior and higher class ambiguity.
  • the weighted fallback mechanism remained inactive in this run is that it is only applied when the LLM predicts ATTACK but with confidence below the direct layer-specific LLM threshold.
  • The primary limitation of static confidence thresholds is the heterogeneous nature of the datasets, as all three datasets exhibit different behaviour, such as data structure, semantic ambiguity, and confidence score distributions.

What’s new here 4

  • Integrates network, host, and hypervisor IDS layers into a single pipeline
  • Applies Q-learning to learn layer-specific confidence thresholds adaptively
  • Introduces a three-gate architecture (confidence, memory, LLM) to limit LLM use
  • Provides explicit cost analysis of LLM escalations versus a static-threshold baseline