arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.20167cs.LGcs.CL
收藏

相似性-距离-幅度通用验证

Similarity-Distance-Magnitude Universal Verification

Reexpress AI

Allen Schmaltz

AI总结:

本文提出SDM激活函数,融合相似性、距离与幅度感知,以增强神经网络对认知不确定性的估计,并通过校准集映射实现可解释的汇总统计,支持选择性分类与LLM生成,对分布偏移鲁棒。

摘要:

我们通过向softmax函数现有的输出幅度(即决策边界)感知中添加相似性(即正确预测的深度匹配到训练集)感知和到训练分布距离的感知,来解决神经网络鲁棒性问题。由此产生的SDM激活函数提供了关于相对认知(可约简)预测不确定性的强信号。我们利用这一新颖行为进一步解决互补的人机交互问题,即将输出映射到在保留的校准集的相关分区上的人类可解释的汇总统计量。预测条件不确定性的估计是通过对最终层SDM激活函数输出的类条件经验累积分布函数进行简约的学习变换获得的。对于决策制定和作为内在模型检查,类条件准确率的估计是通过将校准输出的高概率区域进一步划分为类条件、区域特定的累积分布函数来获得的。来自SDM校准的不确定性估计对测试时分布偏移和分布外输入具有显著的鲁棒性;包含有效样本量的感知;提供来自学习和数据分割过程的不确定性估计;并且非常适合选择性分类和基于预测不确定性的额外测试时计算的条件分支,如选择性LLM生成、路由以及多个模型和检索的组合。最后,我们构建了SDM网络,即具有不确定性感知验证和通过示例进行可解释性作为内在属性的LLM。我们提供了实现这些结果的开源软件。

英文摘要:

We address the neural network robustness problem by adding Similarity (i.e., correctly predicted depth-matches into training)-awareness and Distance-to-training-distribution-awareness to the existing output Magnitude (i.e., decision-boundary)-awareness of the softmax function. The resulting SDM activation function provides strong signals of the relative epistemic (reducible) predictive uncertainty. We use this novel behavior to further address the complementary HCI problem of mapping the output to human-interpretable summary statistics over relevant partitions of a held-out calibration set. Estimates of prediction-conditional uncertainty are obtained via a parsimonious learned transform over the class-conditional empirical CDFs of the output of a final-layer SDM activation function. For decision-making and as an intrinsic model check, estimates of class-conditional accuracy are obtained by further partitioning the high-probability regions of this calibrated output into class-conditional, region-specific CDFs. The uncertainty estimates from SDM calibration are remarkably robust to test-time distribution shifts and out-of-distribution inputs; incorporate awareness of the effective sample size; provide estimates of uncertainty from the learning and data splitting processes; and are well-suited for selective classification and conditional branching for additional test-time compute based on the predictive uncertainty, as for selective LLM generation, routing, and composition over multiple models and retrieval. Finally, we construct SDM networks, LLMs with uncertainty-aware verification and interpretability-by-exemplar as intrinsic properties. We provide open-source software implementing these results.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑