mlsanityData to 14 Oct 2026

RationAnomaly: Log Anomaly Detection with Rationality via Chain-of-Thought and Reinforcement Learning

arXiv 2509.14693 ↗First posted 18 Sep 2025cs.AIcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Logs constitute a form of evidence signaling the operational status of software systems. Automated log anomaly detection is crucial for ensuring the reliability of modern software systems. However, existing approaches face significant limitations: traditional deep learning models lack interpretability and generalization, while methods leveraging Large Language Models are often hindered by unreliability and factual inaccuracies. To address these issues, we propose RationAnomaly, a novel framework that enhances log anomaly detection by synergizing Chain-of-Thought (CoT) fine-tuning with reinforcement learning. Our approach first instills expert-like reasoning patterns using CoT-guided supervised fine-tuning, grounded in a high-quality dataset corrected through a rigorous expert-driven process. Subsequently, a reinforcement learning phase with a multi-faceted reward function optimizes for accuracy and logical consistency, effectively mitigating hallucinations. Experimentally, RationAnomaly outperforms state-of-the-art baselines, achieving superior F1-scores on key benchmarks while providing transparent, step-by-step analytical outputs. We have released the corresponding resources, including code and datasets.

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 9 of its 21 references that are in the map. First posted on arXiv 18 Sep 2025.

Builds on

9 of 21 references.

References · 9

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2022Log-based Anomaly Detection with Deep Learning: How Far Are We?cited by 57
  3. 2023Interpretable Online Log Analysis Using Large Language Models with Prompt Strategiescited by 38
  4. 2020Self-Attentive Classification-Based Anomaly Detection in Unstructured Logscited by 36
  5. 2023LogGPT: Log Anomaly Detection via GPTcited by 26
  6. 2023RAGLog: Log Anomaly Detection using Retrieval Augmented Generationcited by 19
  7. 2025A Survey of AIOps in the Era of Large Language Modelscited by 19
  8. 2024LogLM: From Task-based to Instruction-based Automated Log Analysiscited by 15
  9. 2024Adapting Large Language Models to Log Analysis with Interpretable Domain Knowledgecited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Semi-supervised learning via DQN for log anomaly detection
  2. 2025Improving log-based anomaly detection through learned adaptive filter
  3. 2026LogSemFuse: Semantic Evidence Fusion for Explainable Log Anomaly Detection ↗
  4. 2025R-Log: Incentivizing Log Analysis Capability in LLMs via Reasoning-based Reinforcement Learning
  5. 2026AnomalyGen: Enhancing Log-Based Anomaly Detection with Code-Guided Data Augmentation ↗
  6. 2026LogNEO: A GPT-Neo Reinforcement Learning Framework for Accurate Real-Time Log Anomaly Detection
  7. 2025Log Anomaly Detection with Large Language Models via Knowledge-Enriched Fusion
  8. 2025LogReasoner: Empowering LLMs with Expert-like Coarse-to-Fine Reasoning for Automated Log Analysis