Papers › Minimizing Close-k Aggregate Loss Improves Classification

Minimizing Close-k Aggregate Loss Improves Classification

1 Nov 2018arXiv:1811.00521archive 2025-07-28

Bryan He, James Zou

In classification, the de facto method for aggregating individual losses is the average loss. When the actual metric of interest is 0-1 loss, it is common to minimize the average surrogate loss for some well-behaved (e.g. convex) surrogate. Recently, several other aggregate losses such as the maximal loss and average top-k loss were proposed as alternative objectives to address shortcomings of the average loss. However, we identify common classification settings, e.g. the data is imbalanced, has too many easy or ambiguous examples, etc., when average, maximal and average top-k all suffer from suboptimal decision boundaries, even on an infinitely large training set. To address this problem, we propose a new classification objective called the close-k aggregate loss, where we adaptively minimize the loss for points close to the decision boundary. We provide theoretical guarantees for the 0-1 accuracy when we optimize close-k aggregate loss. We also conduct systematic experiments across the PMLB and OpenML benchmark datasets. Close-k achieves significant gains in 0-1 test accuracy, improvements of ≥2% and p<0.05, in over 25% of the datasets compared to average, maximal and average top-k. In contrast, the previous aggregate losses outperformed close-k in less than 2% of the datasets.

PaperPDFCode

Code

bryan-he/closek officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

ClassificationGeneral Classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections