On the Use of Anchoring for Training Vision Models
Vivek Narayanaswamy, Kowshik Thopalli, Rushil Anirudh, Yamen Mubarka, Wesam Sakla, Jayaraman J. Thiagarajan
TL;DR
This work systematically evaluates anchored training as a general protocol for vision models, uncovering a key limitation: simply increasing reference diversity does not automatically improve generalization. It addresses this by introducing Reference Masking Regularization, which randomly masks the reference with probability $\alpha$ and trains masked cases to predict a uniform distribution, promoting reliance on the joint reference-residual structure rather than shortcuts. Across CIFAR-10/100 and ImageNet using CNNs and vision transformers, the approach yields substantial gains in generalization, calibration, and anomaly rejection, particularly for high-capacity models and large reference sets, while remaining inference-efficient. The results suggest anchored training, when combined with the proposed regularizer, offers a robust, architecture-agnostic pathway to safer, more reliable vision systems and invites integration with broader model-sourcing and fine-tuning strategies.
Abstract
Anchoring is a recent, architecture-agnostic principle for training deep neural networks that has been shown to significantly improve uncertainty estimation, calibration, and extrapolation capabilities. In this paper, we systematically explore anchoring as a general protocol for training vision models, providing fundamental insights into its training and inference processes and their implications for generalization and safety. Despite its promise, we identify a critical problem in anchored training that can lead to an increased risk of learning undesirable shortcuts, thereby limiting its generalization capabilities. To address this, we introduce a new anchored training protocol that employs a simple regularizer to mitigate this issue and significantly enhances generalization. We empirically evaluate our proposed approach across datasets and architectures of varying scales and complexities, demonstrating substantial performance gains in generalization and safety metrics compared to the standard training protocol.
