An Efficient and Effective Transformer Decoder-Based Framework for Multi-Task Visual Grounding
Wei Chen, Long Chen, Yu Wu
TL;DR
The paper tackles the quadratic cost of Transformer self-attention in cross-modal visual grounding by proposing EEVG, a Decoder-only MTVG framework that treats linguistic features as memory and visual features as queries to achieve linear scaling with language length. It combines a parameter-free token-elimination strategy to prune background visual tokens with a lightweight MLP-based mask head that directly maps sparse tokens to segmentation masks, enabling end-to-end multi-task training for REC and RES. The approach yields state-of-the-art results on RefCOCO, RefCOCO+, and especially RefCOCOg, while delivering substantial speedups (e.g., ~28.19% FPS over PolyFormer) and strong generalization on GRES. These innovations make visual grounding more scalable to long-context dialogs and open-vocabulary scenarios, with practical implications for real-time and resource-constrained systems.
Abstract
Most advanced visual grounding methods rely on Transformers for visual-linguistic feature fusion. However, these Transformer-based approaches encounter a significant drawback: the computational costs escalate quadratically due to the self-attention mechanism in the Transformer Encoder, particularly when dealing with high-resolution images or long context sentences. This quadratic increase in computational burden restricts the applicability of visual grounding to more intricate scenes, such as conversation-based reasoning segmentation, which involves lengthy language expressions. In this paper, we propose an efficient and effective multi-task visual grounding (EEVG) framework based on Transformer Decoder to address this issue, which reduces the cost in both language and visual aspects. In the language aspect, we employ the Transformer Decoder to fuse visual and linguistic features, where linguistic features are input as memory and visual features as queries. This allows fusion to scale linearly with language expression length. In the visual aspect, we introduce a parameter-free approach to reduce computation by eliminating background visual tokens based on attention scores. We then design a light mask head to directly predict segmentation masks from the remaining sparse feature maps. Extensive results and ablation studies on benchmarks demonstrate the efficiency and effectiveness of our approach. Code is available in https://github.com/chenwei746/EEVG.
