Memory Efficient Matting with Adaptive Token Routing
Not on the map. Why?
Abstract (arXiv)
Transformer-based models have recently achieved outstanding performance in image matting. However, their application to high-resolution images remains challenging due to the quadratic complexity of global self-attention. To address this issue, we propose MEMatte, a memory-efficient matting framework for processing high-resolution images. MEMatte incorporates a router before each global attention block, directing informative tokens to the global attention while routing other tokens to a Lightweight Token Refinement Module (LTRM). Specifically, the router employs a local-global strategy to predict the routing probability of each token, and the LTRM utilizes efficient modules to simulate global attention. Additionally, we introduce a Batch-constrained Adaptive Token Routing (BATR) mechanism, which allows each router to dynamically route tokens based on image content and the stages of attention block in the network. Furthermore, we construct an ultra high-resolution image matting dataset, UHR-395, comprising 35,500 training images and 1,000 test images, with an average resolution of 4872×6017. This dataset is created by compositing 395 different alpha mattes across 11 categories onto various backgrounds, all with high-quality manual annotation. Extensive experiments demonstrate that MEMatte outperforms existing methods on both high-resolution and real-world datasets, significantly reducing memory usage by approximately 88% and latency by 50% on the Composition-1K benchmark. Our code is available at https://github.com/linyiheng123/MEMatte.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 22 of its 31 references that are in the map. First posted on arXiv 14 Dec 2024.
Builds on
22 of 31 references.
References · 22
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2022Token Merging: Your ViT But Fastercited by 1,021
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2019ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networkscited by 575
- 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 363
- 2020Real-Time High-Resolution Background Mattingcited by 173
- 2017Deep Image Mattingcited by 150
- 2020MODNet: Real-Time Trimap-Free Portrait Matting via Objective Decompositioncited by 127
- 2019Indices Matter: Learning to Index for Deep Image Mattingcited by 93
10 more
- 2020Mask Guided Matting via Progressive Refinement Networkcited by 84
- 2020Natural Image Matting via Guided Contextual Attentioncited by 78
- 2022What do Vision Transformers Learn? A Visual Explorationcited by 76
- 2016Vote3Deep: Fast Object Detection in 3D Point Clouds Using Efficient Convolutional Neural Networkscited by 72
- 2021Deep Automatic Natural Image Mattingcited by 59
- 2021Semantic Image Mattingcited by 55
- 2020F, B, Alpha Mattingcited by 50
- 2022MatteFormer: Transformer-Based Image Matting via Prior-Tokenscited by 48
- 2023Skip-Attention: Improving Vision Transformers by Paying Less Attentioncited by 24
- 2022Boosting Robustness of Image Matting with Context Assembling and Strong Data Augmentationcited by 22
Built on by
Not cited yet.