NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Kernelized Memory Network for Video Object Segmentation

Hongje Seong, Junhyuk Hyun, Euntai Kim

Abstract

Semi-supervised Video Object Segmentation (VOS) has recently been dominated by Space-Time Memory (STM) networks. However, these networks often suffer from "matching drift" due to their purely non-local nature, where pixels in a current frame may incorrectly match distant, similar-looking distractors in past frames. We present the Kernelized Memory Network (KMN), which introduces a locality constraint via a 2D Gaussian kernel to ensure precise object tracking. Combined with a novel "Hide-and-Seek" pre-training strategy to handle occlusions, KMN achieves state-of-the-art performance on DAVIS and YouTube-VOS benchmarks while maintaining a fast runtime of 0.12 seconds per frame.

Introduction

The task of semi-supervised Video Object Segmentation (VOS) involves tracking and segmenting a target object throughout a video sequence, given its initial mask in the first frame. Recently, Space-Time Memory (STM) networks became the standard approach, storing features from past frames in a "memory" and using the current frame as a "query" to retrieve relevant information via non-local attention mechanisms.

Despite their success, the authors identify a fundamental mismatch: while STM is non-local, VOS is predominantly a local task. In a standard STM, a pixel in the current frame can match any pixel in the memory, regardless of spatial distance. This often leads to "matching drift," where the model confuses the target object with a similar-looking distractor elsewhere in the frame. Furthermore, existing models often struggle with precise boundary detection and heavy occlusions.

Comparison between standard Memory Read and the proposed Kernelized Memory Read. The kernelized approach constrains matching to a local neighborhood, preventing drift to similar objects.

Methodology

The KMN architecture addresses the limitations of STM through two primary innovations: the Kernelized Memory Read module and a Hide-and-Seek pre-training strategy.

Kernelized Memory Read

The core innovation of KMN is the enforcement of a spatial locality constraint on the memory retrieval process. Unlike standard STM, which performs a one-way Query-to-Memory matching, KMN implements a two-way matching process. For every pixel in the memory, the network identifies the best-matched position in the query frame. It then applies a 2D Gaussian kernel centered on these best-matched positions. This "kernelization" acts as a spatial constraint, effectively weighting the memory read to favor the local neighborhood where the object is most likely to have moved. This aligns the model's behavior with the physical reality that objects move through space continuously.

Overview of the KMN architecture. Past frames and the current frame are processed through ResNet encoders to generate Key-Value embeddings, which are then integrated via the Kernelized Memory Read module to produce the final mask.

Hide-and-Seek (HaS) Pre-training

To improve robustness against occlusions and enhance boundary precision, the authors introduce a "Hide-and-Seek" pre-training phase. Before training on video data, the model is trained on static images from datasets like MS-COCO and Pascal VOC. During this phase, random patches of the image are hidden, forcing the network to learn to segment objects based on partial visibility. This strategy encourages the model to focus on accurate boundary detection and structural cues rather than just the most salient parts of an object.

Experiments and Results

KMN was evaluated on the three most prominent VOS benchmarks: DAVIS 2016, DAVIS 2017, and YouTube-VOS 2018.

Performance and Efficiency

The model achieved a 77.2% $\mathcal{G}_M$ score on the DAVIS 2017 test-dev set, surpassing the previous state-of-the-art (STM) by a significant 5% margin. Notably, KMN is an "offline" method, meaning it does not require slow online fine-tuning on the first frame of a new video. This allows it to maintain a fast inference speed of approximately 0.12 seconds per frame on a Titan 1080Ti, making it practical for near-real-time applications.

Qualitative Analysis

Qualitative results show that KMN successfully handles "distractor" objects where the original STM would often fail. For instance, in scenes with multiple similar red cars, the kernelized matching prevents the mask from drifting to the wrong vehicle. The Hide-and-Seek pre-training also results in sharper, more accurate boundaries compared to models trained without this strategy.

Conclusion

The Kernelized Memory Network successfully bridges the gap between powerful non-local memory mechanisms and the inherent locality of video object tracking. By introducing a Gaussian kernel constraint and a robust pre-training strategy, KMN sets a new state-of-the-art in VOS while remaining computationally efficient. Future work may explore adaptive kernel sizes that change based on object velocity or scale to further improve tracking in highly dynamic scenes.

Summary updated

BibTeX
@inproceedings{seong2020kernelized,
  author = {Hongje Seong and Junhyuk Hyun and Euntai Kim},
  title = {{Kernelized Memory Network for Video Object Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58542-6\_38},
}
Figure