cs.LGNov 14, 2026

A Fast Algorithm for the Familywise Loss

Authors: Leelavathi Raja, Amirreza Eshraghi, Vinay Prabhakar, Mark Blacher, Han Bao, Yutong Wang

Organizations: Illinois Institute of Technology · Modular · Friedrich Schiller University Jena · The Institute of Statistical Mathematics & Tohoku University & RIKEN AIP

Abstract

The familywise (FW) loss for multiclass classification, introduced by Duchi, Ruan, and Khosravi, achieves universal equivalence to the 0-1 loss, and thus has stronger theoretical properties than cross entropy (CE). Prior work, however, left open whether FW is as computationally efficient as CE. First, on the theoretical side, we prove that the FW gradient can be computed in O(K)O(K) time, where KK is the number of classes. Second, on the practical side, we develop optimized kernels for computing the forward and backward passes of FW which outperform CE in terms of speed on both CPU and GPU.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CAMRI Loss: Improving the Recall of a Specific Class without Sacrificing Accuracy

    Sep 22, 2022Daiki Nishiyama, Kazuto Fukuchi, Youhei Akimoto +1Multiclass ClassificationMargin-Based Learning

  2. Minimax Generalized Cross-Entropy

    Mar 20, 2026Kartheek Bondugula, Santiago Mazuelas, Aritz Pérez +1Robust Loss FunctionsMin-Max Optimization