Referring Expression Comprehension Using Language Adaptive Inference

Wei Su, Peihan Miao, Huanzhang Dou, Yongjian Fu, Xi Li

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."

Overview of the LADS framework showing query-specific subnet activation.

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.

The LADS architecture featuring visual and linguistic backbones with a modality interaction module and gating network.

Core Components

  1. The Supernet: Comprises a visual backbone (typically ResNet), a linguistic backbone (BERT), and a modality interaction module (Transformer).
  2. 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.
  3. Bi-level Selection: LADS performs pruning at two granularities:
  4. Layer-level: Selecting specific residual blocks or transformer layers.
  5. Filter-level: Identifying specific convolutional filters (channels) within those layers that are relevant to the query.
  6. 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

BibTeX
@inproceedings{su2023referring,
  author = {Wei Su and Peihan Miao and Huanzhang Dou and Yongjian Fu and Xi Li},
  title = {{Referring Expression Comprehension Using Language Adaptive Inference}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i2.25331},
}
Figure