Mutual Information Scaling and Expressive Power of Sequence Models

Huitao Shen
5/10/2019
cs.LGcond-mat.dis-nncs.IT
transformer-attention

Official code: openai/gpt-2 (25,016 stars, Python, last commit 2024-08-14).

Abstract

Sequence models assign probabilities to variable-length sequences such as natural language texts. The ability of sequence models to capture temporal dependence can be characterized by the temporal scaling of correlation and mutual information.

Show full abstract

In this paper, we study the mutual information of recurrent neural networks (RNNs) including long short-term memories and self-attention networks such as Transformers. Through a combination of theoretical study of linear RNNs and empirical study of nonlinear RNNs, we find their mutual information decays exponentially in temporal distance. On the other hand, Transformers can capture long-range mutual information more efficiently, making them preferable in modeling sequences with slow power-law mutual information, such as natural languages and stock prices. We discuss the connection of these results with statistical mechanics. We also point out the non-uniformity problem in many natural language datasets. We hope this work provides a new perspective in understanding the expressive power of sequence models and shed new light on improving the architecture of them.

View on arXivView PDF

Code Implementations(1)

openai/gpt-2Official100%

Code for the paper "Language Models are Unsupervised Multitask Learners"

25,0165,965PythonFeb 11, 20192 years agoNOASSERTION
paper

Similar Papers

Cite this paper

@article{shen2019mutual,
  title  = {Mutual Information Scaling and Expressive Power of Sequence Models},
  author = {Huitao Shen},
  year   = {2019},
  eprint = {1905.04271},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.04271}
}

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/1905.04271.svg)](https://codeofpaper.com/paper/1905.04271)

Discussion