arXiv:2507.12295cs.CLcs.AI2025-07被引 5

基于大模型嵌入构建文本异常检测基准,揭示高质量嵌入决定检测效果

Text-ADBench: Text Anomaly Detection Benchmark Based on LLM Embeddings

  • 用多种大模型嵌入在多领域文本上系统评估异常检测方法
  • 发现大模型嵌入下浅层算法性能不逊于深度方法,嵌入质量是关键
  • 观测到跨模型性能矩阵低秩特征,可快速筛选最优嵌入用于实际应用

文本异常检测是自然语言处理中的关键任务,广泛应用于欺诈识别、虚假信息检测、垃圾信息过滤和内容审核等领域。尽管大语言模型(LLMs)和异常检测算法取得显著进展,但缺乏标准化、全面的文本异常检测评估基准,限制了方法的严谨比较与创新。本文开展系统性实证研究,引入一个基于多种预训练语言模型嵌入的文本异常检测基准,覆盖新闻、社交媒体、学术论文等多领域数据集。实验评估了从GloVe、BERT到LLaMA-2、LLaMA-3、Mistral及OpenAI嵌入模型(small、ada、large)的嵌入表现,并采用AUROC、AUPRC等综合指标进行评测。结果表明:嵌入质量显著影响检测效果;在使用大模型嵌入时,基于深度学习的方法并未优于传统浅层算法(如KNN、OCSVM)。此外,观察到跨模型性能矩阵具有强低秩特性,可实现快速模型或嵌入评估与选择。本文开源全部嵌入数据与代码,为未来构建鲁棒、可扩展的文本异常检测系统奠定基础。

原文摘要 · Abstract (English)

Text anomaly detection is a critical task in natural language processing (NLP), with applications spanning fraud detection, misinformation identification, spam detection and content moderation, etc. Despite significant advances in large language models (LLMs) and anomaly detection algorithms, the absence of standardized and comprehensive benchmarks for evaluating the existing anomaly detection methods on text data limits rigorous comparison and development of innovative approaches. This work performs a comprehensive empirical study and introduces a benchmark for text anomaly detection, leveraging embeddings from diverse pre-trained language models across a wide array of text datasets. Our work systematically evaluates the effectiveness of embedding-based text anomaly detection by incorporating (1) early language models (GloVe, BERT); (2) multiple LLMs (LLaMA-2, LLaMA-3, Mistral, OpenAI embedding models (small, ada, large)); (3) multi-domain text datasets (news, social media, scientific publications); (4) comprehensive evaluation metrics (AUROC, AUPRC). Our experiments reveal a critical empirical insight: embedding quality significantly governs anomaly detection efficacy, and deep learning-based approaches demonstrate no performance advantage over conventional shallow algorithms (e.g., KNN, OCSVM) when leveraging LLM-derived embeddings. In addition, we observe strongly low-rank characteristics in cross-model performance matrices, which enables an efficient strategy for rapid model evaluation (or embedding evaluation) and selection in practical applications. Furthermore, by open-sourcing our benchmark toolkit that includes all embeddings from different models and code, this work provides a foundation for future research in robust and scalable text anomaly detection systems. Our code repository is at https://github.com/jicongfan/Text-Anomaly-Detection-Benchmark.

异常检测大模型嵌入基准测试低秩结构

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。