Deep Binaries: Encoding Semantic-Rich Cues for Efficient Textual-Visual Cross Retrieval

Yuming Shen, Li Liu, Ling Shao, Jingkuan Song

Introduction

Cross-modal retrieval—the ability to seamlessly search for images using text queries or vice versa—is a fundamental challenge in modern information retrieval. To achieve efficiency at scale, researchers typically employ hashing, which maps high-dimensional data into compact binary strings within a Hamming space. This approach allows for extremely fast matching and low memory overhead.

However, traditional cross-modal hashing methods often suffer from being "semantic-poor." They frequently treat images as holistic global features and text as simple bags-of-words or tags. This limitation becomes apparent when dealing with "semantic-rich" data, such as complex sentences describing specific interactions between multiple objects (e.g., "a person laying down underneath an umbrella next to the beach"). Standard models might capture the general context of the "beach" but fail to encode the specific presence or relationship of the "person" and the "umbrella."

Conceptual comparison of TVDB vs. traditional hashing for semantic-rich queries.

To address this, we present Textual-Visual Deep Binaries (TVDB), a novel framework designed to bridge the gap between descriptive text and detailed image regions by encoding fine-grained semantic cues into high-quality binary codes.

The TVDB Architecture

The TVDB framework utilizes two specialized deep networks to capture structural and regional details that are often lost in global representations.

Detailed architecture of the Textual-Visual Deep Binaries (TVDB) framework.

Image Binary Encoding Network

Rather than processing the entire image as a single unit, TVDB employs a Region Proposal Network (RPN) to identify salient objects and regions. These regions are ranked by an "attraction score" and processed sequentially by a Long Short-Term Memory (LSTM) unit. This "dominant-to-minor" processing mimics human visual attention, ensuring that primary subjects anchor the binary code while secondary details provide necessary nuance. The final image representation is a fusion of these sequential regional cues and holistic image features.

Text Binary Encoding Network

To handle long, descriptive sentences, TVDB moves beyond simple word-count vectors to a Textual Convolutional Neural Network (Text-CNN). By applying convolutional filters to word embeddings, the network captures the structural and contextual dependencies between words. This ensures that the specific relationships described in a sentence (e.g., the difference between "man bites dog" and "dog bites man") are preserved in the resulting binary hash.

Optimization and Learning

Training binary networks is challenging because the "sign" function used to generate binary codes is non-differentiable, leading to the vanishing gradient problem. TVDB overcomes this using Stochastic Batch-Wise Code Learning. This alternating optimization strategy updates both the binary codes and network parameters within every mini-batch. By treating binary codes as auxiliary variables, the model achieves faster convergence and produces more discriminative codes without requiring full-epoch iterations for code updates.

Experimental Evaluation

The TVDB model was evaluated on three benchmark datasets: Microsoft COCO, IAPR TC-12, and INRIA Web Queries.

Key results include:

  • Superior Accuracy: On the MS COCO dataset using 128-bit codes, TVDB achieved a Mean Average Precision (MAP) of 0.818 for image-to-text retrieval, significantly outperforming previous state-of-the-art deep hashing methods like DVSH (0.755).
  • Qualitative Performance: Qualitative tests demonstrated that TVDB successfully retrieves images for multi-object queries (e.g., "people on bicycles at nighttime") where competing models often returned results matching only a single keyword.
  • Ablation Validation: Internal studies confirmed that both the regional image features and the Text-CNN architecture are critical; removing either component resulted in a substantial performance decline.

Conclusion and Future Work

TVDB demonstrates that incorporating regional image cues and structural text dependencies is essential for high-quality cross-modal retrieval. While the current model relies on a pre-trained RPN and a fixed sentence length (12 words), it sets a new benchmark for efficiency and accuracy in semantic-rich hashing. Future research may explore end-to-end training of the region proposal component and more advanced attention mechanisms to further refine the encoding of complex scenes.

Summary updated

BibTeX
@inproceedings{shen2017deep,
  author = {Yuming Shen and Li Liu and Ling Shao and Jingkuan Song},
  title = {{Deep Binaries: Encoding Semantic-Rich Cues for Efficient Textual-Visual Cross Retrieval}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
}
Figure