其他参考:
LSTM Networks应用于股票市场探究 *****
LSTM模型在问答系统中的应用 ***
最全 LSTM 模型在量化交易中的应用汇总(代码+论文) ***
分享一下你所了解到的LSTM/RNN的应用Case? *****(含有各种具体应用场景)
In a traditional recurrent neural network, during the gradient back-propagation phase, the gradient signal can end up being multiplied a large number of times (as many as the number of timesteps) by the weight matrix associated with the connections between the neurons of the recurrent hidden layer. This means that, the magnitude of weights in the transition matrix can have a strong impact on the learning process.
If the weights in this matrix are small (or, more formally, if the leading eigenvalue of the weight matrix is smaller than 1.0), it can lead to a situation called vanishing gradients where the gradient signal gets so small that learning either becomes very slow or stops working altogether. It can also make more difficult the task of learning long-term dependencies in the data. Conversely, if the weights in this matrix are large (or, again, more formally, if the leading eigenvalue of the weight matrix is larger than 1.0), it can lead to a situation where the gradient signal is so large that it can cause learning to diverge. This is often referred to as exploding gradients.
These issues are the main motivation behind the LSTM model which introduces a new structure called a memory cell (see Figure 1 below). A memory cell is composed of four main elements: an input gate, a neuron with a self-recurrent connection (a connection to itself), a forget gate and an output gate. The self-recurrent connection has a weight of 1.0 and ensures that, barring any outside interference, the state of a memory cell can remain constant from one timestep to another. The gates serve to modulate the interactions between the memory cell itself and its environment. The input gate can allow incoming signal to alter the state of the memory cell or block it. On the other hand, the output gate can allow the state of the memory cell to have an effect on other neurons or prevent it. Finally, the forget gate can modulate the memory cell’s self-recurrent connection, allowing the cell to remember or forget its previous state, as needed.
Figure 1: Illustration of an LSTM memory cell.
The equations below describe how a layer of memory cells is updated at every timestep
. In these equations:
is the input to the memory cell layer at time 
,
,
,
,
,
,
,
and
are weight matrices
,
,
and
are bias vectors
First, we compute the values for
, the input gate, and
the candidate value for the states of the memory cells at time
:
(1)
(2)
Second, we compute the value for
, the activation of the memory cells’ forget gates at time
:
(3)
Given the value of the input gate activation
, the forget gate activation
and the candidate state value
, we can compute
the memory cells’ new state at time
:
(4)
With the new state of the memory cells, we can compute the value of their output gates and, subsequently, their outputs:
(5)
(6) 

1万+

被折叠的 条评论
为什么被折叠?



