Update README.md
Browse files9 unmodified lines1011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421439 unmodified linesThis repositoty covers 8 Text datasets inlcuding: 20Newsgroups, DBpedia14, IMDB, SMS_SPAM, SST2, WOS, Enron, Reuters21578.We provide the original textual data, preprocess data and multiple embeddings based LLama2, Llama3, Mistral and Embedding Models (text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002) from OpenAI.## Dataset Details### Dataset Description<!-- Provide a longer summary of what this dataset is. -->- **Curated by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]### Dataset Sources [optional]<!-- Provide the basic links for the dataset. -->- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]## Uses<!-- Address questions around how the dataset is intended to be used. -->### Direct Use<!-- This section describes suitable use cases for the dataset. -->[More Information Needed]### Out-of-Scope Use<!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->[More Information Needed]## Dataset Structure<!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->[More Information Needed]## Dataset Creation### Curation Rationale<!-- Motivation for the creation of this dataset. -->[More Information Needed]### Source Data<!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->#### Data Collection and Processing<!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->[More Information Needed]#### Who are the source data producers?<!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->[More Information Needed]### Annotations [optional]<!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->#### Annotation process<!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->[More Information Needed]#### Who are the annotators?<!-- This section describes the people or systems who created the annotations. -->[More Information Needed]#### Personal and Sensitive Information<!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->[More Information Needed]## Bias, Risks, and Limitations<!-- This section is meant to convey both technical and sociotechnical limitations. -->[More Information Needed]### Recommendations<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.## Citation [optional]<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->**BibTeX:**[More Information Needed]**APA:**[More Information Needed]## Glossary [optional]<!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->[More Information Needed]## More Information [optional][More Information Needed]## Dataset Card Authors [optional][More Information Needed]## Dataset Card Contact[More Information Needed]9 unmodified lines1011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101119 unmodified linesThis repositoty covers 8 Text datasets inlcuding: 20Newsgroups, DBpedia14, IMDB, SMS_SPAM, SST2, WOS, Enron, Reuters21578.We provide the original textual data, preprocess data and multiple embeddings based LLama2, Llama3, Mistral and Embedding Models (text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002) from OpenAI.task_categories:- text-classification- feature-extractiontags:- anomaly-detection- benchmark- embeddings- llmslanguage:- en---# Text-ADBench: Text Anomaly Detection Benchmark based on LLMs EmbeddingThis repository provides **Text-ADBench**, a comprehensive benchmark for text anomaly detection, leveraging embeddings from diverse pre-trained language models across a wide array of text datasets.**Paper**: [Text-ADBench: Text Anomaly Detection Benchmark based on LLMs Embedding](https://arxiv.org/abs/2507.12295)**Code**: [https://github.com/Feng-001/Text-ADBench](https://github.com/jicongfan/Text-Anomaly-Detection-Benchmark)## AbstractText 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 (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, Isolation Forest) 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 at this https URL , this work provides a foundation for future research in robust and scalable text anomaly detection systems.## Dataset DetailsThis repository covers 8 text datasets including: 20Newsgroups, DBpedia14, IMDB, SMS_SPAM, SST2, WOS, Enron, Reuters21578. For each of these multi-domain datasets (news, social media, scientific publications), the repository provides:* The original textual data.* Preprocessed data.* Multiple embeddings derived from various pre-trained language models, including:* Early language models (GloVe, BERT)* Multiple LLMs (LLaMa-2, LLaMa-3, Mistral)* OpenAI embedding models (text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002)### Dataset DescriptionText-ADBench addresses the critical task of text anomaly detection by providing a standardized and comprehensive benchmark. It facilitates rigorous comparison and development of innovative approaches by systematically evaluating embedding-based text anomaly detection across diverse models and datasets. The benchmark highlights that embedding quality significantly influences anomaly detection performance and that traditional shallow algorithms can be as effective as deep learning approaches when utilizing LLM-derived embeddings.- **Curated by:** Feng Xiao and Jicong Fan- **Language(s) (NLP):** English- **License:** MIT### Dataset Sources- **Paper:** [TextADBench](https://arxiv.org/abs/2507.12295)## Uses### Direct UseThis dataset is intended for researchers and practitioners in natural language processing and artificial intelligence, specifically for:* Benchmarking existing text anomaly detection methods.* Developing and evaluating new anomaly detection algorithms on diverse text data.* Studying the impact of various LLM embeddings on anomaly detection efficacy.* Exploring efficient strategies for rapid model evaluation and selection in practical applications, leveraging observed low-rank characteristics in performance matrices.### Out-of-Scope UseThis dataset is not intended for:* General text classification tasks unrelated to anomaly detection.* Training large language models from scratch, as it primarily provides embeddings and benchmark data, not raw corpus data for pre-training.* Applications where biases present in the original source datasets or embedding models could lead to unfair or discriminatory outcomes without proper mitigation.## Dataset StructureThe repository contains 8 distinct text datasets: 20Newsgroups, DBpedia14, IMDB, SMS_SPAM, SST2, WOS, Enron, and Reuters21578. For each dataset, the repository provides:* Original textual data (e.g., in `text_data/`).* Preprocessed versions of the text data.* Multiple sets of embeddings, generated using a range of models including GloVe, BERT, Llama-2, Llama-3, Mistral, and OpenAI's text embedding models (e.g., in `text_embedding/`).For a detailed file structure, please refer to the [GitHub repository](https://github.com/Feng-001/Text-ADBench).## Dataset Creation### Curation RationaleThe dataset was created to address a critical gap in the field of text anomaly detection: the absence of standardized and comprehensive benchmarks. By providing a unified framework, Text-ADBench enables rigorous comparison and facilitates the development of innovative approaches to text anomaly detection, leveraging the advancements in large language models.### Source Data#### Data Collection and ProcessingThe benchmark leverages a wide array of publicly accessible multi-domain text datasets. The original textual data was collected, followed by preprocessing steps. Subsequently, embeddings were generated using diverse pre-trained language models, encompassing both early models and modern LLMs. The benchmark toolkit also supports generating embeddings for new text data.#### Who are the source data producers?The source data producers include the original authors and maintainers of the 8 constituent text datasets (e.g., 20Newsgroups, IMDB, SMS_SPAM, etc.). The benchmark and its generated embeddings were curated by Feng Xiao and Jicong Fan, the authors of the Text-ADBench paper.
README.md+58-90