Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context

困惑 计算机科学 语言模型 变压器 人工智能 超参数 树库 自然语言处理 依赖关系(UML) 工程类 电气工程 电压
作者
Zihang Dai,Zhilin Yang,Yiming Yang,Jaime Carbonell,Quoc V. Le,Ruslan Salakhutdinov
出处
期刊:Cornell University - arXiv 被引量:390
标识
DOI:10.48550/arxiv.1901.02860
摘要

Transformers have a potential of learning longer-term dependency, but are limited by a fixed-length context in the setting of language modeling. We propose a novel neural architecture Transformer-XL that enables learning dependency beyond a fixed length without disrupting temporal coherence. It consists of a segment-level recurrence mechanism and a novel positional encoding scheme. Our method not only enables capturing longer-term dependency, but also resolves the context fragmentation problem. As a result, Transformer-XL learns dependency that is 80% longer than RNNs and 450% longer than vanilla Transformers, achieves better performance on both short and long sequences, and is up to 1,800+ times faster than vanilla Transformers during evaluation. Notably, we improve the state-of-the-art results of bpc/perplexity to 0.99 on enwiki8, 1.08 on text8, 18.3 on WikiText-103, 21.8 on One Billion Word, and 54.5 on Penn Treebank (without finetuning). When trained only on WikiText-103, Transformer-XL manages to generate reasonably coherent, novel text articles with thousands of tokens. Our code, pretrained models, and hyperparameters are available in both Tensorflow and PyTorch.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Lee发布了新的文献求助10
2秒前
小丸子发布了新的文献求助10
3秒前
周末完成签到,获得积分10
3秒前
zszzzsss完成签到,获得积分10
5秒前
晨曦完成签到,获得积分20
7秒前
今后应助Foremelon采纳,获得10
7秒前
情怀应助Lee采纳,获得10
8秒前
9秒前
HANA完成签到,获得积分10
11秒前
12秒前
Jack完成签到,获得积分10
14秒前
14秒前
yao学渣完成签到 ,获得积分10
15秒前
15秒前
派派发布了新的文献求助10
18秒前
田様应助michael采纳,获得10
18秒前
snow发布了新的文献求助10
19秒前
20秒前
21秒前
23秒前
fan完成签到,获得积分10
23秒前
赘婿应助迷路的糜采纳,获得10
23秒前
烟消云散应助Pluto.采纳,获得10
23秒前
Au_应助wy采纳,获得10
24秒前
斯文败类应助lbw采纳,获得10
24秒前
大橙子完成签到,获得积分10
25秒前
yl666应助Eric采纳,获得10
25秒前
Starwalker应助123123采纳,获得20
25秒前
万能图书馆应助snow采纳,获得30
25秒前
深情安青应助LV采纳,获得10
25秒前
一袋薯片发布了新的文献求助10
26秒前
26秒前
精明金毛应助11111采纳,获得10
27秒前
27秒前
htdk完成签到,获得积分10
27秒前
共享精神应助冷艳又菱采纳,获得10
28秒前
foxdaopo完成签到,获得积分10
30秒前
30秒前
小马甲应助HANA采纳,获得10
31秒前
山鬼完成签到,获得积分10
31秒前
高分求助中
Principles of Economics, 11th Edition 10000
Prescott's Microbiology: 2026 Release ISE 10000
University Physics with Modern Physics, 16th edition 10000
Cronologia da história de Macau 5000
Environmental Leverage in Times of Climate Crisis: Product Standards, Carbon Border Measures and Preferential Trade Agreements 1000
Interactions of Vowel Quality and Prosody in East Slavic 1000
Erwählung und Berufung bei Paulus: Bedeutung, Entwicklung und Funktion einer Vorstellung in ihrem frühjüdischen und griechisch-römischen Kontext 850
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7151499
求助须知:如何正确求助?哪些是违规求助? 8797120
关于积分的说明 18591153
捐赠科研通 6749175
什么是DOI,文献DOI怎么找? 3159782
关于科研通互助平台的介绍 2292730
邀请新用户注册赠送积分活动 2134456