[Paper Review] Mogrifier LSTM.
The paper proposes the Mogrifier LSTM, an enhanced Long Short-Term Memory network that introduces mutual gating between the current input and previous hidden state, making the transition function context-dependent. This improves modeling of input-context interactions, achieving state-of-the-art results on multiple language modeling benchmarks with 3–4 perplexity points lower on Penn Treebank and Wikitext-2, and improved bits per character on character-level datasets.
Many advances in Natural Language Processing have been based upon more expressive models for how inputs interact with the context in which they occur. Recurrent networks, which have enjoyed a modicum of success, still lack the generalization and systematicity ultimately required for modelling language. In this work, we propose an extension to the venerable Long Short-Term Memory in the form of mutual gating of the current input and the previous output. This mechanism affords the modelling of a richer space of interactions between inputs and their context. Equivalently, our model can be viewed as making the transition function given by the LSTM context-dependent. Experiments demonstrate markedly improved generalization on language modelling in the range of 3-4 perplexity points on Penn Treebank and Wikitext-2, and 0.01-0.05 bpc on four character-based datasets. We establish a new state of the art on all datasets with the exception of Enwik8, where we close a large gap between the LSTM and Transformer models.
Motivation & Objective
- To address the limited generalization and systematicity in standard RNNs, especially LSTMs, for modeling complex language patterns.
- To improve how inputs interact with their contextual representations in recurrent networks.
- To develop a mechanism that enhances modeling capacity without significantly increasing computational cost.
- To achieve state-of-the-art performance on standard language modeling benchmarks, including character-level datasets.
Proposed method
- Introduces a mutual gating mechanism that dynamically modulates both the input and hidden state using a shared gating network.
- Applies the gating mechanism to compute a context-dependent transition function, allowing richer interaction between input and hidden state.
- Uses a learnable gate to control the flow of information between input and hidden state, inspired by the transformer's gating mechanism but adapted for RNNs.
- Integrates the gated transformation into the standard LSTM cell structure, preserving its memory and gradient flow properties.
- Employs a parameter-efficient design that adds minimal parameters while significantly improving modeling capacity.
- Treats the gating mechanism as a learnable, differentiable transformation that adapts based on input and context.
Experimental results
Research questions
- RQ1Can a context-dependent transition function in LSTMs improve generalization in language modeling tasks?
- RQ2How does mutual gating between input and hidden state affect modeling of long-range dependencies and systematic patterns?
- RQ3To what extent can a simple architectural modification like mutual gating improve performance on standard language modeling benchmarks?
- RQ4Does the Mogrifier LSTM outperform standard LSTMs and competitive models like Transformers on character-level language modeling?
- RQ5Can the model close the performance gap between LSTMs and Transformers on challenging datasets like Enwik8?
Key findings
- The Mogrifier LSTM achieves a 3–4 perplexity point improvement on the Penn Treebank and Wikitext-2 datasets compared to standard LSTM.
- It reduces bits per character (bpc) by 0.01–0.05 on four character-level language modeling datasets, demonstrating improved modeling efficiency.
- The model establishes a new state of the art on all evaluated datasets except Enwik8, where it significantly closes the performance gap between LSTMs and Transformers.
- The improvements are achieved with minimal architectural overhead, maintaining the computational efficiency of standard LSTMs.
- The mutual gating mechanism enables better modeling of input-context interactions, leading to enhanced generalization and systematicity.
- The model shows strong generalization across diverse language modeling tasks, including both word-level and character-level benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.