Professional Documents
Culture Documents
Recurrent vs. Recursive Neural Networks in NLP-4
Recurrent vs. Recursive Neural Networks in NLP-4
The advantages of RNNs are mainly threefold. The first one is that
they can process inputs of any length. This is in contrast to other
networks such as CNNs that can process only fixed-length inputs. As
a result, we can use RNNs with sequences that are short as well as
very long without changing our network’s architecture.
The second benefit is that the hidden state acts like some type of
memory. As the network processes the elements of a sequence one
by one, the hidden state stores and combines the information on the
whole sequence.
Finally, the third advantage of RNNs is that they share the weights
across time steps. This allows the network to stay the same size (with
the same number of parameters) for sequences of varying lengths.