← Lab /AI/ML

LLM-based detection reaches 89.3% accuracy, far outperforms rule-based tools

LLM classifiers achieve substantially higher anomaly detection accuracy than Wazuh and OpenSearch on endpoint-specific logs

AI/ML arXiv 20 Aug 2026 Measurement Prototype evidence

Published as “From Noise to Signal: Improving Security Log Anomaly Detection Using LLMs with Endpoint-Specific Logs”

Why it matters

Instruction-tuned LLMs can be added as a semantic analysis layer to existing SIEM pipelines, markedly improving detection of subtle authentication anomalies while keeping false-positive rates low.

Summary

Meta Llama 3.1 8B Instruct achieved the strongest overall detection performance, reaching 89.3% accuracy, 88.2% recall, 91.8% F1-score and an 11.8% false-negative rate, far outperforming Wazuh and OpenSearch. The study used a controlled testbed that generated 75 endpoint-specific authentication scenarios (normal, borderline, anomalous) and evaluated three instruction-tuned LLMs against rule-based and statistical baselines. While LLMs showed higher recall, GPT-OSS suffered from low structured-output validity (≈30% valid responses) and variable repeatability, and the paper does not provide an explicit threat model or real-world deployment data.

What they found 1

  1. Meta Llama 3.1 8B Instruct achieved the highest end-to-end accuracy and recall among all methods.

    “Meta Llama 3.1 8B Instruct achieved the strongest overall end-to-end detection performance, with an accuracy of 89.3%, recall of 88.2%, F1-score of 91.8%, and false negative rate of 11.8%.”

Caveats 7

  • GPT-OSS, despite high classification scores on valid outputs, produced valid structured responses for only 29.3%-38.7% of scenarios, drastically reducing its end-to-end reliability.
  • Qwen’s recall (68.6%) and false-negative rate (31.4%) were substantially worse than Meta Llama’s, showing that not all instruction-tuned LLMs close the detection gap.
  • Meta Llama still generated two false positives, indicating that improved recall came with a modest increase in false alerts.
  • However, this experiment does not prove that semantic reasoning alone caused the improved detection performance.
  • The experiment does not establish the underlying cause of that variability.
  • The results do not suggest that Wazuh or OpenSearch should be replaced.
  • The main limitation observed with the traditional detection approaches was their ability to identify anomalous behaviour.

What’s new here 4

  • Introduces a controlled cybersecurity testbed that generates endpoint-specific authentication logs rather than relying on public datasets.
  • Defines a standardized instruction-based classification framework with a severity scale and required JSON output for LLMs.
  • Evaluates LLMs on borderline authentication scenarios that are difficult for rule-based or statistical detectors.
  • Measures both detection performance and operational metrics such as inference latency and structured-response validity.