arXiv:2609.03878cs.LGSep 2026

Manuscript Offprint

arXiv:2609.03878

Differentiable Interval Bottlenecks for Interpretable Anomaly Detection in Numerical Data

Lamine Diop, Marc Plantevit

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Lamine Diop and Marc Plantevit

EPITA, Laboratoire de Recherche de l'EPITA (LRE)

Le Kremlin-Bicêtre, France

{lamine.diop, marc.plantevit}@epita.fr

Abstract—Reconstruction-based anomaly detectors are accurate but opaque: a deep autoencoder flags a sample without telling a practitioner which feature ranges made it anomalous. We propose DIFFINT, an autoencoder whose latent bottleneck is structured as a set of soft, axis-aligned interval memberships learned end-to-end directly from raw numerical data, without any discretization or binarization. Each latent unit corresponds to a human-readable hyper-rectangle in feature space; an instance is encoded by how strongly it falls inside each interval relative to the other units, and its reconstruction error is the anomaly score. This keeps the power of differentiable representation learning while exposing an inspectable internal structure. We make the inductive bias precise: a certified reconstruction-error lower bound for points that fall outside every active coordinate of the learned support (with a Lipschitz-enforced decoder), and a graded, empirically verified suppression mechanism for the usual case in which only a few features are abnormal; and we provide a closed-form, label-free importance that ranks each (unit, feature) pair from quantities the model already maintains, turning trained intervals into auditable candidate constraints without ever seeing an anomaly label. On 48 ADBench benchmarks against 22 baselines under a common [−1,1][-1,1]-normalized protocol, DIFFINT attains the best mean rank overall on both metrics (4.10 on ROC-AUC, 4.16 on AUPR); among inlier-only detectors it leads its regime clearly, and it is competitive with the strongest contaminated-data detectors (see the stratified and complete-case analyses). It is the only interpretable detector in the statistically-tied leading cluster of seven methods.

Index Terms—anomaly detection, interpretability, differentiable models, interval representations, numerical data

I. INTRODUCTION

Anomaly detection on tabular numerical data underpins fraud screening, fault monitoring, and clinical triage. Reconstruction-based deep detectors (autoencoders, VAEs, and one-class networks) are among the most accurate general-purpose methods on heterogeneous benchmarks [1]. Their weakness is not accuracy but accountability: the latent code is an entangled, rotationally ambiguous vector [2], [3], so a flagged record comes with a scalar error and no statement of which feature values were responsible. A fraud analyst who receives “account 42819: error 7.4” cannot tell whether to escalate, refund, or dismiss. Regulation codifies the same need – the EU AI Act’s “meaningful information about the logic involved,” feature-level reason codes in credit scoring – so an unexplained alert has little practical use.

A natural way to obtain feature-grounded explanations is to constrain the model to reason in intervals: axis-aligned hyper-rectangles, the numerical analogue of pattern-mining items and rule-learning conditions, immediately readable as “feature j∈[a,b]j \in [a, b]”. Classical interval pattern discovery, however, relies on exhaustive enumeration over a discretized space [4], [5], which both loses information and scales poorly. Differentiable pattern mining [6]–[8] replaces enumeration with gradient descent but, to date, operates only on binary data and thus still requires the inputs to be discretized first.

We take the differentiable route but keep the data numerical. DIFFINT 1^{1} is an autoencoder whose bottleneck is a layer of soft interval memberships: each latent unit is a learnable hyper-rectangle (a center and a softplus half-width, with sigmoid boundaries for differentiability). A decoder reconstructs the input from these memberships; the model is trained on normal data with a reconstruction loss, and the reconstruction error is the anomaly score. Because the bottleneck is the intervals, the internal state is inspectable, and a simple statistic turns each into an auditable candidate constraint.

We limit our claims: DIFFINT is not a pattern-set miner – we claim no minimality, optimal pattern count, or description-length objective. Interval structure here is a mechanism for an interpretable anomaly detector, evaluated in that role. Our contributions are:

  • An interval-structured differentiable bottleneck for reconstruction-based anomaly detection that operates on raw numerical features with no discretization, using a competitive log-sum-exp aggregator that gives a scalar per-unit code (Sec. III).

  • A method-specific clipping-margin result: a graded suppression mechanism (Cor. 1) whereby a unit's weight decays geometrically in the number of its active coordinates a point violates – the operative property for the realistic anomaly with a few abnormal features – of which the full certified reconstruction-error lower bound (Thm. 1, needing violation on every active coordinate and a Lipschitz-enforced decoder) is the extreme case, verified numerically in Sec. VI-E. This is what justifies the reconstruction error as an anomaly score (Sec. IV), together with the stability properties (EMA support, Lipschitz regularity) that the model relies on.

  • An analysis of the input-domain choice: we show that min-max scaling to [−1,1][-1,1] is an integral part of the method. It aligns random initialization with the data

1^{1}Code: https://github.com/DiffInt/diffint.

support, makes the sigmoid temperature τ\tau dimensionless, places the empty-code attractor of Theorem 1 at the inlier centroid, and bounds the Lipschitz slack uniformly across datasets (Sec. III-B); one configuration then transfers to all 48 datasets without returning.

  • A large-scale evaluation: 48 ADBench datasets, 22 baselines, with the semi-supervised training protocol, the handling of missing baseline runs, and the exact statistical reading of the critical-difference diagrams all stated up front (Sec. VI). Because DIFFINT and three baselines train on inliers only while the remaining baselines run on contaminated data, we add a stratified and a complete-case re-analysis in App. I so the comparison is read within, not across, training regimes. We claim only what the statistics support.

References (39)