TAD-Bench: A Comprehensive Benchmark for Embedding-Based Text Anomaly Detection
Yang Cao, Sikun Yang, Chen Li, Haolong Xiang, Lianyong Qi, Bo Liu, Rongsheng Li, Ming Liu
TL;DR
We address the challenge of evaluating embedding-based text anomaly detection by introducing TAD-Bench, a multi-domain benchmark that combines diverse datasets with a suite of embedding models and anomaly detectors. The study systematically analyzes interactions between embeddings and detectors, revealing that OpenAI embeddings offer robust, generalizable performance across tasks, while detectors like kNN and INNE provide strong reliability in high-dimensional spaces. Results highlight domain-specific differences: spam detection benefits from explicit pattern cues, whereas hate speech and contextual misinformation remain difficult. These findings inform design choices for robust, scalable NLP anomaly detection and motivate future work on adaptive embeddings and hybrid detection approaches.
Abstract
Text anomaly detection is crucial for identifying spam, misinformation, and offensive language in natural language processing tasks. Despite the growing adoption of embedding-based methods, their effectiveness and generalizability across diverse application scenarios remain under-explored. To address this, we present TAD-Bench, a comprehensive benchmark designed to systematically evaluate embedding-based approaches for text anomaly detection. TAD-Bench integrates multiple datasets spanning different domains, combining state-of-the-art embeddings from large language models with a variety of anomaly detection algorithms. Through extensive experiments, we analyze the interplay between embeddings and detection methods, uncovering their strengths, weaknesses, and applicability to different tasks. These findings offer new perspectives on building more robust, efficient, and generalizable anomaly detection systems for real-world applications.
