Peking University / Research survey / 2026

Anomaly Detection
in LLM-Based SystemsA Survey

How do detectors establish what behavior to expect
when LLM outputs and execution paths can change?

Chiming Duan·Tong Jia*·Minghua He·Lingzhe Zhang·Haobo Wang·Ying Li*

Boundary-Modeling ADHistorical runtime data → pre-modeled boundary
Alignment-Based ADRequirements ↔ current behavior

Two ways to establish anomaly decision conditions

181Taxonomy examples
2Detection paradigms
5Method families
3Requirement dimensions

01 / The perspective

What makes a behavior anomalous?

Anomaly detection identifies behavior patterns that do not conform to expected behavior. This survey organizes methods by how they establish and apply the decision conditions.

108 examples

Boundary-Modeling AD

Constructs a boundary from the statistical, structural, or feature regularities of historical runtime data. Detection checks whether current behavior patterns lie within the accepted region.

Historical dataBoundaryDecision
Explore boundary-modeling methods
73 examples

Alignment-Based AD

Constructs an alignment model connecting current behavior patterns with applicable requirements under the execution context. Detection evaluates its decision conditions; requirement violations indicate anomalies.

Requirements + behaviorAlignment modelDecision
Explore alignment-based methods
The central difficulty

Different behavior patterns may fulfill the same request. Similar output formats or execution structures may still conceal anomalies. Historical resemblance alone may therefore be insufficient for a reliable anomaly decision.

Comparison of Boundary-Modeling AD and Alignment-Based AD using expected and observed behavior.
Comparison of Boundary-Modeling AD and Alignment-Based AD. From the survey.

02 / The taxonomy

One field. Two paradigms.

Five principal families organize the selected methods by their detection mechanisms.

Each example is assigned to one principal family. Counts describe the survey's selected examples, not the overall publication population.

03 / The method directory

Explore the methods

181 examples from the manuscript's active taxonomy.

Method / publicationPrincipal familyYearPublication link

Bibliographic years follow the manuscript roster; they are not uniformly first-publication dates. Hybrid methods are listed under their principal mechanism.

04 / Alignment in practice

From requirements to anomaly decisions.

Five activities describe how alignment models are constructed, evaluated, and updated. They can be combined and revisited as execution changes.

Input
Result
Five-stage framework
Requirement instantiation and behavior representation feed dynamic alignment construction and alignment evaluation; model evolution updates information used by these activities.
Numbering identifies activities, not a mandatory execution order.

05 / Coverage & open questions

A view across the research landscape.

The scope includes LLM-based applications, RAG systems, agents, and their runtime components for serving, orchestration, observability, verification, and governance.

How the literature was selected

The search covered ACM Digital Library, IEEE Xplore, Scopus, Web of Science, and arXiv, for records from January 2022 available at the July 10, 2026 retrieval cutoff.

Representative examples were selected for methodological distinctiveness and taxonomy coverage. Earlier foundational work was identified through backward reference tracing.

5,658Retrieved records
4,157After deduplication
181Taxonomy examples
The time series covers 173 dated examples through 2026 Q2. It is not a publication census.

Five open challenges

01Uncertainty in Requirements

Ambiguous or implicit goals can lead to different anomaly decisions for the same behavior. Requirement instantiation must preserve intended goals and constraints while making unresolved ambiguity explicit.

02Multi-Requirement Alignment

SLO, user intent, and safety requirements can interact or conflict. Evaluation must retain separate condition-level results and evidence; achieving one goal does not cancel a mandatory constraint violation.

03Distortion in Alignment

Mapping requirements and behavior into related representations may weaken features that reveal a violation. Representational similarity should not be mistaken for conformity to expected behavior.

04Overhead in Alignment

Evidence retrieval, inference, verification, and model updates incur runtime costs. Incremental updates and selective verification must be evaluated alongside detection effectiveness and delay.

05Interference from Intervention

Blocking, retrying, or replanning too early may interrupt useful reasoning and self-correction. Intervention should account for subsequent execution and final task outcomes.

06 / Citation

Cite this survey.

Preprint v1 · October 10, 2026
Chiming Duan et al., Peking University

BibTeX
@misc{duan2026anomaly,
  title = {Anomaly Detection in LLM-Based Systems: A Survey},
  author = {Duan, Chiming and Jia, Tong and He, Minghua and Zhang, Lingzhe and Wang, Haobo and Li, Ying},
  year = {2026},
  publisher = {alphaXiv},
  url = {https://www.alphaxiv.org/abs/2610.anomaly-detection-llm-systems},
  keywords = {Software Engineering (cs.SE), Artificial Intelligence (cs.AI), Security and Privacy (cs.CR), LLM-Based Systems, Anomaly Detection, Reliability, AIOps, Alignment-Based Detection}
}

This preprint has not been peer reviewed.