AD-NLP: A Benchmark for Anomaly Detection in Natural Language Processing
Matei Bejan, Andrei Manolache, Marius Popescu
Abstract
Deep learning models have reignited the interest in Anomaly Detection research in recent years. Methods for Anomaly Detection in text have shown strong empirical results on ad-hoc anomaly setups that are usually made by downsampling some classes of a labeled dataset. This can lead to reproducibility issues and models that are biased toward detecting particular anomalies while failing to recognize them in more sophisticated scenarios. In the present work, we provide a unified benchmark for detecting various types of anomalies, focusing on problems that can be naturally formulated as Anomaly Detection in text, ranging from syntax to stylistics. In this way, we are hoping to facilitate research in Text Anomaly Detection. We also evaluate and analyze two strong shallow baselines, as well as two of the current state-of-the-art neural approaches, providing insights into the knowledge the neural models are learning when performing the anomaly detection task. We provide the code for evaluation, downloading, and preprocessing the dataset at https: //github.com/mateibejan1/ad-nlp/ .
Ask Lune
Ask anything. The answer quotes the paper.
Lune reads all of it and the papers around it, then shows you the passages behind every answer.
Lune answers from
the full paper · 1 top-tier paper that cites it · related work
Free to start. No credit card required.
Cited by top-tier papers1
Builds on3
- ELECTRA: Pre-training Text Encoders as Discriminators Rather Than GeneratorsKevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. ManningICLR 2020 · 541 citations
- Cloze Test Helps: Effective Video Anomaly Detection via Learning to Complete Video EventsGuang Yu, Siqi Wang, Zhiping Cai, En Zhu et al.ACM MM 2020 · 193 citations
- Types of Out-of-Distribution Texts and How to Detect ThemUdit Arora, William Huang, He HeEMNLP 2021
Related papers
- NLP-ADBench: NLP Anomaly Detection BenchmarkYuangang Li, Jiaqi Li, Zhuo Xiao, Tiankai Yang et al.EMNLP Findings 2025 · 4 citations
- Can LLMs Find a Needle in a Haystack? A Look at Anomaly Detection Language ModelingLeslie Barrett, Vikram Sunil Bajaj, Robert J. KinganEMNLP Findings 2025 · 1 citation
- AD-LLM: Benchmarking Large Language Models for Anomaly DetectionTiankai Yang, Yi Nian, Li Li, Ruiyao Xu et al.ACL Findings 2025 · 11 citations
- ReTabAD: A Benchmark for Restoring Semantic Context in Tabular Anomaly DetectionSanghyu Yoon, Dongmin Kim, Suhee Yoon, Ye Seul Sim et al.ICLR 2026 · 3 citations
- MMR-AD: A Large-Scale Multimodal Dataset for Benchmarking General Anomaly Detection with Multimodal Large Language ModelsXincheng Yao, Zefeng Qian, Chao Shi, Jiayang Song et al.CVPR 2026 · 2 citations
