Understanding Open-Set Recognition by Jacobian Norm and Inter-Class Separation
Jaewoo Park, Hojin Park, Eunju Jeong, Andrew Beng Jin Teoh
TL;DR
This work investigates open-set recognition (OSR) by linking the separation between known and unknown classes to differences in the Jacobian norm $\lVert \frac{\partial \boldsymbol{f}(\boldsymbol{x})}{\partial \boldsymbol{x}} \rVert_F$ of the representation function. It shows that intra-class learning reduces the Jacobian norm on known classes, while inter-class learning increases it for unknown samples, creating a discriminative gap that enables OSR without exposure to unknowns. Building on this insight, the authors introduce a marginal one-vs-rest (m-OvR) loss to promote strong inter-class separation and pair it with auxiliary techniques (data augmentation, weight decay, self-supervision) to maximize the Jacobian-norm disparity. They also propose using a sample-wise loss at inference to detect unknowns by leveraging the Jacobian-norm gap and proximity to class prototypes. Across standard OSR benchmarks, their approach yields improved unknown-class detection (AUC/Macro-F1) and competitive closed-set accuracy, validating the theory and highlighting inter-class learning as a key driver for OSR.
Abstract
The findings on open-set recognition (OSR) show that models trained on classification datasets are capable of detecting unknown classes not encountered during the training process. Specifically, after training, the learned representations of known classes dissociate from the representations of the unknown class, facilitating OSR. In this paper, we investigate this emergent phenomenon by examining the relationship between the Jacobian norm of representations and the inter/intra-class learning dynamics. We provide a theoretical analysis, demonstrating that intra-class learning reduces the Jacobian norm for known class samples, while inter-class learning increases the Jacobian norm for unknown samples, even in the absence of direct exposure to any unknown sample. Overall, the discrepancy in the Jacobian norm between the known and unknown classes enables OSR. Based on this insight, which highlights the pivotal role of inter-class learning, we devise a marginal one-vs-rest (m-OvR) loss function that promotes strong inter-class separation. To further improve OSR performance, we integrate the m-OvR loss with additional strategies that maximize the Jacobian norm disparity. We present comprehensive experimental results that support our theoretical observations and demonstrate the efficacy of our proposed OSR approach.
