Research Papers 论文研究 1d ago Updated 20h ago 更新于 20小时前 47

LLM as Detector: An In-context Learning Approach for Tabular Anomaly Detection LLM作为检测器:基于上下文学习的表格异常检测方法

LLM-Detector leverages in-context learning of LLMs to derive anomaly detection logic from structured normal-state knowledge without fine-tuning or neural network training Normal training data is transformed into statistical summaries, causal dependencies, and distilled prototypes, organized into prompts for code generation of a scoring engine The scoring engine evaluates three dimensions: statistical deviation, structural inconsistency, and density-based abnormality to compute anomaly scores Eva 提出LLM-Detector框架,利用LLM的上下文学习能力进行表格异常检测,无需微调或训练神经网络 将正常训练数据转换为统计摘要、因果依赖和蒸馏原型,组织为代码生成提示,实现结构化异常评分 在24个表格数据集上对比15个SOTA基线,在混合类型和纯连续型设置下均取得一致改进 该方法通过评估统计偏差、结构不一致性和基于密度的异常来计算异常分数,降低计算成本

62
Hot 热度
74
Quality 质量
66
Impact 影响力

Analysis 深度分析

TL;DR

  • LLM-Detector leverages in-context learning of LLMs to derive anomaly detection logic from structured normal-state knowledge without fine-tuning or neural network training
  • Normal training data is transformed into statistical summaries, causal dependencies, and distilled prototypes, organized into prompts for code generation of a scoring engine
  • The scoring engine evaluates three dimensions: statistical deviation, structural inconsistency, and density-based abnormality to compute anomaly scores
  • Evaluated on 24 tabular datasets against 15 SOTA baselines, showing consistent improvements across both mixed-type and continuous-only settings
  • The approach eliminates computational costs associated with fine-tuning, enabling practical deployment in real-world tabular anomaly detection systems

Why It Matters

This work represents a paradigm shift in tabular anomaly detection by demonstrating that LLMs can serve as zero-shot detectors through in-context learning rather than requiring expensive fine-tuning or synthetic data generation. For AI practitioners, it offers a computationally efficient, adaptable solution that generalizes across diverse tabular domains without retraining, making anomaly detection more accessible for production systems with limited resources.

Technical Details

  • Framework Architecture: LLM-Detector converts normal training data into three structured components—statistical summaries, causal dependencies, and distilled prototypes—which are organized into prompts that guide LLM-based code generation for the scoring engine
  • Scoring Engine Design: The generated code evaluates three complementary signals: (1) statistical deviation from normal distributions, (2) structural inconsistency in cross-feature dependencies, and (3) density-based abnormality in feature space
  • In-Context Learning Mechanism: Unlike prior LLM-based approaches that fine-tune on normal samples or generate synthetic anomalies, this method uses prompt-conditioned scoring synthesis, allowing the LLM to derive detection logic directly from structured knowledge embedded in the prompt
  • Evaluation Setup: Tested on 24 tabular datasets with comparisons against 15 state-of-the-art baselines, covering both mixed-type (categorical + continuous) and continuous-only data configurations
  • Computational Efficiency: The design avoids LLM fine-tuning and neural network training entirely, significantly reducing computational overhead while maintaining competitive or superior detection performance

Industry Insight

  • The in-context learning approach for anomaly detection could become a standard pattern for applying LLMs to structured data tasks beyond tabular data, suggesting broader applicability to time-series, graph, or spatial anomaly detection without retraining
  • Organizations with limited ML infrastructure can now deploy sophisticated anomaly detection systems using off-the-shelf LLMs, lowering the barrier to entry for production-grade fraud detection, industrial monitoring, and security applications
  • The elimination of fine-tuning requirements raises important considerations about interpretability and trust—practitioners should validate that LLM-derived scoring logic aligns with domain-specific anomaly definitions before deployment in critical systems

TL;DR

  • 提出LLM-Detector框架,利用LLM的上下文学习能力进行表格异常检测,无需微调或训练神经网络
  • 将正常训练数据转换为统计摘要、因果依赖和蒸馏原型,组织为代码生成提示,实现结构化异常评分
  • 在24个表格数据集上对比15个SOTA基线,在混合类型和纯连续型设置下均取得一致改进
  • 该方法通过评估统计偏差、结构不一致性和基于密度的异常来计算异常分数,降低计算成本

为什么值得看

本文首次将LLM的上下文学习能力应用于表格异常检测领域,避免了传统方法对几何或重建信号的依赖,为工业界提供了低成本的异常检测解决方案。其无需微调的设计思路为LLM在结构化数据任务中的应用提供了新的范式。

技术解析

  • 核心架构:LLM-Detector将正常训练数据转化为三类结构化知识——统计摘要、因果依赖关系和蒸馏原型,组织为代码生成提示,使LLM能够从中推导异常检测逻辑
  • 评分机制:生成的评分引擎综合评估三个维度——统计偏差(偏离正常分布)、结构不一致性(违反跨特征依赖)和基于密度的异常(低密度区域样本)
  • 实验设置:在24个表格数据集上评估,对比15个SOTA基线方法,涵盖混合类型(分类+连续)和纯连续型两种数据设置
  • 效率优势:完全避免LLM微调或神经网络训练,显著降低计算资源消耗,适合实时工业部署

行业启示

  • 范式转变:LLM从"被微调的工具"转变为"上下文学习的推理引擎",为结构化数据任务提供了零样本/少样本的新思路
  • 成本优化:无需训练的设计大幅降低部署门槛,使中小型企业也能在表格异常检测场景中使用LLM能力
  • 应用拓展:该方法论可推广至其他结构化数据任务(如欺诈检测、故障诊断),建议关注其在时序表格数据和多模态表格数据上的扩展潜力

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Research 科学研究 Evaluation 评测