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

通过模块化线性化注意力改进自回归NLP任务

Improving Autoregressive NLP Tasks via Modular Linearized Attention

Oregon State University(俄勒冈州立大学)

Victor Agostinelli, Lizhong Chen

AI总结:

本文提出模块化线性化注意力(MLA),结合cosFormer等高效机制,在自回归NLP任务中显著提升计算效率与推理速度,同时保持有竞争力的性能。

摘要:

各种自然语言处理(NLP)任务需要基于其在边缘端或其他资源受限环境中的最终应用,要求模型既高效又小巧。尽管先前的研究已经减小了这些模型的规模,但在不影响性能的情况下提升计算效率仍然困难,特别是对于自回归任务。本文提出了模块化线性化注意力(MLA),它结合了包括cosFormer在内的多种高效注意力机制,以在实现显著加速的同时最大化推理质量。我们在多个自回归NLP任务上验证了该方法,包括语音到文本神经机器翻译(S2T NMT)、语音到文本同声翻译(SimulST)以及自回归文本到频谱图,发现在TTS上获得了效率提升,并在训练和推理期间对NMT和SimulST保持了有竞争力的性能。

英文摘要:

Various natural language processing (NLP) tasks necessitate models that are efficient and small based on their ultimate application at the edge or in other resource-constrained environments. While prior research has reduced the size of these models, increasing computational efficiency without considerable performance impacts remains difficult, especially for autoregressive tasks. This paper proposes modular linearized attention (MLA), which combines multiple efficient attention mechanisms, including cosFormer, to maximize inference quality while achieving notable speedups. We validate this approach on several autoregressive NLP tasks, including speech-to-text neural machine translation (S2T NMT), speech-to-text simultaneous translation (SimulST), and autoregressive text-to-spectrogram, noting efficiency gains on TTS and competitive performance for NMT and SimulST during training and inference.

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

↑