Abstract
Visual grounding and referring expression segmentation have traditionally relied on complex, multi-stage architectures with separate encoders for vision and language. We present OneRef, a minimalist framework that unifies these tasks into a single, modality-shared "one-tower" transformer. By introducing a novel pre-training paradigm called Mask Referring Modeling (MRefM), OneRef learns deep cross-modal alignments without the need for heavy fusion modules. Our approach achieves state-of-the-art results across major benchmarks while being significantly more efficient and up to 10x faster than previous methods.
Introduction
Connecting linguistic expressions to specific visual regions—a task known as "grounding"—is fundamental to vision-language understanding. Traditional models for Referring Expression Comprehension (REC) and Referring Expression Segmentation (RES) typically employ a "two-tower" design. These models use independent encoders for images and text, followed by complex fusion transformers or decoders to bridge the modality gap. However, these fusion modules introduce substantial computational overhead and often struggle with fine-grained referential alignment.
OneRef addresses these challenges by adopting a unified one-tower structure based on the BEiT-3 architecture. By treating image patches and text tokens as equivalent inputs in a shared feature space, OneRef eliminates the need for bulky interaction layers, resulting in a more streamlined and efficient architecture.
Methods
The core innovation of OneRef lies in its unified backbone and the Mask Referring Modeling (MRefM) pre-training paradigm.
One-Tower Architecture
Unlike previous models that "glue" separate encoders together, OneRef uses a single Transformer that processes both modalities simultaneously. This allows for early and deep interaction between visual and textual features. Because the backbone is inherently cross-modal, the task-specific "heads" can be extremely lightweight: a simple 3-layer MLP for REC and a basic deconvolutional head for RES.
Mask Referring Modeling (MRefM)
To train the one-tower encoder for precise grounding, the authors introduced MRefM, which consists of two key components:
- Referring-aware Mask Image Modeling (Referring MIM): Instead of random masking, OneRef employs a dynamic strategy that masks the referred object at a higher ratio. The model must reconstruct the masked pixels and predict "visual target-relation scores" (distance to center and dimensions), forcing it to use the text query to reason about the missing object.
- Referring-aware Mask Language Modeling (Referring MLM): When masking text, the model reconstructs the words while predicting the correlation between each word and the referred image region.
Results and Discussion
OneRef was evaluated on major benchmarks including RefCOCO, RefCOCO+, RefCOCOg, ReferItGame, and Flickr30k Entities. Key findings include:
- State-of-the-Art Performance: OneRef-L (0.6B parameters) consistently outperformed previous state-of-the-art methods like HiVG and Grounding-DINO. Notably, it surpassed LION, a model 20–60 times its size.
- Efficiency and Speed: The grounding head in OneRef is remarkably small (1.7M parameters) compared to the 20M+ parameters found in traditional fusion-based models. In inference tests, OneRef demonstrated speeds up to 10x faster than TransVG++ and Grounding-DINO.
- Generalization: The model showed strong zero-shot potential in unsupervised settings using the FH algorithm, indicating that the MRefM paradigm effectively captures generalizable cross-modal relationships.
Conclusion
OneRef demonstrates that a minimalist one-tower architecture, when paired with a referential-aware pre-training strategy, can outperform significantly larger and more complex systems. While the current paradigm relies on bounding box data for pre-training, future work will focus on scaling MRefM to massive, web-scale datasets without explicit annotations. OneRef represents a significant step toward more efficient and accurate vision-language grounding.
Summary updated