Skip to content
Preprint

LLM as Detector: An In-context Learning Approach for Tabular Anomaly Detection

Aug 2026 · 0 citations · 30 references
Computer Science

TL;DR

LLM-Detector is proposed, a framework that utilizes the in-context learning capacity of LLMs for structured, prompt-conditioned scoring synthesis, enabling LLMs to derive anomaly detection logic from structured normal-state knowledge.

Abstract

Anomaly detection in tabular data is challenging because abnormal samples often arise as violations of cross-feature dependencies rather than simple marginal deviations. Existing detectors rely on geometric or reconstruction signals, while prior LLM-based approaches mainly fine-tune LLMs with normal samples or generate synthetic anomalies. We propose LLM-Detector, a framework that utilizes the in-context learning capacity of LLMs for structured, prompt-conditioned scoring synthesis, enabling LLMs to derive anomaly detection logic from structured normal-state knowledge. Specifically, normal training data are converted into statistical summaries, causal dependencies, and distilled prototypes that are organized into a prompt for code generation. The resulting scoring engine evaluates statistical deviation, structural inconsistency, and density-based abnormality then computes an anomaly score for each test sample. We evaluate LLM-Detector on 24 tabular datasets, comparing against 15 SOTA baselines. Results show consistent improvements across both mixed-type and continuous-only settings. Moreover, this design eliminates the need for LLM fine-tuning or neural network training, reducing computational cost and enabling practical anomaly detection in real-world tabular systems.

View source

Similar papers

Preprint Jul 2026

CORE: In-Context Reconstruction for Unified Tabular Anomaly Detection

CORE introduces a decorrelated feature alignment module to directly align heterogeneous features into a unified representation space, which retains their semantic information, and formulates unified TAD as an in-context reconstruction problem, eliminating the need for labeled or synthesized anomalies.

Yunfeng Zhao, Qingfeng Chen, Yue Tan et al. · 0 citations
Preprint Aug 2026

CARE: A Cascaded Framework for Efficient and Reliable Time Series Anomaly Detection

CARE, a model-agnostic cascaded inference framework that integrates a Lightweight Pre-filter Model (LPM) with an existing high-capacity Complex Detection Model (CDM) and introduces a Structure Attention module to explicitly capture channel-wise anomaly contributions, achieves inference speedup compared to the most accu...

Zemin Chao, Qian Xu, Jian-He Cen et al. · 0 citations
Open access Aug 2026

MeCoLog: Meta-contrastive learning for cross-system few-shot log-based anomaly detection

Extensive experiments demonstrate that MeCoLog consistently outperforms state-of-the-art baselines under few-shot cross-system settings, offering a robust and highly transferable solution for real-world log anomaly detection.

Manh Tuan Nguyen, Tuan Phong Tran, Le Dinh Trang Dang et al. · 0 citations
Review Aug 2026

From Benchmark Performance to Tool Deployment: Human-in-the-Loop Anomaly Detection

A unified human-in-the-loop framework for manufactured-part inspection that combines image annotation, AI-assisted defect detection, and an integrated validation engine is developed, replacing a prior manual visual inspection and documentation workflow.

Mike Szklarzewski, CJ George, Gavin Smithson et al. · 0 citations
Open access Jul 2026

LLM-AP: LLM-Based Anomaly Detection with Synthetic Time-Series Data Augmentation

This paper presents a method that addresses the imbalance between normal and anomaly data by transforming time-series data into a structured sentence format and using a large language model to generate and augment diverse anomaly scenarios.

Geunho Lee, Jieun Lee, Tae-yong Kim et al. · 0 citations
Jul 2026

Region-Prompt-Guided Anomaly Detection With Entropy-Based Consistency Modeling

Visual industrial anomaly detection has evolved from one-class modeling to more challenging multi-class settings, where diverse categories and complex visual patterns must be jointly handled. Existing approaches often assume that anomalies lie far from normal samples in feature or spatial space. However, this assumptio...

Yong Shi, Ruijie Xu, Zhiquan Qi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.