近线性时间下的校准测试
Testing Calibration in Nearly-Linear Time
AI总结:
该研究从属性测试视角研究二元预测模型的校准测试问题,将经验平滑校准线性规划转化为结构化图最小费用流,提出近线性时间的动态规划求解器,还给出容错算法及其他校准度量的样本复杂度下界,实验验证了方法的有效性与可扩展性。
摘要:
在近期关于机器学习与决策的研究中,校准已成为二元预测模型输出的一种理想且被广泛研究的统计属性。然而,衡量模型校准的算法层面问题仍相对缺乏探索。受[BGHN23]提出的衡量校准距离的严谨框架启发,我们从属性测试的视角开展了校准的算法研究。我们定义了基于样本的校准测试问题:给定从(predictions, binary outcomes)上的分布$\boldsymbol{\text{mathcal{D}}}$中抽取的$n$个样本,我们的目标是区分$\boldsymbol{\text{mathcal{D}}}$完全校准的情况,以及$\boldsymbol{\text{mathcal{D}}}$与校准的距离为$\boldsymbol{\text{varepsilon}}$的情况。\n 我们通过简单观察发现,经验平滑校准线性规划可以重新表述为一个高度结构化图上的最小费用流实例,并设计了一种基于动态规划的精确求解器,其运行时间为$O(n\boldsymbol{\text{log}}^2(n))$,且能在相同时间内以信息论最优的方式解决校准测试问题。这一结果改进了当前最优的黑盒线性规划求解器——后者需要$Ω(n^ω)$的时间,其中$ω>2$是矩阵乘法的指数。我们还为测试问题的容错变体开发了算法,性能优于黑盒线性规划求解器,并给出了本文所考虑的校准度量之外的其他校准度量的样本复杂度下界。最后,我们的实验表明,我们定义的测试问题能准确反映标准的校准概念,且我们的算法可高效扩展以适配大样本量。
英文摘要:
In the recent literature on machine learning and decision making, calibration has emerged as a desirable and widely-studied statistical property of the outputs of binary prediction models. However, the algorithmic aspects of measuring model calibration have remained relatively less well-explored. Motivated by [BGHN23], which proposed a rigorous framework for measuring distances to calibration, we initiate the algorithmic study of calibration through the lens of property testing. We define the problem of calibration testing from samples where given $n$ draws from a distribution $\mathcal{D}$ on $(predictions, binary outcomes)$, our goal is to distinguish between the case where $\mathcal{D}$ is perfectly calibrated, and the case where $\mathcal{D}$ is $\varepsilon$-far from calibration. We make the simple observation that the empirical smooth calibration linear program can be reformulated as an instance of minimum-cost flow on a highly-structured graph, and design an exact dynamic programming-based solver for it which runs in time $O(n\log^2(n))$, and solves the calibration testing problem information-theoretically optimally in the same time. This improves upon state-of-the-art black-box linear program solvers requiring $Ω(n^ω)$ time, where $ω> 2$ is the exponent of matrix multiplication. We also develop algorithms for tolerant variants of our testing problem improving upon black-box linear program solvers, and give sample complexity lower bounds for alternative calibration measures to the one considered in this work. Finally, we present experiments showing the testing problem we define faithfully captures standard notions of calibration, and that our algorithms scale efficiently to accommodate large sample sizes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。