---
title: "Equally-Guided Discriminative Hashing for Cross-modal Retrieval"
authors:
  - "Yufeng Shi"
  - "Xinge You"
  - "Feng Zheng"
  - "Shuo Wang"
  - "Qinmu Peng"
doi: "10.24963/ijcai.2019/662"
url: "https://ijcai.org/proceedings/2019/662"
pdf: "https://ijcai.org/proceedings/2019/0662.pdf"
venue: "Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence"
year: 2019
pages: "4767-4773"
track: "Main track"
keywords:
  - "Computer Vision: Recognition: Detection, Categorization, Indexing, Matching, Retrieval, Semantic Interpretation"
  - "Machine Learning Applications: Applications of Supervised Learning"
  - "Machine Learning: Deep Learning"
  - "Multidisciplinary Topics and Applications: Information Retrieval"
---

# Equally-Guided Discriminative Hashing for Cross-modal Retrieval

Yufeng Shi, Xinge You, Feng Zheng, Shuo Wang, Qinmu Peng

*Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence*, pages 4767-4773. DOI: [10.24963/ijcai.2019/662](https://doi.org/10.24963/ijcai.2019/662)

## Abstract

Cross-modal hashing intends to project data from two modalities into a common hamming space to perform cross-modal retrieval efficiently. Despite satisfactory performance achieved on real applications, existing methods are incapable of effectively preserving semantic structure to maintain inter-class relationship and improving discriminability to make intra-class samples aggregated simultaneously, which thus limits the higher retrieval performance. To handle this problem, we propose Equally-Guided Discriminative Hashing (EGDH), which jointly takes into consideration semantic structure and discriminability. Specifically, we discover the connection between semantic structure preserving and discriminative methods. Based on it, we directly encode multi-label annotations that act as high-level semantic features to build a common semantic structure preserving classifier. With the common classifier to guide the learning of different modal hash functions equally, hash codes of samples are intra-class aggregated and inter-class relationship preserving. Experimental results on two benchmark datasets demonstrate the superiority of EGDH compared with the state-of-the-arts.

## Full text

## 1 Introduction

With the exponential growth of multimedia data in Internet, cross-modal retrieval that aims to retrieve samples from one modality with a given query from another modality, is increasingly important and draws much attention in machine learning. Despite the empirical success in information retrieval [Radenovi´c et al., 2018], cross-modal retrieval [Hwang and Grauman, 2012; Peng et al., 2018] is still a challenging problem due to the heterogeneity between modalities (e.g., image and text). To better tackle this problem, hashing based methods gradually become the mainstream approach in the area in recent years due to its low memory usage and high query speed [Wang et al., 2018; Peng et al., 2018].

∗Contact Author

Substantial efforts have been made to remove modality heterogeneity [Ding et al., 2016; Wang et al., 2017; Cao et al., 2018; Wu et al., 2019]. One of the most wellknown method is Cross-view Hashing (CVH) [Kumar and Udupa, 2011], which minimizes the similarity weighted distances between modalities. Another commonly used method, Inter-media Hashing (IMH) [Song et al., 2013], encodes data to achieve the inter-modal consistency and intra-modal consistency. Moreover, Semantic Topic Multimodal Hashing (STMH) [Wang et al., 2015] attempts to learn hash codes by taking into consideration latent semantic information. Despite the effective elimination of heterogeneity, aforementioned methods neglect supervised information, resulting in the performance degradation. To circumvent this problem, some work has devoted to taking fully advantage of discriminant information including semantic structure preserving based approaches [Deng et al., 2018; Ma et al., 2018] and discriminative approaches [Wang et al., 2016; Xu et al., 2016; Liu and Qi, 2018], where the former aim to express mutual similarity such as pair-wise or triplet-wise relationship, whereas the latter regard hash codes as representative features for discriminative classification.

The representative semantic structure preserving based approach, Semantic Correlation Maximization (SCM) [Zhang and Li, 2014], uses hash codes to reconstruct semantic similarity matrix. Semantics-Preserving Hashing (SePH) [Lin et al., 2015] minimizes KL-divergence between the hash codes and semantics distributions. Pairwise Relationship Guided Deep Hashing (PRDH) [Yang et al., 2017] was thereafter proposed to maximize pairwise semantic inter-modal similarities and intra-modal similarities. Although this type of methods significantly improve the performance by the further consideration of label information, they only focus on inter-class relationships and can not push samples of the same class to aggregate together.

As another type of approach, Multimodal Discriminative Binary Embedding (MDBE) [Wang et al., 2016] formulates the hash function learning in terms of classification to obtain discriminative hash codes. Discriminant Cross-modal Hashing [Xu et al., 2016] regards hash codes as features which are easily classified and builds one common classifier for different modalities. Following the same idea, Discriminative Cross-View Hashing (DCVH) [Liu and Qi, 2018] develops a neural network to fit modal-specific classifiers for different modalities. Compared with semantic structure preserving methods, discriminability based methods view hash codes as easily-classified features to make intra-class samples get close to each other. However, it is obvious that these discriminative methods neglect inter-class relationships which are classical focus of semantic structure preserving methods.

From the in-depth analysis, the preservation of semantic structure and the enhancement of discriminability of hash codes are equally vital for cross-modal retrieval, and it can be expected that the joint consideration can effectively improve retrieval performance. To this end, we propose EquallyGuided Discriminative Hashing (EGDH) algorithm to take into account semantic structure and discriminability in a joint manner based on the connection between classification and hashing-based retrieval tasks, resulting in discriminative hash codes which can also preserve semantic structure. Specifically, the proposed EGDH consists of three sub-networks, where the first one (i.e., labNet) is used to learn a common classifier and the last two modal-specific sub-networks (i.e., imgNet and txtNet) aim to build hash functions of different modalities. Since semantic structure preservation has been considered in the process of common classifier learning, the discriminative hash codes generated from imgNet (or txtNet) also have the ability to represent semantic structure. In conclusion, the contributions of this paper are threefold:

- We propose a novel deep cross-modal hashing method, which cooperates hashing-based retrieval with classification to preserve semantic structure and make hash codes discriminative simultaneously in a unified deeplearning framework.
- We find that angle can connect Hamming distance and classification under a special circumstance, where the intra-class samples aggregate together while preserve inter-class relationship.
- Extensive experiments on two benchmark datasets demonstrate that the proposed EGDH algorithm outperforms other baselines methods for cross-modal hashing retrieval.

The rest of this paper is organized as follows. The proposed EGDH and its optimization are introduced in Sect. 2 and experiments are conducted in Sect. 3. Finally, Sect. 4 concludes this paper.

## 2 Equally-Guided Discriminative Hashing

In this section, we present Equally-Guided Discriminative Hashing (EGDH) in detail. Here, we apply the method in two most frequently-used modalities, image and text.

## 2.1 Notation and ProblemDefinition

Matrix and vector used in this paper are represented as boldface uppercase letter (e.g., W) and boldface lowercase letter (e.g., w), respectively. ‖·‖ represents the 2-norm of vectors. sign(·) represents the sign function, which outputs 1 if its input is positive else outputs -1.

<!-- formula-not-decoded -->

are represented by Y = {yk}N3 k=1 .Following [Lin et al., 2015; Cao et al., 2016; Jiang and Li, 2017], we define the semantic similarity matrix SN1×N2 between x1i and x2j using class labels. If x1i and x2j share at least one category, they are similar and Sij = 1. Otherwise, they are dissimilar and Sij = 0. Given the code length c, the cross-modal hashing is to build specific hash functions f 1 (x1 ) : Rd1 → {-1,1}c and f 2 (x2 ) : Rd2 → {-1,1}c for images and texts. Meanwhile, the Hamming distance D (h1i , h2j ) between hash codes h1i = f 1 (x1i ) and h2j = f 2 (x2j ) indicates the similarity Sij between x1i and x2j . If Sij = 1, D (h1i , h2j ) should be minimized. Otherwise, D (h1i , h2j ) should be maximized. It means:

<!-- formula-not-decoded -->

## 2.2 Connection

The connection between classification and hashing-based retrieval is essential in union of discriminability and semantic structure. The discriminative methods treat hash codes as features which are easily classified. Hence, classifier plays an important role. Consider a linear classifier y =WhT + b to classify N3 classes samples, where W = {wk}N3 k=1 and b = {bk}N3 k=1 . In classification tasks, the Softmax is frequentlyused in converting output into normalized probability. Handled with it, the probability of i-th class is:

<!-- formula-not-decoded -->

For Eq. (2), assume ‖wk‖ = ‖hi‖ = √c, bk = 0 and the equation is as follows:

<!-- formula-not-decoded -->

Under this circumstance, maximizing the Pi equals maximizing cos (θwi,hi ) between wi that represents the i-th class semantic anchor in label space and hi that represents the feature of data in i-th class while minimizing cos (θwk,hi ) between {wk}N3 k̸=i and hi. For a to-be-classified feature, the cosine between vectors in label space and itself decides its label.

Semantic structure preserving methods use hamming distance among samples to embody their relationships. When {-1,1}c composes hash codes, the norm of hash codes is the sqrt of its code length c, namely ‖wk‖ = ‖hi‖ = √c. The Hamming distance between wk and hi can be also measured by cos (θwk,hi ) between them:

Figure 1: Equally-Guided Discriminative Hashing (EGDH) framework. Firstly, labNet encodes non-redundant multi-label annotations as hash codes to compose the common classifier W. Later, binary feature extractor imgNet and txtNet are guided to build features which are easily classified by W and close to their semantic hash code anchors w.

![Image](https://ijcai.org/proceedings/2019/fulltext/662/image_000000_d34f516d106bddb89d3eb1895becb825f5aa0b22388eab239bcfece741e6f2b4.png)

<!-- formula-not-decoded -->

From Eq. (4), the Hamming distance D(wk, hi) is positively correlated with - cos (θwk,hi ) of wk and hi. Further, when combine Eq. (1) and Eq. (4), there exists a relationship:

<!-- formula-not-decoded -->

From Eq. (5), for hashing-based retrieval, the cos (θwk,hi ) indicates semantics between hash codes wk and hi. And, the assumption that ‖wk‖ = √c, ‖hi‖ = √c and bk = 0 is tenable in hashing retrieval when use {-1,1}c as hash codes and set b = 0 in the classifier. Concurrently, Eq. (3) indicates that the cosine between data binary features and hash codes of label decides the label of data.

Combine Eq. (5) and Eq. (3), the cosine between vectors is a connection to integrate semantic structure and discriminability. In Hamming space, for a linear classifier composed of vectors that are already encoded to preserve their interclass relationships, it pushes the to-be-classified binary features near corresponding semantic anchor and far away from non-corresponding anchors. By doing so, these features are the intra-class aggregated and inter-class relationship preserving. Namely, they are not only discriminative to be easily classified but also semantic structure preserving because of their cosine relationships with semantic anchors.

For cross-modal retrieval, it is also crucial to find a common space to avoid data heterogeneity. Therefore, we first build a semantic structure preserving classifier which constitutes the basics of common Hamming space. Later, the common classifier are applied to guide both binary feature extractors imgNet and txtNet to extract binary features (i.e. hash codes) which are easily classified by it and close to their semantic hash code anchors and eliminate data heterogeneity automatically.

## 2.3 Framework

As shown in Figure 1, the EGDH model consists of three parts. First, we build labNet to learn the common classifier W. A two-layer Multi-layer Perception (MLP) whose nodes are 4096 and c forms the labNet. The first layer uses ReLU as activation function and nodes in the second layer use tanh. Between these two layers, Local Response Normalization (LRN) is applied. After processing of labNet, the hash codes of non-redundant class labels are employed to compose W. Then, we build binary feature extractors imgNet and txtNet to learn hash functions. For image, we modify CNN-F [Chatfield et al., 2014] to build imgNet. To obtain c-length hash codes, the last fully-connected layer in origin CNN-F is changed to c-node fully-connected layer with tanh. For text, we first use the multi-scale network in [Li et al., 2018] to extract multi-scale features and a two-layer MLP

whose nodes are 4096 and c to transform multi-scale features into hash codes. Except the activation function of last layer is tanh, the other layers use ReLU as activation functions. And, the LRN is also added between layers.

## Common Classifier

For d3-dimensional multi-label annotations, we regard them as high-level semantic features and transform the nonredundant multi-label annotations into N3 multi-class annotations Y = {yk}N3 k=1 (yk = {yk1, yk2,..., ykd3 }). So we can use the multi-class classification method to handle multi-label classification task and traverse more non-redundant correlation. Then, the Y = {yk}N3 k=1 are encoded as hash codes based on semantic structure. Simultaneously, these semantic hash code anchors {w1;w2; ...;wk} compose the common classifier W. The loss function of labNet is:

<!-- formula-not-decoded -->

where ∆kj = f (θy; yk) f (θy; yj )T , f (θy; yk) is the corresponding labNet output of yk, wk is hash codes of f (θy; yk) handled by sign(·), and α, β are hyper-parameters that adjust weights of loss. To preserve semantic structure, the first term of Eq. (6) makes hash codes to maximize likelihood of semantic similarity. As the request of hash codes, the second term aims to make the output of labNet discrete (i.e. f (θy; yk) = √c). The last term intends to keep the number of -1 and 1 balance.

## Binary Feature Extractor

Once the common classifier W is built, it guides binary feature extractor f (Θm; xmi ) of modality m = 1, 2 to obtain discriminative and semantic structure preserving hash codes equally. The loss function is as follows:

<!-- formula-not-decoded -->

where {wi}N3 i=1 ∈ {-1,1}c are consisted of hash codes corresponding to labels and γ is hyper-parameter. The second term is the quantization loss, which leads extractors to output binary features (i.e. ‖f (θm; xmi )‖ = √c). And since

## Algorithm 1 Equally-Guided Discriminative Hashing

Input: ImagesX1 , textsX2 , non-redundant labels Y , code length c, hyper-parameters α, β, γ, learning rate λy, λ1, λ2, mini-batch size M, and iteration number Ty, T1, T2.

Output: Parameters θ1 and θ2 of imgNet and txtNet

Initialization Initialize θy, θ1, θ2 and wk. repeat

for iter=1 to Ty do

Update θy by BP algorithm:

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

for iter=1 to Tm do

Update θm by BP algorithm:

<!-- formula-not-decoded -->

until convergence

return θ1 and θ2

the norm of elements in common classifier wk equals √c, the connection between classification and hashing-based retrieval is practicable. Hence, the first term of Eq. (7) is the Softmax loss. Guided by the common semantic structure preserving classifier, the output features are discriminative and semantic structure preserving.

## 2.4 Optimization

The optimization of the EGDH model includes two parts: learning common classifier W and learning binary feature extractors f (Θm; xmi ). Learning common classifier equals to optimize θy and W. For binary feature extractor of modality m, it needs to optimize θm. The whole optimization procedure is summarized in Algorithm 1.

For θy of labNet, Eq. (6) is derivable. Back-propagation algorithm (BP) with mini-batch stochastic gradient descent (mini-batch SGD) method is applied to update it. As for wk, we use Eq. (8) to update it.

<!-- formula-not-decoded -->

For binary feature extractors, we also use BP with minibatch SGD method to update θ1 and θ2.

Once Algorithm 1 converges, the well-trained imgNet and txtNet with sign(·) are used to handle out-of-sample extensions from modality m:

<!-- formula-not-decoded -->

## 3 Experiments

## 3.1 Datasets

Performance evaluation was conducted on two benchmark datasets: MIRFLICKR-25K [Huiskes and Lew, 2008] and MS COCO [Lin et al., 2014].

MIRFLICKR-25K consists of 25015 images collected from the Flickr website. Every image is associated with several tags. Following [Jiang and Li, 2017], we use 20015 image-tag pairs annotated with 24-dimensional annotations to conduct experiments. For text data, a 1386-dimensional bag-of-words vector represents each text.

MS COCO contains 82783 training images and 40504 validation images. We eliminate images without category information and use the left 87081 images. Every image has its corresponding text description and a 91-dimensional annotation. For text, we use 2000-dimensional bag-of-words vector to represent.

## 3.2 Evaluation Protocols and Baselines

For MIRFLICKR-25K, we randomly sample 2000 image-text pairs as query set and regard the rest as retrieval set. For MS COCO, we randomly sample 5000 pairs as query set and use the rest 82081 pairs as retrieval set. For both datasets, 10000 image-text pairs are randomly chosen from retrieval set for training.

## Evaluation Protocols

To evaluate performance, we use Hamming ranking and hash lookup as retrieval protocols. Hamming ranking is to sort the data points in retrieval set based on their Hamming distance to the given query point. For comparison, we adopt mean average precision (MAP) and TopN-precision curves to measure it. Hash lookup aims to return retrieval data in radius of a certain Hamming distance to the given query point. We use precision-recall curve to measure its accuracy.

## Baselines

We compare EGDH with several state-of-the-art cross-modal hashing methods, including: CMSSH [Bronstein et al., 2010], CVH [Kumar and Udupa, 2011], IMH [Song et al., 2013], SCM [Zhang and Li, 2014], SePH [Lin et al., 2015], CCQ [Long et al., 2016], DCMH [Jiang and Li, 2017] and SSAH [Li et al., 2018], where DCMH and SSAH are deep hashing methods. To make fair comparisons with shallowstructure-based baselines, 4096-dimensional image features extracted by the pre-trained CNN-F network are used.

## 3.3 Implementation Details

We implement all deep learning methods with Tensorflow on a NVIDIA 1080ti GPU server. Like DCMH and SSAH, we also use the CNN-F pre-trained on ImageNet [Russakovsky et al., 2015] to initialize the first seven layers of imgNet. The other weights of networks are randomly initialized. We set hyper-parameters as: α = β = γ = 1. To learn neural network parameters, we apply the Adam solver with a learning rate within 10-2 - 10-6 and set batch size as 128. We repeat experiments five times with random data partitions and report the averaged results.

## 3.4 Results and Discussions

In cross-modal retrieval, there are two retrieval directions: using images to query texts (I → T) and using texts to query images (T → I). We set the bit length at 16 bits, 32 bits, 64 bits and 128 bits.

For Hamming ranking, we report the MAP of EGDH and other baselines in Table 1. From this table, EGDH outperforms all state-of-the-art methods in longer bit lengths. Compared with the deep learning method SSAH, EGDH achieves absolute increases of 0.06%/1.72% and 2.51%/3.07% on MIRFLICKR-25K and MS COCO. EGDH achieves absolute increases on the two datasets are 3.21%/2.12% and 5.15%/2.54% compared to DCMH. Although MS COCO contains much more data than MIRFLICKR-25K, EGDH achieves more increases in MS COCO than that in MIRFLICKR-25K. It is because that hash codes obtained by EGDH are intra-class aggregated which reduces code diversity while preserve inter-class relationship. The top-N curves of the two datasets are as shown in Figure 2, which also show that EGDH achieves the state-of-the-art accuracy in Hamming ranking.

Figure 2: TopN-precision curves based on CNN-F feature with 128 bits code length.

![Image](https://ijcai.org/proceedings/2019/fulltext/662/image_000001_8ba00b793b339a6a0736e6991d76c36f3eed424758098aaf4f6626bf57ef04d4.png)

Figure 3: Precision-recall curves based on CNN-F feature with 128 bits code length.

![Image](https://ijcai.org/proceedings/2019/fulltext/662/image_000002_bbcb306e2eb96d8ebd8ccf295d89460b6cc7306d115e6db4ef69ce05db6b44e1.png)

For Hash lookup, we plot the precision-recall curves on MIRFLICKR-25K and MS COCO by varying hamming distance from 0 to 128 in Figure 3. The curves corresponding to EGDH in Figure 3 locate higher than others' on the whole. It proves that EGDH achieves the state-of-the-art efficiency in Hash lookup as like its performance in Hamming ranking.

Table 1: Mean Average Precision (MAP) comparison based on CNN-F features

| Task   | Method                         |   MIRFLICKR-25K - 16 bits |   MIRFLICKR-25K - 32 bits |   MIRFLICKR-25K - 64 bits |   MIRFLICKR-25K - 128 bits |   MS COCO - 16 bits |   MS COCO - 32 bits |   MS COCO - 64 bits |   MS COCO - 128 bits |
|--------|--------------------------------|---------------------------|---------------------------|---------------------------|----------------------------|---------------------|---------------------|---------------------|----------------------|
|        | CMSSH [Bronstein et al., 2010] |                    0.6321 |                    0.6201 |                    0.6251 |                     0.6044 |              0.5703 |              0.5674 |              0.5652 |               0.5712 |
|        | CVH [Kumar and Udupa, 2011]    |                    0.5492 |                    0.5521 |                    0.5663 |                     0.5754 |              0.4832 |              0.4440 |              0.4685 |               0.5236 |
|        | IMH [Song et al., 2013]        |                    0.6155 |                    0.6042 |                    0.5942 |                     0.5852 |              0.5591 |              0.5489 |              0.5310 |               0.5428 |
|        | SCM [Zhang and Li, 2014]       |                    0.6961 |                    0.7024 |                    0.7093 |                     0.7125 |              0.6865 |              0.7105 |              0.7182 |               0.7240 |
| I → T  | SePH [Lin et al., 2015]        |                    0.7213 |                    0.7267 |                    0.7304 |                     0.7232 |              0.7568 |              0.7653 |              0.7757 |               0.7609 |
|        | CCQ [Long et al., 2016]        |                    0.6368 |                    0.6282 |                    0.6114 |                     0.5941 |              0.6475 |              0.6348 |              0.6289 |               0.6162 |
|        | DCMH [Jiang and Li, 2017]      |                    0.7412 |                    0.7407 |                    0.7504 |                     0.7550 |              0.7192 |              0.7377 |              0.7477 |               0.7526 |
|        | SSAH [Li et al., 2018]         |                    0.7765 |                    0.7835 |                    0.7892 |                     0.7643 |              0.7690 |              0.7853 |              0.7849 |               0.7238 |
|        | EGDH                           |                    0.7569 |                    0.7729 |                    0.7959 |                     0.7900 |              0.7702 |              0.7884 |              0.8018 |               0.8029 |
|        | CMSSH [Bronstein et al., 2010] |                    0.6406 |                    0.6277 |                    0.6131 |                     0.6047 |              0.6032 |              0.5807 |              0.5949 |               0.5745 |
|        | CVH [Kumar and Udupa, 2011]    |                    0.5478 |                    0.5511 |                    0.5674 |                     0.5783 |              0.4815 |              0.4411 |              0.4685 |               0.5259 |
|        | IMH [Song et al., 2013]        |                    0.6199 |                    0.6083 |                    0.5978 |                     0.5884 |              0.5617 |              0.5525 |              0.5341 |               0.5429 |
|        | SCM [Zhang and Li, 2014]       |                    0.7226 |                    0.7340 |                    0.7416 |                     0.7452 |              0.6910 |              0.7168 |              0.7269 |               0.7323 |
| T → I  | SePH [Lin et al., 2015]        |                    0.7305 |                    0.7352 |                    0.7364 |                     0.7152 |              0.7564 |              0.7653 |              0.7764 |               0.7675 |
|        | CCQ [Long et al., 2016]        |                    0.6464 |                    0.6433 |                    0.6395 |                     0.6296 |              0.6422 |              0.6384 |              0.6349 |               0.6248 |
|        | DCMH [Jiang and Li, 2017]      |                    0.7629 |                    0.7693 |                    0.7744 |                     0.7808 |              0.7475 |              0.7717 |              0.7810 |               0.7873 |
|        | SSAH [Li et al., 2018]         |                    0.7846 |                    0.7935 |                    0.7815 |                     0.7436 |              0.7695 |              0.7891 |              0.7816 |               0.7262 |
|        | EGDH                           |                    0.7787 |                    0.7939 |                    0.7985 |                     0.8010 |              0.7717 |              0.7935 |              0.8108 |               0.8131 |

Table 2: MAP comparison of EGDH and its variants.

| Task   | Method   |   MIRFLICKR-25K - 16 bits |   MIRFLICKR-25K - 32 bits |   MIRFLICKR-25K - 64 bits |   MIRFLICKR-25K - 128 bits |
|--------|----------|---------------------------|---------------------------|---------------------------|----------------------------|
| I → T  | EGDH-1   |                    0.7398 |                    0.7502 |                    0.7653 |                     0.7680 |
| I → T  | EGDH-2   |                    0.6417 |                    0.6538 |                    0.6782 |                     0.6619 |
| I → T  | EGDH     |                    0.7569 |                    0.7729 |                    0.7959 |                     0.7900 |
| T → I  | EGDH-1   |                    0.7541 |                    0.7724 |                    0.7876 |                     0.7895 |
| T → I  | EGDH-2   |                    0.6363 |                    0.6559 |                    0.6581 |                     0.6591 |
| T → I  | EGDH     |                    0.7787 |                    0.7939 |                    0.7985 |                     0.8010 |

## Ablation Study

For binary feature extractor, we remove the softmax loss or quantization loss while training named EGDH-1 and EGDH2 respectively. The result is as shown in Table 2. The original EGDH outperforms EGDH-1 and EGDH-2 by 2.31%/1.71% and 12.00%/14.07% on MIRFLICKR-25K dataset. It shows the combination of discriminability and semantic structure preservation can improve the retrieval accuracy.

## Sensitivity to Parameters

We implement a parameter sensitivity experiment for the influence of hyper-parameters. Figure 4 shows the impact of α, β and γ on MIRFLICKR-25K dataset at 16 bits. The EGDH is not sensitive where the hyper-parameters are within 0.01 and 2.

## 4 Conclusion

This paper introduces Equally-Guided Discriminative Hashing (EGDH) to preserve semantic structure and improve discriminability. We first build a common semantic structure preserving classifier based on the connection between classification and hashing-based retrieval. To avoid heterogeneity, the construction of hash functions for different modalities are guided by the classifier equally. Consequently, hash codes of samples are intra-class aggregated and inter-class relationship preserving. Extensive experiments show that EGDH achieves state-of-the-art results.

Figure 4: Influence of hyper-parameters

![Image](https://ijcai.org/proceedings/2019/fulltext/662/image_000003_6ae40e974d8abb85c822b5ac52487c756072c6b7525e4ab2c8cbbfbf495418de.png)

## Acknowledgments

This work was supported partially by the Key Science and Technology of Shenzhen (JCYJ20180305180637611), the Shenzhen Research Council (JCYJ20180305180804836 and JSGG20180507182030600), the Key Science and Technology Innovation Program of Hubei Province (2017AAA017), the Natural Science Foundation of Hubei Province (2018CFB691), the Special Projects for Technology Innovation of Hubei Province (2018ACA135), the National Natural Science Foundation of China (61571205, 61502195 and 61772220) and the Key Program for International S&amp;T Cooperation Projects of China (2016YFE0121200).

## References

1. [Bronstein et al., 2010] Michael M Bronstein, Alexander M Bronstein, Fabrice Michel, and Nikos Paragios. Data fusion through cross-modality metric learning using similarity-sensitive hashing. In CVPR, pages 3594-3601. IEEE, 2010.
2. [Cao et al., 2016] Yue Cao, Mingsheng Long, Jianmin Wang, and Han Zhu. Correlation autoencoder hashing for supervised cross-modal search. In ACM ICMR, pages 197- 204. ACM, 2016.
3. [Cao et al., 2018] Yue Cao, Bin Liu, Mingsheng Long, and Jianmin Wang. Cross-modal hamming hashing. In ECCV, pages 207-223. Springer, 2018.
4. [Chatfield et al., 2014] Ken Chatfield, Karen Simonyan, An- drea Vedaldi, and Andrew Zisserman. Return of the devil in the details: Delving deep into convolutional nets. arXiv preprint arXiv:1405.3531, 2014.
5. [Deng et al., 2018] Cheng Deng, Zhaojia Chen, Xianglong Liu, Xinbo Gao, and Dacheng Tao. Triplet-based deep hashing network for cross-modal retrieval. TIP, 27(8):3893-3903, 2018.
6. [Ding et al., 2016] Guiguang Ding, Yuchen Guo, Jile Zhou, and Yue Gao. Large-scale cross-modality search via col- lective matrix factorization hashing. TIP, 25(11):5427- 5440, 2016.
7. [Huiskes and Lew, 2008] Mark J Huiskes and Michael S Lew. The mir flickr retrieval evaluation. In ACM ICMIR, pages 39-43. ACM, 2008.
8. [Hwang and Grauman, 2012] Sung Ju Hwang and Kristen Grauman. Learning the relative importance of objects from tagged images for retrieval and cross-modal search. IJCV, 100(2):134-153, 2012.
9. [Jiang and Li, 2017] Qing-Yuan Jiang and Wu-Jun Li. Deep cross-modal hashing. In CVPR, pages 3270-3278. IEEE, 2017.
10. [Kumar and Udupa, 2011] Shaishav Kumar and Raghaven- dra Udupa. Learning hash functions for cross-view sim- ilarity search. In IJCAI, volume 22, page 1360, 2011.
11. [Li et al., 2018] Chao Li, Cheng Deng, Ning Li, Wei Liu, Xinbo Gao, and Dacheng Tao. Self-supervised adversar- ial hashing networks for cross-modal retrieval. In CVPR, pages 4242-4251, 2018.
12. [Lin et al., 2014] Tsung-Yi Lin, Michael Maire, Serge Be- longie, James Hays, Pietro Perona, Deva Ramanan, Pi- otr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In ECCV, pages 740-755. Springer, 2014.
13. [Lin et al., 2015] Zijia Lin, Guiguang Ding, Mingqing Hu, and Jianmin Wang. Semantics-preserving hashing for cross-view retrieval. In CVPR, pages 3864-3872, 2015.
14. [Liu and Qi, 2018] Liu Liu and Hairong Qi. Discrimina- tive cross-view binary representation learning. In WACV, pages 1736-1744. IEEE, 2018.
15. [Long et al., 2016] Mingsheng Long, Yue Cao, Jianmin Wang, and Philip S Yu. Composite correlation quanti- zation for efficient multimodal retrieval. In ACM SIGIR, pages 579-588. ACM, 2016.
16. [Ma et al., 2018] Lei Ma, Hongliang Li, Fanman Meng, Qingbo Wu, and King Ngi Ngan. Global and local semantics-preserving based deep hashing for cross-modal retrieval. NC, 2018.
17. [Peng et al., 2018] Yuxin Peng, Xin Huang, and Yunzhen Zhao. An overview of cross-media retrieval: Concepts, methodologies, benchmarks, and challenges. TCSVT, 28(9):2372-2385, 2018.
18. [Radenović et al., 2018] Filip Radenović, Giorgos Tolias, and Ondrej Chum. Fine-tuning cnn image retrieval with no human annotation. TPAMI, 2018.
19. [Russakovsky et al., 2015] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 115(3):211-252, 2015.
20. [Song et al., 2013] Jingkuan Song, Yang Yang, Yi Yang, Zi Huang, and Heng Tao Shen. Inter-media hashing for large-scale retrieval from heterogeneous data sources. In ACM SIGMOD, pages 785-796. ACM, 2013.
21. [Wang et al., 2015] Di Wang, Xinbo Gao, Xiumei Wang, and Lihuo He. Semantic topic multimodal hashing for cross- media retrieval. In IJCAI, pages 3890-3896, 2015.
22. [Wang et al., 2016] Di Wang, Xinbo Gao, Xiumei Wang, Li- huo He, and Bo Yuan. Multimodal discriminative bi- nary embedding for large-scale cross-modal retrieval. TIP, 25(10):4540-4554, 2016.
23. [Wang et al., 2017] Bokun Wang, Yang Yang, Xing Xu, Alan Hanjalic, and Heng Tao Shen. Adversarial cross- modal retrieval. In ACM MC, pages 154-162. ACM, 2017.
24. [Wang et al., 2018] Jingdong Wang, Ting Zhang, Nicu Sebe, Heng Tao Shen, et al. A survey on learning to hash. TPAMI, 40(4):769-790, 2018.
25. [Wu et al., 2019] Lin Wu, Yang Wang, and Ling Shao. Cycle-consistent deep generative hashing for cross-modal retrieval. TIP, 28(4):1602-1612, 2019.
26. [Xu et al., 2016] Xing Xu, Fumin Shen, Yang Yang, and Heng Tao Shen. Discriminant cross-modal hashing. In ACM ICMR, pages 305-308. ACM, 2016.
27. [Yang et al., 2017] Erkun Yang, Cheng Deng, Wei Liu, Xi- anglong Liu, Dacheng Tao, and Xinbo Gao. Pairwise rela- tionship guided deep hashing for cross-modal retrieval. In AAAI, pages 1618-1625, 2017.
28. [Zhang and Li, 2014] Dongqing Zhang and Wu-Jun Li. Large-scale supervised multimodal hashing with seman- tic correlation maximization. In AAAI, volume 1, page 7, 2014.
