Zero-Shot Test-Time Canonicalization using Out-of-Distribution Scoring
Not on the map. Why?
Abstract (arXiv)
Pretrained vision models often misclassify inputs that are rotated, scaled, or sheared, even though these affine transformations leave the object class unchanged. Robustness is usually restored either by building equivariance into the architecture or by retraining with augmentation, both of which require changing or retraining the model. Test-time canonicalization instead leaves the classifier untouched. It undoes the transformation of each input, mapping it to a canonical form near the training distribution before classification. Existing canonicalizers, however, rely on a narrow set of logit-based energy scores and bespoke search procedures, leaving the design space of scoring functions and optimizers unexplored. We reframe canonicalization as out-of-distribution (OOD) detection, which lets any OOD score serve as the energy minimized over transformations. Across benchmarks ranging from handwritten characters and sketches to natural images and 3D point clouds, we systematically evaluate around twenty OOD scores and nine search algorithms, finding that distance-based scores paired with random search and local refinement perform best overall. Because canonicalizing an already-aligned input can hurt accuracy, we add a gated mechanism that transforms an input only when its OOD score indicates this is needed, preserving most in-distribution accuracy while retaining the robustness gains on transformed inputs. Code is available at github.com/johschm/its.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 48 of its 66 references that are in the map. First posted on arXiv 23 Jun 2026.
Builds on
48 of 66 references.
References · 48
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2017PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Spacecited by 4,384
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,414
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
- 2015Spatial Transformer Networkscited by 1,423
- 2020Energy-based Out-of-distribution Detectioncited by 1,296
- 2018On the Continuity of Rotation Representations in Neural Networkscited by 1,186
36 more
- 2016Group Equivariant Convolutional Networkscited by 1,154
- 2021Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gaugescited by 1,131
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 596
- 2015Towards Open Set Deep Networkscited by 533
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
- 2019Scaling Out-of-Distribution Detection for Real-World Settingscited by 465
- 2016Input Convex Neural Networkscited by 407
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 404
- 2024The Faiss librarycited by 370
- 2021Laplace Redux -- Effortless Bayesian Deep Learningcited by 359
- 2021Vector Neurons: A General Framework for SO(3)-Equivariant Networkscited by 304
- 2016Steerable CNNscited by 298
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 267
- 2020Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networkscited by 227
- 2022Extremely Simple Activation Shaping for Out-of-Distribution Detectioncited by 212
- 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
- 2018To Trust Or Not To Trust A Classifiercited by 205
- 2021Frame Averaging for Invariant and Equivariant Network Designcited by 166
- 2021DICE: Leveraging Sparsification for Out-of-Distribution Detectioncited by 166
- 2022Equivariance with Learned Canonicalization Functionscited by 106
- 2016TI-POOLING: transformation-invariant pooling for feature learning in Convolutional Neural Networkscited by 66
- 2022Optimizing Relevance Maps of Vision Transformers Improves Robustnesscited by 41
- 2024Equivariant Frames and the Impossibility of Continuous Canonicalizationcited by 41
- 2023Equivariant Adaptation of Large Pretrained Modelscited by 40
- 2024A Canonicalization Perspective on Invariant and Equivariant Learningcited by 25
- 2024Lie Algebra Canonicalization: Equivariant Neural Operators under arbitrary Lie Groupscited by 23
- 2021SI-Score: An image dataset for fine-grained analysis of robustness to object location, rotation and sizecited by 7
- 2024Tilt your Head: Activating the Hidden Spatial-Invariance of Classifierscited by 7
- 2024Improved Canonicalization for Model Agnostic Equivariancecited by 7
- 2020Robustness to Transformations Across Categories: Is Robustness To Transformations Driven by Invariant Neural Representations?cited by 6
- 2025Test-Time Canonicalization by Foundation Models for Robust Perceptioncited by 5
- 2025Torch-Uncertainty: A Deep Learning Framework for Uncertainty Quantificationcited by 4
- 2025Geometrically Constrained and Token-Based Probabilistic Spatial Transformerscited by 3
- 2025Saccadic Vision for Fine-Grained Visual Classificationcited by 2
- 2026Inverting Data Transformations via Diffusion Samplingcited by 2
- 2025Robust Canonicalization through Bootstrapped Data Re-Alignmentcited by 1
Built on by
Not cited yet.