All Beings Are Equal in Open Set Recognition
Chaohua Li, Enhao Zhang, Chuanxing Geng, SongCan Chen
TL;DR
This work addresses open-set recognition by arguing that modeling unknowns as a single K+1 class distorts their distributions and creates imbalances. It introduces Target-Aware Universum (TAU) to generate K pseudo-unknowns aligned with targeted knowns via Targeted Mixup, and a Dual Contrastive (DC) loss that treats all instances (known and TAU) as positives against negatives, promoting balanced, boundary-focused representations. The proposed Dual Contrastive Learning with Target-Aware Universum (DCTAU) achieves state-of-the-art results on multiple OSR benchmarks and exhibits strong performance in out-of-distribution detection, supported by theoretical analysis of fair contrast and hard negative mining. The approach provides a practical, scalable alternative to infinite unknowns, with ablations confirming the importance of TAU and the DC loss in achieving equal treatment of known and unknown classes. Overall, DCTAU advances boundary-aware learning in OSR with a principled K+K framework that improves both detection of unknowns and accurate classification of knowns.
Abstract
In open-set recognition (OSR), a promising strategy is exploiting pseudo-unknown data outside given $K$ known classes as an additional $K$+$1$-th class to explicitly model potential open space. However, treating unknown classes without distinction is unequal for them relative to known classes due to the category-agnostic and scale-agnostic of the unknowns. This inevitably not only disrupts the inherent distributions of unknown classes but also incurs both class-wise and instance-wise imbalances between known and unknown classes. Ideally, the OSR problem should model the whole class space as $K$+$\infty$, but enumerating all unknowns is impractical. Since the core of OSR is to effectively model the boundaries of known classes, this means just focusing on the unknowns nearing the boundaries of targeted known classes seems sufficient. Thus, as a compromise, we convert the open classes from infinite to $K$, with a novel concept Target-Aware Universum (TAU) and propose a simple yet effective framework Dual Contrastive Learning with Target-Aware Universum (DCTAU). In details, guided by the targeted known classes, TAU automatically expands the unknown classes from the previous $1$ to $K$, effectively alleviating the distribution disruption and the imbalance issues mentioned above. Then, a novel Dual Contrastive (DC) loss is designed, where all instances irrespective of known or TAU are considered as positives to contrast with their respective negatives. Experimental results indicate DCTAU sets a new state-of-the-art.
