1
Return

HashRuler: Lightweight Detection of Anomalous Hash Codes for Backdoor Defense

delete2026-07-16
delete0
PRE
AI
陈珍珠 cover
陈珍珠 (Zhenzhu Chen)
W
Wenting Xu
张蕊 cover
张蕊 (Rui Zhang)
L
Lei Zhou
A
Anmin Fu
DOI:10.1109/tifs.2026.3714145delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Deep hashing is widely adopted in large-scale image retrieval for its efficiency, but its reliance on large-scale datasets makes it vulnerable to backdoor threats. Recently, BadHash, a clean-label backdoor attack, has shown the ability to compromise deep hashing models by generating poisoned samples via a conditional generative adversarial network. These samples appear benign but are crafted to manipulate hash codes, making existing defense methods ineffective in the hash space. To address the challenge, we propose HashRuler, a lightweight and effective hash-code-based detection framework tailored for deep hashing models. HashRuler introduces two complementary metrics, Center Similarity Deviation (CSD) and Local Sparsity (LS), which jointly capture global and local distributional anomalies of sample hash codes. CSD quantifies a sample’s deviation from the class-specific hash center, while LS measures local outlier behavior relative to its nearest neighbors. Experimental results show that HashRuler achieves up to 97% detection accuracy against BadHash attacks, with extensive evaluations across diverse datasets, attack types, and model architectures confirming its effectiveness and generalizability.
Keywords:
Backdoor defense
deep learning
image retrieval
hash code

Journal

IEEE Transactions on Information Forensics and Security cover
IEEE Transactions on Information Forensics and Security
IF:
8
Papers:
5.2K
Citations:
2.3W

Organization

S
southwestern university of finance and economics
Scholars:
519
Papers: 312
Citations: 0
N
nanjing university of science and technology
Scholars:
2.9K
Papers: 983
Citations: 0
S
suqian university
Scholars:
171
Papers: 93
Citations: 0
Cited Papers

Cited Papers

Citing Papers

Citing Papers