FlashKeepers

Machine Learning · College · College and University

Deep Learning III: RNNs and Sequence Models

RNNs, vanishing gradients, LSTM, GRU, seq2seq, attention precursors and embeddings.

About this set

35 basic cards for College Machine Learning. Set 3 of 4 in Deep Learning. It opens with "What is a recurrent neural network (RNN)?" and "What is the hidden state in an RNN?". Study it alongside the other College sets below.

35 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a recurrent neural network (RNN)?
Show answerA neural network with connections from hidden units back to themselves, allowing it to process sequential data by maintaining hidden state across time steps.
What is the hidden state in an RNN?
Show answerThe representation of information from previous time steps, passed forward to the next time step to capture sequential context.
What is parameter sharing in RNNs?
Show answerThe same weight matrices are used at every time step, allowing the network to generalize across sequence positions.
What types of data do RNNs process well?
Show answerSequential data such as text, time series, speech, and video frames where order and temporal dependencies matter.
What is an unrolled RNN?
Show answerThe representation of an RNN shown explicitly across multiple time steps, making the recurrent connections and parameter sharing visible.
What is a bidirectional RNN (BiRNN)?
Show answerAn RNN that processes sequences in both forward and backward directions, capturing context from both preceding and following positions.
What is the vanishing gradient problem?
Show answerGradients shrink exponentially during backpropagation through many time steps, making it hard to learn long-term dependencies.
Why does the vanishing gradient problem occur in RNNs?
Show answerBackpropagation through time involves repeatedly multiplying gradients by weight matrices with values less than one, causing exponential decay.
What is the exploding gradient problem?
Show answerGradients grow exponentially during backpropagation through time, causing numerical instability and divergence during training.
What is gradient clipping?
Show answerA technique that scales or caps gradients to prevent them from exceeding a maximum magnitude, addressing exploding gradients.
What signals exploding gradients during training?
Show answerLoss becomes NaN or infinite, or weights become extremely large after a single update.
What is LSTM?
Show answerLong Short-Term Memory, an RNN variant with gated mechanisms that enables learning of long-term dependencies while mitigating vanishing gradients.
What is the cell state in an LSTM?
Show answerA separate memory pathway that runs through the LSTM, carrying long-term information with minimal transformation across time steps.
What does the LSTM forget gate do?
Show answerIt learns to selectively discard information from the cell state, deciding which past information is no longer relevant.
What does the LSTM input gate do?
Show answerIt controls which new information from the candidate value gets added to the cell state at each time step.

20 more cards in the app

Study this set free