선정목록으로
Adversarial Image Generation by Spatial Transformation in Perceptual Colorspaces
필름·전자재료 · (13) 프리즘 필름
기본 정보
- 저자
- DOI
- 10.48550/arxiv.2310.13950
- 저널
- arXiv (Cornell University)
- 발행년도
- 2023
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- 0
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.2310.13950
- 토픽
- High voltage insulation and dielectric phenomena
- OpenAlex ID
- W6892010559
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Deep neural networks are known to be vulnerable to adversarial perturbations. The amount of these perturbations are generally quantified using $L_p$ metrics, such as $L_0$, $L_2$ and $L_\infty$. However, even when the measured perturbations are small, they tend to be noticeable by human observers since $L_p$ distance metrics are not representative of human perception. On the other hand, humans are less sensitive to changes in colorspace. In addition, pixel shifts in a constrained neighborhood are hard to notice. Motivated by these observations, we propose a method that creates adversarial examples by applying spatial transformations, which creates adversarial examples by changing the pixel locations independently to chrominance channels of perceptual colorspaces such as $YC_{b}C_{r}$ and $CIELAB$, instead of making an additive perturbation or manipulating pixel values directly. In a targeted white-box attack setting, the proposed method is able to obtain competitive fooling rates with very high confidence. The experimental evaluations show that the proposed method has favorable results in terms of approximate perceptual distance between benign and adversarially generated images. The source code is publicly available at https://github.com/ayberkydn/stadv-torch
본문 37,398자
본문 펼치기
Pattern Recognition Letters
journal homepage: www.elsevier.com
## Adversarial Image Generation by Spatial Transformation in Perceptual Colorspaces
Ayberk Aydin <sup>∗∗</sup>, Alptekin Temizel
_Graduate School of Informatics, Middle East Technical University, Turkey_
_Article history:_
_Keywords:_ Adversarial Examples, Deep
Learning, Perceptual Colorspace
1. Introduction
_ABSTRACT_
Deep neural networks are known to be vulnerable to adversarial perturbations. The
amount of these perturbations are generally quantified using L _p_ metrics, such as L0,
L2 and L∞. However, even when the measured perturbations are small, they tend to be
noticeable by human observers since L _p_ distance metrics are not representative of human perception. On the other hand, humans are less sensitive to changes in colorspace.
In addition, pixel shifts in a constrained neighborhood are hard to notice. Motivated by
these observations, we propose a method that creates adversarial examples by applying
spatial transformations, which creates adversarial examples by changing the pixel locations independently to chrominance channels of perceptual colorspaces such as _YCbCr_
and _CIELAB_, instead of making an additive perturbation or manipulating pixel values
directly. In a targeted white-box attack setting, the proposed method is able to obtain
competitive fooling rates with very high confidence. The experimental evaluations show
that the proposed method has favorable results in terms of approximate perceptual distance between benign and adversarially generated images. The source code is publicly
available at `[https://github.com/ayberkydn/stadv-torch](https://github.com/ayberkydn/stadv-torch)`
© 2023 Elsevier Ltd. All rights reserved.
In recent years, deep neural networks have shown impressive performance in many vision related tasks such as image
classification [1], object detection [2] and image segmentation [3].
However, they are found to be vulnerable to intentionally crafted
small perturbations called _adversarial perturbations_ [4]. These
small perturbations added to the input image successfully change
the output of a trained classifier by altering the logits large
enough to change its decision to a preferred class [5]. Adversarial examples, which can deceive machine learning models,
have potential applications in distinguishing humans from algorithms. While humans can still interpret these images accurately, machine learning models can be misled by the added
perturbations. For such a system to be effective, the perturbations must be small enough to mislead the algorithm while
not distracting human vision. An example use case for adversarial images is Completely Automated Public Turing test to
tell Computers and Humans Apart (CAPTCHA) systems which
typically involve presenting the user with an image that is easy
∗∗Corresponding author:
_e-mail:_ `aayberk@metu.edu.tr` (Ayberk Aydin),
`atemizel@metu.edu.tr` (Alptekin Temizel)
for a human to classify, but difficult for a computer. The aim of
this study is to produce successful adversarial attacks minimizing the perturbations that might interfere with human perception.
Adversarial perturbations are generally minimized according to L _p_ metrics [6] such as L0, corresponding to the number
of pixels perturbed [7, 8]; L2, euclidean distance between the
benign and adversarial image [6] or L∞, maximum magnitude
of perturbation among all the pixels [5]. However, they are generally visible to human observers, since a small L _p_ does not always correspond to small visible perturbations [9, 10]. There is
an ongoing research on finding difference metrics over 2D images and color spaces that aligns with human visual perception,
which is challenging due to the nature and limited knowledge
about the human vision [11]. Multimedia compression standards such as JPEG and MPEG [12] have been developed to
compress visual multimedia such as images and videos to reduce the amount of data with minimum amount of distortion
to the perceived output. One of the most fundamental ideas of
visual multimedia compression is that human vision is much
less sensitive to the information loss in color than the luminance. This observation is utilized in image compression as
a technique known as “chroma subsampling”, which is simply
decreasing the resolution of chrominance channels of an im
(a) (b) (c)
(d) (e) (f)
Fig. 1: Effect of flow field applied to different channels, (a) original image,
Images where flow field is applied to (b) _CbCr_, (c) _a_ <sup>∗</sup> _b_ <sup>∗</sup>, (d) RGB, (e) Y and (f)
L channel. The magnitude of the flow is scaled up to emphasize the effect for
illustration.
(a) (b) (c) (d)
Fig. 2: Visual difference from flow field applied to different channels, (a) original image, Visualization of pixel differences where flow field is applied to (b)
RGB, (c) _CbCr_, (d) _a_ <sup>∗</sup> _b_ <sup>∗</sup> channels. The magnitude of the flow is scaled up and
contrast of the pixel differences is increased to enhance the visibility for illustration.
age by subsampling to reduce the image size. There are variants of chroma subsampling that only subsamples chrominance
along horizontal axis (4:2:2) or both horizontal and vertical axes
(4:2:0). Without further compression, (4:2:0) chroma subsampling reduces the size of an image effectively to half of its original size. Replacing the chroma components of the pixels in
by neighboring chroma components does not yield visible artifacts. We employ this observation to derive a new type of
adversarial attack based on spatial transformations in chroma
channels of perceptual colorspaces. We apply spatial transformation only to the chroma components of input image while
keeping the luminance component intact. Figure 1 shows the
effect of a randomly initialized flow field applied to the luminance, chrominance and both set of channels. It is clear that
spatial transformation in luminance channels causes visible distortions while chrominance only spatial transformations cause
very subtle changes for human vision. This effect is much more
highlighted when only the differences are observed after applying a flow field. Figure 2 shows the absolute pixel difference
from the initial image when the same flow field is applied to
RGB, _CbCr_ and a*b* channels, respectively.
2. Related Work
Spatial transformations as methods for generating adversarial examples were first proposed in [13], where it is shown that
small displacements applied to input pixels can successfully
fool a target network. However, using this method, even small
displacements could cause visible distortions when the adjacent
pixels are drifted towards different directions. As a remedy to
this problem, use of Total Variation (TV) regularization [14]
was proposed. Application of TV regularization to the flow
field pushes the neighboring displacement vectors to the same
direction and, hence, produces smoother output. Also, Liu et
al. utilized spatial transformations by applying flow field not
directly to the original image, but to the latent representations
from the the target network [15] so that the generated adversarial example is more perceptually similar to the original image.
Similarly, Jordan et al. [9] combined spatial transformations
with _l_ ∞ bounded attacks to forge stronger attacks with better
perceptual quality. Croce et al. argued adding noise to smooth
areas of an image causes visible artifacts and proposed ”hiding”
the perturbations at the locations with high spatial variations
such as edges and corners [16]. As seen from Figure 2, perturbations made with our method naturally occurs in the places
with high variations since it is based on local spatial transforms.
With a similar motivation, Luo et al. [17] proposed limiting the
high frequency components of the adversarial perturbation to
ensure perceptual similarity between adversarial and original
examples, similar to the work of Duan et al. [18], which explored dropping the imperceptible information obtained by frequency domain conversion.
Utilizing perceptual colorspaces and metrics for imperceptible adversarial example generation is investigated in several
studies. Aksoy et al. [19] investigated additive noise based
attacks on chrominance channels in YUV colorspace, which
is the analog counterpart of _YCbCr_ space. Despite Pestana et
al. [20] found that adversarial perturbations are more highlighted
in luminance channels in terms of the magnitude, Aksoy et al.
found that even suppressing the luminance perturbation, additive noise based attack on chrominance channels still successfully fool target networks, yet causes visible distortion. In our
earlier work, we also explored spatial transformations to UV
channels of YUV to generate imperceptible adversarial examples [21] and we extend this work by exploring _YCbCr_ space
as well as perceptually uniform CIELAB space and measuring structured similarity metrics such as Structured Similarity
Index Measure (SSIM) [22] and Multi-Scale Structured Similarity Index Measure (MS-SSIM) [23] between benign images
and adversarially generated images. Karli et al. [24] leveraged
perceptual metric LPIPS [25] to improve the quality of adversarial examples. Since LPIPS is a differentiable metric, they
used gradient-based optimization to minimize LPIPS alongside
the adversarial loss. Similarly, Zhao et al. replaced CIEDE2000
perceptual distance metric [26] with L _p_ norm constraint in Carlini & Wagner attack to produce perceptually close adversarial examples. Chen et al. [27] utilized information preservation properties of Invertible Neural Networks [28] to minimize
the adversarial perturbation with regards to perceptual distance
metrics to generate imperceptible adversarial examples.
Input Image Adversarial Image
Luminance
concat(x1,x2)
Chrominance Perturbed Chrominance
flow(x,f)
Fig. 3: Visual illustration of the proposed adversarial example generation method with zoomed patches of each step at the bottom for better visual understanding.
Luminance and chrominance channels are _Y_ and _CbCr_ when _YCbCr_ colorspace and L and _a_ <sup>∗</sup> _b_ <sup>∗</sup> when CIELAB colorspace is used. Visual representation of flow
field f, optional subpixel restriction by tanh and conversion of concatenated image back to RGB colorspace is omitted for brevity.
Unlike these methods, the attack proposed in this paper does
not rely on auxiliary losses or explicit perceptual distance terms
in optimization process to produce examples with high perceptual quality. In addition, it does not require regularization, unlike spatial transformation based methods such as [13], due to
its intrinsic imperceptibility. It should be noted that the existing spatial transformation based methods, as well as our work,
does not utilize limited degree of freedom transformations such
as rotation, translation or scaling that can be formulated as a
4 × 4 transformation matrix [29]. In that formulation, the flow
field _f_ ∈ R <sup>2×</sup> <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup> is calculated using the transformation matrix, where _H_, _W_ are the height and the width of the image, respectively. Instead, we directly define and optimize flow field,
where the number of parameters is equal to twice number of
pixels in the input image since there is an x and y component
for each pixel. Application and optimization of flow field is
explained in the Section 3.
3. Methodology
In this work, we address the problem of creating targeted
adversarial examples for deep image recognition networks without adversarial perturbation being perceptible by human vision.
To obtain this, we use a modified version of Spatially Transformed Adversarial Examples (stAdv) [13] that perturbs the input image only in the channels that human vision is not sensitive to the spatial information loss. For this purpose, we use
_YCbCr_ and CIELAB colorspace representations of the input image. The proposed adversarial example generation method is as
follows. Let _x_ ∈ R <sup>3×</sup> <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup> be the 3-channel input image. First,
we randomly initialize a flow field _f_ ∈ R <sup>2×</sup> <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup> where a two
dimensional vector _f_ <sup>(</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> = (∆ _i_, ∆ _j_ ) for each pixel location ( _i_, _j_ )
in the adversarial image x _adv_ . Then, we apply the flow field
to the benign image as explained below to obtain the adversarial image. Then, we feed the adversarial image to the target
network and backpropagate the loss gradient to the flow field.
Since the flow field application is a differentiable process, it can
be optimized by stochastic gradient descent and variants such as
Adam [30] or L-BFGS optimizers [31]. Hence, the target network could be any differentiable deep neural image recognition
model. The optimization process is repeated until the attack
is successful or when the maximum iteration count is reached.
The process of generating adversarial image from the benign
image is visualized in Figure 3.
_3.1._ _Application of flow field_
Flow field is applied to the benign image following the methodology in [13]. For each pixel in the adversarial image x <sup>(</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup>
_adv_ <sup>,</sup> <sup>a</sup>
pixel from location ( _i_ + ∆ _i_, _j_ + ∆ _j_ ) is sampled from the input
image. Since the sampled location is not an integer value, 4
neighboring pixels around the location ( _i_ + ∆ _i_, _j_ + ∆ _j_ ) are (bilinear) interpolated [32] using Eq. 1 where _N_ ( _i_ + ∆ _i_, _j_ + ∆ _j_ )
is the integer pixel positions around ( _i_ + ∆ _i_, _j_ + ∆ _j_ ). Bilinear
interpolation also makes the method end-to-end differentiable,
thus optimizable by gradient-based optimizers.
x _adv_ <sup>(</sup> <sup>_i_</sup> <sup>,</sup> <sup>_j_</sup> <sup>)</sup> <sup>=</sup>
ˆ _i_, ˆ _j_ ∈ _N_ ( _i_ +∆ _i_, _j_ +∆ _j_ )
x <sup>(ˆ</sup> <sup>_i_</sup> <sup>,</sup> <sup>ˆ</sup> <sup>_j_</sup> <sup>)</sup> (1 −| <sup>ˆ</sup> _i_ - ( _i_ +∆ _i_ )|)(1 −| <sup>ˆ</sup> _j_ - ( _j_ +∆ _j_ )|) (1)
Chroma subsampling effectively causes the same chroma
values to be used by the neighboring pixels, and it is widely
Algorithm 1: Adversarial example generation by spatial transformation in chrominance channels in a per<u>ceptual colorspace.</u>
Input: _x_ : _Image_
Output: _xadv_ : _Image_
Data: _target_ _~~c~~_ _lass_ : _int_, _model_, κ : _float_, _colorspace_,
_max_ _~~i~~_ _ters_ : _int_, _is_ _restricted_ : _bool_,
_f_ ← _initialize flowfield f_ ;
_i_ ← 0;
while _i_ < _max_ _~~i~~_ _ters_ do
if _colorspace_ == _YCbCr_ then
_xcolor_ ← _to_ _ycbcr_ ( _x_ );
end
if _colorspace_ == _CIELAB_ then
_xcolor_ ← _to_ _lab_ ( _x_ );
end
_xluma_, _xchroma_ ← _splitchannels_ ( _xcolor_ );
if _is_ _~~r~~_ _estricted_ then
_f_ ← tanh( _f_ )
end
_xchroma_ ← _apply_ _flow_ ( _xchroma_, _f_ );
_xadv_ ← _concat_ ( _xluma_, _xchroma_ );
_xadv_ ← _to_ _~~r~~_ _gb_ ( _xadv_ );
_adv_ _scores_ ← _model_ ( _xadv_ );
_loss_ ← _loss_ _fn_ ( _adv_ _scores_, _target_ _class_, κ);
if _loss_ ≤ κ then
return _xadv_ ;
else
_backprop_ ( _loss_ );
_update_ ( _f_ );
_i_ ← _i_ + 1;
end
end
accepted to cause negligible changes to the images [12]. Accordingly, to exploit this fact, we can impose a restriction to the
flow-field _f_ ∈ R <sup>2×</sup> <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup> to keep its values in the range (−1, 1) by
using a hyperbolic tangent function, tanh( _f_ ), before applying
the flow-field to the benign image. This differentiable reparameterization [33] of flow field constraints the flow field magnitude to be smaller than 1 without inhibiting end-to-end differentiability so that chrominance value of each pixel of the adversarial image _xadv_ is only affected by the value of the pixel of the
same location in _x_ and its neighboring pixels.
_3.2._ _Colorspace conversion_
To make the adversarially perturbed images indistinguishable from their benign counterparts, the flow field is applied
only to the channels that human vision is not very sensitive
to [34]. A perceptual colorspace is designed to approximate
the way humans perceive color. It takes into account the characteristics of the human visual system and is used to represent
colors in a way that is meaningful and intuitive to people. Since
widely used RGB colorspace is not designed to be a perceptual colorspace, even small spatial perturbations to any RGB
channel creates visually distinguishable changes. Hence, we
first convert the benign image to a perceptual colorspace such
as _YCbCr_ where human vision is not sensitive to the spatial perturbations in, which is _Cb_ and _Cr_ in _YCbCr_, and _a_ <sup>∗</sup> and _b_ <sup>∗</sup> in
CIELAB colorspace. Then, we apply the flow field only to the
channels Cb and Cr in _YCbCr_, and A and B in CIELAB colorspace.
_YCbCr_ is a colorspace that is used in digital photography
and visual media compression. In this space, luminance (brightness) and chrominance (color) is separated according to human
visual perception. Y dimension of the space is the luminance
information, or simply a grayscale representation of the image.
_Cb_ and _Cr_ dimensions are the blue-difference and red-difference
chroma components, respectively. The relation between RGB
space and _YCbCr_ space is modeled as Equation 2 and 3, which
is a set of linear equations defined in ITU-T H.273 [35];
_Y_ = 0.299 _R_ + 0.587 _G_ + 0.114 _B_
_Cb_ = 128 − (0.168736 _R_ ) − (0.331264 _G_ ) + (0.5 _B_ )
_Cr_ = 128 + (0.5 _R_ ) − (0.418688 _G_ ) − (0.081312 _B_ )
_R_ = _Y_ + 1.402( _Cr_ - 128)
_G_ = _Y_ - 0.34414( _Cb_ - 128) − 0.71414( _Cr_ - 128)
_B_ = _Y_ + 1.772 _Cb_ - 128
(2)
(3)
CIELAB colorspace [36], defined by the International Commission on Illumination (CIE), has the following three components: L, _a_ <sup>∗</sup> and _b_ <sup>∗</sup> . L is perceptual lightness where _L_ = 0
and _L_ ∗ = 100 define a black and a white pixel, respectively,
regardless of the _a_ <sup>∗</sup> and _b_ <sup>∗</sup> values. _a_ <sup>∗</sup> and _b_ <sup>∗</sup> dimensions are the
chroma components. They are designed to be perceptually uniform where a numerical change in pixel value corresponds to a
similar change in human perception [37]. Both chroma components are in the range [−127, 127]. Unlike _YCbCr_, CIELAB
space does not have a linear relationship with RGB space. In
fact, conversion to an intermediary space CIEXYZ is needed to
transform from RGB to CIELAB and there are different implementations of CIELAB conversion. We used the RGB to LAB
implementation from Kornia library [38], which assumes D65
illuminant and Observer 2, where D65 is a standardized illuminant that represents daylight with a correlated color temperature of 6500 K and the Observer 2 represents the human visual
system’s average response to color and is used as the standard
observer in the CIELAB color space.
4. Experimental Evaluation
We conducted our experiments in a white-box setup where
the gradients are fully available. Experiments have been done
in a targeted attack setting with the dataset provided targets. We
optimized using Adam [30] with the default settings and used
Carlini & Wagner loss [6] with confidence margin κ ∈{0, 10}.
We used the dataset and the provided model from NIPS
2017 Competition on Adversarial Attacks and Defenses [39] to
evaluate our method. NIPS 2017 dataset is a collection of 1000
images curated by Google Brain with the resolution of 299 ×
Table 1: Attack success rates with κ = 0 and κ = 10 in not restricted and
subpixel restricted settings for RGB, _a_ <sup>∗</sup> _b_ <sup>∗</sup> and _CbCr_ attacks.
<u>RGB</u> _<u>CbCr</u>_ _<u>a</u>_ <sup>∗</sup> _<u>b</u>_ <sup>∗</sup>
Not Restricted
κ = 0
<u>κ = 10</u>
κ = 0
κ = 10
100% 95.0% 95.7%
<u>100%</u> <u>83.8%</u> <u>87.3%</u>
Restricted to Subpixel
99.8% 86.1% 89.2%
99.7% 47.0% 53.2%
Table 2: Average amount of distortion required to fool the target network with
very high confidence (κ = 10) in not restricted and subpixel restricted settings.
<u>RGB</u> _<u>CbCr</u>_ _<u>a</u>_ <sup>∗</sup> _<u>b</u>_ <sup>∗</sup>
Not Restricted
LPIPS
SSIM
<u>MS-SSIM</u>
LPIPS
SSIM
MS-SSIM
0.327
0.321
<u>0.164</u>
0.019
0.067
<u>0.017</u>
0.019 0.022
0.067 0.070
<u>0.017</u> <u>0.016</u>
Restricted to Subpixel
0.014
0.056
0.013
0.222
0.220
0.037
0.012
0.050
0.011
Fig. 4: Examples from the dataset and adversarial examples generated with
their target class probabilities. From left to right; Benign image, adversarial
image generated by perturbing CbCr, a*b* and RGB channels, respectively.
299 with their corresponding true and target classes from Imagenet [40] dataset. Alongside the dataset, an Imagenet trained
Inception-v3 [41] model is provided.
We compared the success rate of our attack in CIELAB and
_YCbCr_ against stAdv in both restricted and unrestricted settings.
An attack is considered successful if the Carlini & Wagner loss
is less than −κ. We did not use the smoothness regularization
term in stAdv for a fair comparison.
_4.1._ _Analysis of the Results_
Figure 4 shows the original images alongside with the adversarial images generated (with κ = 10) by attacking in _a_ <sup>∗</sup> _b_ <sup>∗</sup>,
_CbCr_ and RGB spaces. As can be observed from these images,
perceptual distortions are much less pronounced for chrominanceonly attacks. Attacking in RGB domain, which is the default
approach in the literature, results in modification of the luminance channels, leading to much more visible artifacts.
Table 1 shows the attack success rates for attacks on different colorspaces. The results show that, adversarial images generated by attacks exclusively targeting the chrominance chan
nels can fool the network with a high probability as well. On
the other hand, they are less effective when restricted to operate in a subpixel-only setting. The fooling rate of a*b* attacks
are slightly higher than _CbCr_ attacks. We argue that this is due
to many examples in the dataset being chroma subsampled in
_YCbCr_ space, as an indirect effect of image compression, restricting the search space for _CbCr_ attacks.
We measured the amount of distortion required to generate confident (κ = 10) adversarial examples with the following
perceptual metrics: Learned Perceptual Image Patch Similarity (LPIPS) [25], Structured Similarity Index (SSIM) [22] and
Multi-Scale SSIM (MS-SSIM) [23]. Table 2 shows the average results over the successful attacks for each perturbation
mode in terms of these metrics. Since SSIM and MS-SSIM
are similarity metrics, values of 1−SSIM and 1−MS-SSIM are
provided. Hence, for all metrics, lower values are better. According to these results, colorspace restricted attacks have much
better scores in terms of perceptual metrics compared to RGB
attacks, implying that there is significantly less perceptual difference between benign and adversarial examples. While _CbCr_
attacks generally produce better images in terms of perceptual
quality metrics than a*b* attacks, the difference is relatively
low.
_4.2._ _Analysis of Failure Cases_
Experimental results show that there are two main restrictions of the proposed method: out of gamut values in the chrominance channels emerging during optimization leading to visible
artifacts and failing to generate adversarial images when the
original image has limited colorfulness.
35
30
25
20
15
10
5
0
Colorfulness histogram over the dataset
0.0 0.1 0.2 0.3 0.4 0.5 0.6
Colorfulness index
Fig. 6: Colorfulness index histogram over NIPS2017 dataset.
CbCr
a*b*
0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35
Colorfulness index
Fig. 5: Examples from the dataset that our method fails to generate successful
adversarial examples from in both _YCbCr_ and CIELAB spaces, sorted from top
bottom by colorfulness amount.
Failed Attacks on Less Colorful Images : Results in Table 1, show that the attack success rate does not reach 100%
when spatial transform attack is restricted to chrominance channels. This implies that the chrominance based attacks fail for a
number of images in the dataset. Examples of such images are
provided in Figure 5. We observed that these particular images
are either monochromatic examples or have a uniform color
pattern, for which spatial transformation in a neighborhood lead
to little change.
To analyze the effect of colorfulness on the attack performance, we calculated the colorfulness index histogram of the
images in the dataset (Figure 6) . We found that 3.2% of the
dataset consists of grayscale images, for which our method would
not be able to make any changes to the input image, inevitably
resulting in a failed attack. Figure 7 shows the attack success
rate using the subsets where colorfulness is lower-limited by
filtering out examples having colorfulness index less than the _x_
axis value. Although a*b* attacks are slightly more successful
than _CbCr_ in the low colorfulness regime (≤ 0.2), they have the
same success rate of the attacks over higher colorfulness.
Out of Gamut Values : Modifying the chrominance channels in _YCbCr_ and CIELAB spaces may lead to improper values
on individual RGB channels. This is also common in widely
used chroma subsampling and mitigating this issue is an open
research topic [42]. In our work, we clip the reconstructed RGB
to the valid range and feed the target network with the clipped
image at each iteration to prevent further change in the pixel
values out of the gamut. Clipping also zeroes out the gradient and prevents further updates in gradient-based optimization.
However, we found that it still causes visible artifacts in the
adversarial image, especially around the borders between red
and gray tones. Figure 8 shows two examples where spatial
Fig. 7: Attack success rate analysis with regards to colorfulness index with
κ = 10 on _CbCr_ and a*b* channels. Images having colorfulness index less than
the _x_ axis value are excluded in calculation of the success rate. Note that both
colorspaces attain very close success rates after around colorfulness index 0.2.
transformation in red-gray borders yield out of gamut pixels
and clipping the values still causes visible artifacts since clipping in RGB space effectively changes the values of luminance
channels.
5. Discussion
As it can be seen by Figure 5, the input images that our
method fails are generally grayscale or monochromatic images,
which prevents chrominance spatial transforms from changing
the pixel values due to the low magnitude of chrominance channel values. In addition, input images having a very limited local
color variation negatively affect the performance by limiting the
potential search space. We observed that there is a significant
drop in the success rate with the setup confidence margin κ = 10
if the attack is restricted to subpixel changes in comparison to
the unrestricted attacks. We argue that this performance drop is
arising from the fact that the most examples are already JPEG
compressed, which means chroma subsampling is applied to the
benign examples, which restricts the subpixel restricted search
space by dramatically reducing the local chrominance variation.
This leads to the observation that chroma subsampling could be
1.00
0.98
0.96
0.94
0.92
0.90
0.88
0.86
Fig. 8: Examples of visible clipping artifacts of out-of-gamut pixels caused by
spatial transform around red-gray borders. Flow magnitude has been scaled up
to highlight the visible effects for illustration.
an effective defense method against our attack. Moreover, the
search space is further restricted in JPEG compressed images
as the quantization step of JPEG compression attenuates high
frequency information, especially in the chrominance channels.
Nonetheless, we observed adversarial examples generated by
spatial transforms in chrominance channels of perceptual colorspaces obtain competitive fooling rates without making perceptible changes to the image. This observation provides further evidence for the hypothesis that representation of deep neural networks does not necessarily align with human vision [43].
6. Conclusions
Adopting the techniques used in multimedia compression
and using the idea that pixel shifts in a constrained neighborhood are hard to notice, we designed a method that applies
local spatial transformations to chrominance channels of perceptual colorspaces. The proposed method results in adversarial images having imperceptible distortions without requiring
any regularization. In addition to obtaining competitive fooling
rates, restricting magnitude of the spatial transformations still
yields successful attacks, when there is sufficient amounts of
local chrominance variation in the input image.
In addition to the perceptual colorspaces investigated in this
work, other perceptual colorspaces such as CIELUV, HSLuv
and CIEXYZ [36] can also be utilized to create imperceptible
adversarial examples. Out of gamut values at borders with red
pixels may result in visible artifacts during the adversarial image generation and preventing such out-of-gamut values would
result in better quality adversarial images. While our method
does not require optimizing using a visual quality metric, it can
be utilized along with our method to obtain a better visual quality.
Acknowledgements
This work has been funded by The Scientific and Technological Research Council of Turkey, ARDEB 1001 Research
Projects Programme project no: 120E093
References
[1] K. He, X. Zhang, S. Ren, J. Sun, Deep residual learning for image recog
nition, ComputerScience (2015).
[2] J. Redmon, A. Farhadi, Yolov3: An incremental improvement, arXiv
preprint arXiv:1804.02767 (2018).
[3] J. Long, E. Shelhamer, T. Darrell, Fully convolutional networks for se
mantic segmentation, in: Proceedings of the IEEE conference on computer vision and pattern recognition, 2015, pp. 3431–3440.
[4] C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfel
low, R. Fergus, Intriguing properties of neural networks, arXiv preprint
arXiv:1312.6199 (2013).
[5] I. J. Goodfellow, J. Shlens, C. Szegedy, Explaining and harnessing adver
sarial examples, arXiv preprint arXiv:1412.6572 (2014).
[6] N. Carlini, D. Wagner, Towards evaluating the robustness of neural net
works, in: 2017 ieee symposium on security and privacy (sp), Ieee, 2017,
pp. 39–57.
[7] J. Su, D. V. Vargas, K. Sakurai, One pixel attack for fooling deep neural
networks, IEEE Transactions on Evolutionary Computation 23 (5) (2019)
828–841.
[8] J. Keppel, J. Liebers, J. Auda, U. Gruenefeld, S. Schneegass, Explain
able pixels: Investigating one-pixel attacks on deep learning models with
explainable visualizations, in: Proceedings of the 21st International Conference on Mobile and Ubiquitous Multimedia, 2022, pp. 231–242.
[9] M. Jordan, N. Manoj, S. Goel, A. G. Dimakis, Quantifying perceptual dis
tortion of adversarial examples, arXiv preprint arXiv:1902.08265 (2019).
[10] L. Engstrom, B. Tran, D. Tsipras, L. Schmidt, A. Madry, A rotation and
a translation suffice: Fooling cnns with simple transformations (2018).
[11] G. Wyszecki, W. S. Stiles, Color science: concepts and methods, quanti
tative data and formulae, Vol. 40, John Wiley & Sons, 2000.
[12] V. Bhaskaran, K. Konstantinides, Image and video compression stan
dards: algorithms and architectures (1997).
[13] C. Xiao, J.-Y. Zhu, B. Li, W. He, M. Liu, D. Song, Spatially transformed
adversarial examples, arXiv preprint arXiv:1801.02612 (2018).
[14] V. V. Estrela, H. A. Magalh˜aes, O. Saotome, Total variation applications
in computer vision, in: Handbook of Research on Emerging Perspectives
in Intelligent Pattern Recognition, Analysis, and Image Processing, IGI
Global, 2016, pp. 41–64.
[15] R. Liu, X. Jin, D. Hu, J. Zhang, Y. Wang, J. Zhang, W. Zhou, Dualflow:
Generating imperceptible adversarial examples by flow field and normalize flow-based model, Frontiers in Neurorobotics (2023).
[16] F. Croce, M. Hein, Sparse and imperceivable adversarial attacks, in: Pro
ceedings of the IEEE/CVF International Conference on Computer Vision,
2019, pp. 4724–4732.
[17] C. Luo, Q. Lin, W. Xie, B. Wu, J. Xie, L. Shen, Frequency-driven im
perceptible adversarial attack on semantic similarity, in: Proceedings of
the IEEE/CVF Conference on Computer Vision and Pattern Recognition,
2022, pp. 15315–15324.
[18] R. Duan, Y. Chen, D. Niu, Y. Yang, A. K. Qin, Y. He, Advdrop: Ad
versarial attack to dnns by dropping information, in: Proceedings of
the IEEE/CVF International Conference on Computer Vision, 2021, pp.
7506–7515.
[19] B. Aksoy, A. Temizel, Attack type agnostic perceptual enhancement of
adversarial images, in: International Workshop on Adversarial Machine
Learning And Security (AMLAS), IEEE World Congress on Computational Intelligence (IEEE WCCI), 2019.
[20] C. Pestana, N. Akhtar, W. Liu, D. Glance, A. Mian, Adversarial pertur
bations prevail in the Y-Channel of the YCbCr color space (Feb. 2020).
`[arXiv:2003.00883](http://arxiv.org/abs/2003.00883)` .
[21] [A. Aydin, D. Sen, B. T. Karli, O. Hanoglu, A. Temizel, Imperceptible Ad-](https://doi.org/10.1145/3475724.3483604)
[versarial Examples by Spatial Chroma-Shift, Association for Computing](https://doi.org/10.1145/3475724.3483604)
Machinery, New York, NY, USA, 2021, p. 8–14.
URL `[https://doi.org/10.1145/3475724.3483604](https://doi.org/10.1145/3475724.3483604)`
[22] Z. Wang, A. C. Bovik, H. R. Sheikh, E. P. Simoncelli, Image quality as
sessment: from error visibility to structural similarity, IEEE transactions
on image processing 13 (4) (2004) 600–612.
[23] Z. Wang, E. P. Simoncelli, A. C. Bovik, Multiscale structural similarity
for image quality assessment, in: The Thrity-Seventh Asilomar Conference on Signals, Systems & Computers, 2003, Vol. 2, Ieee, 2003, pp.
1398–1402.
[24] B. T. Karli, D. Sen, A. Temizel, Improving perceptual quality of adversar
ial images using perceptual distance minimization and normalized vari
ance weighting, in: The AAAI-22 Workshop on Adversarial Machine
Learning and Beyond, 2021.
[25] R. Zhang, P. Isola, A. A. Efros, E. Shechtman, O. Wang, The unreason
able effectiveness of deep features as a perceptual metric, in: Proceedings
of the IEEE conference on computer vision and pattern recognition, 2018,
pp. 586–595.
[26] Z. Zhao, Z. Liu, M. Larson, Towards large yet imperceptible adversarial
image perturbations with perceptual color distance, in: IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
[27] Z. Chen, Z. Wang, J. Huang, W. Zhao, X. Liu, D. Guan, Impercep
tible adversarial attack via invertible neural networks, arXiv preprint
arXiv:2211.15030 (2022).
[28] L. Ardizzone, J. Kruse, S. Wirkert, D. Rahner, E. W. Pellegrini, R. S.
Klessen, L. Maier-Hein, C. Rother, U. K¨othe, Analyzing inverse problems
with invertible neural networks, arXiv preprint arXiv:1808.04730 (2018).
[29] M. Jaderberg, K. Simonyan, A. Zisserman, et al., Spatial transformer net
works, Advances in neural information processing systems 28 (2015).
[30] D. P. Kingma, J. Ba, Adam: A method for stochastic optimization, in:
ICLR, 2015.
[31] D. C. Liu, J. Nocedal, On the limited memory bfgs method for large scale
optimization, Mathematical programming 45 (1) (1989) 503–528.
[32] T. Zhou, S. Tulsiani, W. Sun, J. Malik, A. A. Efros, View synthesis by
appearance flow, in: European conference on computer vision, Springer,
2016, pp. 286–301.
[33] A. Mordvintsev, N. Pezzotti, L. Schubert, C. Olah, Differentiable image
parameterizations, Distill 3 (7) (2018) e12.
[34] M. Vorobyev, Ecology and evolution of primate colour vision, Clinical
and Experimental Optometry 87 (4-5) (2004) 230–238.
[35] E. Hamilton, Jpeg file interchange format (2004).
[36] J. Schanda, Colorimetry: understanding the CIE system, John Wiley &
Sons, 2007.
[37] M. Mahy, B. Van Mellaert, L. Van Eycken, A. Oosterlinck, The influence
of uniform color spaces on color image processing: A comparative study
of cielab, cieluv, and atd, Journal of Imaging Technology 17 (1991) 232—
-243.
[38] E. Riba, D. Mishkin, D. Ponsa, E. Rublee, G. Bradski, Kornia: an open
source differentiable computer vision library for pytorch, in: Proceedings
of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2020, pp. 3674–3683.
[39] A. Kurakin, I. Goodfellow, S. Bengio, Y. Dong, F. Liao, M. Liang,
T. Pang, J. Zhu, X. Hu, C. Xie, et al., Adversarial attacks and defences
competition, in: The NIPS’17 Competition: Building Intelligent Systems,
Springer, 2018, pp. 195–231.
[40] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, L. Fei-Fei, Imagenet: A
large-scale hierarchical image database, in: 2009 IEEE conference on
computer vision and pattern recognition, Ieee, 2009, pp. 248–255.
[41] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, Z. Wojna, Rethinking the
inception architecture for computer vision, in: Proceedings of the IEEE
conference on computer vision and pattern recognition, 2016, pp. 2818–
2826.
[42] G. Chan, Toward better chroma subsampling, SMPTE motion imaging
journal 117 (4) (2008) 39–45.
[43] R. Geirhos, P. Rubisch, C. Michaelis, M. Bethge, F. A. Wichmann,
W. Brendel, Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness, arXiv preprint
arXiv:1811.12231 (2018).
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.