GRU Architecture › The Reset Gate: Controlling Past Influence
Language AI HandbookAll chapters GRU Architecture › The Reset Gate: Controlling Past InfluenceOne section · Sections in this chapter3 / 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 reset gate determines how much of the previous hidden state should influence the computation of the new candidate hidden state. Think of it as asking: "How relevant is what I was thinking about to what I'm seeing now?"
When the reset gate outputs values close to 0, the GRU essentially ignores the previous hidden state and computes a new candidate based primarily on the current input. When it outputs values close to 1, the previous hidden state fully participates in computing the candidate. This mechanism allows the GRU to learn when to start fresh versus when to build on past context.


The reset gate computation follows the familiar gating pattern. It takes the previous hidden state and current input, concatenates them, applies a linear transformation, and passes the result through a sigmoid activation:
where:
- : the reset gate output, a vector of dimension with values in
- : the reset gate's weight matrix of shape , where is the input dimension and is the hidden dimension
- : concatenation of previous hidden state and current input, producing a vector of dimension
- : the reset gate's bias vector of dimension
- : the sigmoid activation function, which squashes any real value to the range
The sigmoid activation is necessary here: it ensures every element of lies between 0 and 1, making it suitable for element-wise multiplication as a "soft switch." Values near 0 effectively block information, while values near 1 allow information to pass through unchanged.


The reset gate examines both what the model was thinking about () and what it's currently seeing () to decide how to weight past information. In language modeling, for instance, the reset gate might learn to output values near 0 when encountering a period or paragraph break, signaling that the previous context is no longer relevant and the model should begin fresh.