arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.12295cs.CLcs.AIcs.LG
收藏

Text-ADBench:基于大语言模型嵌入的文本异常检测基准

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

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Feng Xiao, Jicong Fan

AI总结:

本研究构建了基于LLM嵌入的文本异常检测基准,通过多模型、多数据集的实验发现嵌入质量决定检测效果,深度学习方法在LLM嵌入下无性能优势,还提出了高效评估策略并开源工具包。

摘要:

文本异常检测是自然语言处理(NLP)中的一项关键任务,应用范围涵盖欺诈检测、虚假信息识别、垃圾邮件检测和内容审核等领域。尽管大型语言模型(LLM)和异常检测算法已取得显著进展,但缺乏标准化且全面的基准来评估现有文本数据异常检测方法,这限制了严格比较和创新方法的发展。本研究开展了全面的实证研究,引入了一个文本异常检测基准,利用多种预训练语言模型在广泛文本数据集上的嵌入结果。本研究通过以下四个方面系统评估了基于嵌入的文本异常检测的有效性:(1)早期语言模型(GloVe、BERT);(2)多个大型语言模型(LLaMA-2、LLaMA-3、Mistral、OpenAI嵌入模型(small、ada、large));(3)多领域文本数据集(新闻、社交媒体、科学出版物);(4)全面的评估指标(AUROC、AUPRC)。实验揭示了一个关键实证结论:嵌入质量显著决定了异常检测的效果,当利用LLM生成的嵌入时,基于深度学习的方法相比传统浅层算法(如KNN、OCSVM)并无性能优势。此外,研究还观察到跨模型性能矩阵具有强低秩特性,这为实际应用中的快速模型(或嵌入)评估和选择提供了高效策略。最后,本研究通过开源包含所有不同模型嵌入结果和代码的基准工具包,为未来鲁棒且可扩展的文本异常检测系统研究提供了基础,代码仓库位于此https URL。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑