I'm slightly confused about the experience replay process. I understand why we use batch processing in reinforcement learning, and from my understanding, a batch of states is input into the neural network model.
Suppose there are 2 valid moves in the action space (UP or DOWN)
Suppose the batch size is 5, and the 5 states are this:
$$[s_1, s_2, s_3, s_4, s_5]$$
We put this batch into the neural network model and output Q values. Then we put $[s_1', s_2', s_3', s_4', s_5']$ into a target network.
What I'm confused about is this:
Each state in $[s_1, s_2, s_3, s_4, s_5]$ is different.
Are we computing Q values for UP and DOWN for ALL 5 states after they go through the neural network?
For example, $$[Q_{s_1}(\text{UP}), Q_{s_1}(\text{DOWN})], \\ [Q_{s_2} (\text{UP}), Q_{s_2}(\text{DOWN})], \\ [Q_{s_3}(\text{UP}), Q_{s_3}(\text{DOWN})], \\ [Q_{s_4}(\text{UP}), Q_{s_4}(\text{DOWN})], \\ [Q_{s_5}(\text{UP}), Q_{s_5}(\text{DOWN})]$$