给神经网络装上‘自知之明’,让它学会说‘不知道’。
Explorations of the Softmax Space: Knowing When the Neural Network Doesn't Know
- 用softmax输出向量聚类,以正确样本均值为类心衡量置信度。
- 在MNIST和CIFAR-10上,错误预测与类心距离显著更大。
- 适用于任何分类模型,帮助系统在不确定时转交人工处理。
随着人工智能在关键场景中广泛应用,保障神经网络决策的可靠性至关重要。本文提出一种基于softmax层输出的新置信度评估方法,发现高精度模型对某些输出仍可能缺乏信心,此时应推迟决策并返回‘未知’结果。通过聚类softmax向量,以所有正确预测的平均输出作为类心,计算网络输出与类心的距离。将错误预测到类心的最小距离定义为阈值,可判断分类结果是否可信。在MNIST数据集上的CNN和CIFAR-10上的Vision Transformer上验证,该方法在不同数据集和模型间表现一致,证明距离度量能有效识别何时应由人类介入决策。
原文摘要 · Abstract (English)
Ensuring the reliability of automated decision-making based on neural networks will be crucial as Artificial Intelligence systems are deployed more widely in critical situations. This paper proposes a new approach for measuring confidence in the predictions of any neural network that relies on the predictions of a softmax layer. We identify that a high-accuracy trained network may have certain outputs for which there should be low confidence. In such cases, decisions should be deferred and it is more appropriate for the network to provide a \textit{not known} answer to a corresponding classification task. Our approach clusters the vectors in the softmax layer to measure distances between cluster centroids and network outputs. We show that a cluster with centroid calculated simply as the mean softmax output for all correct predictions can serve as a suitable proxy in the evaluation of confidence. Defining a distance threshold for a class as the smallest distance from an incorrect prediction to the given class centroid offers a simple approach to adding \textit{not known} answers to any network classification falling outside of the threshold. We evaluate the approach on the MNIST and CIFAR-10 datasets using a Convolutional Neural Network and a Vision Transformer, respectively. The results show that our approach is consistent across datasets and network models, and indicate that the proposed distance metric can offer an efficient way of determining when automated predictions are acceptable and when they should be deferred to human operators.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。