arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.04257cs.CLcs.LG
收藏

用于文本生成的动量校准

Momentum Calibration for Text Generation

Microsoft(微软);Tsinghua University(清华大学)

Xingxing Zhang, Yiran Liu, Xun Wang, Pengcheng He, Yang Yu, Si-Qing Chen, Wayne Xiong, Furu Wei

摘要:

大多数文本生成任务的输入和输出可以转换为两个令牌序列,并且可以使用序列到序列学习建模工具(例如Transformers)对其进行建模。这些模型通常通过最大化输出文本序列的可能性来训练,并假设输入序列和所有gold preceding token在训练期间被给出,而在推理期间,模型遭受暴露偏差问题(即,在束搜索期间,它只能访问其先前预测的令牌而不是金令牌)。在本文中,我们提出了MoCa({ \bf Mo}mentum { \bf Ca}libration)的文本生成。MoCa是一种在线方法,使用具有束搜索的动量移动平均生成器动态生成缓慢演变(但一致)的样本,并且MoCa学习将这些样本的模型分数与它们的实际质量对齐。在四个文本生成数据集上的实验(即,CNN/DailyMail、XSum、SAMSum和Gigaword)显示,MoCa使用香草微调不断改进强大的预训练Transformers,我们在CNN/DailyMail和SAMSum数据集上实现了最先进的结果。

英文摘要:

The input and output of most text generation tasks can be transformed to two sequences of tokens and they can be modeled using sequence-to-sequence learning modeling tools such as Transformers. These models are usually trained by maximizing the likelihood the output text sequence and assumes the input sequence and all gold preceding tokens are given during training, while during inference the model suffers from the exposure bias problem (i.e., it only has access to its previously predicted tokens rather gold tokens during beam search). In this paper, we propose MoCa ({\bf Mo}mentum {\bf Ca}libration) for text generation. MoCa is an online method that dynamically generates slowly evolving (but consistent) samples using a momentum moving average generator with beam search and MoCa learns to align its model scores of these samples with their actual qualities. Experiments on four text generation datasets (i.e., CNN/DailyMail, XSum, SAMSum and Gigaword) show MoCa consistently improves strong pre-trained transformers using vanilla fine-tuning and we achieve the state-of-the-art results on CNN/DailyMail and SAMSum datasets.

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

↑