arXiv:2610.31722cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31722

Autoregressive Multimodal Anomaly Detection with Large Language Models for Microservice Systems

Yixiang Tang, Fagui Liu, Guoxiang Zhong, Xi Yao, C. L. Philip Chen

Yixiang Tang ID^{ID}, Fagui Liu ID^{ID}, Member, IEEE, Guoxiang Zhong ID^{ID}, Xi Yao ID^{ID}, C.L. Philip Chen ID^{ID}, Fellow, IEEE

Abstract—Microservice systems have become a dominant architecture for large-scale cloud applications, enabling rapid deployment and elastic scaling. However, ensuring the reliability and availability of microservice systems critically relies on effective anomaly detection, as failures and performance anomalies can quickly propagate across services and severely impact end-to-end system behavior. Existing multimodal anomaly detection approaches for microservice systems often struggle with two fundamental limitations: (i) the neglect of modality-specific characteristics in favor of cross-modality fusion, and (ii) the “identity-shortcut” problem that affects the feature reconstruction process. To address these issues, we propose LLMMAD, an autoregressive multimodal anomaly detection framework for microservice systems based on Large Language Models (LLMs). Initially, to reconcile cross-modality fusion with modality-specific preservation, LLMMAD embeds and recombines multimodal data into a unified sequence for LLM processing to model inter-modality relationships, while employing modality-wise reconstruction heads to retain modality-specific information. Subsequently, to eliminate the identity-shortcut, we implement a prediction-driven autoregressive objective, under which the model predicts future states rather than copies current inputs. Finally, we conduct extensive experiments on three real-world datasets. The results demonstrate that LLMMAD consistently outperforms state-of-the-art methods, achieving F1-score improvements of 3.1%, 1.4%, and 0.9%, respectively, thereby providing a more reliable solution for microservice monitoring.

Index Terms—Anomaly Detection, Microservice System, Multimodal Fusion.

I. INTRODUCTION

MICROSERVICE architecture has emerged as a mainstream paradigm for building large-scale enterprise applications, delivering enhanced flexibility, scalability, and fault isolation compared to monolithic systems [1]. In microservice architecture, a complex application is decomposed into a set of loosely coupled, fine-grained services, each running in its own process and communicating via lightweight mechanisms such as HTTP or message queues. This design enables independent deployment, rapid iteration, and elastic scaling, enhancing its industrial applicability.

However, the distributed and dynamic nature of microservice systems introduces significant challenges for ensuring reliability and operational safety. Failures can propagate across services in subtle ways, making timely and accurate anomaly detection critical yet difficult. Recognizing the critical role of service reliability, the leading cloud platforms such as eBay [2] and Microsoft Azure [3] have heavily invested in advancing anomaly detection technologies for microservice systems.

In microservice systems, system reliability engineers (SREs) collect metric, log, and trace data from running systems as operational data for monitoring [4]. Metrics are time-series data periodically collected by monitoring systems, reflecting both application performance and resource states. Logs are sequences of semi-structured events recording service runtime behaviors. Traces consist of multiple spans, each representing a service invocation and including details such as latency, status code, and operation type.

Current research has developed numerous anomaly detection algorithms for microservice systems. However, most existing methods rely primarily on single-modality data [2], [5]–[7]. Prior studies [8], [9] have shown that single-modality methods fail to capture anomaly signals associated with certain types of faults. This is because the information conveyed by a single modality is inherently limited and insufficient to represent the full system state. To overcome the inherent limitations of single-modal data, recent works [8]–[17] have explored the use of multimodal data to achieve more accurate fault detection. These methods are shown in Table I. While multimodal data provide richer information from multiple sources and offer a more comprehensive view of system health, current methods still exhibit several limitations:

• Limitation 1: Neglect of modality-specific information. Current multimodal anomaly detection approaches primarily focus on modeling either cross-modal relationships at the expense of modality-specific information. GNN-based approaches [8], [9], [11], [15], [16] learn graph representations that inherently entangle modalities, resulting in tightly coupled modality interactions. Other approaches [12]–[14], [17], [18] preserve separate modality embeddings but ultimately integrate them via fusion methods based on attention, wavelet or merely concatenation, still prioritizing cross-modal relationships. Consequently, these methods ignore the modeling of modality-specific information, potentially overlooking

This work was supported in part by the Guangdong Major Project of Basic and Applied Basic Research under Grant 2019B030302002, in part by the Science and Technology Major Project of Guangzhou under Grant 202007030006, in part by the Science and Technology Project of Guangdong Province under Grant 2021B1111600001, supported by the Major Key Project of PCL (Grant No. PCL2025AS13, PCL2024A05, PCL2025A08 and PCL2025A13, PCL2025A11), in part by the National Natural Science Foundation of China under Grant U24B20151. (Corresponding authors: Fagui Liu)

Yixiang Tang, Fagui Liu, Xi Yao, and C.L. Philip Chen are with the School of Computer Science and Engineering, South China University of Technology, Guangzhou 510006, China (e-mail: cstyx@mail.scut.edu.cn; fgliu@scut.edu.cn; csyaoxi@mail.scut.edu.cn; philip.chen@ieee.org).

Fagui Liu and Guoxiang Zhong are with the Department of New Networks, Peng Cheng Laboratory, Shenzhen 518000, China (e-mail: zhonggx01@pcl.ac.cn).

Manuscript received April 19, 2021; revised August 16, 2021.

TABLE I A COMPREHENSIVE COMPARISON OF VARIOUS MULTIMODAL ANOMALY DETECTION APPROACHES OF MICROSERVICE SYSTEMS. “√” AND “×” DENOTE THAT THE CORRESPONDING MODALITY IS USED AND NOT USED, RESPECTIVELY.

ApproachModalityFusion MethodTemporal ExtractorLearning Paradigm
MetricLogTrace
TraceGra [10]✓×✓GNNsLSTMsUnsupervised
DeepTraLog [11]×✓✓GNNsCNNsUnsupervised
Hades [12]✓✓×Cross-AttentionCNNs+TransformersSemi-Supervised
MADMM [13]✓✓×Cross-AttentionGNNs+GRUsSupervised
MISP [14]✓✓×Cross-AttentionSelf-AttentionSupervised
SCWarn [18]✓✓×ConcatenationLSTMsUnsupervised
Eadro [8]✓✓✓GNNsCNNsSupervised
AnoFusion [15]✓✓✓GNNsGRUsUnsupervised
Triple [9]✓✓✓GNNsCNNsUnsupervised
MSTGAD [16]✓✓✓GNNsCNNsSemi-Supervised
FUSION [17]✓✓✓WaveletCNNsUnsupervised
LLMMAD✓✓✓LLMsLLMsUnsupervised

unique anomaly cues that are only evident within individual modalities.

  • Limitation 2: Susceptibility to identity-shortcut. Existing multimodal anomaly detection methods typically rely on temporal feature extractors (e.g., temporal CNNs [8], [9], [11], [12], [16], [17], LSTMs [10], [18], GRUs [13], [15], or self-attention [14]) to learn temporal patterns. Among these methods, unsupervised approaches usually employ reconstruction architectures for anomaly scoring. However, reconstruction-based models [19]–[22] that utilize the aforementioned temporal feature extractors are susceptible to the “identity shortcut” problem, where the decoder reproduces the input disregarding its semantics. This problem becomes more severe in multimodal settings, as the increased complexity of multimodal data makes it easier to exploit. As a result, the model fails to produce discriminative representations for abnormal patterns, ultimately undermining the robustness and effectiveness of anomaly detection.

To systematically address these identified limitations, we propose LLMMAD, an autoregressive multimodal framework that adopts Large language models (LLMs) for unsupervised anomaly detection in microservice systems. More specifically, LLMMAD converts the data of three modalities into a sequence of embeddings arranged in chronological order. After passing through a LoRA-adapted [23] LLM with parameters frozen, embedding-level predictions are obtained, and then they are reconstructed into the original modalities. LLMMAD not only analyzes cross-modality relationships through unified multimodal LLM inference, but also captures modality-specific information via modality-wise reconstruction. Additionally, LLMMAD implements a prediction-driven autoregressive learning paradigm. By leveraging the LLM's causal masking to infer future states from cross-modal contexts, LLMMAD decouples inputs from target predictions. This mechanism inherently eliminates the identity-shortcut and enhances sensitivity to both temporal and inter-modality anomalies. In addition, LLMMAD unifies decisions from modalities through the OR-logic aggregation method, providing fine-grained anomaly detection for microservice systems.

In this paper, we make the following contributions:

  • We propose LLMMAD, a LLM-based multimodal anomaly detection framework for microservice systems.

LLMMAD jointly accounts for both cross-modality relationship and modality-specific information, addressing a key limitation of existing multimodal approaches.

  • We design a prediction-driven autoregressive learning architecture for LLMMAD. This paradigm effectively prevents the “identity shortcut” problem that commonly plagues reconstruction-based anomaly detection methods, leading to more discriminative anomaly representations.

  • We conduct comprehensive experiments on three real-world microservice datasets. The results demonstrate LLMMAD's superiority over existing anomaly detection approaches for microservice systems.

References (51)