All models

Time-Contrastive Networks (TCN)

Inception-based image embedder trained with a time-contrastive triplet loss on unlabeled video for robot imitation.

Reinforcement learning and control · 180 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
6.8M
Operations
180
Framework
PyTorch
Recurrent
No
Published
ICRA 2018
Cited by
42 (as of 29 October 2026)
Authors
Pierre Sermanet, Corey Lynch, Yevgen Chebotar and others
License
Apache-2.0
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
m20969
Graph hash
d70fe72de3c11a275af244af8dc158db411c1d742e94c7bf7f1b6dd79a25b6cf
Skeleton hash
88b4373404cdf823013f8a0f560a72498377429f4558f6f91aa7130c661416db
Architecture hash
0cb75b16db149ea01631a3661d8622301c23daf9a9ce204fbf4aaa2bf5793924
Diagram SHA-256
13042ae7c505ee262032e0bc0e564d72a81a1ba224e9d3fd44e473227cfc2b2e
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

Time-Contrastive Networks (TCN) learn an image embedding from unlabeled video recorded from several viewpoints, so that a robot can imitate what it watches a person do. Training uses a triplet loss: two frames from the same time but different viewpoints are pulled together, while a visually similar frame from a temporal neighbor is pushed apart. The paper says this signal makes the model find attributes that change across time but not across viewpoint, while ignoring occlusions, motion blur, lighting and background.

The network is a custom architecture derived from Inception: the Inception model up to the layer “Mixed 5d”, initialized with ImageNet pre-trained weights, followed by 2 convolutional layers, a spatial softmax layer and a fully-connected layer. The embedding itself is a fully connected layer with 32 units on top.

A single-view variant needs only one camera: the positive frame is picked within a short range of the anchor and negatives come from outside a margin range. The paper finds that multi-view training performs best but that the single-view version can still be useful when no multi-view data is available. It then uses the embedding in two ways: to let a robot mimic human poses directly, and as a reward function inside a reinforcement learning algorithm.

Key idea. Time-Contrastive Networks learn a viewpoint-invariant embedding from unlabeled video by attracting simultaneous views of one moment and repelling temporal neighbors, giving robots a reward signal for imitation.

  • Time-Contrastive Networks
  • TCN
  • Time-Contrastive Network
  • time-contrastive
  • self-supervised learning from video
  • multi-view metric learning
  • triplet loss
  • robotic imitation
  • viewpoint-invariant embedding

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

Cite the paper

@misc{sermanet2018timecontrastivenetworksselfsupervisedlearning,
      title={Time-Contrastive Networks: Self-Supervised Learning from Video}, 
      author={Pierre Sermanet and Corey Lynch and Yevgen Chebotar and Jasmine Hsu and Eric Jang and Stefan Schaal and Sergey Levine},
      year={2018},
      eprint={1704.06888},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1704.06888}, 
}