All models

robomimic_bc_rnn

robomimic's recurrent behavior cloning policy: a 2-layer LSTM over observation sequences with a GMM action head.

Reinforcement learning and control · 23 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 (31 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
2M
Operations
23
Framework
PyTorch
Recurrent
No
Published
CoRL 2021
Cited by
66 (as of 31 October 2026)
Authors
Ajay Mandlekar, Danfei Xu, Josiah Wong 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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8959
Graph hash
0f8faac001ee676befb6916f61f8cfb7186cb30da6b668f1770a8106638121eb
Skeleton hash
00c4da5d2b2741c121d46234417a8549dfe08d50b65b6e3821a9410f9f1eb2a1
Architecture hash
7961ef347de92be9b82f0ce5013c1978645b0e1a6e4e4f9f8267d3a3bbfd5712
Diagram SHA-256
b908df5d31680901c382dbe7ab597c900fa7287c5fea346ea188e46fa5a2ed9d
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

BC-RNN is the recurrent behavior cloning policy from robomimic, a framework for robot learning from demonstration. It comes out of a study of six offline learning algorithms for robot manipulation on five simulated and three real-world multi-stage tasks, with human demonstration datasets of varying quality. The paper was an oral at CoRL 2021. The captured member is robomimic's BC-RNN, one of its imitation learning algorithms alongside BC and HBC.

BC-RNN is a variant of behavioral cloning that uses a recurrent neural network as the policy network, so the recurrent hidden state can model temporal dependencies in the data. The network is trained on length-T temporal sequences of states and actions. At test time the policy is unrolled one step at a time, and the hidden state is refreshed every T steps. All RNNs in the study are 2-layer LSTMs whose final-layer hidden states feed downstream modules. Action predictions are either raw actions or the parameters of an action distribution such as a Gaussian Mixture Model, passed through a tanh layer to normalize to [-1, 1]. In the hyperparameter scan, no actor MLP worked better for the RNN, the authors' hypothesis being that the RNN already has enough capacity and a larger actor network overfits. Longer training sequences of 30 or 50 did not improve significantly on 10, so the short sequence length was kept for efficiency.

The headline finding is that observation history is crucial: there is a substantial performance gap between BC-RNN and BC, which highlights the benefits of history-dependence. On suboptimal human data BC-RNN outperforms BC on all datasets by 7% to 35%. When 100 worse demonstrations are added, most algorithms decline in performance while BC-RNN uniformly improves from the added data. Meanwhile, batch RL algorithms such as BCQ and CQL did not perform particularly well on these human-generated datasets. Reducing the RNN hidden dimension from 400 to 100 for low-dim agents, or from 1000 to 400 for image agents, uniformly decreased performance. Using a deterministic policy instead of a GMM action distribution caused significant drops on the multi-human datasets. The robomimic project began development in late 2018 by researchers in the Stanford Vision and Learning Lab.

Key idea. BC-RNN is a variant of behavioral cloning whose policy network is a recurrent neural network, letting the hidden state carry history. In the robomimic study it opened a substantial performance gap over plain BC, highlighting the benefits of history-dependence.

  • bc-rnn
  • BC_RNN
  • robomimic
  • behavior cloning
  • behavioral cloning
  • imitation learning
  • recurrent policy
  • lstm policy
  • robot manipulation
  • human demonstrations
  • offline learning
  • ARISE

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

Cite the paper

@misc{mandlekar2021matterslearningofflinehuman,
      title={What Matters in Learning from Offline Human Demonstrations for Robot Manipulation}, 
      author={Ajay Mandlekar and Danfei Xu and Josiah Wong and Soroush Nasiriany and Chen Wang and Rohun Kulkarni and Li Fei-Fei and Silvio Savarese and Yuke Zhu and Roberto Martín-Martín},
      year={2021},
      eprint={2108.03298},
      archivePrefix={arXiv},
      primaryClass={cs.RO},
      url={https://arxiv.org/abs/2108.03298}, 
}