sb3_ppo_mlp_policy
Stable Baselines3's MLP actor-critic policy, the network PPO trains to pick actions and estimate value.
Reinforcement learning and control · 35 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 9.2K
- Operations
- 35
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2017
- Cited by
- 40,252 (as of 23 November 2026)
- Authors
- John Schulman, Filip Wolski, Prafulla Dhariwal and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m9035
- Graph hash
- 2c3857999e5060ace093b3b977c39806e7e5f99584db89f5c5b7f88cdb028f08
- Skeleton hash
- 81dbc2cc013e748c7a1db95b6a39e9f41a41a1e1b7532ee9c28e897ad6a51921
- Architecture hash
- 82480839dec6454f0ce55a290b1ef5e1270c5a91d408b14e4c39575b1472c49a
- Diagram SHA-256
- c836d06825fb974b6918c3c4dbc0e261287aef25fd4815535cdf6f8e2fb1dcb3
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This is the policy network that Stable Baselines3 trains with Proximal Policy Optimization (PPO) when a user writes PPO("MlpPolicy", env): a small multilayer perceptron mapping an observation to an action and a value estimate. Stable Baselines3 is a set of reliable implementations of reinforcement learning algorithms in PyTorch.
PPO itself is a family of policy gradient methods that alternate between sampling data from the environment and optimizing a surrogate objective by stochastic gradient ascent. Where standard policy gradient methods perform one gradient update per data sample, PPO's objective enables multiple epochs of minibatch updates. That objective uses clipped probability ratios, which form a pessimistic estimate, a lower bound, of the policy's performance. The final objective takes the minimum of the clipped and unclipped terms, so it is a lower bound on the unclipped objective.
For its continuous control experiments the paper used a fully connected MLP with two hidden layers of 64 units and tanh nonlinearities, outputting the mean of a Gaussian distribution. On Atari the paper reports PPO performing significantly better than A2C in sample complexity and similarly to ACER while being much simpler.
Key idea. PPO optimizes a clipped surrogate objective that allows multiple epochs of minibatch updates per batch of samples, keeping TRPO's reliability with first-order optimization only.
- ppo
- proximal policy optimization
- mlppolicy
- stable baselines3
- sb3
- actor critic
- policy gradient
- reinforcement learning
- clipped objective
- cartpole
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{schulman2017proximalpolicyoptimizationalgorithms,
title={Proximal Policy Optimization Algorithms},
author={John Schulman and Filip Wolski and Prafulla Dhariwal and Alec Radford and Oleg Klimov},
year={2017},
eprint={1707.06347},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1707.06347},
}