Cardinality-Aware Set Prediction and Top-
k Classification
This paper presents cardinality-aware top-$k$ classification, which learns an accurate top-$k$ set predictor while controlling the size of the predicted set. The authors introduce a new loss combining classification error and cardinality, and propose two families of surrogate losses—cost-sensitive comp-sum and cost-sensitive constrained—to optimize it. They establish $H$-consistency bounds for these surrogates and demonstrate effectiveness on CIFAR-10, CIFAR-100, ImageNet, and SVHN.