Reproduce “Efficient-SAM2: Accelerating SAM2 with Object-Aware Visual Encoding and Memory Retrieval” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jing Zhang, Zhikai Li, Xuewen Liu, Qingyi Gu

Researchers from the Institute of Automation, Chinese Academy of Sciences developed Efficient-SAM2, a method that accelerates the SAM2 video foundation model by employing object-aware visual encoding and sparse memory retrieval. This approach delivers a 1.68× end-to-end speedup for SAM2.1-L while retaining 99% of its original accuracy on the SA-V test set.

Key insights

  • SAM2's image encoder performs extensive, undifferentiated computation across entire frames, including background regions that contribute minimally to specific object segmentation.
  • The memory attention mechanism in SAM2 contains significant token-level redundancy and exhibits strong temporal consistency in salient features across consecutive video frames.
  • By exploiting these 'sparse perception patterns' and adaptively focusing computational resources on object-relevant information, inference efficiency can be dramatically improved without extensive model retraining or performance degradation.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.