liveBook · Manning

Reset gate

As explained in Natural Language Processing in Action, Second Edition

A reset gate is a gated recurrent mechanism that controls which portions of the previous hidden state are discarded as irrelevant to the current output.

A reset gate is a gated recurrent mechanism that decides which portions of the previous hidden state are no longer relevant to the current output. It belongs to a gated recurrent unit (GRU), where gates are placed inside the recurrent unit rather than added as an ordinary layer. section 8.4.2

Within a GRU, the gates divide the recurrent decision into complementary roles:

  • The reset gate blocks selected parts of the hidden layer when they are irrelevant to the current output. section 8.4.2
  • The update gate determines which parts of the hidden layer should matter at the current time. section 8.4.2

Gate computation

A reset vector can be computed with a sigmoid: r = sigmoid(W_i2r·x + b_i2r + W_h2r·h + b_h2r). The resulting r scales the recurrent hidden-state contribution inside the tanh computation for n, allowing selected information to be reduced before the new activation is formed.

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Explains the gate’s role and gives its sigmoid and hidden-state multiplication formulas, without detailing training dynamics.
Examples
Uses sigmoid and tanh matrix formulas showing how the reset vector modulates the recurrent hidden-state contribution.
What it assumes
Uses prior familiarity with recurrent layers, hidden states, matrix multiplication, nonlinear activation functions, and output gates.
What you can do after
Build it from scratch by computing a sigmoid reset vector and applying it to the hidden-state term in a GRU activation.
How it connects
Connects reset gates to gated recurrent units, hidden states, update gates, output gates, activation functions, and recurrent neural networks.

Also explained in

Compare how 2 books explain reset gate →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.