Jigsaw and Anomaly Detection as Joint Pretext Tasks for Self-Supervised Learning
Saksham Khadka Chhetri
16/10/2026
Self-supervised learning enables visual representations to be learned without supervised labels during pretraining. While spatial jigsaw reconstruction and anomaly-detection tasks have been individually explored, it remains unclear whether spatial context reasoning and patch-level consistency act as complementary signals when optimized jointly, or if gradient interference limits multi-task gains. This study examines the joint use of a spatial jigsaw puzzle task and a patch-level intruder-detection task. The jigsaw task requires the model to recover the original arrangement of shuffled image patches, while the anomaly task requires it to identify a patch taken from another image. These objectives are studied as potentially complementary signals: jigsaw solving emphasizes spatial relationships, whereas anomaly detection emphasizes consistency between patches and their surrounding context. We evaluate their combination using a shared convolutional backbone on CIFAR-10 and STL-10, measuring representation quality through linear probing. To ensure rigorous evaluation, hyperparameter selections were governed by a 10% validation split, and primary experiments were benchmarked against random weight initialization, jigsaw-only (λ = 1.0), and intruder-only (λ = 0.0) baselines across multiple random seeds. Across experiments involving normalization, patch granularity, and loss weighting, normalization had little effect on downstream accuracy, while patch granularity produced dataset-dependent results influenced by underlying image-scaling and interpolation confounders. Increasing the loss weight of the jigsaw objective generally improved downstream performance, and pretext-task accuracy did not reliably predict transfer quality.
Joint pretraining substantially outperforms training from random initialization, confirming that the pretext tasks learn non-trivial visual structure; however, jigsaw-only pretraining matches or exceeds the joint objective in most settings tested here, so combining the two tasks is not shown to reliably improve on jigsaw-only pretraining. Multi-task self-supervised frameworks should therefore be evaluated through downstream performance, not pretext performance alone.
