arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.13667cs.CL
收藏

使用对比学习优化非自回归 Transformer

Optimizing Non-Autoregressive Transformers with Contrastive Learning

The University of Hong Kong(香港大学);Fudan University(复旦大学);Tsinghua University(清华大学)

Chenxin An, Jiangtao Feng, Fei Huang, Xipeng Qiu, Lingpeng Kong

AI总结:

针对非自回归 Transformer 的多模态学习难题,本文提出从模型分布采样并引入对比约束,结合 DA-Transformer,在翻译、摘要和释义的 5 个基准上取得新 SOTA。

摘要:

非自回归 Transformer(Non-autoregressive Transformers,NAT)通过一次性预测所有词而非按顺序预测,降低了自回归 Transformer(Autoregressive Transformers,AT)的推理延迟。它们已在机器翻译以及许多其他应用中取得显著进展。然而,NAT 长期存在的一项挑战是学习多模态数据分布,这也是 NAT 与 AT 之间性能差距的主要原因。本文提出通过从模型分布而非数据分布采样来缓解模态学习的困难。我们推导了对比约束以稳定训练过程,并将由此得到的目标函数与最先进的 NAT 架构 DA-Transformer 相结合。我们的模型 \method 在 3 个不同任务上接受检验,包括机器翻译、文本摘要和释义,共涉及 5 个基准。结果表明,我们的方法以显著优势优于此前的非自回归基线,并在所有基准上为非自回归 Transformer 建立了新的最先进结果。

英文摘要:

Non-autoregressive Transformers (NATs) reduce the inference latency of Autoregressive Transformers (ATs) by predicting words all at once rather than in sequential order. They have achieved remarkable progress in machine translation as well as many other applications. However, a long-standing challenge for NATs is the learning of multi-modality data distribution, which is the main cause of the performance gap between NATs and ATs. In this paper, we propose to ease the difficulty of modality learning via sampling from the model distribution instead of the data distribution. We derive contrastive constraints to stabilize the training process and integrate this resulting objective with the state-of-the-art NAT architecture DA-Transformer. Our model \method is examined on 3 different tasks, including machine translation, text summarization, and paraphrasing with 5 benchmarks. Results show that our approach outperforms previous non-autoregressive baselines by a significant margin and establishes new state-of-the-art results for non-autoregressive transformers on all the benchmarks.

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

↑