Skip to main content
QUICK REVIEW

[论文解读] The MultiBERTs: BERT Reproductions for Robustness Analysis

Thibault Sellam, Steve Yadlowsky|arXiv (Cornell University)|Jun 30, 2021
Machine Learning and AlgorithmsComputer Science参考文献 37被引用 17
一句话总结

该论文提出了 MultiBERTs,即一组 25 个 BERT-Base、未经过大小写处理的检查点,这些检查点使用相同的超参数进行训练,但初始权重和训练数据顺序不同,从而能够对预训练过程进行稳健分析。论文提出了 Multi-Bootstrap 方法,这是一种非参数统计方法,用于在多个模型种子之间估计不确定性,并通过性别偏见案例研究证明,单个检查点的结果可能具有误导性。研究显示,将预训练步数从 1M 增加到 2M 可显著提升 MNLI 任务性能(p < 0.001),且 MultiBERTs 在 SQuAD 2.0 上的表现优于原始 BERT 模型,置信区间为 [1.9%,2.9%](p < 0.001)。

ABSTRACT

Experiments with pre-trained models such as BERT are often based on a single checkpoint. While the conclusions drawn apply to the artifact tested in the experiment (i.e., the particular instance of the model), it is not always clear whether they hold for the more general procedure which includes the architecture, training data, initialization scheme, and loss function. Recent work has shown that repeating the pre-training process can lead to substantially different performance, suggesting that an alternate strategy is needed to make principled statements about procedures. To enable researchers to draw more robust conclusions, we introduce the MultiBERTs, a set of 25 BERT-Base checkpoints, trained with similar hyper-parameters as the original BERT model but differing in random weight initialization and shuffling of training data. We also define the Multi-Bootstrap, a non-parametric bootstrap method for statistical inference designed for settings where there are multiple pre-trained models and limited test data. To illustrate our approach, we present a case study of gender bias in coreference resolution, in which the Multi-Bootstrap lets us measure effects that may not be detected with a single checkpoint. We release our models and statistical library along with an additional set of 140 intermediate checkpoints captured during pre-training to facilitate research on learning dynamics.

研究动机与目标

  • 解决 NLP 研究中因依赖单个模型检查点而导致的稳健性不足问题,这些检查点可能无法泛化到底层的预训练过程。
  • 指出预训练中的随机性(源于权重初始化和数据洗牌)会导致模型结果之间出现显著的性能差异。
  • 通过引入一种专为模型集成评估设计的新自助法,实现对多个预训练模型进行系统性、统计上可靠的比较。
  • 提供实证证据表明,原始 BERT 检查点可能是异常值,从而挑战其作为预训练过程代表性的假设。
  • 通过发布五个训练运行中的 140 个中间检查点,促进对学习动态的研究。

提出的方法

  • 使用相同的超参数(架构、数据、损失函数、优化器)训练 25 个 BERT-Base、未经过大小写处理的模型,但使用不同的随机种子和洗牌后的训练数据顺序。
  • 开发 Multi-Bootstrap 方法,这是一种非参数重采样方法,能够同时考虑种子之间的模型方差和测试集的不确定性,并在可能的情况下使用配对采样。
  • 将 Multi-Bootstrap 应用于估计不同干预措施(如更长的预训练、数据增强)下模型性能差异的效应量和 p 值。
  • 当同一组种子下同时拥有基线模型和干预模型时,使用配对自助采样;当仅存在单个基线估计值时,使用非配对采样。
  • 在公开的软件库中实现该统计框架,以支持基于 MultiBERTs 的可复现研究。
  • 捕获并发布五个训练运行中的 140 个中间检查点(每项运行 28 个),以研究模型随时间的学习动态。

实验结果

研究问题

  • RQ1在 BERT 预训练中,模型性能在不同随机种子和数据洗牌顺序下的变化程度如何?
  • RQ2原始 BERT 检查点的性能是否能代表更广泛的预训练过程,还是其为异常值?
  • RQ3将预训练从 1M 步扩展到 2M 步是否会在下游 GLUE 任务中带来统计上显著的性能提升?
  • RQ4Multi-Bootstrap 方法能否检测到在单检查点评估中被掩盖的有意义性能差异?
  • RQ5反事实数据增强是否能降低共指消解中的性别偏见,且该效应在多个模型种子下是否稳健?

主要发现

  • 原始 BERT 检查点在性能分布中属于异常值:训练 1M 步的模型在 SQuAD 上表现相当,但在 GLUE 上表现较差;而 2M 步的模型在 GLUE 上表现相当,但在 SQuAD 上表现更优。
  • 将预训练扩展至 2M 步在 MNLI 上带来统计上显著的性能提升(效应量 δ = 0.007,p < 0.001),但在 RTE(p = 0.141)和 MRPC(p = 0.564)上无显著差异。
  • MultiBERTs 方法在 SQuAD 2.0 上的表现优于原始 BERT 模型,95% 置信区间为 1.9% 至 2.9% 的提升(p < 0.001),表明原始检查点可能并非最优。
  • Multi-Bootstrap 方法成功检测到反事实数据增强对共指消解中性别偏见的显著影响(δ = 0.203,p = 0.009)。
  • MultiBERTs 的性能分布显示,成对样本之间具有高度相关性,验证了配对自助法在检测微小但一致改进方面的有效性。
  • 中间检查点揭示,不同训练运行中的性能轨迹存在显著差异,凸显了在最终检查点之外监控学习动态的重要性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。