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

带记忆回放功能的Transformer

Transformer with Memory Replay

University of Michigan(密歇根大学)

Rui Liu, Barzan Mozafari

摘要:

Transformers通过在大规模文本语料库上进行预训练,实现了自然语言处理任务的最新性能。它们是非常计算密集型的,并且具有非常高的样本复杂性。内存重放是一种通过保存到内存缓冲区和从内存缓冲区重放来记住和重用过去的示例的机制。由于更好的样本效率,它已成功用于强化学习和GANs。在本文中,我们提出了\emph{Transformer with Memory Replay}(TMR),它集成了存储器重放与Transformer,使Transformer更采样效率。在GLUE和SQuAD基准数据集上的实验表明,与使用相同数量的示例进行预训练的基线Transformer模型相比,具有内存重放的Transformer至少实现了$1\%$点的增加。此外,通过采用一个精心的设计,减少内存重放的挂钟时间开销,我们也经验性地实现了更好的运行时效率。

英文摘要:

Transformers achieve state-of-the-art performance for natural language processing tasks by pre-training on large-scale text corpora. They are extremely compute-intensive and have very high sample complexity. Memory replay is a mechanism that remembers and reuses past examples by saving to and replaying from a memory buffer. It has been successfully used in reinforcement learning and GANs due to better sample efficiency. In this paper, we propose \emph{Transformer with Memory Replay} (TMR), which integrates memory replay with transformer, making transformer more sample-efficient. Experiments on GLUE and SQuAD benchmark datasets show that Transformer with Memory Replay achieves at least $1\%$ point increase compared to the baseline transformer model when pretrained with the same number of examples. Further, by adopting a careful design that reduces the wall-clock time overhead of memory replay, we also empirically achieve a better runtime efficiency.

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

↑