paper-with-me

Papers

Length Generalization with Log-Depth Recurrent Units

2026-05-25 · Charles Pert, Dalal Alrajeh, Alessandra Russo arxiv

Length generalization remains a persistent challenge for neural networks: recurrent models tend to suffer from positional biases, while transformers are constrained by fixed computational depth. Regular languages provide a frequently used testbed for evaluating length generalization, as label prediction can be checked for any sequence length. We propose MLP-LDRU, a type of Log-Depth Recurrent Unit, which captures a class of associativity-biased operators designed to approximate recurrence through parallel reduction. We evaluate MLP-LDRU on 21 regular-language tasks, consisting of standard benchmarks and new prefix languages, where it achieves 100% out-of-distribution accuracy on 18 tasks and at least 99.9% on the remaining 3 when increasing max training length, outperforming comparable recurrent and attention-based models. We further evaluate MLP-LDRU beyond regular languages on ListOps and NLP classification benchmarks, where it performs competitively.

📄 PDF Abstract BibTeX arXiv:2605.26035

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

On the Practical Ability of Recurrent Neural Networks to Recognize Hierarchical Languages

2020-11-08 · COLING 2020 8 · Satwik Bhattamishra, Kabir Ahuja, Navin Goyal

While recurrent models have been effective in NLP tasks, their performance on context-free languages (CFLs) has been found to be quite weak. Given that CFLs are believed to capture important phenomena such as hierarchica…

Assessing the Memory Ability of Recurrent Neural Networks

2020-02-18 · Cheng Zhang, Qiuchi Li, Lingyu Hua, Dawei Song

It is known that Recurrent Neural Networks (RNNs) can remember, in their hidden layers, part of the semantic information expressed by a sequence (e.g., a sentence) that is being processed. Different types of recurrent un…

Sentence

Zoneout: Regularizing RNNs by Randomly Preserving Hidden Activations

2016-06-03 · David Krueger, Tegan Maharaj, János Kramár, Mohammad Pezeshki 외

We propose zoneout, a novel method for regularizing RNNs. At each timestep, zoneout stochastically forces some hidden units to maintain their previous values. Like dropout, zoneout uses random noise to train a pseudo-ens…

Language Modelling

Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers

2026-04-09 · Harsh Kohli, Srinivasan Parthasarathy, Huan Sun, Yuekun Yao arxiv

We study implicit reasoning, i.e. the ability to combine knowledge or rules within a single forward pass. While transformer-based large language models store substantial factual knowledge and rules, they often fail to co…

Accelerating recurrent neural network training using sequence bucketing and multi-GPU data parallelization

2017-08-18 · Viacheslav Khomenko, Oleg Shyshkov, Olga Radyvonenko, Kostiantyn Bokhan

An efficient algorithm for recurrent neural network training is presented. The approach increases the training speed for tasks where a length of the input sequence may vary significantly. The proposed approach is based o…

GPUHandwriting Recognition