TransfoRNN: Capturing the Sequential Information in Self-Attention Representations for Language Modeling
Tze Yuang Chong, Xuyang Wang, Lin Yang, Junjie Wang

TL;DR
This paper introduces TransfoRNN, a model combining recurrent neural networks with Transformers to explicitly capture sequential information, resulting in improved language modeling performance with fewer parameters.
Contribution
The paper proposes a novel cascade of RNNs and Transformers, called TransfoRNN, which effectively captures sequential information and achieves comparable or better results with smaller models.
Findings
Lower perplexities on Penn Treebank and WikiText-2 datasets.
Reduced model size while maintaining performance.
Comparable results on LibriSpeech speech recognition task.
Abstract
In this paper, we describe the use of recurrent neural networks to capture sequential information from the self-attention representations to improve the Transformers. Although self-attention mechanism provides a means to exploit long context, the sequential information, i.e. the arrangement of tokens, is not explicitly captured. We propose to cascade the recurrent neural networks to the Transformers, which referred to as the TransfoRNN model, to capture the sequential information. We found that the TransfoRNN models which consists of only shallow Transformers stack is suffice to give comparable, if not better, performance than a deeper Transformer model. Evaluated on the Penn Treebank and WikiText-2 corpora, the proposed TransfoRNN model has shown lower model perplexities with fewer number of model parameters. On the Penn Treebank corpus, the model perplexities were reduced up to 5.5%…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Speech Recognition and Synthesis · Natural Language Processing Techniques
MethodsLinear Layer · Absolute Position Encodings · Position-Wise Feed-Forward Layer · Softmax · Dropout · Attention Is All You Need · Byte Pair Encoding · Residual Connection · Layer Normalization · Label Smoothing
