Methods β€Ί Sequential β€Ί Recurrent Neural Networks β€Ί Mogrifier LSTM

Mogrifier LSTM

2 papers tagged archive 2025-07-28

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.

PaperSource

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.

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.

TaskPapers
Language Modelling2
Language Modeling1
Music Modeling1
Sentiment Analysis1

Usage over time archive 2025-07-28

Papers per year tagged with Mogrifier LSTM: 2019 to 2021, peak 1 1 0 2019: 1 paper 2019 2020: 0 papers 2020 2021: 1 paper 2021
Papers per year the archive tags with this method, by the paper's archive date (2 dated). Bars are counts, not a trend claim.

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

Recurrent Neural Networks

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