arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.07913cs.LGcs.AIstat.MEstat.ML
收藏

运用Pareto检验有效控制多重风险

Efficiently Controlling Multiple Risks with Pareto Testing

Massachusetts Institute of Technology(麻省理工学院)

Bracha Laufer-Goldshtein, Adam Fisch, Regina Barzilay, Tommi Jaakkola

摘要:

机器学习应用程序通常具有多个不同的目标和约束,这些目标和约束可能会随着时间的推移而变化。因此,可以用影响其预测行为的超参数集(例如,它们的运行时效率与出错率的关系)。随着约束和超参数维度的数量增长,天真地选择的设置可能导致次优和/或不可靠的结果。我们开发了一种有效的方法来校准模型,使它们的预测可证明地满足多个明确和同时的统计保证(例如,上限出错率),同时还优化任意数量的附加的、无约束的目标(例如,总运行时间成本)。基于最近的结果分布免费,有限样本的风险控制一般损失,我们提出了帕累托检验:一个两阶段的过程,结合多目标优化与多个假设检验。优化阶段在帕累托边界上构造一组有希望的组合。然后,我们将统计测试应用于该边界,以确定具有(i)相对于我们的目标具有高效用的配置,以及(ii)相对于我们的约束具有可指定的高概率的保证风险水平。我们证明了我们的方法的有效性,可靠地加速执行大型Transformer模型在自然语言处理(NLP)应用程序。特别是,我们展示了如何使用帕累托测试来动态配置多个相互依赖的模型属性-包括退出前计算的层数,修剪的注意力头数或考虑的文本标记数-以同时控制和优化各种准确性和成本指标。

英文摘要:

Machine learning applications frequently come with multiple diverse objectives and constraints that can change over time. Accordingly, trained models can be tuned with sets of hyper-parameters that affect their predictive behavior (e.g., their run-time efficiency versus error rate). As the number of constraints and hyper-parameter dimensions grow, naively selected settings may lead to sub-optimal and/or unreliable results. We develop an efficient method for calibrating models such that their predictions provably satisfy multiple explicit and simultaneous statistical guarantees (e.g., upper-bounded error rates), while also optimizing any number of additional, unconstrained objectives (e.g., total run-time cost). Building on recent results in distribution-free, finite-sample risk control for general losses, we propose Pareto Testing: a two-stage process which combines multi-objective optimization with multiple hypothesis testing. The optimization stage constructs a set of promising combinations on the Pareto frontier. We then apply statistical testing to this frontier only to identify configurations that have (i) high utility with respect to our objectives, and (ii) guaranteed risk levels with respect to our constraints, with specifiable high probability. We demonstrate the effectiveness of our approach to reliably accelerate the execution of large-scale Transformer models in natural language processing (NLP) applications. In particular, we show how Pareto Testing can be used to dynamically configure multiple inter-dependent model attributes -- including the number of layers computed before exiting, number of attention heads pruned, or number of text tokens considered -- to simultaneously control and optimize various accuracy and cost metrics.

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

↑