[Paper Review] Puzzle-AE: Novelty Detection in Images through Solving Puzzles
Puzzle-AE proposes a novel anomaly detection framework that trains a U-Net to solve image puzzles as a self-supervised pretext task, improving reconstruction quality and generalization on normal data while preventing overfitting. The method achieves state-of-the-art performance with stable, data-efficient training and no need for heuristic early stopping, outperforming prior methods on CIFAR-10, MNIST, and real-world datasets like MVTecAD and medical images.
Autoencoder, as an essential part of many anomaly detection methods, is lacking flexibility on normal data in complex datasets. U-Net is proved to be effective for this purpose but overfits on the training data if trained by just using reconstruction error similar to other AE-based frameworks. Puzzle-solving, as a pretext task of self-supervised learning (SSL) methods, has earlier proved its ability in learning semantically meaningful features. We show that training U-Nets based on this task is an effective remedy that prevents overfitting and facilitates learning beyond pixel-level features. Shortcut solutions, however, are a big challenge in SSL tasks, including jigsaw puzzles. We propose adversarial robust training as an effective automatic shortcut removal. We achieve competitive or superior results compared to the State of the Art (SOTA) anomaly detection methods on various toy and real-world datasets. Unlike many competitors, the proposed framework is stable, fast, data-efficient, and does not require unprincipled early stopping.
Motivation & Objective
- To address the overfitting and poor reconstruction quality issues of autoencoders (AEs) on complex datasets like CIFAR-10 and real-world images.
- To improve the generalization and semantic feature learning of AE-based models by leveraging self-supervised learning (SSL) through puzzle-solving as a pretext task.
- To eliminate shortcut learning in SSL tasks such as jigsaw puzzles, which otherwise lead models to exploit low-level statistics instead of meaningful features.
- To develop a stable, data-efficient, and reproducible anomaly detection framework that does not require unprincipled hyperparameter tuning or early stopping.
- To demonstrate superior performance on both toy datasets (e.g., CIFAR-10, MNIST) and real-world datasets (e.g., MVTecAD, medical imaging) under practical evaluation criteria such as high TPR at FPR = 99.5%.
Proposed method
- Trains a U-Net as a generator to solve 4x4 image puzzles, where the input is a shuffled image split into patches, and the output is the reconstructed original image.
- Uses a discriminator in a GAN-like training setup to improve reconstruction quality and encourage the model to learn more semantically meaningful features.
- Applies robust adversarial training (e.g., PGD and FGSM) to automatically eliminate shortcut solutions such as edge or intensity-based heuristics that models might otherwise exploit.
- Introduces a multi-task pretext learning strategy by combining colorization and puzzle-solving to further enhance feature abstraction and model robustness.
- Employs a self-supervised training objective where the model learns to predict the correct patch arrangement without any human-annotated labels.
- Uses reconstruction loss as the anomaly score: higher loss on anomalous inputs indicates novelty, while normal inputs are reconstructed accurately.
Experimental results
Research questions
- RQ1Can puzzle-solving as a self-supervised pretext task improve the quality of reconstruction and generalization in autoencoder-based anomaly detection models?
- RQ2How effective is adversarial training in eliminating shortcut solutions in puzzle-solving SSL tasks, especially on complex datasets?
- RQ3Does combining puzzle-solving with additional SSL tasks like colorization further improve model robustness and performance on real-world anomaly detection benchmarks?
- RQ4Can the proposed framework achieve state-of-the-art performance without requiring heuristic early stopping or extensive hyperparameter tuning?
- RQ5How does the model perform under strict practical criteria such as high TPR at FPR = 99.5% on medical and industrial defect detection datasets?
Key findings
- Puzzle-AE achieves a mean AUC of 72.47 on the 11-dataset benchmark, significantly outperforming LSA (88.89) and DSVDD (92.61) on MNIST when trained on only 1/12 of the data, with a mean AUC of 94.90.
- On MNIST, Puzzle-AE achieves 94.90 mean AUC, compared to 88.89 for LSA and 92.61 for DSVDD, demonstrating superior data efficiency and performance.
- At FPR = 99.5%, Puzzle-AE achieves a mean TPR of 0.2932, outperforming LSA’s 0.4261, indicating better detection capability at high specificity.
- The method shows robustness to grayscale inputs, with minimal performance drop on CIFAR-10’s 'car' class, indicating reduced sensitivity to color and improved generalization.
- Adding adversarial training (PGD/FGSM) improves performance by ~1% on datasets with strong shortcuts, such as MNIST, enhancing model robustness.
- The framework achieves state-of-the-art results on MVTecAD and medical imaging datasets, outperforming even GT, a prior one-class SSL method, and eliminating the need for early stopping.
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.