concept LSTMs in category deep learning

appears as: LSTMs
Deep Learning for Natural Language Processing

This is an excerpt from Manning's book Deep Learning for Natural Language Processing.

Similar to CNNs, recurrent neural networks (RNNs) emphasize or de-emphasize certain aspects of the information they process, in an end-to-end fashion, working in a temporal dimension rather than a spatial dimension. Similarly to CNNs, this selection process boils down to learning weight matrices. Crucially, RNNs can memorize their previous cognitive states and the decisions they made in the past. This provides a facility for implementing a certain bias into a neural net, allowing it to carry out classifications that are in line with what it has done in the recent past. There are two main brands of these networks: simple RNNs, and LSTMs, or Long Short Term Memories. Let’s start with simple RNNs. A simple RNN is a neural network with a limited amount of memory. At every time tick, it deploys the hidden memory state of a previous time tick for producing a current output. At any time, an RNN memory state is determined by three factors: * The memory state at the previous time tick (we assume time passes in a discrete fashion, one tick at a time). * A weight matrix weighting the previous memory state * A weight matrix weighting the current input to the RNN.

What about LSTMs? Would a more careful gating of historical (temporal) information boost performance?

Grokking Deep Learning

This is an excerpt from Manning's book Grokking Deep Learning.

And with that, let’s dive into LSTMs!

LSTMs are the industry standard model to counter vanishing/exploding gradients

The previous section explained how vanishing/exploding gradients result from the way hidden states are updated in a RNN. The problem is the combination of matrix multiplication and nonlinearity being used to form the next hidden state. The solution that LSTMs provide is surprisingly simple.