Preprint v1
Anomaly Detection in LLM-Based Systems: A Survey
Peking University
· Not peer reviewed
Abstract
Anomaly detection identifies behavior patterns that do not conform to expected behavior. It is essential for maintaining the reliability and safety of LLM-based systems. Boundary-Modeling AD follows anomaly detection approaches used in conventional software systems. It checks behavior patterns against a boundary pre-modeled from historical runtime data. However, LLM uncertainty limits how well historical normal patterns characterize expected behavior. Alignment-Based AD constructs an alignment model to evaluate current behavior patterns against applicable requirements under the execution context. Requirement violations indicate anomalies. The survey organizes existing methods into taxonomies for both paradigms and discusses challenges and future directions.