An End-to-End Approach to Natural Language Object Retrieval via Context-Aware Deep Reinforcement Learning

Fan Wu, Zhongwen Xu, Yi YangarXiv 2017

Abstract

We propose an end-to-end approach to the natural language object retrieval task, which localizes an object within an image according to a natural language description, i.e., referring expression. Previous works divide this problem into two independent stages: first, compute region proposals from the image without the exploration of the language description; second, score the object proposals with regard to the referring expression and choose the top-ranked proposals. The object proposals are generated independently from the referring expression, which makes the proposal generation redundant and even irrelevant to the referred object. In this work, we train an agent with deep reinforcement learning, which learns to move and reshape a bounding box to localize the object according to the referring expression. We incorporate both the spatial and temporal context information into the training procedure. By simultaneously exploiting local visual information, the spatial and temporal context and the referring language a priori, the agent selects an appropriate action to take at each time. A special action is defined to indicate when the agent finds the referred object, and terminate the procedure. We evaluate our model on various datasets, and our algorithm significantly outperforms the compared algorithms. Notably, the accuracy improvement of our method over the recent method GroundeR and SCRC on the ReferItGame dataset are 7.67% and 18.25%, respectively.

Introduction

Natural language object retrieval—the task of localizing an object in an image based on a natural language description—is a fundamental challenge at the intersection of computer vision and natural language processing. Traditional methods typically rely on a two-stage "propose-and-rank" pipeline. First, an object detector generates a set of region proposals. Second, these proposals are ranked against the text query. However, this approach is inherently limited: proposal generation is query-blind, leading to redundant computations and potential failure if the target object is not among the initial proposals.

Proposed Method: Sequential Search via DRL

We propose an end-to-end reinforcement learning framework that treats object retrieval as a sequential decision-making process. Instead of selecting from a fixed set of proposals, an agent actively searches the image by iteratively refining a bounding box based on the specific language query.

The agent iteratively refines a bounding box to localize the target described by the natural language query.

Agent and Environment

The task is modeled as a Markov Decision Process (MDP). The agent starts with a bounding box covering the entire image and selects actions to move or reshape it. The action space includes eight transformations (Up, Down, Left, Right, Longer, Fatter, Shorter, Thinner) and a special "Trigger" action to terminate the search once the target is found.

Context-Aware Architecture

The agent's policy is driven by a deep neural network that integrates three critical sources of information:

  1. Visual Features: Local features from the current box and global spatial context from the entire image are extracted using a ResNet-152 backbone.
  2. Language Features: The text query is encoded into a high-dimensional vector using Skip-thought vectors.
  3. Temporal Context: An LSTM unit maintains a history of previous states and actions, preventing cycles and providing a sense of search progress.
The network architecture fuses visual, language, and temporal context to predict the next action and state value.

Training

The model is trained using the Asynchronous Advantage Actor-Critic (A3C) algorithm. This allows multiple agents to explore different images in parallel, significantly improving training stability and efficiency by learning from a diverse set of asynchronous experiences.

Experimental Results

We evaluated our approach on several benchmark datasets, including ReferItGame, RefCOCO, RefCOCO+, and Google Refexp.

Performance Comparison

Our method consistently outperforms state-of-the-art proposal-based methods. On the ReferItGame dataset, our agent achieved an accuracy of 36.18%, representing a significant improvement over GroundeR (28.51%) and SCRC (17.93%). The agent proved particularly capable of finding small parts of objects (like "his hat") and resolving ambiguous scenes with multiple similar people.

Ablation Study

Ablation experiments confirmed the importance of context. Removing spatial context (global image view) or temporal context (LSTM memory) led to a marked decrease in localization accuracy. Spatial context is particularly vital for resolving relative descriptions like "the man on the left," while temporal context ensures the agent does not repeat unproductive search steps.

Conclusion

By shifting from a static proposal-ranking paradigm to a dynamic, query-driven search, our reinforcement learning agent achieves superior performance in natural language object retrieval. The integration of spatial and temporal context allows the agent to navigate complex scenes and resolve ambiguous descriptions effectively. Future work will explore more complex reward structures to further refine the agent's search efficiency in highly cluttered environments.

Summary updated

BibTeX
@misc{wu2017end,
  author = {Fan Wu and Zhongwen Xu and Yi Yang},
  title = {{An End-to-End Approach to Natural Language Object Retrieval via Context-Aware Deep Reinforcement Learning}},
  year = {2017},
  eprint = {1703.07579},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.07579},
}
Figure