A Radon-Nikodým Perspective on Anomaly Detection: Theory and Implications

Shlok Mehendale, Aditya Challa, Rahul Yedida, Sravan Danda, Santonu Sarkar +1 more
2/25/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Which principle underpins the design of an effective anomaly detection loss function? The answer lies in the concept of Radon-Nikodým theorem, a fundamental concept in measure theory.

Show full abstract

The key insight from this article is: Multiplying the vanilla loss function with the Radon-Nikodým derivative improves the performance across the board. We refer to this as RN-Loss. We prove this using the setting of PAC (Probably Approximately Correct) learnability. Depending on the context a Radon-Nikodým derivative takes different forms. In the simplest case of supervised anomaly detection, Radon-Nikodým derivative takes the form of a simple weighted loss. In the case of unsupervised anomaly detection (with distributional assumptions), Radon-Nikodým derivative takes the form of the popular cluster based local outlier factor. We evaluate our algorithm on 96 datasets, including univariate and multivariate data from diverse domains, including healthcare, cybersecurity, and finance. We show that RN-Derivative algorithms outperform state-of-the-art methods on 68% of Multivariate datasets (based on F1 scores) and also achieves peak F1-scores on 72% of time series (Univariate) datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mehendale2025radonnikodm,
  title  = {A Radon-Nikodým Perspective on Anomaly Detection: Theory and Implications},
  author = {Shlok Mehendale and Aditya Challa and Rahul Yedida and Sravan Danda and Santonu Sarkar and Snehanshu Saha},
  year   = {2025},
  eprint = {2502.18002},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.18002v2}
}

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

Discussion