Proceedings

Unrestricted Targeted Deep Hashing Attack via Contrastive Latent Diffusion

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 1974-1982.

https://doi.org/10.24963/ijcai.2026/220

Abstract

Deep hashing is widely used for large-scale image retrieval but remains vulnerable to adversarial examples, raising practical security concerns. Existing targeted adversarial attacks on deep hashing typically rely on lp-norm constrained perturbations, which struggle to balance attack effectiveness and imperceptibility, often requiring perceptible noise and limiting their practicality in real-world retrieval scenarios. We propose UTDHA, the first unrestricted targeted attack for deep hashing models using contrastive-guided latent diffusion. UTDHA generates adversarial examples with a latent diffusion model and performs optimization in the latent space rather than the pixel space, enabling semantic manipulation while preserving image naturalness. Through contrastive guidance, the attack pulls adversarial examples toward the target label while pushing them away from non-target labels. Meanwhile, UTDHA enforces structural and perceptual consistency, producing adversarial examples that are both imperceptible and visually natural. Extensive experiments on three benchmarks demonstrate that UTDHA outperforms existing targeted adversarial attack baselines for deep hashing models in both attack effectiveness and imperceptibility.

  1. [Bai et al., 2020] Jiawang Bai, Bin Chen, Yiming Li, Dongx- ian Wu, Weiwei Guo, Shu-Tao Xia, and En-Hui Yang. Tar- geted attack for deep hashing based retrieval. In Proceed- ings of European Conference on Computer Vision, pages 618-634, 2020.
  2. [Cao et al., 2017] Zhangjie Cao, Mingsheng Long, Jianmin Wang, and Philip S. Yu. Hashnet: Deep learning to hash by continuation. In Proceedings of International Conference on Computer Vision, pages 5609-5618, 2017.
  3. [Chen et al., 2023a] Xinquan Chen, Xitong Gao, Juanjuan Zhao, Kejiang Ye, and Cheng-Zhong Xu. Advdiffuser: Natural adversarial example synthesis with diffusion mod- els. In Proceedings of International Conference on Com- puter Vision, pages 4539-4549, 2023.
  4. [Chen et al., 2023b] Zhaoyu Chen, Bo Li, Shuang Wu, Kaixun Jiang, Shouhong Ding, and Wenqiang Zhang. Content-based unrestricted adversarial attack. In Proceed- ings of Advances in Neural Information Processing Sys- tems, 2023.
  5. [Chen et al., 2024] Jianqi Chen, Hao Wei Chen, Keyan Chen, Yilan Zhang, Zhengxia Zou, and Zhen Xia Shi. Dif- fusion models for imperceptible and transferable adversar- ial attack. IEEE Transactions on Pattern Analysis and Ma- chine Intelligence, 47:961-977, 2024.
  6. [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 uni- versity of singapore. In Proceedings of ACM International Conference on Image and Video Retrieval, 2009.
  7. [Goodfellow et al., 2015] Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proceedings of International Conference on Learning Representations, 2015.
  8. [Heusel et al., 2017] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochre- iter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Proceedings of Advances in Neural Information Processing Systems, pages 6629-6640, 2017.
  9. [Ho et al., 2020] Jonathan Ho, Ajay Jain, and P. Abbeel. De- noising diffusion probabilistic models. In Proceedings of Advances in Neural Information Processing Systems, 2020.
  10. [Hosseini and Poovendran, 2018] Hossein Hosseini and Radha Poovendran. Semantic adversarial examples. In IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 1614-1619, 2018.
  11. [Huang and Shen, 2025] Chihan Huang and Xiaobo Shen. Huang: A robust diffusion model-based targeted adversar- ial attack against deep hashing retrieval. In Proceedings of AAAI Conference on Artificial Intelligence, pages 3626- 3634, 2025.
  12. [Huiskes and Lew, 2008] Mark J. Huiskes and Michael S. Lew. The mir flickr retrieval evaluation. In Multimedia Information Retrieval, pages 39-43, 2008.
  13. [Jiang and Li, 2018] Qing-Yuan Jiang and Wu-Jun Li. Asymmetric deep supervised hashing. In Proceedings of AAAI Conference on Artificial Intelligence, pages 3342- 3349, 2018.
  14. [Kingma and Welling, 2014] Diederik P. Kingma and Max Welling. Auto-encoding variational bayes. In Proceedings of International Conference on Learning Representations, 2014.
  15. [Li et al., 2015] Wu-Jun Li, Sheng Wang, and Wang-Cheng Kang. Feature learning based deep supervised hashing with pairwise labels. In Proceedings of International Joint Conference on Artificial Intelligence, pages 1711-1717, 2015. IJCAI
  16. [Li et al., 2017] Qi Li, Zhenan Sun, Ran He, and Tieniu Tan. Deep supervised discrete hashing. In Proceedings of Ad- vances in Neural Information Processing Systems, pages 2479-2488, 2017.
  17. [Lin et al., 2014] Tsung-Yi Lin, Michael Maire, Serge Be- longie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C. Lawrence Zitnick. Microsoft coco: Com- mon objects in context. In Proceedings of European Con- ference on Computer Vision, pages 740-755, 2014.
  18. [Liu et al., 2016] Haomiao Liu, Ruiping Wang, Shiguang Shan, and Xilin Chen. Deep supervised hashing for fast image retrieval. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 2064- 2072, 2016.
  19. [Loshchilov and Hutter, 2019] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In Pro- ceedings of International Conference on Learning Repre- sentations, 2019.
  20. [Meng et al., 2024] Fanlei Meng, Xiangru Chen, and Yuan Cao. Targeted universal adversarial attack on deep hash networks. In Proceedings of ACM International Confer- ence on Multimedia Information Retrieval, pages 165- 174, 2024.
  21. [Mittal et al., 2011] Anish Mittal, Anush K. Moorthy, and Alan C. Bovik. Blind/referenceless image spatial qual- ity evaluator. In Conference Record of the Forty Fifth Asilomar Conference on Signals, Systems and Computers, pages 723-727, 2011.
  22. [Mokady et al., 2023] Ron Mokady, Amir Hertz, Kfir Aber- man, Yael Pritch, and Daniel Cohen-Or. Null-text inver- sion for editing real images using guided diffusion models. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 6038-6047, 2023.
  23. [Peng et al., 2026] Jinjia Peng, Junyu Liu, Xutao Zuo, Zeze Tao, and Huibing Wang. Bi-level inter-modality modulation for unsupervised visible-infrared person re- identification. IEEE Transactions on Information Foren- sics and Security, 21:2652-2667, 2026.
  24. [Qiu et al., 2020] Haonan Qiu, Chaowei Xiao, Lei Yang, Xinchen Yan, Honglak Lee, and Bo Li. Semanticadv: Generating adversarial examples via attribute-conditional image editing. In Proceedings of European Conference on Computer Vision, pages 19-37, 2020.
  25. [Rombach et al., 2022] Robin Rombach, A. Blattmann, Do- minik Lorenz, Patrick Esser, and Björn Ommer. High- resolution image synthesis with latent diffusion models. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 10674-10685, 2022.
  26. [Song et al., 2021] Jiaming Song, Chenlin Meng, and Ste- fano Ermon. Denoising diffusion implicit models. In Pro- ceedings of International Conference on Learning Repre- sentations, 2021.
  27. [Sun et al., 2020] Yifan Sun, Changmao Cheng, Yuhan Zhang, Chi Zhang, Liang Zheng, Zhongdao Wang, and Yichen Wei. Circle loss: A unified perspective of pair similarity optimization. In Proceedings of IEEE Confer- ence on Computer Vision and Pattern Recognition, pages 6397-6406, 2020.
  28. [Szegedy et al., 2014] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, D. Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of International Conference on Learning Representations, 2014.
  29. [Tu et al., 2020] Rong-Cheng Tu, Xianling Mao, and Wei Wei. Mls3rduh: Deep unsupervised hashing via manifold based local semantic similarity structure reconstructing. In Proceedings of International Joint Conference on Artifi- cial Intelligence, pages 3466-3472, 2020. IJCAI
  30. [Tu et al., 2025] Rongxin Tu, Xiangui Kang, Chee Wei Tan, Chi-Hung Chi, and Kwok-Yan Lam. All points guided ad- versarial generator for targeted attack against deep hashing retrieval. IEEE Transactions on Information Forensics and Security, 20:1695-1709, 2025.
  31. [Vaswani et al., 2017] Ashish Vaswani, Noam M. Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of Advances in Neural In- formation Processing Systems, pages 6000-6010, 2017.
  32. [Wang et al., 2016] Jingdong Wang, Ting Zhang, Jingkuan Song, N. Sebe, and Heng Tao Shen. A survey on learn- ing to hash. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(4):769-790, 2016.
  33. [Wang et al., 2021] Xunguang Wang, Zheng Zhang, Baoyuan Wu, Fumin Shen, and Guangming Lu. Prototype-supervised adversarial network for targeted attack of deep hashing. In Proceedings of IEEE Confer- ence on Computer Vision and Pattern Recognition, pages 16352-16361, 2021.
  34. [Wang et al., 2026a] Huibing Wang, Yawei Chen, Mingze Yao, Qian Liu, Guangqi Jiang, and Xianping Fu. Tensorized parameter-free multi-view spectral clustering based on fair representation learning. IEEE Transactions on Multimedia, pages 1-13, 2026.
  35. [Wang et al., 2026b] Huibing Wang, Luyan Cui, Mingze Yao, and Xianping Fu. Tensorized fine-grained incomplete multiview clustering via intrinsic structure recovery. IEEE Transactions on Systems, Man, and Cybernetics: Systems, pages 1-14, 2026.
  36. [Xia et al., 2014] Rongkai Xia, Yan Pan, Hanjiang Lai, Cong Liu, and Shuicheng Yan. Supervised hashing for image retrieval via image representation learning. In Proceedings of AAAI Conference on Artificial Intelligence, pages 2156- 2162, 2014.
  37. [Xue et al., 2023] Haotian Xue, Alexandre Araujo, Bin Hu, and Yongxin Chen. Diffusion-based adversarial sample generation for improved stealthiness and controllability. In Proceedings of Advances in Neural Information Process- ing Systems, volume 36, pages 2894-2921, 2023.
  38. [Yang et al., 2020] Erkun Yang, Tongliang Liu, Cheng Deng, and Dacheng Tao. Adversarial examples for ham- ming space search. IEEE Transactions on Cybernetics, 50(4):1473-1484, 2020.
  39. [Yuan et al., 2020] Li Yuan, Tao Wang, Xiaopeng Zhang, Francis E. H. Tay, Zequn Jie, Wei Liu, and Jiashi Feng. Central similarity quantization for efficient image and video retrieval. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 3080- 3089, 2020.
  40. [Yuan et al., 2022] Shengming Yuan, Qilong Zhang, Lianli Gao, Yaya Cheng, and Jingkuan Song. Natural color fool: Towards boosting black-box unrestricted attacks. In Pro- ceedings of Advances in Neural Information Processing Systems, 2022.
  41. [Yuan et al., 2023] Xu Yuan, Zheng Zhang, Xunguang Wang, and Lin Wu. Semantic-aware adversarial training for reliable deep hashing retrieval. IEEE Transactions on Information Forensics and Security, 18:4681-4694, 2023.
  42. [Zhang et al., 2018] Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of IEEE Conference on Computer Vision and Pattern Recognition, pages 586-595, 2018.
  43. [Zhao et al., 2023] Wenshuo Zhao, Jingkuan Song, Sheng- ming Yuan, Lianli Gao, Yang Yang, and Heng Tao Shen. Precise target-oriented attack against deep hashing-based retrieval. In Proceedings of ACM International Confer- ence on Multimedia, pages 6379-6389, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards