arXiv:2611.08136cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08136

How Far Can Untrained Neural Networks Go in Anomaly Detection? From Tables to Pixels

Hyojun Yi, Geunyoung Kim, Hogeon Seo, Seunghyoung Ryu

Hyojun Yi, Geunyoung Kim, Hogeon Seo, and Seunghyoung Ryu, Member, IEEE

Abstract—Anomaly detection (AD) is often framed as a representation-learning problem, where strong performance is expected to require learned features or AD-specific optimization. However, this view can overlook the intrinsic separability of anomalies from normal references, even in the absence of learned representations. We therefore investigate how far untrained neural networks can go in anomaly detection. To this end, we propose PRISM, a framework combining fixed random nonlinear features with normal-reference Mahalanobis scoring for tabular detection and dense visual localization. Across 47 tabular datasets in ADBench, PRISM-T achieves the highest mean AUROC (86.4%) and the second-highest mean AUPRC (65.9%) among the compared methods. On MVTec AD and VisA, covering 27 visual categories, PRISM-V achieves mean image-level and pixel-level AUROCs of 90.4% and 96.4%, respectively. Notably, both models achieve these results without neural weight optimization or pretrained representations. A theoretical analysis further characterizes how nonlinear transformations affect the mean and covariance contributions to the Mahalanobis score gap, while empirical analyses examine the resulting score separability. These findings establish PRISM as both a competitive anomaly detector and a prior-to-learning baseline for assessing the added value of learned representations in anomaly detection.

Index Terms—Anomaly detection, random neural features, untrained neural networks, Mahalanobis scoring, visual anomaly localization.

1 INTRODUCTION

ANOMALY detection (AD) is fundamentally a problem of identifying deviation from normality. Unlike conventional predictive learning, anomalies need not be observed during model construction; a model may instead characterize normal data and determine how strongly a new observation departs from that reference. Modern AD methods nevertheless devote substantial modeling effort to constructing representations or scoring spaces in which deviations from normality become easier to expose. Depending on the formulation, this may involve learning compact representations of normal data through reconstruction or one-class objectives [1], [2], characterizing local neighborhoods or

normal-data geometry [3], [4], modeling the normal distribution through generative or score-based objectives [5], [6], or leveraging pretrained representations in which semantic or structural deviations become more discernible [7]–[9]. Such approaches reflect a common emphasis on learned representations as a key source of anomaly separability.

Yet a simpler possibility remains. If abnormality is defined relative to normal data, some anomaly evidence may already be intrinsic to the data, even before representation learning. Intuitively, we often sense that “something looks wrong” before we can precisely identify which rule or regularity has been violated. We therefore ask a basic but easily overlooked question: how far can anomaly detection go before learning?

This prior-to-learning perspective was partially explored in an earlier study on untrained neural networks (UNNs), which showed that randomly initialized neural features combined with Mahalanobis scoring can detect anomalies without neural weight optimization [10]. However, the evidence remained limited in both breadth and granularity: the tabular evaluation covered only a small set of datasets, while the visual experiments were restricted to flattened MNIST and F-MNIST with image-level scoring. It therefore remained unclear whether prior-to-learning separability could support competitive detection across diverse tabular datasets or enable dense visual localization.

To investigate this question, we propose PRISM (Prior-to-learning Random Intrinsic Scoring Model), a framework that exploits intrinsic anomaly evidence through frozen, randomly initialized neural features and normal-reference Mahalanobis scoring. At its core, PRISM is built upon a simple and lightweight PRISM block consisting of a randomly initialized linear operator, normalization, and kinked nonlinear activation. This design principle is instantiated in two modality-specific models: PRISM-T for global tabular anomaly detection and PRISM-V for dense visual anomaly localization. Neither model optimizes neural weights or relies on pretrained representations. For tabular AD, PRISM-T achieves competitive performance against recent state-of-the-art detectors across 47 ADBench datasets. For visual AD, PRISM-V achieves strong image-level detection and extends prior-to-learning AD to spatially coherent pixel-level localization on industrial anomaly benchmarks. These results demonstrate the potential of prior-to-learning anomaly detection across tabular and visual domains, establishing PRISM as a competitive detector built on lightweight, un-

Hyojun Yi and Geunyoung Kim contributed equally to this work. H. Yi, G. Kim, and S. Ryu are with the Department of Artificial Intelligence and Robotics, Sejong University, Seoul, Republic of Korea (e-mail: black99y@sju.ac.kr; kky5572558@sju.ac.kr; shryu@sejong.ac.kr). H. Seo is with the Applied AI Section, Korea Atomic Energy Research Institute, Daejeon, Republic of Korea (e-mail: hogeony@kaeri.re.kr). Corresponding author: Seunghyoung Ryu (e-mail: shryu@sejong.ac.kr). This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

trained neural feature extractors and a reference for assessing the added value of learned representations.

Our main contributions are summarized as follows.

  • To examine how far anomaly detection can go before learning, we introduce PRISM, a framework combining random neural features with Mahalanobis scoring. Through modality-specific implementations, PRISM extends untrained neural anomaly detection from tabular data to visual anomaly detection and localization.

  • We conduct a comprehensive evaluation from tables to pixels, spanning 47 tabular datasets from ADBench and 27 visual categories from MVTec AD and VisA. For tabular AD, PRISM-T achieves the highest mean AUROC and the second-highest mean AUPRC among the compared detectors, while PRISM-V demonstrates strong image-level detection and pixel-level localization. Both models achieve these results using fully untrained neural networks with substantially fewer parameters than the compared state-of-the-art neural AD models.

  • We investigate the mechanisms underlying prior-to-learning anomaly separability through theoretical and empirical analyses. The theory characterizes how nonlinear feature transformations affect the mean and covariance contributions to the expected Mahalanobis score gap. Experiments further examine the resulting score separability and its relationship with detection performance across both modalities.

The remainder of this paper is organized as follows. Section 2 reviews related work. Sections 3 and 4 introduce the PRISM framework and provide a theoretical analysis of anomaly score separation. Experimental results are presented in Section 5, with further analysis in Section 6. Finally, Section 7 concludes the paper.

References (48)