让置信度改变,而非预测:用于事后校准的预测保持修复
研究论文 · 2026/09/04
事后校准会修正报告的置信度,但多类校准器也可能改变相关的 top-1 预测。准确率仅捕捉这些变化对正确性的净效应,而非预测变化的频率;Top-1 预测变化率(TPCR)则衡量该频率。我们提出 Calibrator-Output Repair for Top-1 Decision Preservation (CORD),这是首个通过修复完整校准概率向量来强制实现精确预测保持的拟合后适配器。仅凭原始和校准输出,CORD 确定分配给原始 top-1 的质量,校准的条件分布将剩余质量分配给其他类别,从而产生一个修复向量,其自身的 argmax 恢复原始预测。在校准分割上,CORD 协调修复后的质量,以在可行时保留校准输出对原始预测的平均质量。该适配器既不改变已拟合的校准器,也不改变其直接输出,不拟合额外的监督映射,且无需用户或验证调优的超参数。在 CIFAR-10/100 和 ImageNet-1K 上,CORD 通过构造实现零 TPCR,并在每个数据集中相对于相应的直接输出降低平均 ECE、NLL 和 Brier 分数;在分布偏移和不同校准集大小下,成对增益持续存在。因此,CORD 从校准器拟合中移除保持约束,并将原始决策的精确恢复分配给后续输出修复。我们的代码可在 https://github.com/labhai/CORD 获取。
该论文针对事后校准中预测变化被忽视的问题,提出了一种新颖的修复方法,在保持预测不变的同时提升校准质量,实验验证了其有效性,对可靠机器学习具有重要价值。
Post-hoc calibration corrects reported confidence, yet a multiclass calibrator can also change the associated top-1 prediction. Accuracy captures only the net effect of these changes on correctness, not how often predictions change; the Top-1 Prediction Change Rate (TPCR) instead measures this frequency. We propose Calibrator-Output Repair for Top-1 Decision Preservation (CORD), the first post-fit adapter to impose exact prediction preservation by repairing the full calibrated probability vector. From the original and calibrated outputs alone, CORD determines the mass assigned to the original top-1. The calibrated conditional distribution allocates the remaining mass over the other classes, yielding a repaired vector whose own argmax recovers the original prediction. On the calibration split, CORD coordinates the repaired masses to retain the calibrated outputs' mean mass on original predictions whenever attainable. The adapter alters neither the fitted calibrator nor its direct output, fits no additional supervised map, and requires no user- or validation-tuned hyperparameter. Across CIFAR-10/100 and ImageNet-1K, CORD attains zero TPCR by construction and lowers mean ECE, NLL, and Brier relative to the corresponding direct outputs in every dataset; paired gains persist under distribution shift and across calibration-set sizes. CORD thus removes the preservation constraint from calibrator fitting and assigns exact recovery of the original decision to subsequent output repair. Our code is available at https://github.com/labhai/CORD.