Introduction
Anomaly detection is a critical task in numerous domains, including finance, manufacturing, and healthcare, where identifying irregular patterns is essential for detecting fraud, defects, or diseases. While traditional machine learning and deep learning methods have long been the standard, the emergence of Foundation Models (FMs)—such as GPT-4 and CLIP—is transforming the field. Trained on massive, diverse datasets, these models offer unprecedented capabilities in processing multimodal data, performing zero-shot learning, and providing human-readable explanations.
Despite the rapid growth of FM-based research, the landscape remains fragmented. This paper provides a systematic review and proposes a novel taxonomy to categorize how FMs are integrated into anomaly detection pipelines, moving beyond narrow focuses on specific data types or model architectures.
A Functional Taxonomy of Foundation Models
The core contribution of this survey is a structured framework that classifies the application of FMs into three distinct functional roles:
- FM as Encoder: In this role, FMs transform raw input data (e.g., text, images, time series) into rich latent feature embeddings. This approach is further divided into FM-based embeddings, which use the FM exclusively, and Hybrid embeddings, which combine FM outputs with other networks like Graph Neural Networks to capture both semantic and relational information.
- FM as Detector: FMs can be used to directly identify and localize anomalies. This is achieved through Serialization-based detection, where non-text data is converted into text sequences for LLMs to evaluate, or Encoding-based detection, which uses specialized encoders to map complex data into a format the FM can natively interpret.
- FM as Interpreter: A unique strength of FMs is their ability to explain why a data point is considered anomalous. This includes Detection-based explanation, where the model detects and explains simultaneously, and Verification-based explanation, where the FM acts as a secondary validator for anomalies flagged by traditional systems.
Key Insights and Capabilities
The integration of FMs into anomaly detection introduces several transformative advantages:
- Versatility and Flexibility: FMs are not merely classifiers; they can serve as feature extractors, evaluators, or post-hoc explainers depending on the specific requirements of the detection system.
- In-Context Learning: FMs enable zero-shot or few-shot detection. By utilizing natural language prompts, models can adapt to new tasks without the need for extensive, task-specific retraining.
- Bridging Modality Gaps: Techniques like "serialization" allow LLMs to process non-NLP data, while Large Vision-Language Models (LVLMs) natively handle multimodal inputs, reducing the need for complex data conversions.
- Enhanced Explainability: Unlike traditional "black-box" models that only output probability scores, FMs generate human-understandable reasoning, which is crucial for high-stakes decision-making.
The Current Landscape
The survey reviews a wide array of state-of-the-art models applied across diverse domains, including tabular data in finance, industrial image inspection, and real-world video surveillance.
As shown in the table above, there is a clear trend toward using powerful models like GPT-4, LLaMA, and CLIP. While these models excel at semantic understanding, the review notes that they may require careful prompt engineering or parameter-efficient fine-tuning (PEFT) to capture subtle, domain-specific anomalies.
Challenges and Future Directions
Despite their promise, several hurdles remain for the widespread adoption of FMs in anomaly detection:
- Efficiency: The massive size of FMs poses challenges for real-time deployment in latency-sensitive environments like autonomous driving or edge computing.
- Bias and Trustworthiness: FMs can inherit biases from their training data, leading to unfair outcomes. Furthermore, ensuring that generated explanations are logically sound and free from "hallucinations" is a primary concern.
- True Multimodality: Future research must move beyond simple text-image pairs toward models that can natively integrate highly diverse data streams, such as combining genomic data with clinical text and medical imaging.
Summary updated