Methods βΊ Sequential βΊ Recurrent Neural Networks βΊ Mogrifier LSTM
Mogrifier LSTM
Introduced by GΓ‘bor Melis et al. in Mogrifier LSTM
archive 2025-07-28 Description, source and code snippet are the archive's method entry.
The Mogrifier LSTM is an extension to the LSTM where the LSTMβs input π± is gated conditioned on the output of the previous step π‘βα΅£βα΅₯. Next, the gated input is used in a similar manner to gate the output of the previous time step. After a couple of rounds of this mutual gating, the last updated π± and π‘βα΅£βα΅₯ are fed to an LSTM.
In detail, the Mogrifier is an LSTM where two inputs π± and π‘βα΅£βα΅₯ modulate one another in an alternating fashion before the usual LSTM computation takes place. That is: Mogrify(π±, πβα΅£βα΅₯, π‘βα΅£βα΅₯) = LSTM(π±^β, πβα΅£βα΅₯, π‘^ββα΅£βα΅₯) where the modulated inputs π±^β and π‘^ββα΅£βα΅₯ are defined as the highest indexed π±β± and π‘β±βα΅£βα΅₯, respectively, from the interleaved sequences:
π±β± = 2Ο(πβ±π‘β±β»ΒΉβα΅£βα΅₯) βxβ±β»Β² for odd i β[1 β¦r]
π‘β±βα΅£βα΅₯ = 2Ο(πβ±π±β±β»ΒΉ) βπ‘β±β»Β²βα΅£βα΅₯ for even i β[1 β¦r]
with π±β»ΒΉ = π± and π‘β°βα΅£βα΅₯ = π‘βα΅£βα΅₯. The number of "rounds", r ββ, is a hyperparameter; r = 0 recovers the LSTM. Multiplication with the constant 2 ensures that randomly initialized πβ±, πβ± matrices result in transformations close to identity. To reduce the number of additional model parameters, we typically factorize the πβ±, πβ± matrices as products of low-rank matrices: πβ± = πβ±_(left)πβ±_(right) with πβ± ββ^(mΓn), πβ±_(left) ββ^(mΓk), πβ±_(right) ββ^(kΓn), where k < min(m, n) is the rank.
Papers archive 2025-07-28
2 shown of 2, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.
-
Gates Are Not What You Need in RNNs 1 Aug 2021 Β· 1 repository Β· arXiv:2108.00527
-
Mogrifier LSTM 4 Sep 2019 Β· 3 repositories Β· arXiv:1909.01792
Tasks archive 2025-07-28
4 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.
| Task | Papers |
|---|---|
| Language Modelling | 2 |
| Language Modeling | 1 |
| Music Modeling | 1 |
| Sentiment Analysis | 1 |
Usage over time archive 2025-07-28
Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).
Categories archive 2025-07-28
Report a problem or propose a change Β· a person checks every report against the paper or source before anything changes; decisions are listed on /corrections