Highlight

Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network

A tutorial that formally derives RNN and LSTM equations from differential equations, justifies unrolling, and proposes a generalized Vanilla LSTM.

Based on

Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network

By A. SherstinskyPhysica A: Statistical Mechanics and its Applications
Read original article →

This tutorial addresses a pedagogical gap in the RNN and LSTM literature, where inference formulas are often stated axiomatically, training formulas omitted, and the 'unrolling' of recurrent networks presented without justification. Drawing from concepts in signal processing, the author formally derives the canonical RNN formulation from differential equations and proposes and proves a precise statement that yields the RNN unrolling technique.

Through a series of logical arguments, the author addresses the difficulties of training standard RNNs by transforming the RNN into a 'Vanilla LSTM' network, providing all of the system's equations with detailed descriptions of its components. The analysis also identifies new opportunities to enrich the LSTM and incorporates these extensions into the Vanilla LSTM, producing what the author describes as the most general LSTM variant to date, aimed at practitioners and researchers implementing the model.

Abstract

LSTM networks are widely covered, but most articles state inference formulas axiomatically, omit training formulas, and present RNN 'unrolling' without justification. This tutorial explains essential RNN and LSTM fundamentals in one document. Drawing on signal processing, it formally derives the canonical RNN from differential equations and proves a statement yielding the unrolling technique. It then transforms the RNN into a Vanilla LSTM through logical arguments, provides all governing equations, and introduces extensions producing the most general LSTM variant to date.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

recurrent neural networksLSTMsequence modelingbackpropagation through timetutorial
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.

Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network | Aramai