DATE: Detecting Anomalies in Text via Self-Supervision of Transformers

Andrei Manolache, Florin Brad, Elena Burceanu
4/12/2021
cs.CL
transformer-attention

Official code: bit-ml/date (29 stars, Python, last commit 2022-10-17).

Abstract

Leveraging deep learning models for Anomaly Detection (AD) has seen widespread use in recent years due to superior performances over traditional methods. Recent deep methods for anomalies in images learn better features of normality in an end-to-end self-supervised setting.

Show full abstract

These methods train a model to discriminate between different transformations applied to visual data and then use the output to compute an anomaly score. We use this approach for AD in text, by introducing a novel pretext task on text sequences. We learn our DATE model end-to-end, enforcing two independent and complementary self-supervision signals, one at the token-level and one at the sequence-level. Under this new task formulation, we show strong quantitative and qualitative results on the 20Newsgroups and AG News datasets. In the semi-supervised setting, we outperform state-of-the-art results by +13.5% and +6.9%, respectively (AUROC). In the unsupervised configuration, DATE surpasses all other methods even when 10% of its training data is contaminated with outliers (compared with 0% for the others).

View on arXivView PDF

Code Implementations(1)

bit-ml/dateOfficial100%
296Python, SCSSApr 9, 20214 years ago

Similar Papers

Cite this paper

@article{manolache2021date,
  title  = {DATE: Detecting Anomalies in Text via Self-Supervision of Transformers},
  author = {Andrei Manolache and Florin Brad and Elena Burceanu},
  year   = {2021},
  eprint = {2104.05591},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.05591}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.05591.svg)](https://codeofpaper.com/paper/2104.05591)

Discussion