paper-with-me

홈 › Papers

Transformer-XL: Language Modeling with Longer-Term Dependency

2019-05-01 · ICLR 2019 5 · Zihang Dai*, Zhilin Yang*, Yiming Yang, William W. Cohen, Jaime Carbonell, Quoc V. Le, Ruslan Salakhutdinov

We propose a novel neural architecture, Transformer-XL, for modeling longer-term dependency. To address the limitation of fixed-length contexts, we introduce a notion of recurrence by reusing the representations from the history. Empirically, we show state-of-the-art (SoTA) results on both word-level and character-level language modeling datasets, including WikiText-103, One Billion Word, Penn Treebank, and enwiki8. Notably, we improve the SoTA results from 1.06 to 0.99 in bpc on enwiki8, from 33.0 to 18.9 in perplexity on WikiText-103, and from 28.0 to 23.5 in perplexity on One Billion Word. Performance improves when the attention length increases during evaluation, and our best model attends to up to 1,600 words and 3,800 characters. To quantify the effective length of dependency, we devise a new metric and show that on WikiText-103 Transformer-XL manages to model dependency that is about 80% longer than recurrent networks and 450% longer than Transformer. Moreover, Transformer-XL is up to 1,800+ times faster than vanilla Transformer during evaluation.

📄 PDF Abstract BibTeX

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Variational Dropout Variational Dropout is a regularization technique based on dropout, but uses a variational inference grounded approach. In…
Residual Connection 설명 없음
Adaptive Input Representations Adaptive Input Embeddings extend the adaptive softmax to input word representations. The factorization assigns more…
Adaptive Softmax Adaptive Softmax is a speedup technique for the computation of probability distributions over words. The adaptive softmax is…

Similar Papers 제목 키워드 기반

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

2019-01-09 · ACL 2019 7 · Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell 외

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…

ArticlesLanguage ModelingLanguage Modelling

DocTime: A Document-level Temporal Dependency Graph Parser

2022-07-01 · NAACL 2022 7 · Puneet Mathur, Vlad Morariu, Verena Kaynig-Fittkau, Jiuxiang Gu 외

We introduce DocTime - a novel temporal dependency graph (TDG) parser that takes as input a text document and produces a temporal dependency graph. It outperforms previous BERT-based solutions by a relative 4-8% on three…

Evaluating Transformer's Ability to Learn Mildly Context-Sensitive Languages

2023-09-02 · Shunjie Wang, Shane Steinert-Threlkeld

Despite the fact that Transformers perform well in NLP tasks, recent studies suggest that self-attention is theoretically limited in learning even some regular and context-free languages. These findings motivated us to t…

Blockwise Parallel Transformer for Large Context Models

2023-05-30 · Hao liu, Pieter Abbeel

Transformers have emerged as the cornerstone of state-of-the-art natural language processing models, showcasing exceptional performance across a wide range of AI applications. However, the memory demands posed by the sel…

Language ModelingLanguage Modelling

Dependency Transformer Grammars: Integrating Dependency Structures into Transformer Language Models

2024-07-24 · Yida Zhao, Chao Lou, Kewei Tu

Syntactic Transformer language models aim to achieve better generalization through simultaneously modeling syntax trees and sentences. While prior work has been focusing on adding constituency-based structures to Transfo…

ARCInductive BiasLanguage ModelingLanguage Modelling