How a GRU carries information through time AI
A gated recurrent unit (GRU) reads a sequence while updating a hidden state. In the activity inspector, each step receives nine sensor values and the preceding 128-value state. The same parameters are reused at every step.
The update gate blends retained state with a candidate state:
Here is a vector of gate values between zero and one, is the candidate, and means elementwise multiplication. The reset gate controls how the preceding state contributes to the candidate. PyTorch’s particular candidate calculation is specified in its GRU documentation.
In this pilot, the state starts at zero for every 128-sample window. The diagram’s boxes are successive uses of one GRU, not separate layers. Moving the time cursor changes which saved state is inspected; it does not retrain the network. The classifier receives only the final state. Gate values were not exported, so the display cannot establish which gate caused a particular response.