SWEM
A video object segmentation network that keeps a fixed-size memory of bases updated by weighted EM.
Segmentation · 1,662 operations Checked
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
- Task
- Segmentation
- Parameters
- 58.6M
- Operations
- 1,662
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- CVPR 2022
- Paper
- SWEM: Towards Real-Time Video Object Segmentation with Sequential Weighted Expectation-Maximization
- Cited by
- 49 (as of 29 October 2026)
- Authors
- Zhihui Lin, Tianyu Yang, Maomao Li and others
- Source
- GitHub: lmm077/SWEM
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20229
- Graph hash
- 29fa436e89f21849876cd75b7693e2b7d67dce321164a4ca5f325c2749ccb42d
- Skeleton hash
- 0384fd0011af2984347ac6401a3b21a3ae68f1ae6f720b57a62c6c705f53a64e
- Architecture hash
- 7e3b1d63eb74d52322269fa09c7e4d83f87e9a8e6f296e3a6c1995b7533091cb
- Diagram SHA-256
- 120526d6597507b108f26a58c2c640e0d697e9af8c3e37504fca2361c3f81da6
- 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
SWEM (Sequential Weighted Expectation-Maximization) is a network for semi-supervised video object segmentation (VOS), built to greatly reduce the redundancy of the features it keeps in memory. In this setting the objects of interest are segmented through a video, and only the mask annotation of the first frame is provided during testing. The paper's starting point is that methods based on space-time memory were ahead of other solutions, but their template features keep growing and are redundant, which makes inference inefficient.
Where STM saves all historical frame information as the memory template of objects, SWEM sequentially updates a more compact set of bases. The bases come from weighted Expectation-Maximization, with the predicted mask as fixed weights so that foreground and background bases are constructed explicitly in each frame. A second, adaptive weighting gives larger weights to hard samples while the bases are generated. Because the number of template features in memory is fixed, the inference complexity of the system stays stable.
The network uses ResNet-50 as the backbone that extracts frame features and ResNet-18 for value feature extraction. The paper reports 84.3% J&F on the DAVIS 2017 validation dataset at 36 FPS.
Key idea. SWEM replaces a continuously growing frame memory with a fixed set of bases updated by sequential weighted EM, merging similar features both within and across frames.
- SWEM
- Sequential Weighted Expectation-Maximization
- video object segmentation
- VOS
- semi-supervised video object segmentation
- space-time memory
- real-time video segmentation
- weighted EM
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lin2022swemrealtimevideoobject,
title={SWEM: Towards Real-Time Video Object Segmentation with Sequential Weighted Expectation-Maximization},
author={Zhihui Lin and Tianyu Yang and Maomao Li and Ziyu Wang and Chun Yuan and Wenhao Jiang and Wei Liu},
year={2022},
eprint={2208.10128},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2208.10128},
}