Improving Novelty Detection using the Reconstructions of Nearest Neighbours

Michael Mesarcik, Elena Ranguelova, Albert-Jan Boonstra, Rob V. van Nieuwpoort
11/11/2021
cs.LG

Official code: mesarcik/NLN (5 stars, Python, MIT, last commit 2023-07-18).

Abstract

We show that using nearest neighbours in the latent space of autoencoders (AE) significantly improves performance of semi-supervised novelty detection in both single and multi-class contexts. Autoencoding methods detect novelty by learning to differentiate between the non-novel training class(es) and all other unseen classes.

Show full abstract

Our method harnesses a combination of the reconstructions of the nearest neighbours and the latent-neighbour distances of a given input's latent representation. We demonstrate that our nearest-latent-neighbours (NLN) algorithm is memory and time efficient, does not require significant data augmentation, nor is reliant on pre-trained networks. Furthermore, we show that the NLN-algorithm is easily applicable to multiple datasets without modification. Additionally, the proposed algorithm is agnostic to autoencoder architecture and reconstruction error method. We validate our method across several standard datasets for a variety of different autoencoding architectures such as vanilla, adversarial and variational autoencoders using either reconstruction, residual or feature consistent losses. The results show that the NLN algorithm grants up to a 17% increase in Area Under the Receiver Operating Characteristics (AUROC) curve performance for the multi-class case and 8% for single-class novelty detection.

View on arXivView PDF

Code Implementations(1)

mesarcik/NLNOfficial100%
MIT

Code for paper entitled "Improving Novelty Detection using the Reconstructions of Nearest Neighbours"

51Python, ShellNov 12, 20203 years agoMIT
anomaly-detectiondeep-learningmachine-learningnovelty-detection

Similar Papers

Cite this paper

@article{mesarcik2021improving,
  title  = {Improving Novelty Detection using the Reconstructions of Nearest Neighbours},
  author = {Michael Mesarcik and Elena Ranguelova and Albert-Jan Boonstra and Rob V. van Nieuwpoort},
  year   = {2021},
  eprint = {2111.06150},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.06150}
}

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/2111.06150.svg)](https://codeofpaper.com/paper/2111.06150)

Discussion