Dynamic Multi-View Hashing for Online Image Retrieval
Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence. Main track. Pages 3133-3139.
https://doi.org/10.24963/ijcai.2017/437
Keywords
- Machine Learning: Multi-instance/Multi-label/Multi-view learning
- Machine Learning: Online Learning
Abstract
Advanced hashing technique is essential to facilitate effective large scale online image organization and retrieval, where image contents could be frequently changed. Traditional multi-view hashing methods are developed based on batch-based learning, which leads to very expensive updating cost. Meanwhile, existing online hashing methods mainly focus on single-view data and thus can not achieve promising performance when searching real online images, which are multiple view based data. Further, both types of hashing methods can only produce hash code with fixed length. Consequently they suffer from limited capability to comprehensive characterization of streaming image data in the real world. In this paper, we propose dynamic multi-view hashing (DMVH), which can adaptively augment hash codes according to dynamic changes of image. Meanwhile, DMVH leverages online learning to generate hash codes. It can increase the code length when current code is not able to represent new images effectively. Moreover, to gain further improvement on overall performance, each view is assigned with a weight, which can be efficiently updated during the online learning process. In order to avoid the frequent updating of code length and view weights, an intelligent buffering scheme is also specifically designed to preserve significant data to maintain good effectiveness of DMVH. Experimental results on two real-world image datasets demonstrate superior performance of DWVH over several state-of-the-art hashing methods.
- [Caicedo et al., 2012] Juan C Caicedo, Jaafar BenAbdallah, Fabio A González, and Olfa Nasraoui. Multimodal represen- tation, indexing, automated annotation and retrieval of image collections via non-negative matrix factorization. Neurocomput- ing, 76(1):50-60, 2012.
- [Cakir and Sclaroff, 2015a] Fatih Cakir and Stan Sclaroff. Adaptive hashing for fast similarity search. In CVPR, pages 1044-1052, 2015.
- [Cakir and Sclaroff, 2015b] Fatih Cakir and Stan Sclaroff. Online supervised hashing. In ICIP, pages 2606-2610, 2015.
- [Chua et al., 2009] Tat-Seng Chua, Jinhui Tang, Richang Hong, Haojie Li, Zhiping Luo, and Yantao Zheng. Nus-wide: a real- world web image database from national university of singapore. In ACM CIVR, page 48, 2009.
- [Ding et al., 2014] Guiguang Ding, Yuchen Guo, and Jile Zhou. Collective matrix factorization hashing for multimodal data. In CVPR, pages 2075-2082, 2014.
- [Guillaumin et al., 2010] Matthieu Guillaumin, Jakob Verbeek, and Cordelia Schmid. Multimodal semi-supervised learning for im- age classification. In CVPR, pages 902-909, 2010.
- [Guo et al., 2017a] Y. Guo, G. Ding, J. Han, and Y. Gao. Zero-shot learning with transferred samples. IEEE Trans. Image Process- ing, 26(17):3277-3290, 2017.
- [Guo et al., 2017b] Yuchen Guo, Guiguang Ding, Li Liu, Jungong Han, and Ling Shao. Learning to hash with optimized anchor embedding for scalable retrieval. IEEE Trans. Image Processing, 26(3):1344-1354, 2017.
- [Huang et al., 2013] Long-Kai Huang, Qiang Yang, and Wei-Shi Zheng. Online hashing. In IJCAI, 2013.
- [Huiskes and Lew, 2008] Mark J Huiskes and Michael S Lew. The mir flickr retrieval evaluation. In ACM ICMR, pages 39-43, 2008.
- [Kim and Choi, 2013] Saehoon Kim and Seungjin Choi. Multi- view anchor graph hashing. In Acoustics, Speech and Signal Processing (ICASSP), 2013 IEEE International Conference on, pages 3123-3127, 2013.
- [Kumar and Udupa, 2011] Shaishav Kumar and Raghavendra Udu- pa. Learning hash functions for cross-view similarity search. In IJCAI, page 1360, 2011.
- [Leng et al., 2015] Cong Leng, Jiaxiang Wu, Jian Cheng, Xiao Bai, and Hanqing Lu. Online sketching hashing. In CVPR, pages 2503-2511, 2015.
- [Lin et al., 2017a] Z. Lin, G. Ding, J. Han, and L. Shao. End-to-end feature-aware label space encoding for multilabel classification with many classes. IEEE Trans. Neural Networks and Learning Systems, 2017.
- [Lin et al., 2017b] Z. Lin, G. Ding, J. Han, and J. Wang. Cross- view retrieval via probability-based semantics-preserving hash- ing. IEEE Trans. Cybernetics, 2017.
- [Liu et al., 2015] Li Liu, Mengyang Yu, and Ling Shao. Multiview alignment hashing for efficient image search. Image Processing, IEEE Transactions on, 24(3):956-966, 2015.
- [Liu et al., 2017] Li Liu, Zijia Lin, Ling Shao, Fumin Shen, Guiguang Ding, and Jungong Han. Sequential discrete hashing for scalable cross-modality similarity retrieval. IEEE Trans. Im- age Processing, 26(1):107-118, 2017.
- [Mu et al., 2010] Yadong Mu, Jialie Shen, and Shuicheng Yan. Weakly-supervised hashing in kernel space. In CVPR, pages 3344-3351, 2010.
- [Rasiwasia et al., 2010] Nikhil Rasiwasia, Jose Costa Pereira, E- manuele Coviello, Gabriel Doyle, Gert RG Lanckriet, Roger Levy, and Nuno Vasconcelos. A new approach to cross-modal multimedia retrieval. In ACM MM, pages 251-260, 2010.
- [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, 2013.
- [Wu et al., 2014] Fei Wu, Zhou Yu, Yi Yang, Siliang Tang, Yin Zhang, and Yueting Zhuang. Sparse multi-modal hashing. Mul- timedia, IEEE Transactions on, 16(2):427-439, 2014.
- [Wu et al., 2015] Botong Wu, Qiang Yang, Wei-Shi Zheng, Yizhou Wang, and Jingdong Wang. Quantized correlation hashing for fast cross-modal search. In IJCAI, 2015. IJCAI
- [Wu et al., 2017] Gengshen Wu, Li Liu, Yuchen Guo, Guiguang D- ing, Jungong Han, Jialie Shen, and Ling Shao. Unsupervised deep video hashing with balanced rotation. In IJCAI, 2017. IJCAI
- [Xie et al., 2016] Liang Xie, Jialie Shen, and Lei Zhu. Online cross-modal hashing for web image retrieval. In AAAI, pages 294-300, 2016.
- [Yu et al., 2014] Zhou Yu, Fei Wu, Yi Yang, Qi Tian, Jiebo Luo, and Yueting Zhuang. Discriminative coupled dictionary hashing for fast cross-media retrieval. In ACM SIGIR, pages 395-404, 2014.
- [Zhang and Li, 2014] Dongqing Zhang and Wu-Jun Li. Large-scale supervised multimodal hashing with semantic correlation maxi- mization. In AAAI, pages 2177-2183, 2014.
- Zhang et al., ] Yin Zhang, Weiming Lu, Yang Liu, and Fei Wu. Kernelized sparse hashing for scalable image retrieval. Neuro- computing, 172.
- [Zhang et al., 2011] Dan Zhang, Fei Wang, and Luo Si. Composite hashing with multiple information sources. In ACM SIGIR, pages 225-234, 2011.
- [Zhen and Yeung, 2012a] Yi Zhen and Dit-Yan Yeung. Co- regularized hashing for multimodal data. In NIPS 25, pages 1376-1384. 2012.
- [Zhen and Yeung, 2012b] Yi Zhen and Dit-Yan Yeung. A proba- bilistic model for multimodal hash function learning. In ACM SIGKDD, pages 940-948, 2012.
- [Zhou et al., 2014] Jile Zhou, Guiguang Ding, and Yuchen Guo. Latent semantic sparse hashing for cross-modal similarity search. In ACM SIGIR, pages 415-424, 2014.
- [Zhu et al., 2017] Lei Zhu, Jialie Shen, Liang Xie, and Zhiyong Cheng. Unsupervised visual hashing with semantic assistant for content-based image retrieval. IEEE Trans. Knowl. Data Eng., 29(2):472-486, 2017.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
With the explosive growth of online image repositories, techniques to facilitate fast and effective large scale content access are getting more and more attentions. In recent years, hashing has emerged as a promising technology to support large-scale image retrieval [Mu et al., 2010; Zhen and Yeung, 2012a; Guo et al., 2017b; Wu et al., 2017;
∗Corrsponding Author
Zhu et al., 2017]. Except various visual features, the Web images are associated with various text information such as tags or short comments. In order to improve Web image search performance, various multi-view hashing methods have been recently proposed [Zhang et al., 2011; Wu et al., 2014; 2015; Xie et al., 2016; Liu et al., 2017; Lin et al., 2017b; 2017a; Guo et al., 2017a]. Multi-view hashing integrates the advantages of hashing technology and multi-view learning, it enjoys better performance than single-view hashing, and can support the queries from different views such as visual features or text features.
Web image database is highly dynamic and frequently updated. Traditional multi-view hashing methods are developed based on batch-based learning, which is very expensive in terms of updating cost. Multi-view hashing methods may accumulate all data to retrain the hash codes and functions when new images arrive, however their time complexity will be extremely high and unaffordable. Recently, several online hashing methods [Leng et al., 2015; Cakir and Sclaroff, 2015b] are proposed to support effective search over dynamic image databases. However, their performance is far beyond satisfactory. When applying existing multi-view hashing and online hashing methods for web image retrieval, they generally suffer from several issues. Existing online hashing methods aim at generating the binary codes with fixed length, which is not suited to the dynamic image data. In real world, the contents of new image data could be semantically different from the old one. When new image data is inserted into the database, longer codes should be required to preserve more discriminative information to support search over updated image database. According to previous results [Zhou et al., 2014], longer hash code can lead to more comprehensive image representation and better search performance. For example, Wikipedia dataset [Rasiwasia et al., 2010] consisting of 2866 images only needs 32 bits codes to achieve the best performance. However, for NUS-WIDE having 269648 images, at least 128 bits are required to achieve the best performance. However, larger code length does not mean the better performance, in that hashing for data with small size may get trapped in local minima [Zhen and Yeung, 2012b]. Therefore, general hashing methods usually choose an appropriate code length for a particular database, which is not suitable to dynamic database, whose size is continuously changed. To solve this problem, the code length for dynamic image database needs to be intelligently augmented to guarantee hashing performance. Another problem is how to measure importance of different views in the online learning of hash codes. Although each view will contribute to the final hash codes, they can not be equally treated. For example, text feature usually contains more semantic information than visual feature [Caicedo et al., 2012], thus it should be assigned with the higher weight. Several multi-view hashing methods take the view weights into account and thus they achieve significant performance improvement. However, to the best of our knowledge, none of existing online hashing methods focus on developing intelligent scheme to estimate optimal weighs for different views.
In this paper, we propose a novel unsupervised online hashing method: Dynamic Multi-view Hashing (DMVH) to support the effective and efficient dynamic online image retrieval. Towards this goal, DMVH uses a dynamic hashing scheme, where length of hashing codes can be adaptively augmented. In DMVH, a dictionary is used to construct the hash codes of images. When a new data cannot be represented by current dictionary, it will be added to augment the dictionary. Moreover, DMVH applies multi-view features for hashing, and proper weight is assigned to each view. In the online learning process, to avoid the frequent updating of dictionary and modality weights, a buffer is used to preserve significant images for purpose of subsequential updating. The core technical contributions of our work can be summarized as follows:
- InDMVH, the code length can be dynamically augmented with the changes of image data. As a result, DMVH can better represent the streaming images. In addition, users are not required to predefine the appropriate code length which will be automatically obtained by DMVH.
- DMVH can effectively estimate proper weights for different views to reflect their different importance in hashing. Previous online hashing methods generally don't have weighting scheme. An intelligent buffer scheme is designed for the online learning process of DMVH, which enables highly efficient learning process of hash codes and view weights.
- Experimental results on real-world image datasets show the superiority of DMVH in terms of both search efficiency and accuracy.
The remainder of this paper is organized as follows: Section 2 introduces related work; Section 3 comprehensively introduces the proposed multi-view hashing (DMVH) method; Section 4 introduces the experimental configurations and reports the experimental results and main findings. Finally, Section 5 concludes the paper with future work.
2 RelatedWork
Multi-view Hashing - In recent years, much attention has been paid for multi-view hashing. Most multi-view hashing methods can be divided to two categories according to the query types supported. Several multi-view hashing methods combine all features to construct database hash codes, but they require that query has the same features as database data. This type of multi-view hashing usually aims to gain the effective combination of multi-view features. Composite Hashing with Multiple Information Sources (CHMIS) [Zhang et al., 2011] uses graphs of multi-views features to learn the hash codes, and each view is assigned with a weight for combination. Since graph learning is inefficient, anchor graph is adopted to accelerate the learning process. Multi-view Anchor Graph Hashing (MVAGH) [Kim and Choi, 2013] exploits anchors to construct graphs for hashing. Multiview Alignment Hashing (MAH) [Liu et al., 2015] combines matrix factorization with anchor graph learning for hashing, and it achieves good performance based on multi-view features.

Multi-view methods also can support queries based on different views. This type of multi-view hashing is also called as cross-view hashing. Generally, cross-view hashing methods aim at modeling the correlation of different views. Crossview Hashing (CVH) [Kumar and Udupa, 2011] optimizes the hamming distance of different views, it can be regarded as an extended version of Canonical Correlation Analysis (CCA). Inter-media Hashing (IMH) [Song et al., 2013] both optimizes the intra-media and inter-media consistency. Semantic Correlation Maximization (SCM) [Zhang and Li, 2014] maximizes the semantic correlation between image and text features, and it further considers the quantization loss of hash codes. Semantic Topic Multimodal Hashing (STMH) [Zhou et al., 2014] firstly generates text topics and image concepts, and then correlates them in a common hash space.
Online Hashing is more practical than traditional batchbased learning methods, in that many new images in realworld are generated. In recent three years, a few online hashing methods are proposed. Online Kernel Hashing (OKH) [Huang et al., 2013] and Adaptive Hashing [Cakir and Sclaroff, 2015a] are supervised methods, they use similar image pairs as training data. Although they can effectively preserve the correlation of images in hash codes, they require labeled training examples which are difficult to collect. Online Sketching Hashing (OSH) [Leng et al., 2015] is unsupervised online hashing method, thus it is not relied on labeled data. The main disadvantage of existing online hashing methods is that they are not designed for multi-view features, so they cannot perform well for the retrieval of multi-view images.
3 Dynamic Multi-ViewHashing
DMVH consists of two main modules: online learning process and search process. Figure 1 illustrates the overall structure of DMVH. In the dynamic hash codes, blue area, red area and yellow area denote the old codes, hash codes of new data and the augmented codes respectively. The database consists of many images having both visual and text contents. When new image arrives, multiple kinds of visual features and one text feature are extracted and combined via multi-view dictionary learning. The differentiation threshold Lt determines whether the image can be represented by current hash codes. If not, it is added to the buffer, and the buffer data are used to augment hash codes till no more space is available in the buffer. In the following sections, more details about Lt will be presented.
3.1 Model Formulation
In DMVH, at step t, the database contains old image features added at previous steps Xm t-1 ∣∣Mm=1 , where M is the number of views. Xm t-1 ∈ R(t-1)×dm , and dm is the dimension of mth view feature. The old images are represented with hash codes Ht-1 ∈ {0, 1}(t-1)×C , where C is the code length. Then new image xmt |Mm=1 is added into the database, and Xm t = [(Xm t-1 )T , (xmt )T ]T . Our goal is to learn new hash codes ht ∈ {0, 1}1×C to represent new image. The hash function also needs to be learnt to project any views into the learned hash space. Towards the goal, the kernel dictionary representation is gained to construct hash codes. Dictionary learning is effective in learning hash codes [Yu et al., 2014; Zhang et al., ], and the kernel projection will make the hash codes preserve more discriminative information. Thus, at time t, the dictionary consists of a subset of the database samples with muti-view features. For each view, its corresponding dictionary is denoted as Dm t = [(xma1 )T , . . . , (xmaC )T ]T . Assuming each sample can be constructed from its hash codes and dictionary, we have the following formulation:
where ϕ(·) is a kernel projection function, λ is the regularization parameter, α = [α1, . . . , αM] denotes the view weights.
3.2 Online Learning
Basic process
At each step t, when new image is added into the database, the overall objective function can be reformulated as:
If dictionary Dm t |Mm=1 is not changed, Dm t = Dm t-1 , the constraint Lt-1 (Ht-1, Dm t |Mm=1 ) has been satisfied by previous learning steps. Thus, We only need to consider the optimization of lt (ht,Dm t |Mm=1 ), and the objective function is:
After applying the kernel trick, the objective function (3) can be rewritten as:
where ˜Km t ∈ RC×C is the kernel matrix of the dictionary Dm t , and ˜Km t (i, j) = ϕ(xmai )ϕ(xmaj )T , (zm t )i = ϕ(xmt )ϕ(xmai )T , ai is the index of ith dictionary element. km tt = ϕ(xmt )ϕ(xmt )T .
By setting the derivative of Eq.(4) to zeros, we can obtain ht as:
For each modality m, if vector ϕ(xmt ) is linearly independent on vectors of dictionary ϕ (Dm t ). Then ht computed by Eq.(5) cannot satisfy Eq.(3), and xmt should be added into the dictionary. Therefore, we have to determine the linear dependence of new vectors. By substituting Eq.(5) into Eq.(3), it can be transformed to:
We use a threshold ρ to determine the linear dependence. If lt (ht,Dm t-1 |Mm=1 ) < ρ, then the approximate linear dependence described by Eq.(3) can be satisfied. And we do not need to change dictionary. If lt (ht,Dm t-1 |Mm=1 ) ≥ ρ, then new hash codes cannot be effectively represented by current dictionary. As a result, both dictionary and hash codes need to be augmented, and the modal weights should be recomputed accordingly.
Dictionary augment with buffer scheme
Considering the worst case that new image is always very different to database images and cannot be represented by current dictionary, we have to frequently update the dictionary, which is obviously inefficient. Therefore, a buffer scheme is applied to avoid the frequent updating process. The buffer scheme relaxes the restrict linear dependence in Eq.(3). At each step t, if the new image satisfies lt (ht,Dm t-1 |Mm=1 ) ≥ ρ, then image t is added into the buffer with maximum size Bmax. After the updating, in case that the buffer is full, image b will be selected from the buffer with highest value of lt. Then we augment the dictionary with image b and update the view weights α. The dictionary is updated with Dm t = [(Dm t-1 )T , (xmb )T ]T , and the hash codes constructed from dictionary have to be augmented accordingly. We should optimize the following overall objective function:
Where Ht\b denotes the hash codes of database images except b. Since image b is linearly independent on other dictionary images, we can only use it to represent itself. Therefore we have hb = [0, 1], and lb (hb,Dm t |Mm=1 ) = 0. Then Eq.(7) can be simplified as:
After the dictionary is augmented, the new ˜Km t and Zt\b can be computed as:
Lemma 1. If Ht\b = [Ht-1\b, 0], then the following equation is satisfied:
Proof. From Eq.(9), we can obtain:
Similarly, we have:
Based on above two equations and Eq.(8), we can easily obtain that each element in Lt and Lt-1 is equivalent, thus Eq.(10) is satisfied.
Theorem 1. The objective function Lt (Ht,Dm t |Mm=1 ) will be decreased after we set Ht = [HT t\b , hTb ], and Ht\b = [Ht-1\b, 0] and hb = [0, 1].
Proof. According to Lemma 1 and Eq.(7), we can obtain that Lt (Ht,Dm t |Mm=1 ) = Lt-1 (Ht-1\b,Dm t-1 |Mm=1 ) + lb (hb, Dm t |Mm=1 ), and lb (hb,Dm t |Mm=1 ) = 0 can be satisfied by hb = [0, 1]. Before the dictionary augment, image b in the buffer always has a high lb (¯hb,Dm t-1 |Mm=1 ) which describes the linear dependence, where ¯hb denote old codes of b. It is obviously that lb (¯hb,Dm t-1 |Mm=1 ) > ρ > 0 = lb (hb, Dm t |Mm=1 ). Finally we have Lt (Ht,Dm t |Mm=1 ) < Lt-1 (Ht-1, Dm t-1 |Mm=1 ). Therefore, the objective function can be decreased.
Theorem 1 confirms that our objective function is consistently decreased by the buffer scheme. By specially considering the image with largest lb and reduce it to 0 by using dictionary augment, the objective functions Lt can be largely decreased. If the buffer is full and we augment the codes, then we preserve half images with highest l to ensure that
Algorithm 1 Online learning process of DMVH at step t.
Input:
- 1: Compute ht by Eq.(5);
- 2: Compute lt(ht,Dm t-1 |Mm=1 ) by Eq.(6)
- 3: if lt(ht,Dm t-1 |Mm=1 ) < δ then
- 4: Ht = [H T t-1 , sgn(hTt )]T ;
- 5: ˜Km t = ˜Km t-1 and Dm t =Dm t-1 ;
- 6: else if lt(ht,Dm t-1 |Mm=1 ) >= δ then
- 7: Add t into the buffer, and use Algorithm 2 to optimize Ht, α and ˜Km t ;
- 8: end if
Algorithm 2 Augment dictionary with buffer scheme.
Input:
Output:
- 1: Add image t and corresponding lt(ht,Dm t-1 |Mm=1 ) into buffer;
- 2: Buffer size B = B +1;
- 3: if B = Bmax then
- 4: Select image b in buffer with highest lb;
- 5: Remove 1/2 of buffer data with lowest l;
- 6: Augment dictionary Dm t = [(Dm t-1 )T , (xmb )T ]T ;
- 7: Update ˜Km t according to Eq.(9);
- 8: Update Ht\b = [Ht-1\b, 0];
- 9: Update hb = [0, 1];
- 10: Update α according to Eq.(13)
- 11: else if B < Bmax then
- 13: end if
high l can be preserved for further process to decrease objective function. The frequency of augmenting depends on the buffer size, if buffer size is large, then the learning process is more efficient, but objective function can not be effectively decreased. Thus we should make a tradeoff between learning efficiency and effect by adjusting the buffer size.
At last, the view weights need to be updated to further reduce the objective function (7). by using the lagrange multiplier for Eq.(7), we can compute αm by:
The basic online learning process and dictionary augmentation process are shown in Algorithm 1 and 2 respectively. DMVH is efficient in learning hash codes. From Algorithm 1 we can find that the only the hash codes of new data is computed, and the old codes are not needed to update. Although Algorithm 2 updates the old hash codes of previous data, they are only augmented with all zero elements, which can be efficiently implemented. The time complexity of DMVH is independent of database size, it only relies on buffer size B and code length C.






Extension to visual and text features
In real-world applications, users may not use all the views as query and be likely to choose parts of them. Besides the multi-view features, we specifically consider the case of visual features and only text feature. For the query based on
visual features, its hash codes can be computed as:hv = sgn (M-1 ∑ m=1 α2mzm v ( ˜Kt)-1). Where view 1 to M - 1 are the visual features and viewM is text feature. If the query only contains text feature (e.g. several keywords), we can compute its hash codes ashte = sgn (zM te ( ˜Kt)-1).
4 Experiments
4.1 Datasets
We use two multi-view image datasets: MIR Flickr [Huiskes and Lew, 2008] and NUS-WIDE [Chua et al., 2009] to compare the hashing performance in the online scenario.
- MIR Flickr contains 25000 images collected from Flickr. All images are annotated with 38 class labels which are used as the ground truth. In the retrieval process, images which share at least one same label are considered as relevant. We select 1% images as queries, and the rest images are added to the database sequentially. We use 3 visual features [Guillaumin et al., 2010], including 100D Hue histogram, 1000-D SIFT BoVW, 4096-D RGB histogram and 512-D GIST. Each image is associated with text tags, thus we use 457-D BoW as text feature.
- NUS-WIDE contains 269648 images collected from Flickr, each images is labeled by 81 concepts which can be used for evaluation. We select 1% images as queries and the rest images forms the streaming database. We use 3 visual features, including 500-D SIFT BoVW, 64D color histogram, 144-D color correlogram, 73-D edge direction histogram, 128-D wavelet texture and 225-D block-wise color. Each image is associated with text tags, thus we also use 1000-D BoW as text feature.
4.2 Experimental Settings
In the implementation of DMVH, we use Gaussian kernel for all visual features, and histogram intersection kernel for text feature. DMVH does not contain many parameters to set. The regularization λ is set to 10-3 , it is used to avoid the matrix singularity and has little influence on the results. The maximum buffer size is set to 1000 on MIR Flickr and 5000 on NUS-WIDE respectively, the threshold ρ is set to 0.5.
Since our methods does not use any supervised information, we compare our method with several representative unsupervised hashing methods, including Online Sketching Hashing (OSH) [Leng et al., 2015], Collective Matrix Factorization Hashing (CMFH) [Ding et al., 2014], Multiview Alignment Hashing (MAH) [Liu et al., 2015] and Inter-media Hashing (IMH) [Song et al., 2013]. OSH cannot support any single-view or partial-view query such as text query and image query. CMFH can only cope with two views, thus we concatenate all visual features into a visual feature. MAH cannot support visual or text query, it only supports multiview query. IMH supports visual and text query, but cannot support multi-view query.
Mean average precision (MAP) [Song et al., 2013] is used to measure the effect of retrieval, and MAP scores are computed on the top 50 retrieved documents of each query. Moreover, we evaluate the learning time of all methods to measure the efficiency of retrieval. Learning time is computed as the total time of learning hash codes and functions, thus it accumulates the time of all learning processes from first step to current step. All the experiments are conducted on a computer with Intel Core(TM) i5 2.6GHz 2 processors and 12.0GB RAM.
| Database size (104 ) | 2.5 | 5 | 7.5 | 10 | 12.5 | 15 | 17.5 | 20 | 22.5 | 25 | 26.7 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| OSH time (s) | 227 | 510 | 852 | 1269 | 1728 | 2248 | 2870 | 3610 | 4518 | 5844 | 7337 |
| DMVH time (s) | 135 | 287 | 469 | 684 | 932 | 1223 | 1558 | 1922 | 2317 | 2742 | 3099 |
| DMVH code length | 72 | 82 | 92 | 101 | 111 | 121 | 130 | 139 | 149 | 158 | 165 |
4.3 Experimental Results
In the experiments, we consider three types of queries: visual query, text query and multi-view query. The visual query contains all visual features, text query contains only one text feature, and multi-view query consists of all features.
On MIR Flickr, images are added to database sequentially, thus we have to evaluate the hashing performance at different database size. More specifically, we evaluate the MAP scores at t = {2.5, 5, 7.5, 10, 12.5, 15, 17.5, 20, 22.5, 25} × 103 . The code length of DVMH is changed with the increase of database size, therefore is not appropriate to evaluate the performance of other methods at various code lengths. According to previous results [Ding et al., 2014], we choose the best code length as 64 bits. In order to make a fair comparison, DMVH will not increase the code length when it reaches 64 bits.
Figure 2 shows the MAP scores of MIR Flickr at different database sizes. In image query and text query, we compare DMVH with IMH and CMFH. In multi-view query, we compare DMVH with CMFH, MAH and OSH. From this figure we can find that DMVH obtains higher MAP scores than other methods. In image and multi-view query, the MAP scores DMVH are increased with the data size. This phenomenon illustrates the effectiveness of our dynamic scheme where code length is adaptively augmented. With the augmentation of code length, the performance of DMVH can be consistently improved.
Similar to MIR Flickr, on NUS-WIDE we evaluate the MAP scores at different sizes, the best code length of compared methods is set to 128 bits. The code length of DMVH will not increase when it reaches 128 bits. Figure 3 shows the MAP scores at different database sizes. Similar to the results of MIR Flickr, DMVH outperforms other multi-view hashing methods. On all types of queries, the MAP socres of DMVH are improved with the increase of data size. The increase of MAP scores on NUS-WIDE are more significant than MIR Flickr, the reason is that NUS-WIDE contains much more images, thus the increase of code length are more benefit to NUS-WIDE. Note that on NUS-WIDE, we use all 81 labels for evaluation, other works such as [Ding et al., 2014] use a reduced version which only contains 10 labels. Therefore the overall scores reported in this paper are relatively lower.

4.4 Efficiency Analysis
we also compare the learning time of DMVH to online hashing method OSH. Table 1 shows the learning time of two methods, and the code length of DMVH at different sizes. We can find that DMVH consumes less learning time than OSH. DMVH uses the buffer scheme to avoid the frequent updating process. It is more efficient than OSH while guarantees the hashing performance. In addition, we can find that the code length of DMVH is dynamically changed with the increase of data size.
4.5 Effects of Buffer
At last we evaluate the effects of buffer size. Table 4 shows the comparison of MAP and training time with buffer size {500,1000,3000, 5000, 7000, 10000}. All the results are evaluated at the final step of NUS-WIDE, where all 269648 images are included in database. We can find that the results are relatively steady at different buffer size, which demonstrates the robustness of DMVH. Moreover, both MAP scores and training time decrease with the buffer size, thus we can choose a proper size by considering the tradeoff between MAP scores and training time.
5 Conclusions
In this paper we propose Dynamic Multi-view Hashing (DMVH) for online retrieval of streaming image data. DMVH can adaptively augment code length to preserve more information of new image. It constructs hash codes by a dynamic dictionary, when new data cannot be effectively represented by current hash codes, DMVH can augment the dictionary to better represent this data. To avoid the frequent updating of dictionary. A buffer scheme is designed and only data which are significantly different to current dictionary elements are considered for updating. Experimental results on MIR Flickr and NUS-WIDE demonstrate the efficiency and effectiveness of DMVH compared to representative online hashing and multi-view hashing methods.
@inproceedings{ijcai2017p437,
title = {Dynamic Multi-View Hashing for Online Image Retrieval},
author = {Xie, Liang and Shen, Jialie and Han, Jungong and Zhu, Lei and Shao, Ling},
booktitle = {Proceedings of the Twenty-Sixth International Joint Conference on
Artificial Intelligence, {IJCAI-17}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Carles Sierra},
pages = {3133--3139},
year = {2017},
month = {8},
note = {Main track},
doi = {10.24963/ijcai.2017/437},
url = {https://doi.org/10.24963/ijcai.2017/437},
}
TY - CPAPER TI - Dynamic Multi-View Hashing for Online Image Retrieval AU - Xie, Liang AU - Shen, Jialie AU - Han, Jungong AU - Zhu, Lei AU - Shao, Ling T2 - Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI-17 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2017 SP - 3133 EP - 3139 DO - 10.24963/ijcai.2017/437 UR - https://doi.org/10.24963/ijcai.2017/437 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: