0
$\begingroup$

In convolution neural networks, we have a concept that inner layers learn fine features like lines and edges, while outer layers learn more complex shapes.

Do we have any such understanding for layers in RNNs (like LSTMs), something like inner layers understand grammar while outer layers understand more complete meanings of sentences assuming that we are using the LSTM for some natural language task like text summarization?

$\endgroup$
1
  • $\begingroup$ assuming we are using the LSTM for some natural language task like text summarization $\endgroup$
    – sumit
    Commented Jun 17, 2019 at 4:11

2 Answers 2

0
$\begingroup$

Its not like it just understands grammar.

In LSTMs the network tries to preserve the hidden states over time. By doing this they try to learn long-term dependencies in the language and relationships between words at variable distances.

LSTM does this by using its three famous gates.

  1. Forget gate - Tries to remember only the important features and relationships overtime.
  2. Input gate - Adds new information to old cell state at each time time step.
  3. Output gate - Produces new output by taking into account old cell state and output at each time step.
$\endgroup$
0
$\begingroup$

RNN/LSTM is designed for series (data has time step) like data(E. g. a sentence ) which has dependency between different parts of the data. In English, some words in a sentence have a dependency on previous words. To carry the dependency information and ignore the non-important information until the end of the sentence RNN/LSTM was introduced.

If you use other variants of deep neural network (MLP) in series like data that network the network forget dependency information.

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.