Recurrent Network Gradient Flow: Singular Values and Gradient Norm per Time Step (2D)
Row of unrolled time steps with bars for the loss-gradient norm at each step, hidden-unit lamps and a moving backward pulse, plus all eight singular values of the Jacobian product against lag. Same shared model and numerical checks as the 3D version.
Sequence models learn by pushing an error signal backward through every unrolled time step of a recurrent network, and each step multiplies that signal by the same local Jacobian — the recurrent weight times the activation's derivative. This simulator runs a real scalar RNN forward, then animates the backward pass step by step in 3D: a row of bars tracks the forward hidden-state magnitude while a second row tracks the live gradient magnitude, shrinking toward the vanishing regime or blowing up toward the exploding one depending on the recurrent weight and activation function you choose. Live readouts report the current step's gradient, the gradient that finally reaches the earliest time step, and how many steps the signal survives above a 10⁻³ threshold — the same exponential mechanism that motivated gated architectures like LSTM and GRU.
Row of unrolled time steps with bars for the loss-gradient norm at each step, hidden-unit lamps and a moving backward pulse, plus all eight singular values of the Jacobian product against lag. Same shared model and numerical checks as the 3D version.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install