Manuscript Offprint
arXiv:2610.35724MatAnyone-E: Sparse Memory Propagation for Efficient High-Resolution Video Matting
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Shuyun Wang Shangchen Zhou Peiqing Yang Yuekun Dai Xin Yu Chen Change Loy
The University of Queensland S-Lab, Nanyang Technological University University of Adelaide
https://shuyun-wang.github.io/projects/MatAnyone-E

Figure 1: Real-world 4K inference on an NVIDIA A800-SXM4-80GB. MatAnyone-E (Ours) achieves an estimated speedup and 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 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.
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 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.
Closely related to our work, MatAnyone (Yang et al., 2025) introduces region-adaptive memory fusion for stable target-assigned video matting. MatAnyone 2 (Yang et al., 2026) further improves matting through learned quality evaluation, large-scale real-world data curation, and reference-frame training. We build on this memory-based framework and focus on reducing its high-resolution inference cost. Whereas methods such as SparseMat and Matting reduce computation through selective matte refinement, reducing the cost of the underlying temporal memory matching remains a distinct challenge.
Efficient Video Object Segmentation. Memory-based video object segmentation (VOS) provides a foundation for temporal information propagation. STCN (Cheng et al., 2021) improves efficiency through shared frame correspondences and distance-based affinity. XMem (Cheng & Schwing, 2022) combines sensory, working, and long-term memories to control memory growth over long videos. Cutie (Cheng et al., 2024) augments pixel-level memory reading with object-level queries for more robust target representations. SAM 2 (Ravi et al., 2025) extends promptable segmentation to videos through streaming memory attention. These methods highlight the importance of memory representation and efficient memory access for temporal propagation.
Recent work further reduces the cost of memory-based VOS. EfficientTAM (Xiong et al., 2025) combines a lightweight plain ViT encoder with spatially compressed memory attention. EdgeTAM (Zhou et al., 2025) compresses frame memories using a 2D Spatial Perceiver with global and patch-level queries, supported by knowledge distillation. Efficient-SAM2 (Zhang et al., 2026b) introduces object-aware window routing and sparse memory retrieval to reduce redundant computation. These approaches demonstrate the effectiveness of memory compression and selective computation for efficient temporal propagation. Our work extends this efficiency perspective to high-resolution video matting by using uncertainty estimated from inexpensive low-resolution propagation to determine where native-resolution matching is needed, together with query-dependent memory selection.
3 METHODOLOGY
Given a video and a first-frame foreground mask, MatAnyone-E predicts an alpha matte for each frame . As illustrated in Fig. 2(a), MatAnyone-E follows the main architecture of MatAnyone 2, but we modify two of the components whose computational cost grows most rapidly with resolution: memory propagation (Fig. 2(b)) and decoding (Fig. 2(c)). Sparse Memory Propagation (Sec. 3.2) uses 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. A lightweight decoder (Sec. 3.3) further reduces high-resolution decoding cost through profiling-guided design and feature distillation.
3.1 PRELIMINARIES
Throughout this section, HR refers to the encoder’s native memory-feature resolution, and LR refers to this feature grid spatially downsampled by a factor of s.
Memory Matching. Let denote the current-frame queries, and let and denote the stored memory keys and values. We omit batch and object dimen-

(a) MatAnyone-E Overview
Update Alpha Memory with
i) LR Propagation
ii) Query Pruning
iv) HR Propagation
(b) Sparse Memory Propagation
(c) Lightweight Decoder
Figure 2: Overview of MatAnyone-E. (a) MatAnyone-E retains the main architecture of MatAnyone 2 (Yang et al., 2026), while replacing its memory propagation and decoder with Sparse Memory Propagation and a lightweight decoder. (b) Low-resolution (LR) propagation estimates uncertainty and query-memory affinities to select query locations and relevant memory for high-resolution (HR) matching. HR propagation then performs matching only on the selected query-memory pairs, while reusing the upsampled LR readout elsewhere. (c) The lightweight decoder adopts depthwise-separable blocks in its lower-resolution stages and narrower dense convolutions in its later decoder stages, guided by stage-wise latency profiling and trained with feature distillation from the MatAnyone 2 decoder.
sions for clarity. MatAnyone 2 retrieves information from memory as:
where contains query-memory affinities, Sim denotes the baseline distance-based similarity, and retains the top-k affinities of each query before softmax normalization over memory locations. Although only a small number of memory locations contribute to each readout, finding these matches still requires comparing every query against the full memory bank. Since both the query and memory grids grow with spatial resolution, such dense matching quickly becomes expensive at high resolution even when the number of stored frames is fixed.
Temporal Fusion. After memory retrieval, MatAnyone 2 combines the retrieved value with the value propagated from the previous frame:
where is predicted from the retrieved memory readout by the uncertainty predictor. This uncertainty does not measure prediction confidence; rather, it is associated with temporal alpha changes and acts as a per-location gate: small values favor information carried over from the previous frame in temporally stable regions, whereas large values place more weight on newly retrieved memory. The uncertainty thus reflects how strongly each location relies on memory retrieval.
3.2 SPARSE MEMORY PROPAGATION
Although Eq. 2 weights retrieved memory differently across locations, MatAnyone 2 still matches every query against the full memory bank. Ideally, detailed matching should be reserved for locations that rely more heavily on newly retrieved information. However, identifying these locations is non-trivial because the fusion weights that indicate this reliance are available only after the memory readout has been computed.
The proposed Sparse Memory Propagation resolves this dependency with an inexpensive LR propagation pass. As shown in Fig. 2(b), the resulting coarse uncertainty serves as a proxy for where HR matching is useful. At the same time, the query–memory affinities already computed by this pass indicate which memory is relevant to those locations. Hence, the same LR computation therefore answers two questions: where detailed matching should be performed, and which memory should participate in it. We detail the steps below:
Low-Resolution Propagation. We first spatially downsample the queries, memory keys, and memory values by a factor of s and apply the baseline memory matching:
Since both the query and memory grids contain approximately as many locations, this pass evaluates only about as many query–memory pairs as dense HR matching. The LR readout is used to estimate uncertainty for query selection and is upsampled to provide a dense base for subsequent HR propagation, while the LR affinities are reused to identify relevant memory.
Query Pruning. We apply the uncertainty predictor inherited from MatAnyone 2 to the LR propagation features , , and to estimate . We then select coarse locations whose uncertainty exceeds a threshold :
Each selected LR location corresponds to an region on the HR grid, and the HR queries within these regions form . Detailed matching can therefore focus on a subset of query locations rather than the full HR grid.
Memory Pruning. Query pruning alone is not sufficient, because each retained query would still be compared against the entire memory bank, whose size grows with both the resolution and the number of stored frames. The LR pass has already established coarse correspondences between these queries and memory. We reuse these affinities to identify memory locations that are relevant to the selected queries. Specifically, for each LR memory location j, we compute:
The maximum assigns a high score to a memory location whenever it is strongly associated with any selected query. We retain the highest-scoring fraction of memory locations and use their corresponding HR keys and values, denoted by and , for subsequent HR matching. This pruning is performed only for the current retrieval and does not modify the persistent memory bank.
High-Resolution Propagation. After pruning both sides of the matching problem, HR matching is performed only between the selected queries and selected memory:
We use the upsampled LR readout as a dense base and replace the selected locations with their refined HR values:
where denotes spatial upsampling by a factor of . This yields a dense readout while restricting expensive high-resolution matching to the selected query–memory pairs. Dense HR matching evaluates query–memory pairs. Sparse Memory Propagation first performs the LR pass, which evaluates approximately pairs, and then performs HR matching only between the retained queries and memory locations, requiring pairs. Its total matching cost is therefore approximately . The dense readout is then processed by the uncertainty predictor and temporal fusion at the HR level, as in MatAnyone 2.
3.3 LIGHTWEIGHT DECODER
Beyond memory matching, high-resolution decoding remains a substantial source of inference cost. We therefore develop a lightweight decoder guided by measured runtime behavior and trained with feature distillation from the MatAnyone 2 decoder.
Table 1: Matting quality comparison at 1920 × 1080. Best and second-best results are marked in red and orange, respectively. Values in parentheses denote differences from MatAnyone 2.
| Metric | RVM | FTP-VM | MaGGle | GVM | MatAnyone | VideoMaMa | SAM2Matting | MatAnyone 2 | Ours |
|---|---|---|---|---|---|---|---|---|---|
| VideoMatte HR | |||||||||
| MAD ↓ | 6.57 | 8.00 | 4.42 | 6.33 | 4.24 | 6.83 | 4.74 | 4.10 | 4.14 (+0.04) |
| MSE ↓ | 1.93 | 3.24 | 0.40 | 2.08 | 0.33 | 2.75 | 0.51 | 0.28 | 0.25 (-0.03) |
| Grad ↓ | 10.55 | 23.75 | 4.03 | 8.04 | 4.00 | 6.04 | 6.78 | 3.45 | 3.22 (-0.23) |
| dtSSD ↓ | 1.90 | 2.37 | 1.31 | 1.59 | 1.19 | 1.40 | 1.74 | 1.15 | 1.17 (+0.02) |
| YouTubeMatte HR | |||||||||
| MAD ↓ | 4.37 | 6.49 | 2.37 | 2.68 | 1.99 | 2.46 | 3.16 | 1.61 | 1.62 (+0.01) |
| MSE ↓ | 2.25 | 4.58 | 0.98 | 1.34 | 0.71 | 1.28 | 1.50 | 0.50 | 0.45 (-0.05) |
| Grad ↓ | 15.10 | 29.78 | 7.69 | 8.38 | 8.91 | 4.68 | 13.07 | 7.14 | 6.13 (-1.01) |
| dtSSD ↓ | 2.28 | 2.41 | 1.77 | 1.72 | 1.65 | 1.35 | 2.10 | 1.53 | 1.48 (-0.05) |
| CRGNN | |||||||||
| MAD ↓ | 5.98 | 6.64 | 9.50 | 5.03 | 5.76 | 5.18 | 5.80 | 4.24 | 4.28 (+0.04) |
| MSE ↓ | 2.79 | 3.54 | 6.11 | 2.15 | 3.04 | 2.13 | 2.66 | 2.00 | 1.85 (-0.15) |
| Grad ↓ | 13.68 | 15.10 | 16.51 | 14.28 | 15.55 | 13.78 | 16.28 | 11.74 | 12.87 (+1.13) |
| dtSSD ↓ | 5.36 | 5.98 | 6.02 | 4.86 | 5.44 | 4.82 | 5.42 | 4.54 | 4.61 (+0.07) |
Profiling-Guided Decoder Design. As illustrated in Fig. 2(c), both the original and lightweight decoders progressively upsample features through four stages, increasing the spatial resolution from 1/16 to 1/8, 1/4, 1/2, and finally the full input resolution. While the original decoder uses dense convolutions throughout, simply replacing them with lower-FLOP depthwise-separable convolutions does not consistently reduce latency across stages. In particular, at higher spatial resolutions, the reduction in arithmetic cost is increasingly offset by lower arithmetic intensity and increased memory-access overhead, so fewer FLOPs do not necessarily translate into faster execution.
We therefore adopt different lightweight designs at different stages. For the and stages, we use a depthwise convolution followed by a pointwise convolution. For the and stages, where reducing memory traffic becomes more important, we retain dense convolutions but reduce their channel widths. This stage-wise design follows the measured runtime behavior of each stage rather than applying a single lightweight block throughout the decoder. Detailed stage-wise profiling and analysis are provided in Appendix D.
Feature Distillation. While these lightweight designs reduce inference cost, they might limit the decoder's representation capacity. To prevent this, we apply feature distillation during training, so that the intermediate representations learned by the original decoder are preserved.
Specifically, we use the MatAnyone 2 decoder as a frozen teacher and the lightweight decoder as the student. Given the same upstream representation, we extract intermediate features from all four corresponding decoder stages. Let and denote the teacher and student features at stage , respectively. When their channel dimensions differ, a learnable adapter projects the student feature to the teacher dimension; otherwise, the original student feature is used directly. Let denote the resulting aligned student feature. We then minimize:
The distillation loss is optimized jointly with the MatAnyone 2 matting objectives as , where controls the strength of feature distillation.
4 EXPERIMENTS
Training and Inference Details. We initialize MatAnyone-E from the pretrained MatAnyone 2 model and train it on 8 NVIDIA A800-80GB GPUs with a total batch size of 16. Each training
Table 2: Inference efficiency across input resolutions. Measured on an NVIDIA A800-SXM4-80GB; FLOPs are reported per frame in TFLOPs and memory as peak allocated GPU memory in GB. Values in parentheses for “Ours” denote speedup or reduction relative to MatAnyone 2, and “(C.)” denotes compilation-enabled inference. Grayed-out results are not directly comparable because the corresponding methods operate at fixed processing resolutions rather than the native input resolution. Asterisks indicate MatAnyone 2 4K results extrapolated from shorter-memory measurements because inference with a full memory bank exceeds available GPU memory; “-” indicates an out-of-memory result.
| MaGGle | GVM | VideoMaMa | SAM2Matting | MatAnyone 2 | Ours | Ours (C.) | |
|---|---|---|---|---|---|---|---|
| Params (M) | 30.91 | 1621.02 | 2335.29 | 478.53 | 35.25 | 31.32 | 31.32 |
| 1024×1024 | |||||||
| FPS ↑ | 22.8 | 1.8 | 2.4 | 14.1 | 29.5 | 41.3 (×1.40) | 47.3 |
| FLOPs (×1012) ↓ | 0.32 | 24.04 | 16.48 | 7.22 | 0.54 | 0.34 (×1.59) | 0.34 |
| Mem. (GB) ↓ | 0.80 | 20.45 | 15.14 | 3.99 | 1.60 | 0.92 (×1.74) | 0.61 |
| 1920×1080 | |||||||
| FPS ↑ | 19.4 | 0.84 | 2.5 | 14.0 | 13.6 | 26.6 (×1.96) | 37.6 |
| FLOPs (×1012) ↓ | 0.56 | 53.95 | 16.48 | 7.22 | 1.20 | 0.69 (×1.74) | 0.69 |
| Mem. (GB) ↓ | 1.19 | 33.99 | 15.14 | 4.01 | 5.47 | 1.66 (×3.30) | 1.07 |
| 2560×1440 | |||||||
| FPS ↑ | 18.4 | 0.43 | 2.5 | 13.8 | 5.6 | 16.5 (×2.95) | 25.1 |
| FLOPs (×1012) ↓ | 0.56 | 111.61 | 16.48 | 7.22 | 2.45 | 1.24 (×1.98) | 1.24 |
| Mem. (GB) ↓ | 1.21 | 55.47 | 15.10 | 4.03 | 16.20 | 3.04 (×5.33) | 2.02 |
| 3840×2160 | |||||||
| FPS ↑ | 19.3 | - | 2.4 | 13.3 | 1.1* | 8.1 (×7.36) | 13.6 |
| FLOPs (×1012) ↓ | 0.56 | - | 16.48 | 7.22 | 7.76* | 2.72 (×2.85) | 2.72 |
| Mem. (GB) ↓ | 1.26 | - | 15.14 | 4.08 | 79.69* | 6.08 (×13.11) | 3.89 |
sample consists of 8 consecutive frames randomly cropped to , and training uses a combination of existing video matting datasets and the VMReal training set Yang et al. (2026). Feature distillation is applied at all four decoder stages with . The feature widths across the lightweight decoder hierarchy are [256, 128, 64, 32, 16]. Feature adapters are used only where the student and teacher channel dimensions differ and are removed after training. For Sparse Memory Propagation, we use a downsampling factor of , an uncertainty threshold of , and retain the top of memory candidates (). Unless otherwise specified, all experiments are conducted without model compilation.
Evaluation Settings. We evaluate matting quality on the high-resolution subsets of VideoMatte Lin et al. (2021) and YouTubeMatte Yang et al. (2025), as well as the CRGNN benchmark Lin et al. (2022), at . We report mean absolute difference (MAD), mean squared error (MSE), gradient error (Grad), and temporal error (dtSSD), where lower values indicate better performance. For CRGNN, inference is performed over the complete video sequence, while quantitative evaluation is conducted only on annotated frames. Unless otherwise specified, efficiency is measured on an NVIDIA A800-SXM4-80GB GPU. For MatAnyone-E, runtime is measured at steady state after the memory bank reaches its configured capacity.
4.1 QUANTITATIVE EVALUATIONS
Comparison with State-of-the-art Methods. We compare MatAnyone-E with RVM (Lin et al., 2022), FTP-VM (Huang & Lee, 2023), MaGGle (Huynh et al., 2024), GVM (Ge et al., 2025), MatAnyone (Yang et al., 2025), VideoMaMa (Lim et al., 2026), SAM2Matting (Shen et al., 2026), and its baseline, MatAnyone 2 (Yang et al., 2026). Table 1 reports results on three video matting benchmarks. Compared with MatAnyone 2, MatAnyone-E largely preserves matting quality: MAD differs by at most 0.04 and dtSSD by at most 0.07 across all three datasets. It also achieves lower MSE on VideoMatte (0.25 vs. 0.28), YouTubeMatte (0.45 vs. 0.50), and CRGNN (1.85 vs. 2.00).
Compared with recent methods, MatAnyone-E outperforms SAM2Matting across all reported metrics and datasets, and achieves lower MAD and MSE than VideoMaMa across all three benchmarks.

Video Frame
MatAnyone
VideoMaMa
SAM2Matting
Ours
Figure 3: Qualitative comparison. Examples illustrate fine-detail preservation, semantic correctness in challenging foreground regions, and high-resolution detail recovery. MatAnyone-E better preserves thin hair structures and local boundaries, particularly in the 4K example.

Video Frame
Dense Uncertainty
LR Uncertainty
Queries
Figure 4: Query selection on CRGNN. Low-resolution uncertainty follows the main spatial distribution of dense uncertainty and selects queries around object boundaries, fine structures, and other uncertain regions for high-resolution matching. Please zoom in to inspect fine details.
For example, on YouTubeMatte, MatAnyone-E achieves an MAD of 1.62 vs. 3.16 and an MSE of 0.45 vs. 1.50 compared with SAM2Matting. Overall, these results show that MatAnyone-E maintains the strong matting quality of MatAnyone 2.
High-Resolution Inference. Table 2 compares inference efficiency across four input resolutions. At 4K, MatAnyone-E reaches 8.1 FPS with 6.08 GB peak memory. Since MatAnyone 2 exceeds available GPU memory with a full memory bank at 4K, its runtime and memory are extrapolated from shorter-memory measurements, with details provided in Appendix B.1. This corresponds to an estimated speedup and memory reduction over MatAnyone 2. MatAnyone-E also achieves and speedups at 1080p and 1440p, respectively. Compilation further improves throughput to 13.6 FPS at 4K. MatAnyone-E maintains high throughput and low peak memory as input resolution increases.
4.2 QUALITATIVE EVALUATIONS
Qualitative Comparison. Figure 3 compares MatAnyone-E with MatAnyone, VideoMaMa, and SAM2Matting on representative challenging examples. In regions containing fine hair and soft boundaries, MatAnyone-E recovers cleaner and more complete alpha structures with fewer missing or blurred details. It also better preserves challenging foreground structures, such as hands and objects interacting with the subject, while maintaining accurate local boundaries. The advantage becomes more evident at 4K resolution, where MatAnyone-E processes the native-resolution input and preserves finer hair structures than methods operating at restricted processing resolutions.
Query-Selection Visualization. Figure 4 compares uncertainty estimated from dense propagation with that obtained from low-resolution propagation, together with the query locations selected for
Table 3: Component ablation on CRGNN at . SMP denotes Sparse Memory Propagation, and LD denotes the lightweight decoder. The baseline is the original MatAnyone 2 model; combining SMP and LD gives the full MatAnyone-E model. Memory is reported as peak allocated GPU memory in GB.
| Configuration | MAD ↓ | MSE ↓ | Grad ↓ | dtSSD ↓ | Latency (ms) ↓ | FPS ↑ | Peak Mem. (GB) ↓ |
|---|---|---|---|---|---|---|---|
| Baseline | 4.24 | 2.00 | 11.74 | 4.54 | 73.53 | 13.6 | 5.47 |
| + SMP | 4.26 | 1.94 | 13.00 | 4.69 | 44.18 | 22.6 | 2.78 |
| + LD | 4.27 | 1.84 | 12.83 | 4.59 | 66.61 | 15.0 | 4.35 |
| + SMP + LD (Ours) | 4.28 | 1.85 | 12.87 | 4.61 | 37.59 | 26.6 | 1.66 |
Table 4: Comparison of HR query-selection strategies on CRGNN at . All selective strategies use approximately the same HR query budget. The baseline is the MatAnyone 2 with dense HR matching, while “LR only” uses only the LR readout without further HR matching. Lower is better for all quality metrics and latency.
| Method | MAD ↓ | MSE ↓ | Grad ↓ | dtSSD ↓ | Latency (ms) ↓ | HR Queries |
|---|---|---|---|---|---|---|
| Baseline | 4.24 | 2.00 | 11.74 | 4.54 | 73.53 | 100.00% |
| LR only | 4.35 | 2.00 | 13.23 | 4.80 | 41.85 | 0.00% |
| Uniform | 4.39 | 2.05 | 13.26 | 4.82 | 43.82 | 6.98% |
| Alpha boundary | 4.34 | 2.00 | 13.20 | 4.79 | 43.46 | 6.99% |
| Uncertainty-guided (Ours) | 4.26 | 1.94 | 13.02 | 4.70 | 42.92 | 6.99% |
high-resolution matching. The low-resolution estimate retains the main spatial distribution of dense uncertainty. This supports its use as a low-cost proxy for identifying query locations that benefit from high-resolution matching.
4.3 ABLATION STUDIES
Component Ablation. As shown in Table 3, both Sparse Memory Propagation (SMP) and the lightweight decoder (LD) improve inference efficiency while maintaining comparable matting quality. Compared with the MatAnyone 2 baseline, SMP reduces latency from 73.53 ms to 44.18 ms and peak GPU memory from 5.47 GB to 2.78 GB, while LD reduces them to 66.61 ms and 4.35 GB, respectively. Combining both components gives the full MatAnyone-E model, achieving 37.59 ms latency, 26.6 FPS, and 1.66 GB peak memory.
Query-Selection Strategy. As shown in Table 4, we compare different strategies for selecting query locations for HR matching using the MatAnyone 2 checkpoint. The dense baseline performs HR matching at all query locations, while “LR only” uses only the LR readout without further HR matching. Under a similar HR query budget, uncertainty-guided selection achieves better matting quality than uniform sampling and alpha-boundary selection, while maintaining comparable latency. This supports using the uncertainty estimated from LR propagation to identify locations that benefit most from HR matching.
5 CONCLUSION
We presented MatAnyone-E, an efficient framework for high-resolution video matting. Our key insight is that dense high-resolution memory matching is largely redundant: only a subset of query locations requires precise retrieval, and only a subset of memory is relevant to them. By restricting native-resolution matching to selected query–memory pairs and reusing the upsampled low-resolution readout elsewhere, Sparse Memory Propagation substantially reduces the cost of temporal memory retrieval. A lightweight decoder further reduces high-resolution decoding cost through profiling-guided design and feature distillation. MatAnyone-E preserves the strong matting quality of MatAnyone 2 while achieving an estimated inference speedup and lower peak GPU memory at 4K. We believe selective high-resolution computation offers a practical direction for scaling memory-based video matting to high resolutions.
REFERENCES
Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Dominik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, et al. Stable Video Diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint, 2023.
Nicolas Carion, Laura Gustafson, Yuan-Ting Hu, Shoubhik Debnath, Ronghang Hu, Didac Suris Coll-Vinent, Chaitanya Ryali, Kalyan Vasudev Alwala, Haitham Khedr, Andrew Huang, et al. SAM 3: Segment anything with concepts. In ICLR, 2026.
Xinyi Chen, Hang Dong, Baowei Jiang, Shenkun Xu, Youqi Guan, Kanle Shi, Kun Gai, and Haichuan Song. Matte4K & Matting: Dataset and model for ultra-micro precision alpha video matting. In CVPR, 2026.
Ho Kei Cheng and Alexander G Schwing. XMem: Long-term video object segmentation with an Atkinson-Shiffrin memory model. In ECCV, 2022.
Ho Kei Cheng, Yu-Wing Tai, and Chi-Keung Tang. Rethinking space-time networks with improved memory coverage for efficient video object segmentation. In NeurIPS, 2021.
Ho Kei Cheng, Seoung Wug Oh, Brian Price, Joon-Young Lee, and Alexander Schwing. Putting the object back into video object segmentation. In CVPR, 2024.
Yongtao Ge, Kangyang Xie, Guangkai Xu, Li Ke, Mingyu Liu, Longtao Huang, Hui Xue, Hao Chen, and Chunhua Shen. Generative video matting. In SIGGRAPH, 2025.
Wei-Lun Huang and Ming-Sui Lee. End-to-end video matting with trimap propagation. In CVPR, 2023.
Chuong Huynh, Seoung Wug Oh, Abhinav Shrivastava, and Joon-Young Lee. MaGGIe: Masked guided gradual human instance matting. In CVPR, 2024.
Zhanghan Ke, Jiayu Sun, Kaican Li, Qiong Yan, and Rynson W.H. Lau. MODNet: Real-time trimap-free portrait matting via objective decomposition. In AAAI, 2022.
Jiachen Li, Vidit Goel, Marianna Ohanyan, Shant Navasardyan, Yunchao Wei, and Humphrey Shi. VMFormer: End-to-end video matting with transformer. In WACV, 2024a.
Jiachen Li, Roberto Henschel, Vidit Goel, Marianna Ohanyan, Shant Navasardyan, and Humphrey Shi. Video instance matting. In WACV, 2024b.
Sangbeom Lim, Seoung Wug Oh, Jiahui Huang, Heeji Yoon, Seungryong Kim, and Joon-Young Lee. VideoMaMa: Mask-guided video matting via generative prior. In CVPR, 2026.
Chung-Ching Lin, Jiang Wang, Kun Luo, Kevin Lin, Linjie Li, Lijuan Wang, and Zicheng Liu. Adaptive human matting for dynamic videos. In CVPR, 2023.
Shanchuan Lin, Andrey Ryabtsev, Soumyadip Sengupta, Brian L Curless, Steven M Seitz, and Ira Kemelmacher-Shlizerman. Real-time high-resolution background matting. In CVPR, 2021.
Shanchuan Lin, Linjie Yang, Imran Saleemi, and Soumyadip Sengupta. Robust high-resolution video matting with temporal guidance. In WACV, 2022.
Yu Qiao, Yuhao Liu, Xin Yang, Dongsheng Zhou, Mingliang Xu, Qiang Zhang, and Xiaopeng Wei. Attention-guided hierarchical structure aggregation for image matting. In CVPR, 2020.
Haotong Qin, Xianglong Liu, Xudong Ma, Lei Ke, Yulun Zhang, Jie Luo, and Michele Magno. BiVM: Accurate binarized neural network for efficient video matting. IEEE TPAMI, 2025.
Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Rolland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Alwala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Piotr Dollár, and Christoph Feichtenhofer. SAM 2: Segment anything in images and videos. ICLR, 2025.
Ruiqi Shen, Guangquan Jie, Chang Liu, and Henghui Ding. SAM2Matting: Generalized image and video matting. In ECCV, 2026.
Yanan Sun, Chi-Keung Tang, and Yu-Wing Tai. Ultrahigh resolution image/video matting with spatio-temporal sparsity. In CVPR, 2023.
Yunyang Xiong, Chong Zhou, Xiaoyu Xiang, Lemeng Wu, Chenchen Zhu, Zechun Liu, Saksham Suri, Balakrishnan Varadarajan, Ramya Akula, Forrest Iandola, et al. Efficient track anything. In ICCV, 2025.
Peiqing Yang, Shangchen Zhou, Jixin Zhao, Qingyi Tao, and Chen Change Loy. MatAnyone: Stable video matting with consistent memory propagation. In CVPR, 2025.
Peiqing Yang, Shangchen Zhou, Kai Hao, and Qingyi Tao. MatAnyone 2: Scaling video matting via a learned quality evaluator. In CVPR, 2026.
Chenyi Zhang, Yiheng Lin, Yunchao Wei, Hongsong Wang, Caifeng Shan, and Fang Zhao. Matting Anything 2: Towards video matting for anything. In ICLR, 2026a.
Huayu Zhang, Dongyue Wu, Yuanjie Shao, Nong Sang, and Changxin Gao. Object-aware video matting with cross-frame guidance. arXiv preprint, 2025.
Jing Zhang, Zhikai Li, Xuewen Liu, and Qingyi Gu. Efficient-SAM2: Accelerating SAM2 with object-aware visual encoding and memory retrieval. In ICLR, 2026b.
Yunke Zhang, Lixue Gong, Lubin Fan, Peiran Ren, Qixing Huang, Hujun Bao, and Weiwei Xu. A late fusion cnn for digital matting. In CVPR, 2019.
Chong Zhou, Chenchen Zhu, Yunyang Xiong, Saksham Suri, Fanyi Xiao, Lemeng Wu, Raghuraman Krishnamoorthi, Bo Dai, Chen Change Loy, Vikas Chandra, et al. EdgeTAM: On-device track anything model. In CVPR, 2025.
Bingke Zhu, Yingying Chen, Jinqiao Wang, Si Liu, Bo Zhang, and Ming Tang. Fast deep matting for portrait animation on mobile phone. In ACMMM, 2017.
APPENDIX
The appendix provides additional implementation details, efficiency analyses, and qualitative results that complement the main paper:
• Appendix A: Multi-level Sparse Memory Propagation
• Appendix B: Additional Efficiency Analysis
• Appendix C: Analysis of Memory Pruning
• Appendix D: Analysis of the Lightweight Decoder
• Appendix E: Efficiency Across GPU Architectures
• Appendix F: Additional Qualitative Results
A MULTI-LEVEL SPARSE MEMORY PROPAGATION
Algorithm 1 Multi-level Sparse Memory Propagation. : spatial downsampling ( ); : spatial upsampling; Unc: the inherited uncertainty predictor; : the -grid location containing ; : entries of inside the regions covered by . With a single level ( , ), it reduces to the formulation in the main paper.
Require: queries ( grid); memory , ; spatial budget ; uncertainty threshold ; keep ratio
Ensure: memory readout
1: function LEVELS( , , )
2:
3: while do
4:
5: end while
6: return
7: end function
8:
Low-resolution propagation
9:
10:
11: for do
12:
Query pruning
13:
14:
Memory pruning
15:
16: fraction of
17: ;
Sparse propagation
18:
19:
20:
21:
22: end for
23: return
For high-resolution inputs, we extend Sparse Memory Propagation (SMP) to multiple refinement levels. The number of levels is determined by the spatial size of the memory feature grid. Starting from the native feature resolution , we repeatedly downsample by a factor of two until the coarsest grid contains no more than spatial locations. This produces a sequence of scales , where corresponds to the native memory-feature resolution.
Propagation first operates densely at the coarsest level. The resulting memory readout is used to estimate uncertainty, and only query locations whose uncertainty exceeds the threshold are propagated at the next finer level. For these selected queries, we further restrict matching to a subset of memory candidates identified from the coarse affinities. Specifically, memory candidates are ranked according to their maximum affinity to the selected query regions, and only the top fraction is retained. Sparse propagation is then performed between the selected queries and retained memory candidates. The refined readouts replace the corresponding regions of the upsampled coarse result, while the remaining locations directly retain the coarse prediction. This process is repeated until the native memory-feature resolution is reached.
Algorithm 1 summarizes the complete procedure. When only a single refinement level is required, the algorithm reduces to the formulation described in the main paper. For all 4K experiments reported in the main paper, we consistently use a propagation schedule with the spatial budget set to .
B ADDITIONAL EFFICIENCY ANALYSIS
B.1 RUNTIME BOTTLENECKS OF MATANYONE 2
Table 5: Per-module runtime breakdown of MatAnyone 2 across resolutions and memory-bank sizes. Runtime is reported in milliseconds per frame. The 4K result with five memory frames is estimated because the full configuration exceeds GPU memory.
| Module | 1080p (mem=5) | 1440p (mem=5) | 4K (mem=2) | 4K (mem=3) | 4K (mem=5, est.) |
|---|---|---|---|---|---|
| Encoder | 9.12 | 15.81 | 34.11 | 34.10 | 34.11 |
| Memory Propagation | 34.35 | 115.94 | 314.58 | 469.65 | 779.80 |
| Object Transformer | 7.56 | 8.33 | 13.86 | 13.91 | 14.01 |
| Decoder | 17.59 | 30.37 | 67.21 | 67.22 | 67.22 |
| Value Encoder | 4.54 | 7.53 | 16.22 | 16.22 | 16.22 |
| Others | 0.73 | 0.85 | 1.25 | 1.34 | 1.51 |
| Total latency | 73.88 | 178.83 | 445.10 | 600.30 | ≈911.00 |
To better understand the source of high-resolution inference cost, we profile MatAnyone 2 at the module level across input resolutions and memory-bank sizes. As shown in Table 5, memory propagation increasingly dominates runtime as the spatial resolution grows, accounting for of the total runtime at 1080p and at 1440p. At 4K, the bottleneck becomes substantially more pronounced: increasing the memory bank from two to five frames raises the memory-propagation cost from 314.58 ms to an estimated 779.80 ms, while the runtime of the remaining modules remains nearly unchanged. Consequently, the total per-frame latency increases from 445.1 ms to approximately 911 ms. The decoder is the second-largest high-resolution component, but unlike memory propagation, its cost is largely independent of the memory-bank size. These results identify dense memory propagation as the primary runtime bottleneck of MatAnyone 2 at high resolution.
B.2 COMPONENT-WISE EFFICIENCY ANALYSIS
We next isolate the contribution of each component to inference efficiency. Table 6 progressively introduces query pruning (QP), memory pruning (MP), the lightweight decoder (LD), and compilation on top of MatAnyone 2.
Query pruning provides the largest reduction in memory-propagation cost, with increasingly pronounced gains at higher resolutions. At 4K, QP reduces latency from 909.09 ms to 157.67 ms and peak memory from 79.69 GB to 10.10 GB. Memory pruning further restricts matching along the memory dimension. Its effect is limited at 1080p and 1440p, but becomes substantially more im-
Table 6: Inference efficiency of MatAnyone-E components across resolutions. QP and MP denote query pruning and memory pruning, respectively, and LD denotes the lightweight decoder. Each row cumulatively adds the indicated component to the previous configuration. Latency is reported in milliseconds, peak memory in GB, and computational cost in TFLOPs per frame. Speedup is relative to MatAnyone 2 at the same resolution.
| Method | Latency (ms) ↓ | FPS ↑ | Speedup ↑ | Peak Mem. (GB) ↓ | FLOPs (TFLOPs) ↓ | Params (M) |
|---|---|---|---|---|---|---|
| 1080p | ||||||
| MatAnyone 2 | 73.53 | 13.6 | - | 5.47 | 1.20 | 35.25 |
| + QP | 42.90 | 23.3 | 1.71× | 2.69 | 0.97 | 35.25 |
| + MP | 44.18 | 22.6 | 1.66× | 2.78 | 0.96 | 35.25 |
| + LD | 37.59 | 26.6 | 1.96× | 1.66 | 0.69 | 31.32 |
| + Compilation | 26.60 | 37.6 | 2.76× | 1.07 | 0.69 | 31.32 |
| 1440p | ||||||
| MatAnyone 2 | 178.57 | 5.6 | - | 16.20 | 2.45 | 35.25 |
| + QP | 71.81 | 13.9 | 2.49× | 4.60 | 1.74 | 35.25 |
| + MP | 69.70 | 14.3 | 2.56× | 4.84 | 1.71 | 35.25 |
| + LD | 60.61 | 16.5 | 2.95× | 3.04 | 1.24 | 31.32 |
| + Compilation | 39.84 | 25.1 | 4.48× | 2.02 | 1.24 | 31.32 |
| 2160p | ||||||
| MatAnyone 2 | 909.09 | 1.1 | - | 79.69 | 7.76 | 35.25 |
| + QP | 157.67 | 6.3 | 5.77× | 10.10 | 3.91 | 35.25 |
| + MP | 143.55 | 7.0 | 6.33× | 10.18 | 3.77 | 35.25 |
| + LD | 123.46 | 8.1 | 7.36× | 6.08 | 2.72 | 31.32 |
| + Compilation | 73.53 | 13.6 | 12.36× | 3.89 | 2.72 | 31.32 |
| 4320p | ||||||
| MatAnyone 2 | OOM | - | >80 | - | 35.25 | |
| + QP | 1174.04 | 0.9 | - | 45.79 | 17.27 | 35.25 |
| + MP | 578.00 | 1.7 | - | 39.87 | 15.29 | 35.25 |
| + LD | 488.37 | 2.0 | - | 23.79 | 11.05 | 31.32 |
| + Compilation | 300.74 | 3.3 | - | 14.87 | 11.05 | 31.32 |
portant at larger spatial scales. At 8K, adding MP on top of QP reduces latency from 1174.04 ms to 578.00 ms and peak memory from 45.79 GB to 39.87 GB.
The lightweight decoder provides a complementary reduction in dense high-resolution computation. At 4K, it reduces latency from 143.55 ms to 123.46 ms, peak memory from 10.18 GB to 6.08 GB, and computational cost from 3.77 to 2.72 TFLOPs per frame. Compilation further improves runtime without changing the reported FLOPs or model parameters, reducing the 4K latency from 123.46 ms to 73.53 ms.
Overall, the results show that the main efficiency gains of MatAnyone-E come from reducing dense memory matching, while memory pruning becomes increasingly beneficial at very high resolutions and the lightweight decoder provides complementary savings in dense decoding.
B.3 RESOLUTION DEPENDENCE OF SPARSE MEMORY PROPAGATION
Sparse Memory Propagation relies on low-resolution uncertainty and affinities to guide query and memory selection, and its effectiveness therefore depends on the spatial resolution of the underlying feature grid. At lower input resolutions, the downsampled feature map can become too coarse to reliably localize uncertain regions or distinguish relevant memory candidates, limiting the benefit of selective matching.
This effect is particularly noticeable for query pruning. As shown in Table 6, its efficiency gain becomes more pronounced as the input resolution increases: the benefit is relatively modest at 1080p, becomes clearer at 1440p, and grows substantially at 4K and 8K. Memory pruning shows a similar resolution-dependent trend. Its additional gain is limited at 1080p and 1440p, but becomes much more significant at 8K, where the memory dimension is considerably larger.
These results indicate that Sparse Memory Propagation is most beneficial at high spatial resolutions, while its advantage can be limited when the low-resolution feature grid becomes too small.
C ANALYSIS OF MEMORY PRUNING
Table 7: Recall of dense memory matching under different memory pruning ratios.
| Keep ratio | KV retained | Recall count | Recall weight | Top-1 hit |
|---|---|---|---|---|
| 5% | 4.94% | 0.8318 | 0.8333 | 0.9363 |
| 10% | 9.84% | 0.9503 | 0.9508 | 0.9879 |
| 15% | 14.76% | 0.9805 | 0.9807 | 0.9962 |
| 20% | 19.71% | 0.9908 | 0.9909 | 0.9985 |
| 30% | 29.67% | 0.9977 | 0.9977 | 0.9997 |
| 50% | 49.70% | 0.9999 | 0.9999 | 1.0000 |
We further analyze how well the pruned memory set preserves the candidates selected by dense matching. Table 7 reports the retained KV ratio together with three recall statistics under different pruning ratios. Here, recall count measures the fraction of dense-matching candidates retained after pruning, recall weight measures the fraction of their affinity mass retained, and Top-1 hit measures the fraction of queries whose highest-affinity memory candidate is preserved.
The relevant memory candidates are highly concentrated. Retaining only of the memory bank already recovers approximately of the dense-matching candidates and weights, while preserving the original top-1 match for of queries. At our default keep ratio of , the retained memory set preserves of both candidate count and affinity weight, with a top-1 hit rate of . Increasing the keep ratio beyond yields diminishing improvements in recall.
These results indicate that coarse affinities provide a reliable signal for identifying query-relevant memory candidates. We therefore use a keep ratio in our experiments as a trade-off between retaining relevant memory and pruning redundant memory before high-resolution matching.
D ANALYSIS OF THE LIGHTWEIGHT DECODER
Table 8: Stage-wise profiling of the MatAnyone 2 decoder. AI denotes arithmetic intensity, and “Regime” indicates whether each block is compute-bound or memory-bound.
| Block | Params (K) | Precision | Ridge Point | AI | Regime |
|---|---|---|---|---|---|
| up_16_8 | 475.5 | FP16 TC | 153.0 | 530.0 | Compute |
| up_8_4 | 295.2 | FP16 TC | 153.0 | 461.0 | Compute |
| up_4_2 | 119.0 | FP16 TC | 153.0 | 265.0 | Compute |
| up_2_1 | 12.6 | FP16 TC | 153.0 | 71.0 | Memory |
| pred_mat | 0.1 | FP32/TF32 | 76.5 | 4.2 | Memory |
We further profile the decoder stages to characterize their different computational regimes. Table 8 reports the parameter count, arithmetic intensity, and hardware regime of each decoder block. The lower-resolution stages exhibit relatively high arithmetic intensity and remain compute-bound, whereas the final high-resolution stages have substantially lower arithmetic intensity and become memory-bound.
Table 9: Inference efficiency of MatAnyone-E across GPU architectures. Each GPU reports FPS / peak memory (GB). “w/o” and “w/” denote inference without and with compilation.
| Resolution | Comp. | RTX 3090 | RTX 5090 | RTX A6000 | A800 | H200 NVL | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FPS | Mem. | FPS | Mem. | FPS | Mem. | FPS | Mem. | FPS | Mem. | ||
| w/o | 33.60 | 0.87 | 70.38 | 0.89 | 34.63 | 0.87 | 41.37 | 0.92 | 71.57 | 0.89 | |
| w/ | 45.97 | 0.50 | 95.53 | 0.52 | 50.97 | 0.50 | 47.37 | 0.61 | 102.10 | 0.52 | |
| 1080p | w/o | 19.81 | 1.61 | 39.91 | 1.71 | 19.29 | 1.61 | 26.55 | 1.66 | 45.22 | 1.63 |
| w/ | 29.37 | 0.87 | 61.53 | 1.11 | 30.44 | 0.87 | 37.64 | 1.07 | 73.07 | 1.05 | |
| 1440p | w/o | 11.99 | 2.98 | 22.42 | 3.00 | 11.48 | 2.98 | 16.51 | 3.04 | 29.22 | 3.00 |
| w/ | 18.27 | 1.89 | 36.10 | 1.90 | 18.43 | 1.89 | 25.11 | 2.02 | 52.89 | 1.90 | |
| 2160p | w/o | 5.69 | 6.09 | 10.54 | 6.11 | 5.51 | 6.09 | 8.14 | 6.08 | 14.38 | 6.12 |
| w/ | 9.00 | 3.16 | 19.10 | 3.18 | 9.40 | 3.16 | 13.63 | 3.89 | 28.62 | 3.18 | |

Figure 5: Additional qualitative comparisons at 2K and 4K resolutions. We show additional examples comparing MatAnyone-E with MatAnyone, VideoMaMa, and SAM2Matting.
This motivates us to adopt a stage-dependent lightweight design rather than a uniform operator replacement across all decoder stages. For the compute-bound lower-resolution stages, we use depthwise-separable convolutions to reduce arithmetic cost. For the high-resolution stages, where memory traffic becomes increasingly important, we instead reduce channel width while retaining dense convolutions. Together, these choices reduce decoder cost while accounting for the different computational characteristics of individual stages.
E EFFICIENCY ACROSS GPU ARCHITECTURES
To evaluate the efficiency of MatAnyone-E across hardware platforms, we benchmark it on five GPUs spanning consumer, professional, and datacenter classes. Table 9 reports throughput and peak GPU memory across four resolutions, with and without compilation.
Across all tested GPUs, MatAnyone-E exhibits consistent scaling trends as the input resolution increases. Compilation further improves throughput and reduces peak memory across devices. At 4K, the compiled model reaches 9.0 FPS on an RTX 3090, 19.1 FPS on an RTX 5090, 9.4 FPS on an RTX A6000, 13.6 FPS on an A800-SXM4-80GB, and 28.6 FPS on an H200 NVL. These results show that the efficiency characteristics of MatAnyone-E remain consistent across a wide range of GPU architectures.
F ADDITIONAL QUALITATIVE RESULTS
Additional Qualitative Comparison. Figure 5 provides additional qualitative comparisons at 2K and 4K resolutions, complementing the examples shown in the main paper.

Video Frame
MA2 Ours
(a) Comparison at 2K input
Video Frame
MA2*
Ours
Video Frame
MA2*
Ours
(b) Comparison at 4K input (MA2* runs at 2K due to memory constraint)
Figure 6: Comparison with MatAnyone 2 at high resolution. MA2 denotes MatAnyone 2. (a) Comparison at 2K input resolution, where MatAnyone-E achieves detail accuracy comparable to that of MA2. (b) Comparison at 4K input resolution, where MA2* is evaluated at 2K because its full 4K configuration exceeds available GPU memory, while MatAnyone-E directly processes the native 4K input. As a result, MA2* gives blurry details due to direct upsampling, and sometimes makes semantic mistakes when differentiating foreground from background.
Comparison with MatAnyone 2. Figure 6 provides additional comparisons with the direct baseline. At 2K, MatAnyone-E preserves finer hair structures, while the advantage becomes more apparent for 4K inputs, where MatAnyone-E can directly process the native resolution.
Additional High-Resolution Results. Figure 7 presents qualitative results on a real-world 4K sequence with complex curly hair. Despite the dense and irregular hair boundaries, MatAnyone-E preserves fine foreground structures across frames. We further demonstrate MatAnyone-E on three additional high-resolution sequences covering diverse scenarios: multi-person scenes (Fig. 8) and AI-generated content (Fig. 9). These results illustrate the ability of MatAnyone-E to maintain detailed foreground boundaries and temporally consistent matting results across different types of high-resolution content.

Frame 072

Frame 142
Figure 7: Additional 4K matting results on a challenging real-world sequence. For each example, we show the input frame, predicted alpha matte, and the foreground composited on a green background. MatAnyone-E preserves fine and complex hair structures across frames, including thin strands and highly irregular boundaries around the curly hair.

Frame 058
Frame129
Figure 8: 4K matting results on a multi-person sequence (3840×2160). We show two frames with the input images (top), predicted alpha mattes (middle), and foregrounds composited on a green background (bottom).

Frame 005

Frame 099
Figure 9: High-resolution matting results on an AI-generated sequence (1440×2144). We show two frames with the input images (left), predicted alpha mattes (middle), and foregrounds composited on a green background (right).