---
title: Recurrent Highway Networks
url: https://www.emergentmind.com/topics/recurrent-highway-networks-rhns
type: topic
---

# Recurrent Highway Networks

Recurrent Highway Networks (RHNs) extend classical recurrent neural networks by incorporating depth within each time step through highway gating, enabling the construction of deep transition functions and addressing optimization difficulties intrinsic to deep RNNs. RHNs employ multiple highway layers in each recurrent step, providing dynamically gated paths for information flow and facilitating stable training of models with large per-step depth. The architecture is theoretically motivated by gradient flow considerations derived from Gersgorin’s Circle Theorem and has demonstrated strong empirical performance on sequence modeling tasks, including language modeling and neural machine translation.

## 1. Architectural Foundations and Mathematical Formulation

RHNs replace the single non-linear state update of a vanilla RNN or LSTM cell with a stack of highway layers per time-step, achieving both “temporal” and “spatial” depth. Let $x[t] \in \mathbb{R}^m$ be the input at time $t$, and $s_l[t] \in \mathbb{R}^n$ the state at the $l$-th highway sub-layer, with $L$ layers per step and $s_0[t] \equiv s_L[t-1]$. For $l=1, \ldots, L$, the update equations are:

- Transform: $h_l[t] = \tanh\Big(W_{H_l}\, x[t]\,I_{\{l=1\}} + R_{H_l} s_{l-1}[t] + b_{H_l}\Big)$
- Transform gate: $t_l[t] = \sigma\Big(W_{T_l}\, x[t]\,I_{\{l=1\}} + R_{T_l} s_{l-1}[t] + b_{T_l}\Big)$
- Carry gate: $c_l[t] = \sigma\Big(W_{C_l}\, x[t]\,I_{\{l=1\}} + R_{C_l} s_{l-1}[t] + b_{C_l}\Big)$

The output at layer $l$ is: $s_l[t] = h_l[t] \odot t_l[t] + s_{l-1}[t] \odot c_l[t]$, where $\odot$ denotes element-wise multiplication. A widely used constraint is $c_l[t] = 1 - t_l[t]$ to enforce convex gating between transformation and carry paths, regulating signal and gradient propagation [1607.03474].

## 2. Theoretical Motivation: Gradient Flow and Gersgorin’s Circle Theorem

RHNs are motivated by the difficulty of training deep recurrent transitions. Classical RNNs are prone to vanishing or exploding gradients, especially as the transition function becomes deeper. The temporal Jacobian $J = \partial s^t / \partial s^{t-1}$, analyzed via Gersgorin’s Circle Theorem, reveals that unconstrained deep networks accumulate unstable eigenvalues. Multiplicative gating, as realized in highway layers, adaptively centers the Jacobian’s eigenvalues near unity, maintaining stable gradients over long time horizons and deep transitions. The constraint $c = 1 - t$ places all eigenvalues on the unit circle, theoretically eliminating vanishing and exploding gradients through time when the gates respond appropriately [1607.03474].

## 3. Practical Extensions and Variants

Several variants of the RHN have been introduced to overcome architectural bottlenecks or enhance training and flexibility.

### 3.1 Highway State Gating (HSG)
HSG introduces an additional recurrent gate outside the RHN cell, parameterized as $g[t] = \sigma(W_F s_L[t] + W_R \hat{s}[t-1] + b_G)$, which mixes the current RHN output $s_L[t]$ and the previous HSG state $\hat{s}[t-1]$ by

$$\hat{s}[t] = (1 - g[t]) \odot s_L[t] + g[t] \odot \hat{s}[t-1]$$

This mechanism provides a per-unit direct shortcut in time, mitigating the depth-induced bottleneck in gradient and information propagation, and enabling stable training for $L$ up to 40. Empirically, performance, as measured by perplexity on the Penn Treebank, continues to improve with depth for RHN+HSG, in contrast to standard RHNs where further depth degrades or fails to improve results [1805.09238].

### 3.2 Batch-normalized RHN (BN-RHN)
BN-RHN applies batch normalization to the input of each highway sub-layer prior to the affine transformation, decoupling weight and input statistics and improving convergence. Unlike the default RHN, BN-RHN no longer enforces $c=1-t$ and relies on normalization for gradient control. Empirical results on the MSCOCO image captioning benchmark demonstrate faster convergence, superior BLEU-4, METEOR, and CIDEr scores, and greater robustness to initialization and learning rate. BN-RHN achieves this without requiring aggressive gradient clipping or gate-coupling constraints [1809.10271].

### 3.3 Early Improving Recurrent Elastic Highway Network (EI-REHN)
EI-REHN adaptively determines recurrence depth per time step via an elastic, rectified exponentially decreasing gate, $g_t^r$, and augments RHN with a hypernetwork that dynamically generates layer-dependent weights. The halting mechanism enables the network to “shut off” computation per input, lowering average compute cost and improving expressivity. Empirical studies show improved regression error, classification accuracy, and language model perplexity over RHN baselines [1708.04116].

## 4. Training Methodology and Empirical Performance

RHNs require specific regularization and optimization strategies to realize their theoretical and practical benefits:

- **Initialization and Regularization**: Biases for gates are often initialized negatively, e.g., $b_T, b_C, b_G = -2.5$, to favor closed gates at training start, supporting gradient stability [1805.09238].
- **Optimization**: SGD with exponential learning-rate decay is employed, with variational dropout and $L^2$ weight decay for regularization.
- **Empirical Results**: On the Penn Treebank dataset, transition depth $L$ increased from 10 to 40. Vanilla RHN performance plateaued and degraded at higher $L$, while RHN+HSG perplexity steadily improved, e.g., test PPL reduced from 65.4 ($L=10$, RHN) to 61.7 ($L=40$, RHN+HSG). On large character-level datasets, RHNs achieve state-of-the-art bits-per-character (BPC), e.g., 1.27 on text8/enwik8 [1607.03474, 1805.09238].

| Depth | RHN (valid/test PPL) | RHN+HSG (valid/test PPL) |
|-------|----------------------|--------------------------|
| 10    | 67.9 / 65.4          | 67.5 / 65.0              |
| 20    | 66.4 / 63.2          | 65.6 / 62.9              |
| 30    | 66.4 / 63.4          | 64.8 / 62.0              |
| 40    | 66.7 / 63.6          | 64.7 / 61.7              |

## 5. Applications in Sequence Modeling

RHNs have been leveraged in both language modeling and sequence-to-sequence learning:

- **Language Modeling**: RHNs of transition depth $L=10$ yield substantial reductions in word-level perplexity on PTB, outperforming traditional LSTM baselines without an increase in parameter count. Deeper RHNs (enabled by HSG) further improve performance so long as optimization remains stable [1607.03474, 1805.09238].
- **Machine Translation**: RHNs are deployed as both encoder and decoder in neural machine translation with attention mechanisms. On the IWSLT English–Vietnamese task, RHNs achieve competitive or better BLEU compared to LSTM-based models with greater parameter efficiency and more robust training at depth. A reconstructor variant further enhances adequacy [1905.01996].
- **Other Tasks**: EI-REHN demonstrates improvements on synthetic regression, human activity recognition, and language modeling benchmarks due to adaptive recurrence depth and dynamic weight updates [1708.04116].

## 6. Architectural Limitations and Open Directions

RHNs, while resolving key obstacles in deep transition recurrent modeling, present several limitations:

- For vanilla RHN, increasing transition depth beyond a threshold (≈20) yields a performance bottleneck due to compounded nonlinear transformations in the absence of explicit temporal shortcuts, motivating variants like HSG [1805.09238].
- Computational cost per time step increases linearly with transition depth. Adaptive depth (as in EI-REHN) can mitigate this, but may pose implementation complexity.
- While RHN gates enable robust training for deeper transition functions than standard LSTM or GRU, the returns may diminish for depths $D>5$ in sequence-to-sequence tasks, and tuning of gate/bias hyperparameters may be needed [1905.01996].

A plausible implication is that the gating and adaptivity principles of RHNs will generalize to other sequence domains and to new architectures that seek to combine depth, flexibility, and stability in recurrent computation.

## 7. Summary and Perspectives

Recurrent Highway Networks operationalize deep transition functions via stacked highway layers within the recurrent update, enabling enhanced nonlinear modeling capacity when compared to standard RNNs and LSTMs. Key innovations—such as Gersgorin-theorem motivated gating, state-gated time shortcuts (HSG), normalization (BN-RHN), and elastic depth selection (EI-REHN)—all contribute to overcoming the optimization and expressivity bottlenecks of deep recurrent models. Empirical results across language modeling, machine translation, and classification substantiate the practical advantages of RHNs and their extensions. The mechanisms of adaptive gating, depth allocation, and parameter-efficient deep computation in RHNs are likely to inform further advances in the field of sequential and temporal learning [1607.03474, 1805.09238, 1809.10271, 1905.01996, 1708.04116].

Source: https://www.emergentmind.com/topics/recurrent-highway-networks-rhns