RMem: Restricted Memory Banks Improve Video Object Segmentation
Junbao Zhou, Ziqi Pang, Yu-Xiong Wang
TL;DR
RMem challenges the standard practice of expanding memory banks in video object segmentation by uncovering a memory deciphering effect: larger memory banks introduce redundant information that hinders decoding. It remedies this with a simple, plug-and-play approach that restricts memory to a fixed number of frames, paired with a UCB-inspired memory update and a temporal positional embedding to improve temporal reasoning. Across challenging benchmarks like VOST and LVOS, RMem achieves state-of-the-art performance, while maintaining efficiency on shorter datasets, and demonstrates that training-inference memory alignment coupled with explicit temporal encoding enhances long-video understanding. The work offers practical, scalable improvements for memory-based VOS and suggests broader implications for temporal reasoning in long videos and other memory-reliant vision systems.
Abstract
With recent video object segmentation (VOS) benchmarks evolving to challenging scenarios, we revisit a simple but overlooked strategy: restricting the size of memory banks. This diverges from the prevalent practice of expanding memory banks to accommodate extensive historical information. Our specially designed "memory deciphering" study offers a pivotal insight underpinning such a strategy: expanding memory banks, while seemingly beneficial, actually increases the difficulty for VOS modules to decode relevant features due to the confusion from redundant information. By restricting memory banks to a limited number of essential frames, we achieve a notable improvement in VOS accuracy. This process balances the importance and freshness of frames to maintain an informative memory bank within a bounded capacity. Additionally, restricted memory banks reduce the training-inference discrepancy in memory lengths compared with continuous expansion. This fosters new opportunities in temporal reasoning and enables us to introduce the previously overlooked "temporal positional embedding." Finally, our insights are embodied in "RMem" ("R" for restricted), a simple yet effective VOS modification that excels at challenging VOS scenarios and establishes new state of the art for object state changes (on the VOST dataset) and long videos (on the Long Videos dataset). Our code and demo are available at https://restricted-memory.github.io/.
