Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network
Not on the map. Why?
Abstract (arXiv)
Because of their effectiveness in broad practical applications, LSTM networks have received a wealth of coverage in scientific journals, technical blogs, and implementation guides. However, in most articles, the inference formulas for the LSTM network and its parent, RNN, are stated axiomatically, while the training formulas are omitted altogether. In addition, the technique of "unrolling" an RNN is routinely presented without justification throughout the literature. The goal of this paper is to explain the essential RNN and LSTM fundamentals in a single document. Drawing from concepts in signal processing, we formally derive the canonical RNN formulation from differential equations. We then propose and prove a precise statement, which yields the RNN unrolling technique. We also review the difficulties with training the standard RNN and address them by transforming the RNN into the "Vanilla LSTM" network through a series of logical arguments. We provide all equations pertaining to the LSTM system together with detailed descriptions of its constituent entities. Albeit unconventional, our choice of notation and the method for presenting the LSTM system emphasizes ease of understanding. As part of the analysis, we identify new opportunities to enrich the LSTM system and incorporate these extensions into the Vanilla LSTM network, producing the most general LSTM variant to date. The target reader has already been exposed to RNNs and LSTM networks through numerous available resources and is open to an alternative pedagogical approach. A Machine Learning practitioner seeking guidance for implementing our new augmented LSTM model in software for experimentation and research will find the insights and derivations in this tutorial valuable as well.
Key facts. Cited by 415 papers in the map (data through 7 Oct 2026). First posted on arXiv 9 Aug 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 43; 2022: 59; 2023: 68; 2024: 107; 2025: 95; 2026: 43.
415 papers.
Sort:
By area:
- 2022Liquid Structural State-Space Modelscited by 134
- 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 93
- 2023Generative Time Series Forecasting with Diffusion, Denoise, and Disentanglementcited by 89
- 2024Normalizing Flows are Capable Generative Modelscited by 89
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
- 2023GenRec: Large Language Model for Generative Recommendationcited by 62
- 2021A Dynamical System Perspective for Lipschitz Neural Networkscited by 59
- 2022Transformers in Time-series Analysis: A Tutorialcited by 45
- 2022Machine Learning in Aerodynamic Shape Optimizationcited by 39
- 2021A Framework for Machine Learning of Model Error in Dynamical Systemscited by 37
- 2021Deep Learning for Reduced Order Modelling and Efficient Temporal Evolution of Fluid Simulationscited by 36
- 2021Multimodal Co-learning: Challenges, Applications with Datasets, Recent Advances and Future Directionscited by 35
38 more
- 2024A review on data-driven constitutive laws for solidscited by 35
- 2025A Survey of Large Language Model Empowered Agents for Recommendation and Search: Towards Next-Generation Information Retrievalcited by 31
- 2024Exploring Autonomous Agents through the Lens of Large Language Models: A Reviewcited by 30
- 2024Can Small Language Models be Good Reasoners for Sequential Recommendation?cited by 25
- 2022Physics-Guided, Physics-Informed, and Physics-Encoded Neural Networks in Scientific Computingcited by 24
- 2023Neurosymbolic AI for Reasoning over Knowledge Graphs: A Surveycited by 21
- 2024SpikingSSMs: Learning Long Sequences with Sparse and Parallel Spiking State Space Modelscited by 19
- 2024Continuous Field Reconstruction from Sparse Observations with Implicit Neural Networkscited by 18
- 2025Trajectory Mamba: Efficient Attention-Mamba Forecasting Model Based on Selective SSMcited by 17
- 2023DeTiME: Diffusion-Enhanced Topic Modeling using Encoder-decoder based LLMcited by 16
- 2025Graph Generative Pre-trained Transformercited by 16
- 2025Deep Learning Advancements in Anomaly Detection: A Comprehensive Surveycited by 15
- 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
- 2024Unified Speech Recognition: A Single Model for Auditory, Visual, and Audiovisual Inputscited by 14
- 2024Do Language Models Understand Time?cited by 14
- 2022Universal Spam Detection using Transfer Learning of BERT Modelcited by 13
- 2022Rapid training of quantum recurrent neural networkscited by 13
- 2023Efficient Generator of Mathematical Expressions for Symbolic Regressioncited by 13
- 2023The Evolution of Distributed Systems for Graph Neural Networks and their Origin in Graph Processing and Deep Learning: A Surveycited by 13
- 2023Adapting Large Language Models for Education: Foundational Capabilities, Potentials, and Challengescited by 13
- 2023Object Recognition as Next Token Predictioncited by 12
- 2024ODE Discovery for Longitudinal Heterogeneous Treatment Effects Inferencecited by 12
- 2024BrainODE: Dynamic Brain Signal Analysis via Graph-Aided Neural Ordinary Differential Equationscited by 12
- 2025Machine learning for modelling unstructured grid data in computational physics: a reviewcited by 12
- 2025A Survey on Imitation Learning for Contact-Rich Tasks in Roboticscited by 12
- 2024Exploration of Attention Mechanism-Enhanced Deep Learning Models in the Mining of Medical Textual Datacited by 11
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
- 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Studycited by 11
- 2021Using Transformers to Provide Teachers with Personalized Feedback on their Classroom Discourse: The TalkMoves Applicationcited by 10
- 2023Forecasting steam mass flow in power plants using the parallel hybrid networkcited by 10
- 2023A Systematic Review for Transformer-based Long-term Series Forecastingcited by 10
- 2024CT-AGRG: Automated Abnormality-Guided Report Generation from 3D Chest CT Volumescited by 10
- 2025A Wireless Foundation Model for Multi-Task Predictioncited by 10
- 2021JUSTICE: A Benchmark Dataset for Supreme Court's Judgment Predictioncited by 9
- 2022Goal-Guided Neural Cellular Automata: Learning to Control Self-Organising Systemscited by 9
- 2023Shared and Private Information Learning in Multimodal Sentiment Analysis with Deep Modal Alignment and Self-supervised Multi-Task Learningcited by 9
- 2023A Survey of AI Music Generation Tools and Modelscited by 9
- 2023Transformation vs Tradition: Artificial General Intelligence (AGI) for Arts and Humanitiescited by 9
50 most cited of 415 All 415 (JSON)
- 2026A Pre-trained Variational Autoencoder for Gyrokinetic Plasma Turbulence Surrogate Modeling29 Sep 2026
- 2026Cyclostationary Phase Conditioning for Medical Time Series Diffusion28 Sep 2026
- 2026Learning Length-Extrapolatable Recurrent Models8 Sep 2026
- 2026Deep Generalised Mixed Models: a Novel Neural Network Structure for Analysing Hierarchical Data6 Aug 2026
- 2026Model-Agnostic FDR Control via Group Gaussian Mirror and Permutation SHAP2 Aug 2026
- 2026F-ACVAE: A Federated Adaptive Conditional Variational Auto-Encoder for Privacy-Preserving Intrusion Detection in IoT Networks6 Jul 2026
- 2026Towards Flexible, Natural, Efficient Interaction for Conversational Talking Face Generation30 Jun 2026
- 2026Flexformer: Flexible Linear Transformer with Learnable Attention Kernel26 Jun 2026
- 2026Memory-Augmented LSTM Autoencoder for Unsupervised Activity Recognition with IMU Sensor Fusion19 Jun 2026
- 2026LongSpike: Fractional Order Spiking State Space Models for Efficient Long Sequence Learning11 Jun 2026
- 2026Limitations of Learning Tanh Neural Networks with Finite Precision9 Jun 2026
- 2026Coarse-to-Fine Multi-Resolution Diffusion Models for Trajectory Generation in Urban Systems5 Jun 2026
38 more
- 2026TRACE: A Temporal Conditional Estimation for Multimodal Time Series Foundation Models4 Jun 2026
- 2026Benchmarking Counterfactual Prediction in Epidemic Time Series with Time-Varying Interventions4 Jun 2026
- 2026IstGPT: LLM-based Anomaly Detection for Spatial-Temporal Graph in Industrial Systems1 Jun 2026
- 2026Hierarchical Two-Stage Framework for Environment-Aware Long-Horizon Vessel Trajectory Prediction15 May 2026
- 2026Benchmarking Transformer and xLSTM for Time-Series Forecasting of Heat Consumption10 May 2026
- 2026From Review to Design: Ethical Multimodal Driver Monitoring Systems for Risk Mitigation, Incident Response, and Accountability in Automated Vehicles7 May 2026
- 2026Survey on Disaster Management Datasets for Remote Sensing Based Emergency Applications5 May 2026
- 2026QAROO: AI-Driven Online Task Offloading for Energy-Efficient and Sustainable MEC Networks28 Apr 2026
- 2026Inter-Stance: A Dyadic Multimodal Corpus for Conversational Stance Analysis24 Apr 2026
- 2026Towards Event-Aware Forecasting in DeFi: Insights from On-chain Automated Market Maker Protocols22 Apr 2026
- 2026A novel LSTM music generator based on the fractional time-frequency feature extraction20 Apr 2026
- 2026SPaRSe-TIME: Saliency-Projected Low-Rank Temporal Modeling for Efficient and Interpretable Time Series Prediction19 Apr 2026
- 2026TimeSAF: Towards LLM-Guided Semantic Asynchronous Fusion for Time Series Forecasting14 Apr 2026
- 2026Leveraging Large Language Models for Sentiment Analysis: Multi-Modal Analysis of Decentraland's MANA Token4 Apr 2026
- 2026KG-CMI: Knowledge graph enhanced cross-Mamba interaction for medical visual question answering1 Apr 2026
- 2026A Score Filter Enhanced Data Assimilation Framework for Data-Driven Dynamical Systems16 Mar 2026
- 2026On the Generalization Behavior of Deep Residual Networks From a Dynamical System Perspective24 Feb 2026
- 2026R2Energy: A Large-Scale Benchmark for Robust Renewable Energy Forecasting under Diverse and Extreme Conditions17 Feb 2026
- 2026Foundation Models for Medical Imaging: Status, Challenges, and Directions17 Feb 2026
- 2026Uni-Flow: a unified autoregressive-diffusion model for complex multiscale flows17 Feb 2026
- 2026HiVid: LLM-Guided Video Saliency For Content-Aware VOD And Live Streaming15 Feb 2026
- 2026Evolving Beyond Snapshots: Harmonizing Structure and Sequence via Entity State Tuning for Temporal Knowledge Graph Forecasting12 Feb 2026
- 2026Process-of-Thought Reasoning for Videos7 Feb 2026
- 2026TabPFN for Zero-shot Parametric Engineering Design Generation2 Feb 2026
- 2026PlatoLTL: Scaling LTL-Guided Multi-Task RL30 Jan 2026
- 2026Transformer Learning of Chaotic Collective Dynamics in Many-Body Systems27 Jan 2026
- 2026Abusive music and song transformation using GenAI and LLMs21 Jan 2026
- 2026Artificial Intelligence in Materials Science and Engineering: Current Landscape, Key Challenges, and Future Trajectorie18 Jan 2026
- 2026Multi-agent DRL-based Lane Change Decision Model for Cooperative Platooning in Mixed Traffic16 Jan 2026
- 2026Rethinking Recurrent Neural Networks for Time Series Forecasting: A Reinforced Recurrent Encoder with Prediction-Oriented Proximal Policy Optimization7 Jan 2026
- 2026Empirical Comparison of Encoder-Based Language Models and Feature-Based Supervised Machine Learning Approaches to Automated Scoring of Long Essays6 Jan 2026
- 2025From Illusion to Insight: Change-Aware File-Level Software Defect Prediction Using Agentic AI29 Dec 2025
- 2025RP-CATE: Recurrent Perceptron-based Channel Attention Transformer Encoder for Industrial Hybrid Modeling22 Dec 2025
- 2025Exploring polymer classification with a hybrid single-photon quantum approach19 Dec 2025
- 2025CS3D: An Efficient Facial Expression Recognition via Event Vision10 Dec 2025
- 2025Dynamic Facial Expressions Analysis Based Parkinson's Disease Auxiliary Diagnosis10 Dec 2025
- 2025Restrictive Hierarchical Semantic Segmentation for Stratified Tooth Layer Detection8 Dec 2025
- 2025Exploring Depth Generalization in Large Language Models for Solving Recursive Logic Tasks2 Dec 2025
50 newest of 415 All 415 (JSON)
- 2023DeTiME: Diffusion-Enhanced Topic Modeling using Encoder-decoder based LLMcited by 16
- 2025Skrr: Skip and Re-use Text Encoder Layers for Memory Efficient Text-to-Image Generationcited by 4
- 2026Uni-Flow: a unified autoregressive-diffusion model for complex multiscale flowscited by 4
- 2025A Decade of Deep Learning for Remote Sensing Spatiotemporal Fusion: Advances, Challenges, and Opportunitiescited by 2
- 2025LSDM: LLM-Enhanced Spatio-temporal Diffusion Model for Service-Level Mobile Traffic Predictioncited by 0
- 2025Conditionally Whitened Generative Models for Probabilistic Time Series Forecastingcited by 0
- 2026Coarse-to-Fine Multi-Resolution Diffusion Models for Trajectory Generation in Urban Systemscited by 0
- 2026Coarse-to-Fine Multi-Resolution Diffusion Models for Trajectory Generation in Urban Systems5 Jun 2026
- 2026Uni-Flow: a unified autoregressive-diffusion model for complex multiscale flows17 Feb 2026
- 2025Conditionally Whitened Generative Models for Probabilistic Time Series Forecasting25 Sep 2025
- 2025LSDM: LLM-Enhanced Spatio-temporal Diffusion Model for Service-Level Mobile Traffic Prediction23 Jul 2025
- 2025A Decade of Deep Learning for Remote Sensing Spatiotemporal Fusion: Advances, Challenges, and Opportunities1 Apr 2025
- 2025Skrr: Skip and Re-use Text Encoder Layers for Memory Efficient Text-to-Image Generation12 Feb 2025
- 2023DeTiME: Diffusion-Enhanced Topic Modeling using Encoder-decoder based LLM23 Oct 2023
- 2025Trajectory Mamba: Efficient Attention-Mamba Forecasting Model Based on Selective SSMcited by 17
- 2024Provable Benefits of Complex Parameterizations for Structured State Space Modelscited by 9
- 2024ST-Mamba: Spatial-Temporal Mamba for Traffic Flow Estimation Recovery using Limited Datacited by 4
- 2024When Mamba Meets xLSTM: An Efficient and Precise Method with the xLSTM-VMUNet Model for Skin lesion Segmentationcited by 0
- 2026KG-CMI: Knowledge graph enhanced cross-Mamba interaction for medical visual question answeringcited by 0
- 2026KG-CMI: Knowledge graph enhanced cross-Mamba interaction for medical visual question answering1 Apr 2026
- 2025Trajectory Mamba: Efficient Attention-Mamba Forecasting Model Based on Selective SSM13 Mar 2025
- 2024When Mamba Meets xLSTM: An Efficient and Precise Method with the xLSTM-VMUNet Model for Skin lesion Segmentation14 Nov 2024
- 2024Provable Benefits of Complex Parameterizations for Structured State Space Models17 Oct 2024
- 2024ST-Mamba: Spatial-Temporal Mamba for Traffic Flow Estimation Recovery using Limited Data11 Jul 2024
- 2025A Survey of Large Language Model Empowered Agents for Recommendation and Search: Towards Next-Generation Information Retrievalcited by 31
- 2024Exploring Autonomous Agents through the Lens of Large Language Models: A Reviewcited by 30
- 2025Integrating LLM and Diffusion-Based Agents for Social Simulationcited by 1
- 2025From Illusion to Insight: Change-Aware File-Level Software Defect Prediction Using Agentic AIcited by 0
- 2025From Illusion to Insight: Change-Aware File-Level Software Defect Prediction Using Agentic AI29 Dec 2025
- 2025Integrating LLM and Diffusion-Based Agents for Social Simulation18 Oct 2025
- 2025A Survey of Large Language Model Empowered Agents for Recommendation and Search: Towards Next-Generation Information Retrieval7 Mar 2025
- 2024Exploring Autonomous Agents through the Lens of Large Language Models: A Review5 Apr 2024
- 2024Can Small Language Models be Good Reasoners for Sequential Recommendation?cited by 25
- 2023Neurosymbolic AI for Reasoning over Knowledge Graphs: A Surveycited by 21
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
- 2025Zero Token-Driven Deep Thinking in LLMs: Unlocking the Full Potential of Existing Parameters via Cyclic Refinementcited by 5
- 2025Zero Token-Driven Deep Thinking in LLMs: Unlocking the Full Potential of Existing Parameters via Cyclic Refinement17 Feb 2025
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptation17 Oct 2024
- 2024Can Small Language Models be Good Reasoners for Sequential Recommendation?7 Mar 2024
- 2023Neurosymbolic AI for Reasoning over Knowledge Graphs: A Survey14 Feb 2023
- 2024Inference-Friendly Models With MixAttentioncited by 4
- 2024Inference-Friendly Models With MixAttention23 Sep 2024
- 2022Liquid Structural State-Space Modelscited by 134
- 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 93
- 2023Generative Time Series Forecasting with Diffusion, Denoise, and Disentanglementcited by 89
- 2024Normalizing Flows are Capable Generative Modelscited by 89
- 2024Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-wise LoRAcited by 72
- 2023GenRec: Large Language Model for Generative Recommendationcited by 62
- 2021A Dynamical System Perspective for Lipschitz Neural Networkscited by 59
- 2022Transformers in Time-series Analysis: A Tutorialcited by 45
- 2022Machine Learning in Aerodynamic Shape Optimizationcited by 39
- 2021A Framework for Machine Learning of Model Error in Dynamical Systemscited by 37
- 2021Deep Learning for Reduced Order Modelling and Efficient Temporal Evolution of Fluid Simulationscited by 36
- 2021Multimodal Co-learning: Challenges, Applications with Datasets, Recent Advances and Future Directionscited by 35
12 most cited of 388 All 388 (JSON)
- 2026A Pre-trained Variational Autoencoder for Gyrokinetic Plasma Turbulence Surrogate Modeling29 Sep 2026
- 2026Cyclostationary Phase Conditioning for Medical Time Series Diffusion28 Sep 2026
- 2026Learning Length-Extrapolatable Recurrent Models8 Sep 2026
- 2026Deep Generalised Mixed Models: a Novel Neural Network Structure for Analysing Hierarchical Data6 Aug 2026
- 2026Model-Agnostic FDR Control via Group Gaussian Mirror and Permutation SHAP2 Aug 2026
- 2026F-ACVAE: A Federated Adaptive Conditional Variational Auto-Encoder for Privacy-Preserving Intrusion Detection in IoT Networks6 Jul 2026
- 2026Towards Flexible, Natural, Efficient Interaction for Conversational Talking Face Generation30 Jun 2026
- 2026Flexformer: Flexible Linear Transformer with Learnable Attention Kernel26 Jun 2026
- 2026Memory-Augmented LSTM Autoencoder for Unsupervised Activity Recognition with IMU Sensor Fusion19 Jun 2026
- 2026LongSpike: Fractional Order Spiking State Space Models for Efficient Long Sequence Learning11 Jun 2026
- 2026Limitations of Learning Tanh Neural Networks with Finite Precision9 Jun 2026
- 2026TRACE: A Temporal Conditional Estimation for Multimodal Time Series Foundation Models4 Jun 2026
12 newest of 388 All 388 (JSON)