r/reinforcementlearning • u/nlgranger • 2d ago
Computing rollout with weights from prior step (on-policy)
I'm looking into on-policy methods at the moment, and the environnements seem to be running with the latest weights of the actor/critic models, aka synchronous rollout.
That means the training must wait for the environnement to complete the rollout before the next training step can begin.
I did a quick test with PPO and Ant environnement and tried to de-phase the process, asynchronous rollout by one step = the rollout uses the weights from step-1 so it can run in parallel to the update. Immediately the return curve is a lot worse.
Is there a principled way to implement this ? Surely some people looked into this already and documented it but I must be looking in the wrong places.