ArticleslgStudy

computer science

Highway network

Highway network is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Highway network rather than just read about it. In short: In machine learning, the Highway Network was a feedforward neural network that uses skip connections modulated by learned gating mechanisms to regulate information flow, inspired by long short-term memory (LSTM) recurrent neural networks. It uses gating mechanisms to facilitate information flow across the many layers ("information highways").

Key takeaways

  • Highway network belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Highway network to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Highway network from memory before moving on to harder problems.

Reference excerpt

In machine learning, the Highway Network was a feedforward neural network that uses skip connections modulated by learned gating mechanisms to regulate information flow, inspired by long short-term memory (LSTM) recurrent neural networks. It uses gating mechanisms to facilitate information flow across the many layers ("information highways"). Highway Networks have found use in text sequence labeling and speech recognition tasks. In 2014, the state of the art was training deep neural networks with 20 to 30 layers. Stacking too many layers led to a steep reduction in training accuracy, known as the "degradation" problem. In 2015, two techniques were developed to train such networks: the Highway Network and the residual neural network, or ResNet. ResNet behaves like Highway Net without gating. Conversely, a Highway Net behaves as a ResNet with gating.

Model The model has two gates in addition to the H(WH,x) gate: the transform gate T(WT,x) and the carry gate C(WC,x). The latter two gates are non-linear transfer functions (specifically sigmoid by convention). The function H can be any desired transfer function. The carry gate is defined as: C(WC,x)=1−T(WT,x) while the transform gate is just a gate with a sigmoid transfer function.

Structure The structure of a hidden layer in the Highway Network follows the equation: y=H(x,WH)⋅T(x,WT)+x⋅C(x,WC)=H(x,WH)⋅T(x,WT)+x⋅(1−T(x,WT))

Related work Sepp Hochreiter analyzed the vanishing gradient problem in 1991 and attributed to it the reason why deep learning did not work well. To overcome this problem, Long Short-Term Memory (LSTM) recurrent neural networks have residual connections with a weight of 1.0 in every LSTM cell (called the constant error carrousel) to compute yt+1=F(xt)+xt. During backpropagation through time, this becomes the residual formula y=F(x)+x for feedforward neural networks. This enables training very deep recurrent neural networks with a very long time span t. A later LSTM version published in 2000 modulates the identity LSTM connections by so-called "forget gates" such that their weights are not fixed to 1.0 but can be learned. In experiments, the forget gates were initialized with positive bias weights, thus being opened, addressing the vanishing gradient problem. As long as the forget gates of the 2000 LSTM are open, it behaves like the 1997 LSTM. The Highway Network of May 2015 applies these principles to feedforward neural networks. It is like a 2000 LSTM with forget gates unfolded in time, while the later Residual Nets have no equivalent of forget gates and are like the unfolded original 1997 LSTM. If the skip connections in Highway Networks are "without gates," or if their gates are kept open (activation 1.0), they become Residual Networks. The residual connection is a special case of the "short-cut connection" or "skip connection" by Rosenblatt (1961) and Lang & Witbrock (1988) which has the form x↦F(x)+Ax. Here the randomly initialized weight matrix A does not have to be the identity mapping. Every residual connection is a skip connection, but almost all skip connections are not residual connections. The original Highway Network paper not only introduced the basic principle for very deep feedforward networks, but also included experimental results with 20, 50, and 100 layers networks, and mentioned ongoing experiments with up to 900 layers. Networks with 50 or 100 layers had lower training error than their plain network counterparts, but no lower training error than their 20 layers counterpart (on the MNIST dataset, Figure 1 in ). No improvement on test accuracy was reported with networks deeper than 19 layers (on the CIFAR-10 dataset; Table 1 in ). The ResNet paper, however, provided strong experimental evidence of the benefits of going deeper than 20 layers. It argued that the identity mapping without modulation is crucial and mentioned that modulation in the skip connection can still lead to vanishing signals in forward and backward propagation (Section 3 in ). This is also why the forget gates of the 2000 LSTM were initially opened through positive bias weights: as long as the gates are open, it behaves like the 1997 LSTM. Similarly, a Highway Net whose gates are opened through strongly positive bias weights behaves like a ResNet. The skip connections used in modern neural networks (e.g., Transformers) are dominantly identity mappings.

References

Worked examples

Example 1 — a first encounter with Highway network

Start with the simplest possible case. Write down what Highway network claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Highway network before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Highway network ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Highway network

In research
Highway network appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Highway network in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Highway network is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2015 in artificial intelligence, Machine learning, Neural network architectures, so understanding it makes those chapters shorter.
In everyday life
Look for Highway network outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Highway network” →

How to study Highway network in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Highway network means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Highway network out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Highway network in simple terms?

In machine learning, the Highway Network was a feedforward neural network that uses skip connections modulated by learned gating mechanisms to regulate information flow, inspired by long short-term memory (LSTM) recurrent neural networks. It uses gating mechanisms to facilitate information flow acr…

Why does Highway network matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Highway network?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Highway network.

Tags

  • 2015 in artificial intelligence
  • Machine learning
  • Neural network architectures

Keep exploring