CVApr 26, 2022

PolyLoss: A Polynomial Expansion Perspective of Classification Loss Functions

arXiv:2204.12511v2191 citationsh-index: 55
Originality Incremental advance
AI Analysis

This work addresses the need for tailored loss functions in deep learning for various classification tasks, offering an incremental improvement over standard methods.

The authors tackled the problem of designing flexible loss functions for classification tasks by proposing PolyLoss, a framework that views loss functions as linear combinations of polynomial bases, which subsumes cross-entropy and focal loss. Experimental results show that PolyLoss outperforms these existing losses across multiple tasks, such as 2D image classification and object detection, sometimes by large margins.

Cross-entropy loss and focal loss are the most common choices when training deep neural networks for classification problems. Generally speaking, however, a good loss function can take on much more flexible forms, and should be tailored for different tasks and datasets. Motivated by how functions can be approximated via Taylor expansion, we propose a simple framework, named PolyLoss, to view and design loss functions as a linear combination of polynomial functions. Our PolyLoss allows the importance of different polynomial bases to be easily adjusted depending on the targeting tasks and datasets, while naturally subsuming the aforementioned cross-entropy loss and focal loss as special cases. Extensive experimental results show that the optimal choice within the PolyLoss is indeed dependent on the task and dataset. Simply by introducing one extra hyperparameter and adding one line of code, our Poly-1 formulation outperforms the cross-entropy loss and focal loss on 2D image classification, instance segmentation, object detection, and 3D object detection tasks, sometimes by a large margin.

Code Implementations19 repos

Data from Papers with Code (CC-BY-SA-4.0)

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes