Learn Before
Concept

Gated Recurrent Unit (GRU) Equations

The mathematical formulation of a Gated Recurrent Unit (GRU) at time step t involves several key equations. The reset (or relevance) gate is Gamma_r=sigma(W_r[h^{}, x^{}]+b_r), where \sigma denotes the sigmoid activation function, W is a parameter matrix, b is a bias term, and [h^{}, x^{}] represents the concatenation of the previous hidden state h^{} and the current input x^{}. The update gate is computed as Gamma_u=sigma(W_u[h^{}, x^{}]+b_u). The intermediate hidden state candidate is h^{'}=tanh(W_h[Gamma_rh^{}, x^{}]+b_h). The current hidden state is then updated as h^{}=(1-\Gamma_u)h^{}+\Gamma_uh^{'}, and the current output is \hat y^{}=g(W_yh^{}+b_y), where g is an activation function.

Image 0

0

1

Updated 2026-06-18

Tags

Data Science

D2L

Dive into Deep Learning @ D2L