AXIS: Explainable Time Series Anomaly Detection with Large Language Models

Tian Lan, Hao Duong Le, Jinbo Li, Wenjun He, Meng Wang, Chenghao Liu, Chen Zhang · DOI

Introduction: The Interpretability Crisis in Time Series

Traditional Time Series Anomaly Detection (TSAD) models are often "black boxes" that output anomaly scores without intuitive reasoning. While existing eXplainable AI (XAI) methods like SHAP provide some insight, they typically offer abstract statistical features—such as "increased variance" or "skewness"—that fail to capture the qualitative, pattern-level insights experts need to make informed decisions.

Traditional black-box models and existing XAI methods (like SHAP) often fail to provide intuitive, pattern-level explanations for anomalies.

The Semantic Gap in LLM-based Detection

Recent research has explored using Large Language Models (LLMs) for TSAD, but these models face a significant "semantic gap." Because LLMs are designed for discrete text tokens rather than continuous numerical signals, simple data serialization (converting numbers to text) often results in two primary failures:

  • Poor Contextual Grounding: The inability to interpret a local anomaly relative to the global trend (e.g., failing to see if a "V-shape" is normal for that specific dataset).
  • Poor Representation Alignment: A lack of connection between raw numerical data and human-centric concepts like a "V-shape" or "regime shift."
AXIS addresses the 'semantic gap' by providing contextual grounding and representation alignment, enabling the LLM to recognize patterns like 'V-shapes' within global trends, unlike baseline approaches.

The AXIS Framework

AXIS (Explainable Time Series Anomaly Detection with LLMs) bridges this gap by keeping a powerful LLM frozen and utilizing a specialized Hint Tuner. This component provides three complementary streams of information to guide the model's reasoning:

  1. Symbolic Numeric Hints: Compact, textualized versions of specific data windows to provide direct numerical grounding.
  2. Context-Integrated Step-Aligned Hints: A pretrained Transformer-based encoder processes the entire series to capture global context. The Hint Tuner distills this into "soft prompts"—embeddings aligned with the LLM’s own vocabulary space—allowing the model to "see" complex temporal dynamics.
  3. Task-Prior Hints: Learnable embeddings that encode general characteristics of what constitutes an anomaly across various domains.

Evaluation and Key Results

The researchers evaluated AXIS using a new Semantic Anomaly Benchmark and nine public TSAD datasets, including IOPS, NAB, UCR, and YAHOO.

  • Superior Explanation Quality: AXIS outperformed specialized models like ChatTS and vision-based approaches (GPT-4o), scoring 4.19/5 on reasoning tasks in "LLM-as-a-judge" evaluations.
  • Expert Validation: In double-blind expert rankings, AXIS consistently achieved the best average rank for explanation clarity and helpfulness.
  • Competitive Detection: Despite its focus on explainability, AXIS remains a top-tier detector, ranking #1 or #2 in accuracy across several major public benchmarks like SED and YAHOO.

Conclusion and Future Work

AXIS represents a significant shift from "Is this an anomaly?" to "Explain this pattern." By bridging the semantic gap with soft prompts and global context, it provides the intuitive reasoning necessary for real-world decision-making. Future iterations aim to incorporate domain-specific knowledge graphs for root-cause analysis and explore multi-modal outputs to further aid human experts.

Summary updated

BibTeX
@misc{lan2025axis,
  author = {Tian Lan and Hao Duong Le and Jinbo Li and Wenjun He and Meng Wang and Chenghao Liu and Chen Zhang},
  title = {{AXIS: Explainable Time Series Anomaly Detection with Large Language Models}},
  year = {2025},
  eprint = {2509.24378},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24378},
}
Figure