多分类FW损失快速算法:梯度O(K)时间与CPU/GPU优化内核
A Fast Algorithm for the Familywise Loss
针对Duchi、Ruan和Khosravi提出的多分类familywise(FW)损失,研究证明其梯度可在O(K)时间内计算(K为类别数),并开发了前向与反向传播的优化内核,在CPU和GPU上速度均超过交叉熵(CE)。此前FW虽在理论上与0-1损失等价、性质强于CE,但计算效率是否相当一直未明。
arXiv:2611.19065v1 Announce Type: new 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)$ time, where $K$ 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org