Glossary · Reinforcement learning
Environment step
Also called step, sample, timesteps, M steps
One tick of the agent–environment loop: one observation, one action, one reward. Training length is counted in these steps.
An environment step is one pass of the loop: the policy sees an observation, picks an action, and the environment advances and returns a reward. Each step produces one training sample.
Training length in RL is usually given in steps rather than hours, because steps don’t depend on the computer. “75.6 M steps” means 75.6 million of these samples, gathered across all the parallel environments.
Steps and simulated time
An environment step isn’t the same as a physics timestep. Each environment step may run several physics steps. If the policy acts at times a second, steps cover seconds of simulated time:
So the simple body learned to take 860 N shoves in about 17 days of simulated experience, compressed into 1.5 hours on 64 CPU cores.
Sample efficiency
How many steps an algorithm needs to learn a task is its sample efficiency. PPO isn’t very sample-efficient, but each step is cheap in simulation, and it parallelises well. That trade is usually worth it when the simulator is fast.
Related terms
Used in
- Training on a rented GPU: four and a half times cheaper
- Blocking: reading a punch you see a tenth of a second late
- Footwork: walking to a spot in a Muay Thai stance
- Faster punches: from trained amateur towards professional
- Five punches: the cross, the hooks and the uppercut
- Learning to balance in a Muay Thai stance