GRU Architecture › The Update Gate: Balancing Old and New
Language AI HandbookAll chapters GRU Architecture › The Update Gate: Balancing Old and NewOne section · Sections in this chapter4 / 15 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The update gate is the GRU's most distinctive feature. It performs double duty, simultaneously deciding how much of the old hidden state to retain and how much of the new candidate to incorporate. This elegant mechanism replaces the separate forget and input gates of the LSTM.

The update gate computation mirrors the reset gate's structure, using its own learned weights:
where:
- : the update gate output, a vector of dimension with values in
- : the update gate's weight matrix of shape
- : concatenation of previous hidden state and current input
- : the update gate's bias vector of dimension
- : the sigmoid activation function
The key insight is how is used in the final state update. Rather than simply replacing the old state with the new candidate, the GRU computes a weighted average:
where:
- : the new hidden state at timestep
- : the previous hidden state from timestep
- : the candidate hidden state (computed using the reset gate)
- : the update gate output, controlling the interpolation
- : element-wise (Hadamard) multiplication
- : the complement of the update gate, representing "how much to keep"
This formula creates a smooth interpolation between the old state and the new candidate. Consider what happens at the extremes:
- When : the formula becomes . The hidden state is copied directly from the previous timestep with no modification, creating a perfect information highway.
- When : the formula becomes . The hidden state is completely replaced by the new candidate.
- When : the formula becomes . The new state is 70% old information and 30% new.
This weighted average is computed element-wise, so different dimensions of the hidden state can have different update rates. Some dimensions might preserve information across many timesteps while others update frequently.

In LSTMs, the forget gate and input gate operate independently. You could theoretically forget everything while adding nothing, or add new information without forgetting anything. The GRU's update gate enforces a constraint: the amount you forget and the amount you add must sum to 1. This constraint reduces flexibility but also reduces the parameter count and can act as a regularizer.