Long Short Term Memory Network

A special form of Recurrent Neural Network that works well with long-range dependencies in the sequences. It also reduces the risk of vanishing or exploding Gradients.

Intuition It adds longer lasting memory to a Recurrent Neural Network.

st=switch1(ut)st1+ switch 2(ut)tanh(Ast1+But)s_t=\operatorname{switch}_1\left(u_t\right) \cdot s_{t-1}+\text { switch }_2\left(u_t\right) \cdot \tanh \left(A s_{t-1}+B u_t\right)

A more efficient way by an Exponential Smoothing embedding.

st=(1D)st1+Dtanh(Ast1+But)=st1+D(tanh(Ast1+But)st1)s_t=(1-D) s_{t-1}+D \tanh \left(A s_{t-1}+B u_t\right)=s_{t-1}+D\left(\tanh \left(A s_{t-1}+B u_t\right)-s_{t-1}\right)

Bildschirm­foto 2023-04-11 um 23.32.46.png

The matrix DD can be learned by the model. It can thus decide on its own how much long term memory it needs.

Feature Selection

Feature Selection using Sensitivity Analysis

Resources

http://colah.github.io/posts/2015-08-Understanding-LSTMs/