In a recurrent neural network, which of the following best explains why LSTMs are more effective than simple RNNs for long sequences?
Answer
LSTMs use gating mechanisms to control the flow of information, mitigating vanishing gradients.
Explanation
LSTMs introduce input, forget, and output gates that regulate the cell state, allowing gradients to flow more effectively over long sequences. Simple RNNs suffer from vanishing gradients, making it hard to learn long-term dependencies.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
Which of the following is a common method for reducing the memory footprint of a deep learning model during inference?
View question →
A deep learning model is being trained for a binary classification task. The output layer uses a sigmoid activation and the loss function is binary cross-entropy. If the model outputs a probability of 0.9 for a sample with true label 1, what is the contribution of this sample to the loss?
View question →
Which of the following techniques is commonly used to reduce the memory footprint of a deep learning model during inference without significantly sacrificing accuracy?
View question →
In the context of deep learning, what is 'multi-task learning'?
View question →
In a convolutional neural network, what is the purpose of a 'receptive field'?
View question →
Which of the following is a key benefit of using residual connections in deep networks?
View question →