Manuscript Offprint

arXiv:2610.29034

Gate Initialisation versus Recurrent Dropout and Zoneout in Learning Long Dependencies: A Controlled Study of LSTM and GRU Networks on Synthetic Tasks

Oleksandr Kholodniak, Oleksandr Prokhorov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Dropout and zoneout are routinely added to long short-term memory (LSTM) and gated recurrent unit (GRU) networks, but, to our knowledge, their placements have not been crossed with gate initialisation in a factorial design, and it is not known whether early gradient propagation tells which runs will learn long dependencies. We trained one-layer LSTMs and GRUs on the adding problem and on delayed recall in a factorial grid of 720 runs, crossing conventional and chrono gate initialisation with up to six recurrent regulariser placements at one rate each, with pre-specified follow-ups, and recorded how sensitive the final hidden state was to the input at every lag. Because both tasks supply fresh or exhaustive training data, the study measures the regularisers' effects on optimisation and does not assess generalisation from a finite training set. At lengths chosen to make conventional initialisation difficult, all 360 chrono-initialised runs reached the validation criterion within 5000 updates, as did 119 of 120 unregularised runs with a horizon about four times too short or too long, whereas conventionally initialised networks learned slowly or did not reach the criterion within the budget at the longer lengths. Under conventional initialisation, dropout generally delayed learning and zoneout helped only in some conditions. The early input sensitivity added little to predicting which conditions learn once the early validation loss was modelled per task, architecture and initialisation. Within conditions, a flatter early decay went with the seeds that learned, but in a pre-specified test the association was modest (concordance 0.61), condition-dependent and not robust to resampling seeds. The results support chrono initialisation, even with a rough horizon, on such tasks.

1 Introduction

In a recurrent network trained by backpropagation through time (BPTT), the computations that process an input seen T steps before the loss receive direct credit only through the gradient carried back over those steps (Werbos, 1990). When the Jacobians along this path contract, the gradient decays exponentially with the lag and long dependencies become hard to learn (Bengio et al., 1994; Pascanu et al., 2013). Gated architectures, the long short-term memory (LSTM) (Hochreiter & Schmidhuber, 1997; Gers et al., 2000) and the gated recurrent unit (GRU) (Cho et al., 2014), mitigate this with multiplicative gates whose biases set how long a unit keeps its state, and the initial value of these biases matters: a positive forget-gate bias is standard for LSTMs (Gers et al., 2000; Jozefowicz et al., 2015), and chrono initialisation draws the gate biases so that the units' memory timescales cover the horizon of the task (Tallec & Ollivier, 2018). Tallec & Ollivier (2018) showed that chrono initialisation improves the learning of long dependencies by LSTMs over a forget-gate bias of one, with faster convergence on the adding problem and a clearer advantage on copy tasks.

The same networks are usually regularised with stochastic noise in the recurrence: dropout on the recurrent inputs of the gates, with a new mask at every step or with one mask per sequence (Gal & Ghahramani, 2016), dropout of the cell state with one mask per sequence (Moon et al., 2015), dropout on the candidate update (Semeniuta et al., 2016), or zoneout, which keeps a random subset of units at their previous value (Krueger et al., 2017). These placements differ in how they interact with the gradient path. Zoneout was introduced partly because identity connections should help the gradient propagate, and Krueger et al. (2017) showed, in one figure for one task, that after one epoch the gradient of an LSTM with zoneout reached earlier steps than with dropout of the cell state or without regularisation. What has not been measured is how large these effects are compared with gate initialisation, whether they hold for LSTMs and GRUs alike, and whether the reach of the gradient, measured early in training, tells which runs will eventually learn.

This last question matters in practice because training recurrent networks on long dependencies is slow and its outcome varies between seeds. If early gradient reach predicted success, it could be used to stop unpromising runs or to choose between configurations before training has gone far. Comparable signals are already used for this: early validation performance for fine-tuning runs of pretrained language models (Dodge et al., 2020), extrapolated learning curves and successive halving for hyperparameter search (Domhan et al., 2015; Li et al., 2018), and zero-cost proxies computed from gradients at initialisation for architectures (Abdelfattah et al., 2021). Theory already links propagation timescales at initialisation to trainability (Chen et al., 2018; Gilboa et al., 2019), and the decay of gradient norms has been estimated during training for other purposes (Aicher et al., 2019; Chernodub & Nowicki, 2016). Whether such a measurement adds information beyond what the training curve itself shows is an empirical question.

We answer these questions with a factorial grid of 720 training runs of one-layer LSTM and GRU networks on two long-dependency tasks, crossing gate initialisation with six regulariser placements for the LSTM and four for the GRU, at one rate each, and five seeds, followed by runs with more seeds, a longer budget and mismatched chrono horizons (Table 1). Both tasks supply fresh or exhaustive training data, so the study measures how the regularisers affect optimisation; their protection against overfitting to a finite training set is outside its scope. These networks are trained with a library whose BPTT passes finite-difference checks and agrees with PyTorch to about 10−1610^{-16} in double precision (Kholodniak, 2026); 120 further runs repeat the unregularised conditions with PyTorch's built-in cells. The contributions are:

  1. We find that gate initialisation produced a larger contrast in whether and how fast the networks learned than any regulariser at the rates tested, although the regularisers still changed attainment and learning time in some conditions (Figure 1). For the LSTM on the adding problem this replicates Tallec & Ollivier (2018); it extends their comparison to the GRU, to delayed recall, to the crossing with regularisers and to mismatched horizons, under which chrono initialisation kept its advantage with a horizon about four times too short or too long.

  2. We measure how each regulariser placement changes the slope of the input sensitivity with lag after 100 updates (Table 3), and find that a flattening by zoneout of similar size is already present in evaluation mode before training.

  3. We find that this slope adds little to predicting which conditions learn once the early validation loss is modelled per architecture, initialisation and task (Table 4). Within a condition it is associated with which seeds learn, but a test specified before those runs supported this only when resampling conditions, not seeds (Figure 3).

  4. We release the code, the per-run results and the gradient curves of every run.

Figure 1 summarises the main grid.

References (39)