A Fast Algorithm for the Familywise Loss
Leelavathi Raja, Amirreza Eshraghi, Vinay Prabhakar, Mark Blacher, Han Bao, Yutong Wang
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 time, where 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.
Create a lesson
Related papers
A Polynomial-Time Best-of-Both-Worlds Algorithm for Matroid Semi-Bandit Problems
Shared title terminologycs.LGBotao Chen, Junya Honda
Fast 4-bit KV-Cache Decoding on Hopper GPUs: Why Existing Kernels Are Slow and How to Fix Them
Shared title terminologycs.LGJian Zhang
Yggdrasil: Tree-Routed Recurrent Experts for State Tracking and Fast CPU Inference
Shared title terminologycs.LGCosmo Santoni
Conic Structure of the Cross-Entropy Loss at the Final Layer and Its Absence in Rectifier Backbones
Shared title terminologycs.LGOmer Nezih Gerek
Newton-PINet: A fast physics-informed neural network with Newton linearization for meta-learning nonlinear PDEs
Shared title terminologycs.LGYuchen Fan, Chang Wei, Pao-Hsiung Chiu et al.
Decode Early, Verify Late: Streaming Offline Speech Recognizers Without Accuracy Loss
Shared title terminologycs.LGDoyeob Kim