mlsanityData to 14 Oct 2026

Uncovering the Computational Roles of Nonlinearity in Sequence Modeling Using Almost-Linear RNNs

arXiv 2506.07919 ↗First posted 9 Jun 2025cs.LG cs.AI cs.CLcited by 5

Not on the map. Why?

Abstract (arXiv)

Sequence modeling tasks across domains such as natural language processing, time series forecasting, and control require learning complex input-output mappings. Nonlinear recurrence is theoretically required for universal approximation of sequence-to-sequence functions, yet linear recurrent models often prove surprisingly effective. This raises the question of when nonlinearity is truly required. We present a framework to systematically dissect the functional role of nonlinearity in recurrent networks, identifying when it is computationally necessary and what mechanisms it enables. We address this using Almost Linear Recurrent Neural Networks (AL-RNNs), which allow recurrence nonlinearity to be gradually attenuated and decompose network dynamics into analyzable linear regimes, making computational mechanisms explicit. We illustrate the framework across diverse synthetic and real-world tasks, including classic sequence modeling benchmarks, a neuroscientific stimulus-selection task, and a multi-task suite. We demonstrate how the AL-RNN's piecewise linear structure enables identification of computational primitives such as gating, rule-based integration, and memory-dependent transients, revealing that these operations emerge within predominantly linear backbones. Across tasks, sparse nonlinearity improves interpretability by reducing and localizing nonlinear computations, promotes shared representations in multi-task settings, and reduces computational cost. Moreover, sparse nonlinearity acts as a useful inductive bias: in low-data regimes or when tasks require discrete switching between linear regimes, sparsely nonlinear models often match or exceed fully nonlinear architectures. Our findings provide a principled approach for identifying where nonlinearity is functionally necessary, guiding the design of recurrent architectures that balance performance, efficiency, and interpretability.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 40 of its 78 references that are in the map. First posted on arXiv 9 Jun 2025.

Builds on

40 of 78 references.

References · 40

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  3. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
  4. 2015Continuous control with deep reinforcement learningcited by 3,407
  5. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  6. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,367
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  8. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
  9. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  10. 2022Simplified State Space Layers for Sequence Modelingcited by 788
  11. 2019Temporal Fusion Transformers for Interpretable Multi-horizon Time Series Forecastingcited by 761
  12. 2018Speech Commands: A Dataset for Limited-Vocabulary Speech Recognitioncited by 752
28 more
  1. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 700
  2. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
  3. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
  4. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
  5. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
  6. 2022Diagonal State Spaces are as Effective as Structured State Spacescited by 350
  7. 2022Long Range Language Modeling via Gated State Spacescited by 265
  8. 2022Liquid Structural State-Space Modelscited by 136
  9. 2017Parallelizing Linear Recurrent Neural Nets Over Sequence Lengthcited by 127
  10. 2023Hierarchically Gated Recurrent Neural Network for Sequence Modelingcited by 102
  11. 2021Neural Production Systems: Learning Rule-Governed Visual Dynamicscited by 75
  12. 2021On the difficulty of learning chaotic dynamics with RNNscited by 67
  13. 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challengescited by 64
  14. 2015A C-LSTM Neural Network for Text Classificationcited by 54
  15. 2021Long Expressive Memory for Sequence Modelingcited by 41
  16. 2019Reverse engineering recurrent networks for sentiment classification reveals line attractor dynamicscited by 39
  17. 2016Recurrent Orthogonal Networks and Long-Memory Taskscited by 38
  18. 2022Tractable Dendritic RNNs for Reconstructing Nonlinear Dynamical Systemscited by 36
  19. 2023Universality of Linear Recurrences Followed by Non-linear Projections: Finite-Width Guarantees and Benefits of Complex Eigenvaluescited by 36
  20. 2016Recurrent switching linear dynamical systemscited by 35
  21. 2020On Lyapunov Exponents for RNNs: Understanding Information Propagation Using Dynamical Systems Toolscited by 31
  22. 2024Understanding the differences in Foundation Models: Attention, State Space Models, and Recurrent Neural Networkscited by 26
  23. 2016A State Space Approach for Piecewise-Linear Recurrent Neural Networks for Reconstructing Nonlinear Dynamics from Neural Measurementscited by 25
  24. 2016Recurrent Network Models Of Sequence Generation And Memorycited by 21
  25. 2024Almost-Linear RNNs Yield Highly Interpretable Symbolic Codes in Dynamical Systems Reconstructioncited by 19
  26. 2023Bifurcations and loss jumps in RNN trainingcited by 17
  27. 2024Learning Interpretable Hierarchical Dynamical Systems Models from Time Series Datacited by 15
  28. 2022Integrating Multimodal Data for Joint Generative Modeling of Complex Dynamicscited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.