# Highway Networks

Rupesh Kumar Srivastava, Klaus Greff, Jürgen Schmidhuber · arXiv · 2015-5-3

- **Problem** Plain feedforward networks become harder to optimize as depth grows, and gradient-based training of very deep stacks has remained an open problem.
- **Method** Each layer adds a learned transform gate and carry gate that mix a nonlinear transform of the input with the input itself. The transform gate bias is set negative so the network starts in carry mode, and training uses SGD with momentum.

![Figure 1: Comparison of optimization of plain networks and highway networks of various depths. All networks were optimized using SGD with momentum. The curves…](https://refivu.com/papers/78251486-9138-48d8-a03c-8447a3433591/figures/figure-35e07e26b2cbddecd7b66d1eec20fd66.png?thumb=512)

**Figure 1** . Comparison of optimization of plain networks and highway networks of various depths. All networks were optimized using SGD with momentum. The curves shown are for the best hyperparameter settings obtained for each conﬁguration using a random search. Plain networks become much harder to optimize with increasing depth, while highway networks with up to 100 layers can still be optimized well.

[Original paper](https://arxiv.org/abs/1505.00387v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Rupesh Kumar Srivastava, Klaus Greff, Jürgen Schmidhuber · Highway Networks · Original paper figure · Extracted the figure area from page 4 of the original PDF.

## Why deeper plain networks are hard to train

Network depth has been central to recent gains in supervised learning, and top-5 ImageNet accuracy rose from about 84% to about 95% through deeper ensembles over a few years. Deeper stacks do not train as easily as adding layers suggests, and the research response has included better initialization, staged training and auxiliary losses attached to intermediate layers.

The paper asks whether a network can keep paths along which a signal skips the nonlinear transform of each layer, so that the stack stays trainable with plain stochastic gradient descent as it gets deeper.

The mechanism borrows a learned gate from Long Short Term Memory recurrent networks, which regulates how much information passes through each step. Gated paths of this kind are what the paper calls information highways, and a network built from them is a highway network.

## A gated carry path in each layer

A plain layer applies one nonlinear transform H with parameters W\_H to its input. A highway layer adds a transform gate T and a carry gate C, both learned functions of the input, and the output combines the transform with the input according to these gates. \\( y = H(x, W\_H)\\cdot T(x, W\_T) + x\\cdot C(x, W\_C) \\) To keep the form simple the carry gate is tied to the transform gate as C = 1 - T, which gives the output \\( y = H(x, W\_H)\\cdot T(x, W\_T) + x\\cdot(1-T(x, W\_T)) \\).

Because the gates weight the transform and the input, the layer can move between behaving like a plain layer and passing its input straight through, and the Jacobian switches between the identity matrix and the derivative of H. That tie requires x, y, H and T to have the same dimensionality, and the sigmoid gate output lies strictly between 0 and 1, so the two extreme cases are approached but never exactly reached.

For multi-unit layers each block i has its own transform H\_i and gate T\_i, and the block output is \\( y\_i = H\_i(x)\\, T\_i(x) + x\_i\\,(1-T\_i(x)) \\).

When the width has to change, the paper uses a plain layer to change dimensionality and then stacks highway layers, rather than resizing the input. Convolutional highway layers use weight sharing and local receptive fields for both the transform and the gate, with zero-padding so that the block state and gate feature maps match the input size.

## Initializing the transform gate bias

Plain deep networks need an initialization that keeps the signal variance steady in the forward and backward passes, and the right choice depends on the exact form of H. For the gate the paper uses \\( T(x) = \\sigma(W\_T^{T} x + b\_T) \\), where W\_T is a weight matrix and b\_T is a bias vector.

Setting b\_T to a negative value, such as -1 or -3, starts the network biased toward carry behavior, and this choice does not depend on what H is. The idea follows the way Gers et al. (1999) biased gates in Long Short-Term Memory networks early in learning so that long-range dependencies can be bridged.

In the authors' experiments a negative bias was enough for very deep networks to learn across several zero-mean initial distributions of W\_H and across different activation functions used by H. The authors present this as useful because effective initialization schemes for many choices of H may be hard to find.

## Depth sweep on MNIST

The optimization test uses MNIST, and the metric is the cross entropy error on the training set, so the comparison isolates optimization from generalization. Each network starts with one regular fully connected layer, followed by 9, 19, 49 or 99 plain or highway layers and a softmax output, giving the depths 10, 20, 50 and 100 shown in the figure.

Plain layers use 71 units and highway layers use 50 units, which keeps parameter counts roughly equal, and a random search of 40 runs per network type tuned the learning rate, momentum, decay rate, the activation for H (ReLU or tanh) and, for highways, the transform gate bias between -1 and -10.

Plain networks perform well at 10 layers but degrade as depth grows, and very deep plain networks stay hard to optimize even with the variance-preserving initialization.

Highway networks also converged faster than plain networks in these runs. A 900-layer highway network on CIFAR-100 was at 80 epochs at the time of writing and had shown no optimization difficulties so far.

## CIFAR-10 accuracy against Fitnets

Romero et al. reported that plain backpropagation worked only for maxout networks of up to 5 layers, with parameters limited to about 250K and multiplications to about 30M.

The highway networks were trained directly by backpropagation on CIFAR-10 with random translations, at parameter counts comparable to the Fitnets. Highway 1, based on Fitnet 1 with 11 layers and about 236K parameters, reached 89.18% against 89.01% for Fitnet 1.

Highway 3, with 19 layers and about 1.4M parameters, reached 90.68%, and Highway 4, with 32 layers and about 1.25M parameters, reached 90.34%, against the Teacher network's 90.18%. Both were trained on 40K of the 50K training examples.

## What trained transform gates do

The analysis inspects the best 50 hidden layer fully connected highway networks trained on MNIST and on CIFAR-100, with four panels: the gate bias, the mean gate output over 10K samples, the gate output for one sample, and the block outputs. The initial transform gate biases were -2 for MNIST and -4 for CIFAR-100.

Contrary to the authors' expectation, most biases decreased further during training. For CIFAR-100 the biases increase with depth, and this gradient is inversely correlated with the mean activity of the transform gates. The authors read the strongly negative biases at low depth as making the gates more selective rather than shutting them down.

For a single example the transform gate outputs are very sparse, and this sparsity is more pronounced for CIFAR-100 than for MNIST, which fits the selectivity reading. Most block outputs stay constant over many layers, forming stripes, and most change happens early, around layer 10 for MNIST and around layer 30 for CIFAR-100. The authors hypothesize that the later change for CIFAR-100 comes from the higher complexity of that dataset, and this explanation was not tested in the paper.

## Limits of the evidence

Highway 3 and Highway 4 were trained only on 40K of the 50K CIFAR-10 training examples, so their accuracies do not use the full training set. The Fitnet and Teacher numbers come from Romero et al., and the highway networks were not compared with them under a shared rerun.

The depth sweep covers MNIST training error up to 100 layers. The 900-layer results are preliminary: the paper reports a 900-layer run in preliminary experiments and a CIFAR-100 run that was only at 80 epochs.

The gate analysis covers two networks, and the selectivity reading of the gate biases is the authors' interpretation.

## Paper info

- **Authors**: Rupesh Kumar Srivastava, Klaus Greff, Jürgen Schmidhuber
- **Venue**: arXiv · Preprint
- **First published**: 2015-5-3
- **Added**: 2026-10-20
- **Updated**: 2015-11-3
- **Version**: v2
- **arXiv**: 1505.00387
- **Category**: cs.LG · cs.NE
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/1505.00387v2) · [PDF ↗](https://arxiv.org/pdf/1505.00387v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

There is plenty of theoretical and empirical evidence that depth of neural networks is a crucial ingredient for their success. However, network training becomes more difficult with increasing depth and training of very deep networks remains an open problem. In this extended abstract, we introduce a new architecture designed to ease gradient-based training of very deep networks. We refer to networks with this architecture as highway networks, since they allow unimpeded information flow across several layers on "information highways". The architecture is characterized by the use of gating units which learn to regulate the flow of information through a network. Highway networks with hundreds of layers can be trained directly using stochastic gradient descent and with a variety of activation functions, opening up the possibility of studying extremely deep and efficient architectures.

## Quote from the paper

Rupesh Kumar Srivastava, Klaus Greff, Jürgen Schmidhuber (2015). Highway Networks. arXiv:1505.00387v2. https://arxiv.org/abs/1505.00387v2

**BibTeX**

```
@misc{srivastava2015highway,
  title = {{Highway Networks}},
  author = {Rupesh Kumar Srivastava and Klaus Greff and Jürgen Schmidhuber},
  year = {2015},
  eprint = {1505.00387},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.00387v2}
}
```

## Other paper commentary

- [Rethinking Attention with Performers](https://refivu.com/en/papers/be31745a-9080-4105-b177-3b88d23e4f59-rethinking-attention-with-performers.md)
- [Decision Transformer: Reinforcement Learning via Sequence Modeling](https://refivu.com/en/papers/386e76e8-fee6-4cba-84e8-0ef90a33b3b6-decision-transformer-reinforcement-learning-via-sequence.md)
- [Efficiently Modeling Long Sequences with Structured State Spaces](https://refivu.com/en/papers/9047ef9d-9e54-48f1-8609-ea4ce704605e-efficiently-modeling-long-sequences-with-structured-state.md)
- [Longformer: The Long-Document Transformer](https://refivu.com/en/papers/095aa21a-9a7f-4317-a80b-f961fdd4e423-longformer-the-long-document-transformer.md)
- [Improving neural networks by preventing co-adaptation of feature detectors](https://refivu.com/en/papers/52fe143b-6258-4d22-888e-8274d7357b11-improving-neural-networks-by-preventing-co-adaptation-of.md)
- [Neural Ordinary Differential Equations](https://refivu.com/en/papers/40a9adb0-8309-48fc-abf9-9e698ab35f74-neural-ordinary-differential-equations.md)
- [Tree of Thoughts: Deliberate Problem Solving with Large Language Models](https://refivu.com/en/papers/708b6d99-e4dc-4582-abc4-e2de5a72d5d3-tree-of-thoughts-deliberate-problem-solving-with-large.md)
- [Self-Instruct: Aligning Language Models with Self-Generated Instructions](https://refivu.com/en/papers/b7e9c5f5-b8d4-4382-9c03-d006766b8f88-self-instruct-aligning-language-models-with-self-generated.md)
- [DeepSeek-V3 Technical Report](https://refivu.com/en/papers/761895a4-08f3-446f-98de-60152a184c97-deepseek-v3-technical-report.md)
- [The Llama 3 Herd of Models](https://refivu.com/en/papers/27985e84-42ca-486e-8e0e-2fa739789ab4-the-llama-3-herd-of-models.md)
- [Linformer: Self-Attention with Linear Complexity](https://refivu.com/en/papers/470ce67a-0f79-4a06-ae89-f26384095187-linformer-self-attention-with-linear-complexity.md)
- [DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning](https://refivu.com/en/papers/2227da56-269c-4116-84dc-2bc76bf3e6c7-deepseek-r1-incentivizing-reasoning-capability-in-llms-via.md)

## Terms in this paper

- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [CIFAR-100](https://refivu.com/en/terms/5afa3b877d18-cifar-100)
- [Random search](https://refivu.com/en/terms/4122ba3151ed-random-search)
- [Stochastic Gradient Descent (SGD)](https://refivu.com/en/terms/5c2447143b09-stochastic-gradient-descent-sgd)
- [highway network](https://refivu.com/en/terms/5d467b0ea7c9-highway-network)
- [Highway Networks](https://refivu.com/en/terms/60ea0957f32f-highway-networks)
- [Long Short Term Memory](https://refivu.com/en/terms/175b1f813da8-long-short-term-memory)
- [plain network](https://refivu.com/en/terms/65584e4b9190-plain-network)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/78251486-9138-48d8-a03c-8447a3433591-highway-networks)
