<p>Perceptual hashing is widely used to detect whether an input image is similar to a reference image with a variety of security applications. Recently, it has been shown to succumb to adversarial input attacks which make small imperceptible changes to the input image yet the hashing algorithm does not detect its similarity to the original image. Property-preserving hashing (PPH) is a recent construct in cryptography, which preserves some property (predicate) of its inputs in the hash domain. Researchers have so far shown constructions of PPH for Hamming distance predicates, e.g., the predicate which outputs <InlineEquation ID="IEq3"> <EquationSource Format="TEX">\(\varvec{1}\)</EquationSource> </InlineEquation> if two inputs are within Hamming distance <InlineEquation ID="IEq4"> <EquationSource Format="TEX">\(\varvec{t}\)</EquationSource> </InlineEquation>. A key feature of PPH is its strong correctness guarantee, i.e., the probability that the predicate will not be correctly evaluated in the hash domain is negligible. Motivated by the use case of detecting similar images under adversarial setting, we propose the first PPH construction for an <InlineEquation ID="IEq5"> <EquationSource Format="TEX">\(\varvec{\ell _1}\)</EquationSource> </InlineEquation>-distance predicate. Roughly, this predicate checks if the two one-sided <InlineEquation ID="IEq6"> <EquationSource Format="TEX">\(\varvec{\ell _1}\)</EquationSource> </InlineEquation>-distances between two images are within a threshold <i>t</i>. Since many adversarial attacks use <InlineEquation ID="IEq7"> <EquationSource Format="TEX">\(\varvec{\ell _2}\)</EquationSource> </InlineEquation>-distance (related to <InlineEquation ID="IEq8"> <EquationSource Format="TEX">\(\varvec{\ell _1}\)</EquationSource> </InlineEquation>-distance) as the objective function to perturb the input image, by appropriately choosing the threshold <i>t</i>, we can force the attacker to add considerable noise to evade detection, and hence significantly deteriorate the image quality. Our proposed scheme is highly efficient, and runs in time <InlineEquation ID="IEq9"> <EquationSource Format="TEX">\(\varvec{\mathcal {O}(t^2)}\)</EquationSource> </InlineEquation>. For grayscale images of size <InlineEquation ID="IEq10"> <EquationSource Format="TEX">\(\varvec{28 \times 28}\)</EquationSource> </InlineEquation>, we can evaluate the predicate in <InlineEquation ID="IEq11"> <EquationSource Format="TEX">\(\varvec{0.0784}\)</EquationSource> </InlineEquation> seconds when pixel values are perturbed by up to <InlineEquation ID="IEq12"> <EquationSource Format="TEX">\(\varvec{1 \%}\)</EquationSource> </InlineEquation>. For larger RGB images of size <InlineEquation ID="IEq13"> <EquationSource Format="TEX">\(\varvec{224 \times 224}\)</EquationSource> </InlineEquation>, by dividing the image into <InlineEquation ID="IEq14"> <EquationSource Format="TEX">\(\varvec{1,000}\)</EquationSource> </InlineEquation> blocks, we achieve times of <InlineEquation ID="IEq15"> <EquationSource Format="TEX">\(\varvec{0.0128}\)</EquationSource> </InlineEquation> seconds per block for <InlineEquation ID="IEq16"> <EquationSource Format="TEX">\(\varvec{1 \%}\)</EquationSource> </InlineEquation> change, and up to <InlineEquation ID="IEq17"> <EquationSource Format="TEX">\(\varvec{0.2641}\)</EquationSource> </InlineEquation> seconds per block for <InlineEquation ID="IEq18"> <EquationSource Format="TEX">\(\varvec{14\%}\)</EquationSource> </InlineEquation> change. Furthermore, the time to process the entire image can be considerably improved since the scheme is highly parallel.</p>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Property-preserving hashing for \(\ell _1\)-distance predicates: Applications to countering adversarial input attacks

  • Hassan Asghar,
  • Chenhan Zhang,
  • Dali Kaafar

摘要

Perceptual hashing is widely used to detect whether an input image is similar to a reference image with a variety of security applications. Recently, it has been shown to succumb to adversarial input attacks which make small imperceptible changes to the input image yet the hashing algorithm does not detect its similarity to the original image. Property-preserving hashing (PPH) is a recent construct in cryptography, which preserves some property (predicate) of its inputs in the hash domain. Researchers have so far shown constructions of PPH for Hamming distance predicates, e.g., the predicate which outputs \(\varvec{1}\) if two inputs are within Hamming distance \(\varvec{t}\) . A key feature of PPH is its strong correctness guarantee, i.e., the probability that the predicate will not be correctly evaluated in the hash domain is negligible. Motivated by the use case of detecting similar images under adversarial setting, we propose the first PPH construction for an \(\varvec{\ell _1}\) -distance predicate. Roughly, this predicate checks if the two one-sided \(\varvec{\ell _1}\) -distances between two images are within a threshold t. Since many adversarial attacks use \(\varvec{\ell _2}\) -distance (related to \(\varvec{\ell _1}\) -distance) as the objective function to perturb the input image, by appropriately choosing the threshold t, we can force the attacker to add considerable noise to evade detection, and hence significantly deteriorate the image quality. Our proposed scheme is highly efficient, and runs in time \(\varvec{\mathcal {O}(t^2)}\) . For grayscale images of size \(\varvec{28 \times 28}\) , we can evaluate the predicate in \(\varvec{0.0784}\) seconds when pixel values are perturbed by up to \(\varvec{1 \%}\) . For larger RGB images of size \(\varvec{224 \times 224}\) , by dividing the image into \(\varvec{1,000}\) blocks, we achieve times of \(\varvec{0.0128}\) seconds per block for \(\varvec{1 \%}\) change, and up to \(\varvec{0.2641}\) seconds per block for \(\varvec{14\%}\) change. Furthermore, the time to process the entire image can be considerably improved since the scheme is highly parallel.