Skip to main content
QUICK REVIEW

[Paper Review] Comparing Fixed and Adaptive Computation Time for Recurrent Neural Networks

Daniel Fojo, Víctor Campos|arXiv (Cornell University)|Mar 21, 2018
Advanced Neural Network ApplicationsComputer Science4 references4 citations
TL;DR

This paper introduces Repeat-RNN, a fixed computation time method that repeats each input token multiple times through an RNN, enabling improved performance on sequential tasks like parity and addition. Surprisingly, Repeat-RNN matches or exceeds Adaptive Computation Time (ACT) in training speed and sample efficiency, suggesting that dynamic computation allocation may not be essential for performance gains in certain tasks.

ABSTRACT

Adaptive Computation Time for Recurrent Neural Networks (ACT) is one of the most promising architectures for variable computation. ACT adapts to the input sequence by being able to look at each sample more than once, and learn how many times it should do it. In this paper, we compare ACT to Repeat-RNN, a novel architecture based on repeating each sample a fixed number of times. We found surprising results, where Repeat-RNN performs as good as ACT in the selected tasks. Source code in TensorFlow and PyTorch is publicly available at https://imatge-upc.github.io/danifojo-2018-repeatrnn/

Motivation & Objective

  • To investigate whether dynamic computation time (ACT) provides a fundamental advantage over fixed computation time in RNNs.
  • To understand the contribution of adaptive step count and repeated processing to performance gains in sequential tasks.
  • To evaluate whether a simple fixed-repetition mechanism can match or surpass ACT in learning efficiency and accuracy.
  • To explore the role of repeated non-linear transformations in improving model capacity without increasing parameters.

Proposed method

  • Proposes Repeat-RNN, a modified RNN that applies the same input token ρ times through the recurrent network before producing an output.
  • Each input token is augmented with a binary flag indicating whether it is the first or a repeated application.
  • The final hidden state is taken as the last of ρ repeated updates, unlike ACT’s weighted average of intermediate states.
  • Employs a hyperparameter ρ to control the number of repetitions per input token, which is tuned per task.
  • Implements the model using TensorFlow on a single GPU, following the same setup as Graves (2016) for fair comparison.
  • Evaluates performance on two benchmark tasks: binary parity and sequential addition with one-hot encoded digits.

Experimental results

Research questions

  • RQ1Does fixed repetition of input tokens per sequence element yield performance comparable to adaptive computation time (ACT) in RNNs?
  • RQ2What is the relative contribution of dynamic step selection versus repeated processing to ACT’s performance gains?
  • RQ3Can a simple, fixed-repetition mechanism outperform ACT in terms of training speed and convergence?
  • RQ4How does the number of repetitions ρ affect learning stability and performance in sequential tasks?
  • RQ5What is the underlying mechanism by which repeated processing improves model capacity in RNNs?

Key findings

  • Repeat-RNN with ρ=2 solved the parity task in 22,000 training steps, significantly faster than the best ACT configuration (53,000 steps).
  • For the addition task, Repeat-RNN with ρ=3 achieved a solution in 997,000 steps, comparable to ACT with τ=10⁻² (899,000 steps).
  • Repeat-RNN achieved 98% accuracy on the parity task with only 2.00 average repetitions, while ACT required 1.805–2.044 repetitions.
  • Increasing ρ beyond a certain point (e.g., ρ=8 in addition task) led to training instabilities and longer sequences, indicating a performance ceiling.
  • The same Repeat-RNN configuration (ρ=2) failed on the addition task, indicating that ρ is task-dependent and cannot be universally set.
  • ACT required significantly more training steps (up to 988,000) for the addition task with τ=5×10⁻³, while Repeat-RNN with ρ=5 achieved the same in 514,000 steps.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.