arXiv:2610.35724cs.CVOct 2026

Manuscript Offprint

arXiv:2610.35724

MatAnyone-E: Sparse Memory Propagation for Efficient High-Resolution Video Matting

Shuyun Wang, Shangchen Zhou, Peiqing Yang, Yuekun Dai, Xin Yu, Chen Change Loy

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Shuyun Wang 1,2^{1,2} Shangchen Zhou 2†^{2\dagger} Peiqing Yang 2^{2} Yuekun Dai 2^{2} Xin Yu 3∗^{3*} Chen Change Loy 2∗^{2*}

1^{1}The University of Queensland 2^{2}S-Lab, Nanyang Technological University 3^{3}University of Adelaide

https://shuyun-wang.github.io/projects/MatAnyone-E

Figure

Figure 1: Real-world 4K inference on an NVIDIA A800-SXM4-80GB. MatAnyone-E (Ours) achieves an estimated 7.4×7.4\times speedup and 13.1×13.1\times lower peak GPU memory usage than MatAnyone 2 (Yang et al., 2026), which runs out of memory. By directly processing native 4K inputs, our method preserves finer details and boundaries compared to VideoMaMa (Lim et al., 2026) and SAM2Matting (Shen et al., 2026).

ABSTRACT

High-resolution video matting requires preserving fine details, such as hair strands and soft transparency, while maintaining consistency across frames. Memory-based methods achieve strong matting quality by matching current-frame features with information stored from earlier frames, but this process becomes increasingly costly as resolution grows. We present MatAnyone-E, an efficient extension of MatAnyone 2 that focuses computation where it is most needed. Our approach first performs low-resolution propagation to identify uncertain regions that require closer inspection and the memory candidates most relevant to them. It then performs high-resolution matching only for these regions using the selected memory, while reusing low-resolution matching results elsewhere. This strategy reduces both the number of locations requiring detailed matching and the amount of memory searched, while preserving the information needed to produce a complete matte. We further reduce the cost of generating high-resolution mattes with a lightweight decoder designed around measured runtime bottlenecks and trained to reproduce the original decoder's representations. Experiments show that MatAnyone-E maintains matting quality comparable to MatAnyone 2 while achieving an estimated 7.4×7.4\times inference speedup and reducing peak GPU memory usage to 7.6% of the usage of MatAnyone 2 at 4K. With compilation-enabled inference on a single NVIDIA H200 GPU, it reaches 73.07 FPS at 1080p and 28.62 FPS at 4K.

†^{\dagger}Project lead. ∗^{*}Corresponding authors.

1 INTRODUCTION

Video matting estimates a continuous alpha matte for each frame, enabling foreground subjects to be composited onto new backgrounds. High-resolution applications demand accurate recovery of hair strands, thin structures, and soft transparency, together with temporal consistency to prevent flickering. Meeting these requirements, however, becomes computationally expensive as resolution increases, limiting the practical use of otherwise high-quality methods.

Existing video matting methods (Zhang et al., 2025; 2019; Qiao et al., 2020; Zhu et al., 2017) address this challenge with different trade-offs. Efficiency-oriented approaches, such as RVM (Lin et al., 2022) and SparseMat (Sun et al., 2023), reduce computation through recurrent temporal modeling or selective high-resolution refinement, but can struggle to preserve fine structures and temporal consistency in challenging scenes. Recent methods such as VideoMaMa (Lim et al., 2026) and SAM2Matting (Shen et al., 2026) leverage generative or segmentation priors, yet their restricted processing resolutions limit the detail they can recover from high-resolution inputs. Memory-based methods, including MatAnyone (Yang et al., 2025) and MatAnyone 2 (Yang et al., 2026), achieve strong matting quality by retrieving information from earlier frames. However, matching current-frame features against stored memory and decoding high-resolution mattes incur substantial computational costs as resolution increases. Although selective matte refinement has been explored, reducing the cost of the underlying temporal memory matching remains a distinct challenge. This motivates our central question: how can we preserve the quality of memory-based video matting while avoiding exhaustive high-resolution matching and costly decoding?

The main computational bottleneck lies in comparing every current-frame feature with a large bank of features stored from earlier frames. Increasing the video resolution enlarges both sets of features, causing the matching cost to grow rapidly even when the number of stored frames remains fixed. Yet detailed matching is not equally important everywhere. The model can rely more on information carried over from the previous frame at some locations, while others depend more strongly on newly retrieved information. This suggests focusing matching computation on locations that require stronger updates from memory. The difficulty is identifying these locations efficiently: the signal indicating how much each location needs an update is obtained only after the expensive matching has already been performed.

We address this dilemma with MatAnyone-E, an efficient extension of MatAnyone 2. Our key idea is to use an inexpensive low-resolution propagation pass to guide subsequent computation. This initial pass identifies locations that are likely to benefit most from closer inspection and the memory candidates most relevant to those locations. We then perform matching at the native feature resolution only between these selected locations and memory candidates, reusing the upsampled low-resolution matching results elsewhere. Selecting locations alone would still require searching the entire memory bank; selecting relevant memory as well reduces both sources of matching cost. The resulting dense matching output is then used for downstream alpha prediction.

Beyond memory matching, producing the high-resolution alpha matte remains a substantial computational cost. We therefore develop a lightweight decoder guided by measured runtime bottlenecks, since reducing arithmetic operations alone does not necessarily improve inference speed. We train this decoder through knowledge distillation from the original decoder to preserve matting quality. Together, selective memory matching and efficient decoding address the two main sources of high-resolution inference cost.

Experiments show that MatAnyone-E maintains matting quality comparable to MatAnyone 2 while substantially improving inference efficiency. At 4K resolution, our complete model achieves an estimated 7.4×7.4\times inference speedup and reduces peak GPU memory usage to 7.6% of MatAnyone 2. Compared with prior methods, MatAnyone-E provides a stronger balance between matting quality and inference efficiency at high resolutions.

References (28)