本文提出 Dual Focal Loss 损失函数,通过同时关注 ground truth logit 及其后最高的 logit 并最大化其差距,有效平衡了神经网络的过度自信与不自信问题,在多模型和数据集上实现了最先进的校准性能。
摘要:
在现实应用中使用深度神经网络需要经过良好校准的网络,其置信度分数能准确反映实际概率。然而,研究发现这些网络经常给出过度自信的预测,导致校准不佳。近期的努力试图通过 focal loss 来解决此问题以减少过度自信,但该方法也可能导致不自信的预测。尽管已探索了 focal loss 的不同变体,但很难在过度自信和不自信之间找到平衡。在我们的工作中,我们提出了一种关注 dual logits 的新损失函数。我们的方法不仅考虑 ground truth logit,还考虑排在 ground truth logit 之后最高的 logit。通过最大化这两个 logits 之间的差距,我们提出的 dual focal loss 能够在过度自信和不自信之间实现更好的平衡。我们提供了支持该方法的理论证据,并通过在多个模型和数据集上的评估证明了其有效性,取得了 state-of-the-art 的性能。代码可在 https://github.com/Linwei94/DualFocalLoss 获取。
英文摘要:
The use of deep neural networks in real-world applications require well-calibrated networks with confidence scores that accurately reflect the actual probability. However, it has been found that these networks often provide over-confident predictions, which leads to poor calibration. Recent efforts have sought to address this issue by focal loss to reduce over-confidence, but this approach can also lead to under-confident predictions. While different variants of focal loss have been explored, it is difficult to find a balance between over-confidence and under-confidence. In our work, we propose a new loss function by focusing on dual logits. Our method not only considers the ground truth logit, but also take into account the highest logit ranked after the ground truth logit. By maximizing the gap between these two logits, our proposed dual focal loss can achieve a better balance between over-confidence and under-confidence. We provide theoretical evidence to support our approach and demonstrate its effectiveness through evaluations on multiple models and datasets, where it achieves state-of-the-art performance. Code is available at https://github.com/Linwei94/DualFocalLoss
FoCal: Frequency-Oriented Cross-Modal Interaction and Spectral Calibration for Aerial Visible-Infrared Object Detection
Nanjing University of Science and Technology(南京理工大学);Shanghai Institute of Technical Physics, Chinese Academy of Sciences(中国科学院上海技术物理研究所);China Electronics Technology Group Corporation(中国电子科技集团公司)
Robust Self-calibration of Focal Lengths from the Fundamental Matrix
Faculty of Mathematics, Physics and Informatics, Comenius University in Bratislava(数学、物理与信息学系,布拉迪斯拉瓦康门大学);Visual Recognition Group, Faculty of Electrical Engineering, Czech Technical University in Prague(视觉识别组,布拉格捷克技术大学)
CalibFPA: A Focal Plane Array Imaging System based on Online Deep-Learning Calibration
ASELSAN(ASELSAN公司);Nanodev Scientific(Nanodev Scientific公司);Ostim Technical University(奥斯蒂姆技术大学);National Magnetic Resonance Research Center (UMRAM)(国家磁共振研究中心(UMRAM));Bilkent University(比尔肯特大学)
On Impact of Loss Function on the Performance of Neural Networks in Melanoma Diagnosis
Technological University Dublin(都柏林理工大学);Research Ireland Centre for Research Training in Machine Learning, ML-Labs(爱尔兰研究中心机器学习研究培训中心,机器学习实验室);Dublin City University(都柏林城市大学);University College Dublin(都柏林大学学院)
A Novel Dual-Lidar Calibration Algorithm Using Planar Surfaces
The Hong Kong University of Science and Technology(香港科技大学);Unity-Drive technology Inc(Unity-Drive科技公司);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院)
Dual-View Pyramid Pooling in Deep Neural Networks for Improved Medical Image Classification and Confidence Calibration
Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Southern University of Science and Technology(南方科技大学);The University of Hong Kong(香港大学);Zhengzhou University(郑州大学);Central South University(中南大学);Xinjiang University(新疆大学)
DST-Calib: A Dual-Path, Self-Supervised, Target-Free LiDAR-Camera Extrinsic Calibration Network
Department of Control Science & Engineering, the College of Electronics & Information Engineering, Tongji University(控制科学与工程系,电子与信息工程学院,同济大学);Department of Mechanical Engineering, the School of Mechanical Engineering, Tongji University(机械工程系,机械工程学院,同济大学);School of Robotics, Hunan University(机器人学院,湖南大学);College of Intelligence Science and Technology, National University of Defense Technology(智能科学与技术学院,国防科学技术大学);Department of Control Science & Engineering, the College of Electronics & Information Engineering, Shanghai Research Institute for Intelligent Autonomous Systems, the State Key Laboratory of Intelligent Autonomous Systems, and Frontiers Science Center for Intelligent Autonomous Systems, Tongji University(控制科学与工程系,电子与信息工程学院,上海智能自主系统研究院,智能自主系统国家重点实验室,智能自主系统前沿科学中心,同济大学);National Key Laboratory of Human-Machine Hybrid Augmented Intelligence, Institute of Artificial Intelligence and Robotics, Xi’an Jiaotong University(人机混合增强智能国家重点实验室,人工智能与机器人研究院,西安交通大学)