Deep Learning 27 Flashcards Advanced 100% Free

Deep Learning::Recurrent Neural Networks 2

Created by Chat Robotics Community  ·  Updated 2025-07-18

Curriculum Overview

Topics & Key Concepts

Deep Learning Recurrent Neural Networks Rnn Lstm Gru

Sample Flashcard Questions & Answers

Showing 8 of 27 cards
Question #1 Active Recall

What are recurrent neural networks (RNNs)?

Answer & Explanation:
RNNs are a family of neural networks specifically designed for processing sequential data.
Question #2 Active Recall

What is the main advantage of recurrent neural networks over traditional feedforward networks?

Answer & Explanation:
RNNs can process sequences of variable length and share parameters across multiple timesteps, allowing for better generalization.
Question #3 Active Recall

How do RNNs share parameters?

Answer & Explanation:
RNNs share the same weights across different time steps, which helps in generalizing across different sequence lengths.
Question #4 Active Recall

In what scenarios can RNNs be applied?

Answer & Explanation:
RNNs can be applied in scenarios like language modeling, speech recognition, and sequential data processing.
Question #5 Active Recall

What is the structure of an RNN’s computational graph?

Answer & Explanation:
The computational graph of RNN is typically unfolded over time to visualize the shared parameters and temporal dependencies.
Question #6 Active Recall

What is the function of hidden states in RNNs?

Answer & Explanation:
The hidden states in RNNs function as a summary of past inputs, allowing the network to remember information.
Question #7 Active Recall

What are the key components of the LSTM architecture? Explain each in detail.

Answer & Explanation:
LSTM architecture includes input gate, forget gate, and output gate that control the flow of information.
## Key Components of the LSTM Architecture

Long Short-Term Memory (LSTM) networks are a type of recurrent neural network (RNN) designed to better capture long-term dependencies in sequential data. The architecture of LSTMs addresses the limitations of traditional RNNs by introducing several key components. Here is a detailed explanation of these components:

### 1. Cell State
The cell state is the core component of the LSTM that carries information across the sequence. It acts as a conveyor belt, allowing information to flow unchanged throughout the time steps. This is essential for remembering long-term information.

**Equation**:
- The cell state is updated according to the following function:
Ct=ft⊙Ct−1+it⊙C~t
Where:
- Ct = Cell state at time step t
- Ct−1 = Cell state from the previous time step
- ft = Forget gate’s output at time t
- it = Input gate’s output at time t
- C~t = Candidate value at time step t
- ⊙ = Element-wise multiplication

### 2. Forget Gate
The forget gate determines which information from the cell state should be discarded. It decides what to forget based on the previous hidden state and the current input.

**Equation**:
- The operation for the forget gate is defined as:
ft=σ(Wf⋅[ht−1,xt]+bf)
Where:
- ft = Forget gate’s activation at time t
- Wf = Weight matrix for the forget gate
- ht−1 = Previous hidden state
- xt = Current input
- bf = Bias for the forget gate
- σ = Sigmoid activation function

### 3. Input Gate
The input gate controls how much information from the current input and the previous hidden state should be added to the cell state. It decides which candidate values to update in the cell state.

**Equation**:
- The input gate is computed as:
it=σ(Wi⋅[ht−1,xt]+bi)
Additionally, the candidate cell state is computed as:
C~t=tanh⁡(WC⋅[ht−1,xt]+bC)
Where:
- it = Input gate’s activation at time t
- Wi = Weight matrix for the input gate
- bi = Bias for the input gate
- C~t = Candidate cell state, where tanh is the hyperbolic tangent activation function
- WC = Weight matrix for the candidate values
- bC = Bias for the candidate values

### 4. Output Gate
The output gate determines what the next hidden state should be. This hidden state contains information about previous inputs and is passed to the next time step.

**Equation**:
- The activation of the output gate is computed as:
ot=σ(Wo⋅[ht−1,xt]+bo)
The next hidden state is then given by:
ht=ot⊙tanh⁡(Ct)
Where:
- ot = Output gate’s activation at time t
- Wo = Weight matrix for the output gate
- bo = Bias for the output gate
- ht = Hidden state at time step t

### Summary of Equations

- **Cell State Update**:
Ct=ft⊙Ct−1+it⊙C~t

- **Forget Gate**:
ft=σ(Wf⋅[ht−1,xt]+bf)

- **Input Gate**:
it=σ(Wi⋅[ht−1,xt]+bi)
C~t=tanh⁡(WC⋅[ht−1,xt]+bC)

- **Output Gate**:
ot=σ(Wo⋅[ht−1,xt]+bo)
ht=ot⊙tanh⁡(Ct)

### Conclusion
In summary, the LSTM architecture consists of the cell state, forget gate, input gate, and output gate. These components work together to effectively manage information flow, allowing LSTMs to learn long-term dependencies while overcoming the limitations of traditional RNNs. This makes LSTMs particularly well-suited for tasks involving sequential data, such as time series prediction, natural language processing, and audio processing.
Question #8 Active Recall

What is the role of the forget gate in LSTMs?

Answer & Explanation:
The forget gate determines what information to discard from the cell state.

Want to study all 27 flashcards with spaced repetition?

Practice with Anki-style scheduling, Hands-Free audio commute mode, and AI Tutor explanations.

Start Studying Full Deck Now

How You Can Study This Deck on Chat Robotics

Anki Spaced Repetition (SRS)

Algorithms schedule review intervals automatically so you retain 90%+ in minimum study time.

Hands-Free Audio Commute Mode

High-fidelity Neural Text-To-Speech reads questions and answers aloud with customizable delay timers.

Built-in AI Tutor Assistant

Stuck on a tricky concept? Click "Ask AI" on any card to receive instant deep-dive step-by-step explanations.

Subdeck & Tag Organization

Organize and filter by topic tags or drill entire subdeck hierarchies sequentially in Subdeck Scheduler.