All models

robomimic_bcq

Offline RL policy that samples batch-like actions from a VAE and picks the highest valued one; robomimic's BCQ.

Reinforcement learning and control · 66 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (41 KB)

Open in a new tab

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
1.1M
Operations
66
Framework
PyTorch
Recurrent
No
Published
ICML 2019
Cited by
500 (as of 16 October 2026)
Authors
Scott Fujimoto, David Meger, Doina Precup
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8961
Graph hash
f8a6314ed8097672c90eb5cd1c557a5b1745459cdbe8fb0b859b2fed2975d866
Skeleton hash
a82f7ae61b67b55808096f02ec5faebf1be332fc771715c18f6e47d7a91212fe
Architecture hash
8d1c1d935585b896a02862ffa517cfa09b5db9e9dfac8ce06c57490db0e32d9f
Diagram SHA-256
785cbfb44e9c5b011f4629f014c68ee9e4f4ff692c373376ad6d1cb676bb4500
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

BCQ, short for Batch-Constrained deep Q-learning, is a deep reinforcement learning algorithm for learning a control policy from a fixed batch of data. The paper's starting point is a diagnosis: standard off-policy methods such as DQN and DDPG break down when the batch is uncorrelated with the current policy, because of what the authors call extrapolation error. The culprit, extrapolation error, is a phenomenon in which unseen state-action pairs are erroneously estimated to have unrealistic values. The fix is to keep the policy batch-constrained, restricting the action space so the agent behaves close to on-policy with respect to a subset of the given data.

BCQ realises this with four parametrized networks: a generative model, a perturbation model, and two Q-networks. The generative model is a conditional variational auto-encoder trained on the batch, so that sampling from it yields candidate actions that look like those the data already contains. A perturbation model then outputs an adjustment to each sampled action within a bounded range. The policy picks whichever perturbed candidate the Q-network values most highly. The two Q-networks are trained on a shared target that takes a weighted minimum of their estimates, a modification of Clipped Double Q-learning that penalises uncertain future states.

In the MuJoCo batch experiments, BCQ was the only algorithm which succeeded at all tasks, matching or outperforming the behavioral policy in each instance. The captured member is robomimic's implementation, which the robomimic study describes as maintaining a Q-network, a generative action model and an optional perturbation actor network. The traced input follows robomimic's low-dim observation space, in which agents receive proprioception observations consisting of the end effector position, quaternion, and gripper finger positions. The policy outputs a 7-dimensional action whose first 3 coordinates are a desired end effector translation and the next 3 a delta rotation. The robomimic study is candid about the algorithm's limits, finding that while Batch RL algorithms like BCQ are proficient on machine-generated data, they perform poorly on human datasets. It also found that the perturbation actor causes large performance drops on human datasets. The captured configuration nonetheless keeps the actor enabled, matching the setting robomimic found usually better on machine-generated data.

Key idea. BCQ introduced batch-constrained reinforcement learning, pairing a state-conditioned generative model that proposes only previously seen actions with a Q-network that picks the highest valued one, so an agent can learn from a fixed batch without further interaction.

  • BCQ
  • Batch-Constrained deep Q-learning
  • batch-constrained Q-learning
  • robomimic_bcq
  • robomimic BCQ
  • offline reinforcement learning
  • batch reinforcement learning
  • offline RL
  • robot manipulation
  • robosuite Lift
  • continuous control

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{fujimoto2019offpolicydeepreinforcementlearning,
      title={Off-Policy Deep Reinforcement Learning without Exploration}, 
      author={Scott Fujimoto and David Meger and Doina Precup},
      year={2019},
      eprint={1812.02900},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1812.02900}, 
}