[Paper Review] Set Features for Fine-grained Anomaly Detection
SINBAD models each sample as an unordered set of elements and uses histogram-of-projections with random directions plus Gaussian (or kNN) density estimation to detect fine-grained, combinatorial anomalies without training. It achieves state-of-the-art results on image-level logical anomalies (MVTec-LOCO) and time-series anomaly detection without augmentation or training.
Fine-grained anomaly detection has recently been dominated by segmentation based approaches. These approaches first classify each element of the sample (e.g., image patch) as normal or anomalous and then classify the entire sample as anomalous if it contains anomalous elements. However, such approaches do not extend to scenarios where the anomalies are expressed by an unusual combination of normal elements. In this paper, we overcome this limitation by proposing set features that model each sample by the distribution its elements. We compute the anomaly score of each sample using a simple density estimation method. Our simple-to-implement approach outperforms the state-of-the-art in image-level logical anomaly detection (+3.4%) and sequence-level time-series anomaly detection (+2.4%).
Motivation & Objective
- Motivate the need to detect anomalies arising from unusual combinations of normal elements, not just anomalous parts.
- Propose a set-based description of samples that ignores element ordering and captures distributional properties.
- Provide a simple, effective density-estimation-based anomaly score using the set descriptor.
- Demonstrate state-of-the-art performance on image-level logical anomalies (MVTec-LOCO) and time-series datasets without training or data augmentation.
Proposed method
- Represent each sample as a set of elements (image patches or time-series windows).
- Extract element features with a pre-trained network or handcrafted features.
- Compute per-set histograms by projecting elements along multiple random directions and binning values into one-dimensional histograms; concatenate across projected directions and feature dimensions.
- Estimate the normal-data distribution with a Gaussian density estimator to score anomalies via negative log-likelihood (Mahalanobis distance or kNN whitening).
- Apply the method at multiple granularity levels (different ResNet blocks for images; window pyramids for time series) and fuse scores.
- Optionally use multiple crops to handle localized anomalies and combine scores across projections and levels.
Experimental results
Research questions
- RQ1Can anomalies be detected by modeling the distribution of a sample's elements as an unordered set instead of relying on segment-level or global averages?
- RQ2Does random-projection histogram representation of set elements provide discriminative power for fine-grained or logical anomalies across image and time-series data?
- RQ3How does a simple density-estimation-based scoring of set features compare to state-of-the-art segmentation-based and reconstruction-based methods on benchmarks like MVTec-LOCO and time-series datasets?
Key findings
- Set-based features outperform state-of-the-art on image-level logical anomaly detection on MVTec-LOCO.
- On time-series anomaly detection, the method yields strong results without augmentation or training and compares favorably to deep baselines.
- Random-direction histogram descriptors capture distributional differences between normal and anomalous sets more effectively than simple averages.
- Using kNN whitening or Gaussian modeling with Mahalanobis-style scoring improves robustness over pure Gaussian scoring.
- Multi-granularity (multiple ResNet levels, multiple time-series window scales) and crop-based ensembling improve performance on localized anomalies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.