Abstract
Referring Expression Comprehension (REC) involves identifying specific objects in an image based on natural language descriptions. Traditional models employ a fixed-structure neural network for all queries, leading to computational waste and potential noise. We present Language Adaptive Dynamic Subnets (LADS), a framework that dynamically prunes a large supernet into a compact, query-specific subnet. By performing bi-level selection at both the layer and filter levels based on linguistic input, LADS achieves state-of-the-art accuracy and significantly faster inference times.
Introduction
Referring Expression Comprehension (REC) is a fundamental task in computer vision and natural language processing that requires a model to locate a specific object in an image given a natural language description. Unlike standard object detection, REC must interpret complex, open-ended queries such as "the small girl in a green shirt being held by her father."
A significant limitation of existing REC models is their reliance on a static, "one-size-fits-all" architecture. Regardless of whether a query is simple ("the car") or complex ("the black car in the back"), these models utilize the entire network. This approach is computationally inefficient and can introduce noise from irrelevant features. To address this, researchers have developed Language Adaptive Dynamic Subnets (LADS), which adapt the model's architecture on the fly based on the linguistic input.
Methodology
The LADS framework treats the REC network as a "supernet"—a comprehensive architecture containing numerous potential sub-architectures. The core innovation lies in its ability to extract a query-specific subnet that contains only the necessary components for a given task.
Core Components
- The Supernet: Comprises a visual backbone (typically ResNet), a linguistic backbone (BERT), and a modality interaction module (Transformer).
- Gating Network: Acting as the system's control center, this network processes linguistic features to generate binary gates that determine which parts of the supernet to activate.
- Bi-level Selection: LADS performs pruning at two granularities:
- Layer-level: Selecting specific residual blocks or transformer layers.
- Filter-level: Identifying specific convolutional filters (channels) within those layers that are relevant to the query.
- Mutual Information (MI) Constraint: To ensure the gating mechanism effectively responds to language, the authors maximize the Mutual Information between the expressions and the selected subnets, preventing the model from defaulting to a static configuration.
Key Insights and Results
The LADS approach offers several advantages over traditional fixed-structure models:
- Language-Driven Pruning: Unlike most dynamic networks that prune based on image content, LADS prunes based on text. This allows the model to optimize its structure before processing the bulk of the visual data.
- Module Specialization: Analysis reveals that different parts of the network specialize in different types of information. The visual backbone gates tend to respond to categories and attributes, while the interaction module gates focus on spatial and contextual relationships.
- Dynamic Denoising: Surprisingly, using a smaller subnet often leads to higher accuracy. By removing irrelevant filters, the model effectively performs "dynamic denoising," focusing strictly on features pertinent to the target object.
Performance Benchmarks
LADS was evaluated on standard REC datasets, including RefCOCO, RefCOCO+, RefCOCOg, and Referit. It demonstrated superior performance in both speed and precision:
- Speed: LADS achieves an inference time of 18–20ms on an NVIDIA 1080 Ti, significantly outperforming models like MDETR (65ms).
- Accuracy: On RefCOCO, LADS reached 82.85% validation accuracy, surpassing previous state-of-the-art one-stage methods by 2-4%.
Conclusion
Language Adaptive Dynamic Subnets represent a significant step forward in efficient and accurate Referring Expression Comprehension. By dynamically tailoring the network architecture to the specific linguistic query, LADS reduces computational overhead while improving localization precision. Future work may explore combining language-dependent selection with image-dependent cues for even more granular architectural control.
Summary updated