arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2204.06340cs.LG
收藏

具有参数似然比的分布鲁棒模型

Distributionally Robust Models with Parametric Likelihood Ratios

Centre Sciences des Données(数据科学中心);École normale supérieure PSL(巴黎高等师范学院(PSL大学));Stanford University(斯坦福大学);Carnegie Mellon University(卡内基梅隆大学)

Paul Michel, Tatsunori Hashimoto, Graham Neubig

摘要:

随着机器学习模型的部署越来越广泛,它们不仅能够在训练分布上表现良好,而且在遇到分布偏移时也能产生准确的预测,这一点变得越来越重要。分布式鲁棒优化(DRO)框架提出通过训练模型来解决这个问题,以最大限度地减少分布集合下的预期风险,以模仿测试时间偏移。这通常是通过训练目标的实例级重新加权来模拟可能的测试分布的似然比来实现的,这允许通过重要性采样来估计它们的经验风险(假设它们是训练分布的子群体)。然而,在文献中的重新加权计划通常是有限的,由于难以保持的优化问题易于处理和执行规范化约束的复杂性。在本文中,我们表明,三个简单的想法-小批量水平归一化,KL惩罚和同步梯度更新-允许我们训练模型与DRO使用更广泛的类参数似然比。在对图像和文本分类基准的一系列实验中,我们发现,与其他DRO方法相比,使用所得到的参数对手训练的模型对子群体变化的鲁棒性始终更强,并且该方法在几乎没有超参数调整的情况下可靠地表现良好。可以在https://github.com/pmichel31415/P-DRO上找到重现我们实验的代码。

英文摘要:

As machine learning models are deployed ever more broadly, it becomes increasingly important that they are not only able to perform well on their training distribution, but also yield accurate predictions when confronted with distribution shift. The Distributionally Robust Optimization (DRO) framework proposes to address this issue by training models to minimize their expected risk under a collection of distributions, to imitate test-time shifts. This is most commonly achieved by instance-level re-weighting of the training objective to emulate the likelihood ratio with possible test distributions, which allows for estimating their empirical risk via importance sampling (assuming that they are subpopulations of the training distribution). However, re-weighting schemes in the literature are usually limited due to the difficulty of keeping the optimization problem tractable and the complexity of enforcing normalization constraints. In this paper, we show that three simple ideas -- mini-batch level normalization, a KL penalty and simultaneous gradient updates -- allow us to train models with DRO using a broader class of parametric likelihood ratios. In a series of experiments on both image and text classification benchmarks, we find that models trained with the resulting parametric adversaries are consistently more robust to subpopulation shifts when compared to other DRO approaches, and that the method performs reliably well with little hyper-parameter tuning. Code to reproduce our experiments can be found at https://github.com/pmichel31415/P-DRO.

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

↑