arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2303.15619cs.CLcs.AI
收藏

Typhoon: 面向预训练语言模型的有效任务特定掩码策略

Typhoon: Gradient-Based Task-Specific Masking for Masked Language Models

Department of Computer Science, Stanford University(斯坦福大学计算机科学系)

Bruce Changlong Xu, Muhammed Shahir Abdurrahman, Hashem Elezabi

AI总结:

本文提出Typhoon,一种基于任务损失梯度的自适应掩码策略,在GLUE任务上对比随机掩码和整词掩码,经严格评估发现无显著优势。

摘要:

在掩码语言建模(MLM)中,选择哪些token进行掩码是一个核心但未被充分研究的设计决策。标准预训练随机均匀掩码token,但多项研究表明,更具信息性的掩码目标可以提升下游性能。我们将掩码视为微调流程中任务自适应的组件,并引入Typhoon,一种掩码策略,它利用任务损失相对于one-hot token输入的梯度来在线估计每种token类型对目标的贡献程度。Typhoon维护每个token类型显著性的指数移动平均,并将这些分数校准为掩码分布,在token独立性近似下,其期望掩码率与目标预算匹配。我们形式化了该方法,并在两个GLUE任务(MRPC和CoLA)上,针对三个BERT系列骨干网络(TinyBERT、DistilBERT和BERT-base)以及每个配置五个随机种子(总共90次训练运行),将其与随机掩码和整词掩码进行了评估。我们的主要发现是,一旦考虑了种子方差,没有哪种掩码策略在这些任务上可靠地优于其他策略:在MRPC上,Typhoon与最佳基线之间的差距保持在0.004 F1以内,所有十二次Typhoon比较中无配对检验达到显著性,且每个95%置信区间包含零。Typhoon在单次运行实验中的明显优势并未经受住这种更仔细的评估。我们将此视为一个警示性的、以可重复性为重点的结果——基于梯度的任务自适应掩码具有竞争力,但在此规模上并不明显优于无资源的随机掩码——我们描述了一个干净的现代重实现以支持后续工作。

英文摘要:

The choice of which tokens to mask is an under-examined design decision in masked language modeling (MLM). Standard pretraining masks tokens uniformly at random, whereas content-aware masking schemes can improve downstream transfer. We study masking as a task-adaptive component of the fine-tuning pipeline and introduce Typhoon, a masking strategy that uses the gradient of the MLM loss with respect to one-hot token inputs to estimate online how much each token type contributes to the objective. Typhoon maintains an exponential moving average of per-token-type saliency and calibrates these scores into a masking distribution whose expected masking rate matches a target budget under a token-independence approximation. We formalize the method and evaluate it against random masking and whole-word masking on two GLUE tasks, MRPC and CoLA, across three BERT-family backbones (TinyBERT, DistilBERT, and BERT-base) and five random seeds per configuration ($90$ training runs in total). Once seed variance is accounted for, no masking strategy is reliably better than the others on these tasks: on MRPC the gap between Typhoon and the best baseline stays within $0.004$ $F_1$, across all twelve Typhoon comparisons no paired test reaches significance, and every $95\%$ confidence interval contains zero. Inspecting Typhoon's learned distribution explains why: budget-preserving min-max calibration compresses the gradient ranking into a narrow band whose Kullback-Leibler divergence from uniform random masking is $7\times 10^{-4}$ nats per token, and widening the calibration spread by an order of magnitude in KL still leaves downstream accuracy unchanged within seed noise. Typhoon's apparent advantage in single-run experiments does not survive multi-seed evaluation, showing that gradient-based task-adaptive masking is competitive with, but does not outperform, uniform random masking at this scale.

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

↑