All models

XMem

A video object segmentation network with sensory, working and long-term feature memories for long videos.

Segmentation · 739 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 (607 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.2M
Operations
739
Framework
PyTorch
Recurrent
Yes
Published
ECCV 2022
Cited by
449 (as of 27 October 2026)
Authors
Ho Kei Cheng, Alexander G. Schwing
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
m21535
Graph hash
9573153496b2238730a56d3081ca203d7fba6a578b98e0f1d5902081d71b5571
Skeleton hash
371f38836ac1ef9929e3e6258caf901eb4e359cf4e850bc88b79714a00ff9b01
Architecture hash
79f2600e91a7bcc02ddd935c75b44e6131332fa3fea40915d6e5438df5e58885
Diagram SHA-256
b57e11ce86320b7be637d40f5945fa6b04e70bbdab49f06ff1741b892137cc2a
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

XMem is a video object segmentation architecture for long videos, with feature memory stores modeled on the Atkinson-Shiffrin model of human memory. The authors frame video object segmentation first of all as a memory problem. Prior work typically uses one type of feature memory, and for videos longer than a minute a single feature memory ties memory consumption tightly to accuracy.

XMem instead keeps three independent but deeply connected stores: a rapidly updated sensory memory, a high-resolution working memory and a compact, sustained long-term memory. A memory potentiation algorithm routinely consolidates actively used working memory elements into the long-term memory, which avoids memory explosion and limits performance decay in long-term prediction. The stores have different temporal scales and complement each other in the memory reading mechanism.

The paper reports results well above earlier methods on long-video datasets and on par with them on short-video datasets. The authors say it handles videos with more than 10,000 frames. They give its speed as about 20 FPS even with long videos, depending on hardware. The code also comes with a GUI modified from MiVOS.

Key idea. XMem segments objects in long videos using three connected feature memory stores, sensory, working and long-term, with a potentiation algorithm that consolidates working memory into long-term memory.

  • xmem
  • video object segmentation
  • vos
  • long-term video object segmentation
  • atkinson-shiffrin memory model
  • feature memory
  • long video segmentation

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

Cite the paper

@misc{cheng2022xmemlongtermvideoobject,
      title={XMem: Long-Term Video Object Segmentation with an Atkinson-Shiffrin Memory Model}, 
      author={Ho Kei Cheng and Alexander G. Schwing},
      year={2022},
      eprint={2207.07115},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2207.07115}, 
}