mlsanityData to 7 Oct 2026

On the Design Space Between Transformers and Recursive Neural Nets

arXiv 2409.01531 ↗First posted 3 Sep 2024cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

In this paper, we study two classes of models, Recursive Neural Networks (RvNNs) and Transformers, and show that a tight connection between them emerges from the recent development of two recent models - Continuous Recursive Neural Networks (CRvNN) and Neural Data Routers (NDR). On one hand, CRvNN pushes the boundaries of traditional RvNN, relaxing its discrete structure-wise composition and ends up with a Transformer-like structure. On the other hand, NDR constrains the original Transformer to induce better structural inductive bias, ending up with a model that is close to CRvNN. Both models, CRvNN and NDR, show strong performance in algorithmic tasks and generalization in which simpler forms of RvNNs and Transformers fail. We explore these "bridge" models in the design space between RvNNs and Transformers, formalize their tight connections, discuss their limitations, and propose ideas for future research.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 19 of its 26 references that are in the map. First posted on arXiv 3 Sep 2024.

Builds on

19 of 26 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  3. 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
  4. 2018Universal Transformerscited by 613
  5. 2019Deep Equilibrium Modelscited by 603
  6. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
  7. 2020Inductive Biases for Deep Learning of Higher-Level Cognitioncited by 273
  8. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  9. 2018ListOps: A Diagnostic Dataset for Latent Tree Learningcited by 128
  10. 2022A Length-Extrapolatable Transformercited by 123
  11. 2021The Neural Data Router: Adaptive Control Flow in Transformers Improves Systematic Generalizationcited by 62
  12. 2018The Importance of Being Recurrent for Modeling Hierarchical Structurecited by 42
7 more
  1. 2022Uncontrolled Lexical Exposure Leads to Overestimation of Compositional Generalization in Pretrained Modelscited by 26
  2. 2015Tree-structured composition in neural networks without tree-structured architecturescited by 23
  3. 2019Ordered Memorycited by 20
  4. 2020Highway Transformer: Self-Gating Enhanced Self-Attentive Networkscited by 18
  5. 2021Modeling Hierarchical Structures with Continuous Recursive Neural Networkscited by 15
  6. 2022CTL++: Evaluating Generalization on Never-Seen Compositional Patterns of Known Functions, and Compatibility of Neural Representationscited by 12
  7. 2023Beam Tree Recursive Cellscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.