cs.LGFeb 26, 2026

Differentiable Zero-One Loss via Hypersimplex Projections

Authors: Camilo Gomez, Pengyang Wang, Liansheng Tang

Organizations: School of Data, Mathematical, and Statistical Sciences, University of Central Florida, Orlando, USA · Department of CIS, University of Macau, Macao, China

Abstract

Recent advances in machine learning have emphasized the integration of structured optimization components into end-to-end differentiable models, enabling richer inductive biases and tighter alignment with task-specific objectives. In this work, we introduce a novel differentiable approximation to the zero-one loss-long considered the gold standard for classification performance, yet incompatible with gradient-based optimization due to its non-differentiability. Our method constructs a smooth, order-preserving projection onto the n,k-dimensional hypersimplex through a constrained optimization framework, leading to a new operator we term Soft-Binary-Argmax. After deriving its mathematical properties, we show how its Jacobian can be efficiently computed and integrated into binary and multiclass learning systems. Empirically, our approach achieves significant improvements in generalization under large-batch training by imposing geometric consistency constraints on the output logits, thereby narrowing the performance gap traditionally observed in large-batch training.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SoftJAX & SoftTorch: Empowering Automatic Differentiation Libraries with Informative Gradients

    Mar 9, 2026Anselm Paulus, A. René Geist, Vít Musil +3Straight-Through EstimatorDifferentiable Programming

  2. Learning to Optimize by Differentiable Programming

    Jan 23, 2026Liping Tao, Xindi Tong, Chee Wei TanPrimal-Dual OptimizationLearning to Optimize

  3. Linear-Core Surrogates: Smooth Loss Functions with Linear Rates for Classification and Structured Prediction

    Apr 30, 2026Mehryar Mohri, Yutao ZhongClassificationStructured Prediction