arrow
返回

Fixed global memory for controllable long text generation

delete2022-10-20
delete2
PRE
AI
Z
Zheng Chen *
Z
Zhejun Liu
DOI:10.1007/s10489-022-04197-6delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Long text generation is a challenging yet unsolved task. To generate long, coherent, and consistent text, existing approaches need to increase the language model length accordingly. However, the cost of the computational and memory resources grows as the square of the length. Even trained with thousands of GPUs, the length of language models is still limited to a few thousand, which may cause the generation of longer texts to be inconsistent with the topics and ideas in their preceding texts. To address this, we propose a novel Transformer architecture called Transformer with Local and Global Memory (Transformer LGM). It is inspired by the way people write long articles, which generate a key idea first and then guide the writing of the entire article with the idea in mind. Such a key idea can be put into the fixed global memory of the Transformer LGM to guide the whole generation process. On the contrary, the local memory, which is responsible for local coherence, could shift and drop with the increasing length of the generated text. We implement the global memory by introducing a negative positional embedding, while the traditional positive positional embedding is still used for the local memory. Experiments show that by utilizing the global memory, our model could generate long, coherent, and consistent text without enlarging the length of the language model.
Keyword:
Text generation
Language modeling
Transformer
Positional embedding

期刊

Applied Intelligence 封面图
Applied Intelligence
IF:
3.5
论文数:
7.6K
被引数:
1.7W

机构

暂无机构信息
引用论文

引用论文

Transformers in Vision: A Survey视觉中的变形金刚: 一项调查
err2022-09-13
err1.1K
errOAAI
errKhan, Salman; Naseer, Muzammal; Hayat, Munawar; Zamir, Syed Waqas; Khan, Fahad Shahbaz; Shah, Mubarak
err分享
err收藏
Impurity effects on ionic-liquid-based supercapacitors
err2016-12-27
err0
errOAAI
errKun Liu; Cheng Lian; Douglas Henderson; Jianzhong Wu
err分享
err收藏
Paradigm Shift in Natural Language Processing
err2022-05-28
err47
errOAAI
errSun, Tian-Xiang; Liu, Xiang-Yang; Qiu, Xi-Peng; Huang, Xuan-Jing
err分享
err收藏
Efficient Transformers: A Survey高效变压器: 一项调查
err2022-12-07
err267
errOAAI
errTay, Yi; Dehghani, Mostafa; Bahri, Dara; Metzler, Donald
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Superiority of Higher-Volume Fresh Feces Compared to Lower-Volume Frozen Feces in Fecal Microbiota Transplantation for Recurrent Clostridioides Difficile Colitis
err2020-07-11
err0
PREAI
errAmol Agarwal; Anurag Maheshwari; Sandeep Verma; Denise Arrup; Laila Phillips; Rakesh Vinayek; Padmanabhan Nair; Matilda Hagan; Sudhir Dutta
err分享
err收藏
学者 查看更多内容