All models

MOSAIC

A multi-task one-shot imitation policy that combines self-attention with a temporal contrastive module.

Reinforcement learning and control · 241 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 (20 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
62.3M
Operations
241
Framework
PyTorch
Recurrent
No
Published
IEEE International Conference on Robotics and Automation (arXiv 2021)
Cited by
29 (as of 29 October 2026)
Authors
Zhao Mandi, Fangchen Liu, Kimin Lee, Pieter Abbeel
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
m18188
Graph hash
0ae9b51b5f372676d1d1d967df2a7b244ce6774edfc7106f4d19c55c9b793874
Skeleton hash
da44d6b71763ecc39ca6b46cb6f89a44fde91c6eca8235c0324878a4677ff7f8
Architecture hash
6424dada647158fb7ec61b66ee7e3b7ececa3f925d116e5e56da1525541f2e2d
Diagram SHA-256
8243794eb566b48a7692ebbfc68524b677f567ebd4b0d236abc3ff80332dca92
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

MOSAIC (Multi-task One-Shot Imitation with self-Attention and Contrastive learning) is a policy model for one-shot imitation learning, in which an agent trained with expert demonstrations executes a new task at test time from just one demonstration. The paper notes that this framework had been limited to training on many variations of one task and testing on unseen but similar variations of the same task.

For a harder multi-task setup, the authors introduce a suite of vision-based robot manipulation tasks consisting of 7 tasks and a total of 61 variations. Multi-task training is followed by one-shot imitation on variations within the training tasks, one-shot imitation on new tasks, and fine-tuning on new tasks. MOSAIC integrates a self-attention model architecture and a temporal contrastive module to enable better task disambiguation and more robust representation learning.

The paper reports that MOSAIC outperforms prior methods in learning efficiency and final performance, and that its multi-task policy shows generalization ability via fine-tuning on novel tasks. The repository's data-generation example collects expert data for a Press Button task with two robots, panda and sawyer.

Key idea. MOSAIC combines a self-attention model architecture with a temporal contrastive module so a single multi-task policy can imitate a robot manipulation task from one demonstration.

  • MOSAIC
  • Multi-task One-Shot Imitation with self-Attention and Contrastive learning
  • one-shot imitation learning
  • OSIL
  • one-shot visual imitation
  • visual imitation learning
  • robot manipulation
  • multi-task imitation

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

Cite the paper

@misc{mandi2022generalizableoneshotvisualimitation,
      title={Towards More Generalizable One-shot Visual Imitation Learning}, 
      author={Zhao Mandi and Fangchen Liu and Kimin Lee and Pieter Abbeel},
      year={2022},
      eprint={2110.13423},
      archivePrefix={arXiv},
      primaryClass={cs.RO},
      url={https://arxiv.org/abs/2110.13423}, 
}