Adaptive Discriminative Regularization for Visual Classification
Qingsong Zhao, Yi Wang, Shuguang Dou, Chen Gong, Yin Wang, Cairong Zhao
TL;DR
The paper tackles the challenge that real-world visual data violate the i.i.d. assumption, with semantically similar classes and high intra-class variance hindering standard cross-entropy optimization. It introduces Adaptive Discriminative Regularization (ADR), which calibrates each sample's top likelihood using semantically neighboring classes and imposes an adaptive exponential penalty whose gradient scales with prediction uncertainty, enabling stronger learning early in training and stabilization as predictions become confident. ADR is formulated in a general way with a simple, implementable solution that adds the term ${\cal L}_d$ to the usual cross-entropy loss as ${\cal L} = {\cal L}_{ce} + \gamma {\cal L}_d$, using TopK-based sufficient statistics and an entropy-based uncertainty measure ${\phi}$ to drive the adaptive gradients. Empirically, ADR yields consistent, non-trivial improvements across large-scale and fine-grained image classification (ImageNet-1K, Flowers-102, CIFAR-10), face verification, FER, action recognition, and unsupervised segmentation, while showing robustness to noisy labels and long-tailed distributions and compatibility with CNN, transformer, and MLP backbones. The approach offers a practical, broadly applicable regularization technique that complements existing discriminative objectives and can enhance real-world visual recognition systems.
Abstract
How to improve discriminative feature learning is central in classification. Existing works address this problem by explicitly increasing inter-class separability and intra-class similarity, whether by constructing positive and negative pairs for contrastive learning or posing tighter class separating margins. These methods do not exploit the similarity between different classes as they adhere to i.i.d. assumption in data. In this paper, we embrace the real-world data distribution setting that some classes share semantic overlaps due to their similar appearances or concepts. Regarding this hypothesis, we propose a novel regularization to improve discriminative learning. We first calibrate the estimated highest likelihood of one sample based on its semantically neighboring classes, then encourage the overall likelihood predictions to be deterministic by imposing an adaptive exponential penalty. As the gradient of the proposed method is roughly proportional to the uncertainty of the predicted likelihoods, we name it adaptive discriminative regularization (ADR), trained along with a standard cross entropy loss in classification. Extensive experiments demonstrate that it can yield consistent and non-trivial performance improvements in a variety of visual classification tasks (over 10 benchmarks). Furthermore, we find it is robust to long-tailed and noisy label data distribution. Its flexible design enables its compatibility with mainstream classification architectures and losses.
