MADLLM: Multivariate Anomaly Detection via Pre-trained LLMs

Wei Tao, Xiaoyang Qu, Kai Lu, Jiguang Wan, Guokuan Li +1 more
4/13/2025
cs.CL

No confident code implementation found for this paper.

Abstract

When applying pre-trained large language models (LLMs) to address anomaly detection tasks, the multivariate time series (MTS) modality of anomaly detection does not align with the text modality of LLMs. Existing methods simply transform the MTS data into multiple univariate time series sequences, which can cause many problems. This paper introduces MADLLM, a novel multivariate anomaly detection method via pre-trained LLMs. We design a new triple encoding technique to align the MTS modality with the text modality of LLMs. Specifically, this technique integrates the traditional patch embedding method with two novel embedding approaches: Skip Embedding, which alters the order of patch processing in traditional methods to help LLMs retain knowledge of previous features, and Feature Embedding, which leverages contrastive learning to allow the model to better understand the correlations between different features. Experimental results demonstrate that our method outperforms state-of-the-art methods in various public anomaly detection datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tao2025madllm,
  title  = {MADLLM: Multivariate Anomaly Detection via Pre-trained LLMs},
  author = {Wei Tao and Xiaoyang Qu and Kai Lu and Jiguang Wan and Guokuan Li and Jianzong Wang},
  year   = {2025},
  eprint = {2504.09504},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.09504v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.09504.svg)](https://codeofpaper.com/paper/2504.09504)

Discussion