I-BERT: Inductive Generalization of Transformer to Arbitrary Context Lengths

Hyoungwook Nam, Seung Byum Seo, Vikram Sharma Mailthody, Noor Michael, Lan Li
6/18/2020
cs.LGstat.ML
transformer-attention

Official code: hwnam831/ibert (8 stars, Jupyter Notebook, last commit 2021-02-12).

Abstract

Self-attention has emerged as a vital component of state-of-the-art sequence-to-sequence models for natural language processing in recent years, brought to the forefront by pre-trained bi-directional Transformer models. Its effectiveness is partly due to its non-sequential architecture, which promotes scalability and parallelism but limits the model to inputs of a bounded length.

Show full abstract

In particular, such architectures perform poorly on algorithmic tasks, where the model must learn a procedure which generalizes to input lengths unseen in training, a capability we refer to as inductive generalization. Identifying the computational limits of existing self-attention mechanisms, we propose I-BERT, a bi-directional Transformer that replaces positional encodings with a recurrent layer. The model inductively generalizes on a variety of algorithmic tasks where state-of-the-art Transformer models fail to do so. We also test our method on masked language modeling tasks where training and validation sets are partitioned to verify inductive generalization. Out of three algorithmic and two natural language inductive generalization tasks, I-BERT achieves state-of-the-art results on four tasks.

View on arXivView PDF

Code Implementations(1)

hwnam831/ibertOfficial100%

I-BERT: Inductive Generalization of Transformer to Arbitrary Context Lengths

81Jupyter Notebook, PythonJun 10, 20205 years ago

Similar Papers

Cite this paper

@article{nam2020ibert,
  title  = {I-BERT: Inductive Generalization of Transformer to Arbitrary Context Lengths},
  author = {Hyoungwook Nam and Seung Byum Seo and Vikram Sharma Mailthody and Noor Michael and Lan Li},
  year   = {2020},
  eprint = {2006.10220},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.10220}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.10220.svg)](https://codeofpaper.com/paper/2006.10220)

Discussion