Large Language Models for Anomaly Detection in Computational Workflows: from Supervised Fine-Tuning to In-Context Learning

Hongwei Jin, George Papadimitriou, Krishnan Raghavan, Pawel Zuk, Prasanna Balaprakash +3 more
7/24/2024
cs.SEcs.AIcs.CL

No official code found. Best implementation: PoSeiDon-Workflows/LLM_AD (3 stars, last commit 2024-06-27).

Abstract

Anomaly detection in computational workflows is critical for ensuring system reliability and security. However, traditional rule-based methods struggle to detect novel anomalies. This paper leverages large language models (LLMs) for workflow anomaly detection by exploiting their ability to learn complex data patterns. Two approaches are investigated: 1) supervised fine-tuning (SFT), where pre-trained LLMs are fine-tuned on labeled data for sentence classification to identify anomalies, and 2) in-context learning (ICL) where prompts containing task descriptions and examples guide LLMs in few-shot anomaly detection without fine-tuning. The paper evaluates the performance, efficiency, generalization of SFT models, and explores zero-shot and few-shot ICL prompts and interpretability enhancement via chain-of-thought prompting. Experiments across multiple workflow datasets demonstrate the promising potential of LLMs for effective anomaly detection in complex executions.

View on arXivView PDF

Code Implementations(1)

Large Language Models for Anomaly Detection

34Shell, PythonSep 20, 20232 years ago

Similar Papers

Cite this paper

@article{jin2024large,
  title  = {Large Language Models for Anomaly Detection in Computational Workflows: from Supervised Fine-Tuning to In-Context Learning},
  author = {Hongwei Jin and George Papadimitriou and Krishnan Raghavan and Pawel Zuk and Prasanna Balaprakash and Cong Wang and Anirban Mandal and Ewa Deelman},
  year   = {2024},
  eprint = {2407.17545},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.17545v1}
}

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/2407.17545.svg)](https://codeofpaper.com/paper/2407.17545)

Discussion