Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Test-Time Canonicalization by Foundation Models for Robust Perception

About

Perception in the real world requires robustness to diverse viewing conditions. Existing approaches often rely on specialized architectures or training with predefined data augmentations, limiting adaptability. Taking inspiration from mental rotation in human vision, we propose FOCAL, a test-time robustness framework that transforms the input into the most typical view. At inference time, FOCAL explores a set of transformed images and chooses the one with the highest likelihood under foundation model priors. This test-time optimization boosts robustness while requiring no retraining or architectural changes. Applied to models like CLIP and SAM, it significantly boosts robustness across a wide range of transformations, including 2D and 3D rotations, contrast and lighting shifts, and day-night changes. We also explore potential applications in active vision. By reframing invariance as a test-time optimization problem, FOCAL offers a general and scalable approach to robustness. Our code is available at: https://github.com/sutkarsh/focal.

Utkarsh Singhal, Ryan Feng, Stella X. Yu, Atul Prakash• 2025

Related benchmarks

TaskDatasetResultRank
PDE solving1d Burgers' equation (test)
Relative Error0.202
85
Image ClassificationMNIST PGL(3, R) (test)
Accuracy89.69
20
Image ClassificationMNIST Aff(2, R) (test)
Accuracy86.38
12
Image ClassificationMNIST Aff(2, R) 2D Affine (test)
Accuracy86.38
12
PDE solving1D Heat Eq. (test)
Relative L2 Error1.948
6
PDE solving1D Heat Eq. Data Aug. (test)
Relative Test L2 Error1
6
Showing 6 of 6 rows

Other info

Follow for update