Sparse video anti-attack method and device based on space-time reversible neural network

The sparse video adversarial attack method based on spatiotemporal reversible neural network solves the problem in the existing technology that video adversarial attacks are difficult to generate robust and imperceptible video adversarial samples, and achieves efficient and imperceptible video adversarial attack effects.

CN118537772AActive Publication Date: 2024-08-23NAT UNIV OF DEFENSE TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410613914.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-23
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

Existing video adversarial attack methods are difficult to generate robust and imperceptible video adversarial samples, especially under the challenges of spatiotemporal characteristics and huge search space and information redundancy, resulting in high computational costs and perceptible adversarial perturbations.

Method used

A sparse video adversarial attack method based on spatio-temporal reversible neural network is used to generate adversarial videos and residual videos in spatio-temporal feature space information exchange by guiding the target video learning module and spatio-temporal reversible neural network module. The information preservation characteristics of the reversible neural network are used to Information exchange is driven by the adversarial loss function to generate robust adversarial video samples that are difficult to detect.

Benefits of technology

It achieves the generation of imperceptible robust adversarial video samples, reduces computational costs, and improves the imperceptibility and efficiency of adversarial videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537772A
    Figure CN118537772A
Patent Text Reader

Abstract

The invention relates to a sparse video anti-attack method and device based on a space-time reversible neural network. The method comprises the following steps: acquiring a guide video of a target class; learning a learnable target feature tensor under the guidance of a target class guidance video and a target classification model by adopting a guidance target video learning module; a spatio-temporal reversible neural network module is adopted to carry out spatio-temporal feature space information exchange between the target feature tensor learned by the guide target video learning module and the clean video, and an antagonistic video and a residual video are generated; and the space-time reversible neural network module is used for performing information exchange on the target feature tensor and the clean video on the space-time feature level under the driving of the adversarial loss function by using the information storage characteristics of a reversible neural network to generate an adversarial video and a residual video. According to the method, spatio-temporal characteristics of the video are fully considered, and a robust confrontation video sample which is difficult to perceive is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of video adversarial attack, and in particular to a sparse video adversarial attack method and device based on a spatiotemporal reversible neural network. Background Art

[0002] Due to the spatiotemporal characteristics of videos, robust and imperceptible video adversarial attacks are challenging. Existing video adversarial attack methods mainly use gradient-based methods to generate adversarial videos with malicious perturbations.

[0003] Recent advances in deep neural networks (DNNs) have led to the development of image and video content. At the same time, the security issues of deep neural networks have also attracted widespread attention. Szegedy et al. found that DNN-based image classifiers can be easily fooled by adding slight adversarial noise to clean images. Since then, different adversarial attack methods have been proposed to study the security issues of DNNs. Existing adversarial attack methods in the image domain can be divided into two categories: adding adversarial perturbations to clean images or removing semantic features of specific categories from clean images. Recently, Chen et al. proposed an image adversarial attack method based on invertible neural networks (AdvINN), which generates robust and imperceptible adversarial samples by utilizing invertible neural networks (INNs) for feature extraction and feature exchange, while removing the semantic information of clean images and adding the category features of target images.

[0004] Video is composed of a series of images, including spatial and temporal dimensions, with high temporal consistency between adjacent frames. However, adversarial attack methods for images can be naturally extended to videos, but the huge search space and information redundancy pose challenges to the effective generation of video adversarial samples. In order to improve the imperceptibility of adversarial video samples and reduce computational costs, Wei et al. proposed a sparse attack method for videos, using l 2,1The norm regularizes the adversarial perturbation to be temporally sparse and propagates the generated perturbation to other frames through the interaction of the temporal dimension of the target model. Inkawhich et al. proposed a video adversarial attack method based on Fast Gradient Sign Method (FGSM) for action recognition based on optical flow. In order to speed up the generation of video adversaries, Mu et al. proposed DeepSAVA, which effectively alternates between selecting key frames and optimizing spatial transformation perturbations. By leveraging temporal dimension information, Jiang et al. proposed a video attack framework called V-DSA, which uses optical flow to select perturbed pixels for each frame. Although it reduces the search space, the adversarial perturbations are perceptible to human observers. Summary of the invention

[0005] Based on this, it is necessary to provide a sparse video counterattack method and device based on a spatiotemporal reversible neural network to address the above technical problems.

[0006] A sparse video adversarial attack method based on a spatiotemporal reversible neural network, the method comprising:

[0007] Get the guidance video of the target class.

[0008] A guided target video learning module is used to learn the learnable target feature tensor under the guidance of the guide video of the target class and the target classification model.

[0009] A spatiotemporal reversible neural network module is used to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video, so as to generate adversarial video and residual video. The spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, exchange information between the target feature tensor and the clean video at the spatiotemporal feature level, so as to generate adversarial video and residual video.

[0010] In one of the embodiments, the guided target video learning module includes: a target classification model.

[0011] The guided target video learning module is used to learn the learnable target feature tensor under the guidance of the target class's guided video, including:

[0012] Set the target feature tensor as a learnable variable.

[0013] The guidance video of the target class is input into the target classification model to obtain the prediction result of the target class.

[0014] Construct a guided loss function; the guided loss function includes: the cross entropy loss between the target feature tensor and the prediction result of the target class and the MSE loss between the target feature tensor and the guided video of the target class.

[0015] The target feature tensor is updated according to the prediction result of the target class, the guide video of the target class, the target feature tensor and the guide loss function.

[0016] In one embodiment, the guided loss function is:

[0017]

[0018] in, To guide the loss, is the target feature tensor X t And the prediction result y of the target class t The cross entropy loss function between φ (·) is the target classification model, X g is the guidance video of the target class, λ b , β b is the regularization parameter, N=C*T*W*H, C, T, W, and H are the channel, the number of video frames, the video frame width, and the video frame height, respectively.

[0019] In one embodiment, the spatiotemporal reversible neural network module includes: a 3D discrete wavelet transform layer for video feature decomposition, M ST-ACB layers for feature updating and prediction, and a 3D discrete wavelet inverse transform layer for video reconstruction; wherein M is an integer greater than 1.

[0020] The spatiotemporal reversible neural network module is used to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video to generate adversarial videos and residual videos, including:

[0021] The target feature tensor learned by the guided target video learning module and the clean video are decomposed into low-frequency and high-frequency components using a 3D discrete wavelet transform layer to obtain the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video.

[0022] The low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video are updated and predicted using M spatiotemporal affine coupling blocks connected in sequence.

[0023] The output features of the Mth empty affine coupling block are used to reconstruct the image using a 3D discrete wavelet inverse transform layer to obtain the predicted adversarial video and the predicted residual video.

[0024] Construct an adversarial loss function, which includes: the cross entropy loss between the predicted adversarial video and the clean video, and a sparse perturbation based on The sparse loss of the norm and the low-frequency loss used to constrain the perturbation of the target content added in the high-frequency part of the 3D discrete wavelet transform.

[0025] According to the predicted adversarial video, the predicted residual video, the high-frequency components of the clean video, the high-frequency components of the output of the Mth empty affine coupling block corresponding to the clean video, and the adversarial loss function, the parameters of the spatiotemporal reversible neural network module are optimized until the preset optimization target is reached to obtain the adversarial video and the residual video.

[0026] In one embodiment, the forward process of the i-th ST-ACB can be expressed as:

[0027]

[0028]

[0029] Among them, w i is the input feature of the i-th spatiotemporal affine coupling block, ⊙ represents element-by-element multiplication, α is the Sigmoid function multiplied by a constant factor, Γ(·) is the wavelet coefficient, Γ(·)∈R 8C ×T / 2×W / 2×H / 2 , C, T, W, and H are channels, the number of video frames, the width of video frames, and the height of video frames, respectively. ψ(·), φ(·), ρ(·), and η(·) represent the dense network architecture extended to the 3D convolutional layer.

[0030] In one embodiment, the adversarial loss function is:

[0031]

[0032] Where N = C*T*W*H, λ a , β a , γ a is the regularization parameter, F φ (·) is the target classification model, the subscript (lll) is the low-low-low frequency subband of 3D-DWT, l CE (·) is the cross entropy loss function, and the target classification model F φ (·), X g is the guidance video of the target class, y t is the target class, T is the number of video frames, X a For adversarial videos, X c For clean video, X c(lll) , X a(lll) These are the low-low-low frequency subbands of 3D-DWT for clean and adversarial videos, respectively.

[0033] A sparse video counterattack device based on a spatiotemporal reversible neural network, the device comprising:

[0034] The target class guidance video acquisition module is used to obtain the target class guidance video.

[0035] The target feature tensor learning module is used to learn the learnable target feature tensor under the guidance of the guide video of the target class and the target classification model using the guide target video learning module.

[0036] The adversarial video and residual video generation module is used to use the spatiotemporal reversible neural network module to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video, so as to generate adversarial video and residual video; the spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, exchange information between the target feature tensor and the clean video at the spatiotemporal feature level to generate adversarial video and residual video.

[0037] In one of the embodiments, the guided target video learning module includes: a target classification model; a target feature tensor learning module, which is also used to set the target feature tensor as a learnable variable; inputting the guided video of the target class into the target classification model to obtain the prediction result of the target class; constructing a guided loss function; the guided loss function includes: the cross entropy loss between the target feature tensor and the prediction result of the target class and the MSE loss between the target feature tensor and the guided video of the target class; updating the target feature tensor according to the prediction result of the target class, the guided video of the target class, the target feature tensor and the guided loss function.

[0038] In one embodiment, the guided loss function in the guided target video learning module is:

[0039]

[0040] in, To guide the loss, is the target feature tensor X t And the prediction result y of the target class t The cross entropy loss function between φ (·) is the target classification model, X g is the guidance video of the target class, λ b , β b is the regularization parameter, N=C*T*W*H, C, T, W, and H are the channel, the number of video frames, the video frame width, and the video frame height, respectively.

[0041] In one embodiment, the spatiotemporal reversible neural network module includes: a 3D discrete wavelet transform layer for video feature decomposition, M ST-ACB layers for feature updating and prediction, and a 3D discrete wavelet inverse transform layer for video reconstruction; wherein M is an integer greater than 1; an adversarial video and residual video generation module, further used to use a 3D discrete wavelet transform layer to decompose the spatial and temporal dimension features of the target feature tensor and the clean video learned by the guided target video learning module into low-frequency and high-frequency components, respectively, to obtain the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video; the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video are updated and predicted using M spatiotemporal affine coupling blocks connected in sequence; the output features of the Mth space affine coupling block are reconstructed using a 3D discrete wavelet inverse transform layer to obtain a predicted adversarial video and a predicted residual video; an adversarial loss function is constructed, the adversarial loss function including: a cross entropy loss between the predicted adversarial video and the clean video, a loss based on the sparseness of the generated perturbation, and a loss function based on the sparseness of the generated perturbation. The sparse loss of the norm and the low-frequency loss of the target content added in the high-frequency part of the 3D discrete wavelet transform for constrained perturbation are used; according to the predicted adversarial video, the predicted residual video, the high-frequency component of the clean video, the high-frequency component corresponding to the clean video of the output of the Mth empty affine coupling block and the adversarial loss function, the parameters of the spatiotemporal reversible neural network module are optimized until the preset optimization target is reached to obtain the adversarial video and the residual video.

[0042] The above-mentioned sparse video adversarial attack method and device based on spatiotemporal reversible neural network, the method includes: obtaining a guide video of the target class; using a guide target video learning module to learn a learnable target feature tensor under the guidance of the guide video of the target class and the target classification model; using a spatiotemporal reversible neural network module to exchange spatiotemporal feature space information between the target feature tensor learned by the guide target video learning module and the clean video to generate adversarial video and residual video; the spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, the target feature tensor and the clean video are exchanged at the spatiotemporal feature level to generate adversarial video and residual video. This method fully considers the spatiotemporal characteristics of the video and generates imperceptible robust adversarial video samples. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of a flow chart of a sparse video counterattack method based on a spatiotemporal reversible neural network in one embodiment;

[0044] Figure 2 A sparse adversarial video attack framework based on a spatiotemporal reversible neural network in one embodiment;

[0045] Figure 3 It is a structural block diagram of a sparse video anti-attack device based on a spatiotemporal reversible neural network in one embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] Sparse video adversarial attack model based on spatiotemporal reversible neural network, abbreviated as: SVASTIN.

[0048] Guided Target Video Learning module, Guided Target Video Learning, referred to as: GTVL module.

[0049] Spatio-Temporal Invertible Neural Network module, referred to as STIN module.

[0050] Space-time affine coupling block, abbreviated as: ST-ACB.

[0051] Three-dimensional discrete wavelet transform, abbreviated as: 3D-DWT.

[0052] Three-dimensional inverse discrete wavelet transform, abbreviated as: 3D-IDWT.

[0053] Reversible neural networks, or INNs for short.

[0054] In one embodiment, Figure 1 As shown, a time-space

[0055] The sparse video adversarial attack method of the inverse neural network comprises the following steps:

[0056] Step 100: Obtain a guidance video of the target class.

[0057] Specifically, the guide video is selected from the target class.

[0058] Step 102: Using a guided target video learning module to learn a learnable target feature tensor under the guidance of a guide video of the target class and a target classification model.

[0059] Specifically, for image adversarial attacks, Chen et al. proposed three methods for selecting target images, namely, highest confidence target images (HCT), universal adversarial perturbation images (UAP), and classifier-guided target images (CGT), but these methods cannot effectively and efficiently learn the target information of video adversarial attacks. Specifically, HCT carries a large amount of redundant information that is irrelevant to the target class, the UAP method cannot successfully perturb all target classes, and CGT needs to be optimized in a search space that is much larger than the image. In order to improve the effectiveness and efficiency of learning target video information, this application proposes a guided target video learning module to provide a suitable target feature tensor (i.e., target information) for the spatiotemporal reversible neural network module.

[0060] The guided target video learning module is used to effectively learn the target feature tensor and update the learnable target feature tensor under the guidance of the guide video of the target class and the target classification model.

[0061] Target feature tensor X t The source information of the target class.

[0062] Step 104: A spatiotemporal reversible neural network module is used to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video to generate an adversarial video and a residual video. The spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, the target feature tensor and the clean video are exchanged at the spatiotemporal feature level to generate an adversarial video and a residual video.

[0063] Specifically, reversible neural networks (INNs) with information preservation properties have been used for imperceptible and robust image adversarial attacks. Compared with images, videos have an additional temporal dimension, which is an important feature that should be exploited. In order to better exchange spatiotemporal information, a reversible neural network with spatiotemporal affine coupling blocks is proposed. The spatiotemporal reversible neural network module is used to train the clean video X using 3D discrete wavelet transform. c and the target feature tensor X t The video is decomposed, and then a reversible neural network with spatiotemporal affine coupling blocks is used to capture motion information from both spatial and temporal dimensions. Finally, the residual video X is reconstructed using the 3D inverse discrete wavelet transform. r Adversarial Video X a .

[0064] The spatiotemporal reversible neural network (STIN) module uses its information preservation characteristics to input clean video X c and a target feature tensor X tThe spatiotemporal feature space information exchange between them, the spatiotemporal reversible neural network module can simultaneously extract and process spatiotemporal information, and the module is completely reversible.

[0065] The sparse adversarial video attack model framework based on spatiotemporal reversible neural network is as follows Figure 2 As shown in the figure, the sparse adversarial video attack model based on spatiotemporal reversible neural network generates adversarial video through spatiotemporal feature space information exchange. The model consists of a guided target video learning module and a spatiotemporal reversible neural network module. The guided target video learning module is used to balance the perturbation size and optimization speed. The spatiotemporal reversible neural network module is used to exchange spatiotemporal feature space information between the clean video and the target feature tensor learned by the GTVL module.

[0066] The framework generates adversarial video examples based on the spatiotemporal reversible neural network (STIN) and the guided target video learning (GTVL) module. By utilizing the information preservation properties of INNs and driving the adversarial loss function, information is exchanged at the spatiotemporal feature level, and the class-specific features of the target feature tensor learned by GTVL are added to the clean video to generate adversarial video samples while removing the discriminative information of the clean video.

[0067] In the above-mentioned sparse video adversarial attack method based on spatiotemporal reversible neural network, the method includes: obtaining a guide video of the target class; using a guide target video learning module to learn a learnable target feature tensor under the guidance of the guide video of the target class and the target classification model; using a spatiotemporal reversible neural network module to exchange spatiotemporal feature space information between the target feature tensor learned by the guide target video learning module and the clean video to generate adversarial video and residual video; the spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, the target feature tensor and the clean video are exchanged at the spatiotemporal feature level to generate adversarial video and residual video. This method fully considers the spatiotemporal characteristics of the video and generates imperceptible robust adversarial video samples.

[0068] In one embodiment, the guided target video learning module includes: a target classification model. Step 102 includes: setting the target feature tensor as a learnable variable; inputting the guided video of the target class into the target classification model to obtain the prediction result of the target class; constructing a guided loss function; the guided loss function includes: a cross entropy loss between the target feature tensor and the prediction result of the target class and an MSE loss between the target feature tensor and the guided video of the target class; updating the target feature tensor according to the prediction result of the target class, the guided video of the target class, the target feature tensor and the guided loss function.

[0069] Specifically, the target feature tensor X tSet as a learnable variable and in the guidance video X of the target class g and the target classification model F φ (·) is used for updating. Compared with directly using HCT video as the target feature tensor, the GTVL module can alleviate the impact of a large amount of redundant information in HCT video. Compared with the CGT method, the GTVL module utilizes a guiding video and a guiding loss to facilitate fast convergence. Therefore, the GTVL module effectively generates a target feature tensor with high confidence.

[0070] In one embodiment, the guided loss function is:

[0071]

[0072] in, To guide the loss, is the target feature tensor X t And the prediction result y of the target class t The cross entropy loss function between φ (·) is the target classification model, X g is the guidance video of the target class, λ b , β b is the regularization parameter, N=C*T*W*H, C, T, W, and H are the channel, the number of video frames, the video frame width, and the video frame height, respectively.

[0073] Specifically, in order to effectively embed the target content for information exchange, this application uses guided loss To learn the target feature tensor X t , the loss includes the target feature tensor X t The cross entropy loss between the predicted class and the target class and the target feature tensor X t and the guidance video X of the target class g The MSE loss between The guided loss function is shown in formula (1).

[0074] In one embodiment, the spatiotemporal reversible neural network module includes: a 3D discrete wavelet transform layer for video feature decomposition, M ST-ACB layers for feature updating and prediction, and a 3D discrete wavelet inverse transform layer for video reconstruction; wherein M is an integer greater than 1.

[0075] Step 104 includes: using a 3D discrete wavelet transform layer to decompose the spatial and temporal dimension features of the target feature tensor learned by the guide target video learning module and the clean video into low-frequency and high-frequency components, respectively, to obtain the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video; using M spatiotemporal affine coupling blocks connected in sequence to update and predict the spatiotemporal features of the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video; using a 3D discrete wavelet inverse transform layer to reconstruct the output features of the Mth space affine coupling block to obtain a predicted adversarial video and a predicted residual video; constructing an adversarial loss function, the adversarial loss function including: a cross entropy loss between the predicted adversarial video and the clean video, a loss based on the prediction function for adjusting the generated perturbation to be sparser. The sparse loss of the norm and the low-frequency loss of the target content added in the high-frequency part of the 3D discrete wavelet transform for constrained perturbation are used; according to the predicted adversarial video, the predicted residual video, the high-frequency component of the clean video, the high-frequency component corresponding to the clean video of the output of the Mth empty affine coupling block and the adversarial loss function, the parameters of the spatiotemporal reversible neural network module are optimized until the preset optimization target is reached to obtain the adversarial video and the residual video.

[0076] Specifically, perturbations are added to the high-frequency components obtained by 3D-DWT decomposition, thereby generating adversarial videos with higher imperceptibility.

[0077] In one embodiment, the forward process of the i-th ST-ACB can be expressed as:

[0078]

[0079]

[0080] Among them, w i is the input feature of the i-th spatiotemporal affine coupling block, ⊙ represents element-by-element multiplication, α is the Sigmoid function multiplied by a constant factor, Γ(·) is the wavelet coefficient, Γ(·)∈R 8C ×T / 2×W / 2×H / 2 , C, T, W, and H are channels, the number of video frames, the width of video frames, and the height of video frames, respectively. ψ(·), φ(·), ρ(·), and η(·) represent the dense network architecture extended to the 3D convolutional layer.

[0081] Specifically, three-dimensional discrete wavelet transform layer (3D-DWT layer): Wavelet transform is widely used to analyze images and signals with different frequency components. In this application, 3D-DWT is used to transform the video The spatial and temporal dimensions of are decomposed into low-frequency and high-frequency components, resulting in 8 sub-bands. Its wavelet coefficients can be expressed as It should be noted that compared with 2D-DWT, 3D-DWT further decomposes the time dimension into low-frequency and high-frequency sub-bands, which can help capture the motion information in the video.

[0082] Spatiotemporal Affine Coupling Block: Affine Coupling Block (ACB) is a key building block of reversible neural networks, but it is designed to process two-dimensional images and cannot capture temporal information in videos well. Here, this application proposes a spatiotemporal affine coupling block (ST-ACB) with three-dimensional convolutional layers to facilitate temporal information modeling. i As the input features of the i-th spatiotemporal affine coupling block, and use and Then the forward process of the i-th ST-ACB can be expressed by formulas (2) to (3).

[0083] Given the output of the Mth ST-ACB, the 3D discrete wavelet inverse transform is used at the 3D-IDWT layer and To reconstruct the adversarial video and residual video. Therefore, the STIN module is completely reversible, and the output video (X a ,X r ) and the input video (X c ,X t ) contain the same amount of information.

[0084] In one embodiment, the adversarial loss function is:

[0085]

[0086] Where N = C*T*W*H, λ a , β a , γ a is the regularization parameter, F φ (·) is the target classification model, the subscript (lll) is the low-low-low frequency subband of 3D-DWT, l CE (·) is the cross entropy loss function, and the target classification model F φ (·), X g is the guidance video of the target class, y t is the target class, T is the number of video frames, X a For adversarial videos, X c For clean video, X c(lll) , X a(lll) These are the low-low-low frequency subbands of 3D-DWT for clean and adversarial videos, respectively.

[0087] Specifically, using adversarial loss To guide the optimization of STIN module parameters. Specifically, Including adversarial video X a With the target class y t The cross entropy loss between , as shown in formula (4), is used to adjust the generated perturbation to be more sparse based on The sparse loss of the norm, and the low-frequency loss used to constrain the target content of the perturbation added in the high-frequency subband of the 3D-DWT, thus producing more imperceptible adversarial examples.

[0088] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0089] In a validation implementation, quantitative and qualitative results of SVASTIN are compared with other state-of-the-art sparse video adversarial methods. The STIN module, GTVL module, and low-frequency loss are validated. effectiveness.

[0090] (1) Experimental setup

[0091] Datasets and Models: The performance of the comparison methods is evaluated on Kinetics-400 and UCF-101. Under the same experimental setting conditions, a video correctly classified by the target classification model is randomly selected from each category of the dataset as the input clean video. Three commonly used video action recognition models, MVIT, SLOWFAST and TSN, are used as target classification models.

[0092] Settings: For the STIN module, use a learning rate of 1e -4 The Adam optimizer optimizes its parameters relative to formula (4). According to experience, we set λ a =0.3, β a = 0.4 and γ a = 10. For GTVL, the Adam optimizer with a learning rate of 1 / 255 is used to optimize X according to formula (3). t Optimize and set the parameter λ b and β bThe regularization is set to 0.01 and 1 respectively.

[0093] Comparison method: This embodiment includes three white-box attack methods for comparison, one is the traditional adversarial attack C&W, and the other is the sparse attack method (Sparse-Attack) and DeepSAVA.

[0094] Evaluation indicators: Five indicators are used to evaluate the performance of different methods, including Mean Square Error (MSE), Structural Similarity Index (SSIM), Peak Signal-to-Noise Ratio (PSNR), Fréchet Inception Distance (FID), and Fooling rate (FR).

[0095] (2) Targeted Attack Assessment

[0096] Table 1 shows the target attack performance of different methods on UCF-101 and Kinetics-400. If the confidence of the target class is greater than 90%, the generated adversarial example is considered successful. From the results, it can be seen that compared with other methods, the method of the present application achieves the highest FR overall, while generating adversarial examples of the best quality, especially in perceptual metrics. For example, the method of the present application achieves 100% FR when deceiving the MVIT model on the Kinect-400 dataset, and it has higher structural and perceptual similarities than the comparison methods. In terms of PSNR, the method of the present application is 9.41 and 14.54 higher than the Sparse-Attack and DeepSAVA methods, respectively. In terms of the perceptual metric FID, the method of the present application is 181.54 and 74.83 lower than the Sparse-Attack and DeepSAVA methods, respectively. It can be seen that the method of the present application achieves the best visual quality and the highest imperceptibility.

[0097] Table 1. Comparison results of different targeted attack methods on benchmark datasets and models

[0098]

[0099] Note: The higher the values ​​of MSE, SSIM, PSNR, and FRT, the better, and vice versa; The lower the value of FID, the better, and vice versa.

[0100] (3) Ablation experiment

[0101] Effectiveness of STIN module: The STIN module uses the spatiotemporal information of the clean video feature tensor and the target video feature tensor to exchange feature space information. If the temporal features of the video are not handled properly, the performance of the video adversarial attack method will be restricted. Table 2 shows the attack performance of the STIN module using 3D-DWT and ST-ACB with 2D-DWT and 2D convolution in AdvINN and IIEM. From the results, it can be seen that the STIN module has better performance than IIEM in terms of both the quality of adversarial videos and the optimization speed.

[0102] Table 2. Ablation experiment: effectiveness of STIN module

[0103]

[0104] Note: MSE, FID, The smaller the value of is, the better, and vice versa; the larger the value of SSIM and PSNR is, the better, and vice versa.

[0105] Effectiveness of GTVL module: Table 3 shows the performance of three methods for learning target feature tensors. CGT learns the target feature tensor only from the classifier, while HCT utilizes natural videos selected from the target class as the target feature tensor. For the GTVL module, the target feature tensor X is initialized using a learnable variable t , and then randomly select a guide video X from the target class g , further fine-tuning the guided video X g , inducing misclassification to the target class. It can be seen that the GTVL module plays a vital role in SVASTIN, effectively improving the imperceptibility and convergence speed of adversarial perturbations.

[0106] Table 3. Ablation experiment: effectiveness of GTVL module

[0107]

[0108] Note: MSE, FID, The smaller the value of Epochs, the better, and vice versa. The larger the value of SSIM and PSNR, the better, and vice versa.

[0109] Low frequency loss Effectiveness: 3D-DWT decomposes the spatial and temporal dimensions of the input video into 8 high and low frequency sub-bands. In order to improve the imperceptibility of adversarial samples, this application proposes a low frequency loss to constrain the modification mainly applied to high frequency coefficients. It can help achieve smoothness in space and time. In Table 4, the results of considering and not considering low frequency loss are shown in Table 4. The MVIT model was tested. From Table 4, it can be observed that The SVASTIN model has good performance in MSE, SSIM, PSNR, It shows better qualitative performance in terms of θ and FID, and the optimization speed is slightly improved.

[0110] Table 4. Ablation experiment: effectiveness of low-frequency loss

[0111]

[0112] Note: MSE, FID, The smaller the value of Epochs, the better, and vice versa. The larger the value of SSIM and PSNR, the better, and vice versa.

[0113] In one embodiment, Figure 3 As shown, a sparse video adversarial attack device based on a spatiotemporal reversible neural network is provided, comprising: a guide video acquisition module of a target class, a target feature tensor learning module, and an adversarial video and residual video generation module, wherein:

[0114] The target class guidance video acquisition module is used to obtain the target class guidance video.

[0115] The target feature tensor learning module is used to learn the learnable target feature tensor under the guidance of the guide video of the target class and the target classification model using the guide target video learning module.

[0116] The adversarial video and residual video generation module is used to use the spatiotemporal reversible neural network module to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video, so as to generate adversarial video and residual video; the spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, exchange information between the target feature tensor and the clean video at the spatiotemporal feature level to generate adversarial video and residual video.

[0117] In one of the embodiments, the guided target video learning module includes: a target classification model; a target feature tensor learning module, which is also used to set the target feature tensor as a learnable variable; inputting the guided video of the target class into the target classification model to obtain the prediction result of the target class; constructing a guided loss function; the guided loss function includes: the cross entropy loss between the target feature tensor and the prediction result of the target class and the MSE loss between the target feature tensor and the guided video of the target class; updating the target feature tensor according to the prediction result of the target class, the guided video of the target class, the target feature tensor and the guided loss function.

[0118] In one embodiment, the guided loss function in the guided target video learning module is as shown in formula (1).

[0119] In one embodiment, the spatiotemporal reversible neural network module includes: a 3D discrete wavelet transform layer for video feature decomposition, M ST-ACB layers for feature updating and prediction, and a 3D discrete wavelet inverse transform layer for video reconstruction; wherein M is an integer greater than 1; an adversarial video and residual video generation module, further used to use a 3D discrete wavelet transform layer to decompose the spatial and temporal dimension features of the target feature tensor and the clean video learned by the guided target video learning module into low-frequency and high-frequency components, respectively, to obtain the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video; the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video are updated and predicted using M spatiotemporal affine coupling blocks connected in sequence; the output features of the Mth space affine coupling block are reconstructed using a 3D discrete wavelet inverse transform layer to obtain a predicted adversarial video and a predicted residual video; an adversarial loss function is constructed, the adversarial loss function including: a cross entropy loss between the predicted adversarial video and the clean video, a loss based on the sparseness of the generated perturbation, and a loss function based on the sparseness of the generated perturbation. The sparse loss of the norm and the low-frequency loss of the target content added in the high-frequency part of the 3D discrete wavelet transform for constrained perturbation are used; according to the predicted adversarial video, the predicted residual video, the high-frequency component of the clean video, the high-frequency component corresponding to the clean video of the output of the Mth empty affine coupling block and the adversarial loss function, the parameters of the spatiotemporal reversible neural network module are optimized until the preset optimization target is reached to obtain the adversarial video and the residual video.

[0120] In one embodiment, the forward process of the i-th ST-ACB in the spatiotemporal reversible neural network module is shown in formula (2) and formula (3).

[0121] In one embodiment, the adversarial loss function in the spatiotemporal reversible neural network module is shown in formula (4).

[0122] For the specific definition of the sparse video anti-attack device based on spatiotemporal reversible neural network, please refer to the definition of the sparse video anti-attack method based on spatiotemporal reversible neural network mentioned above, which will not be repeated here. Each module in the above-mentioned sparse video anti-attack device based on spatiotemporal reversible neural network can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0123] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0124] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A sparse video adversarial attack method based on spatiotemporal reversible neural network, It is characterized in that The method comprises: Get the guidance video of the target class; Using a guided target video learning module to learn a learnable target feature tensor under the guidance of a guided video of the target class and a target classification model; A spatiotemporal reversible neural network module is used to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video to generate adversarial video and residual video; the spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, exchange information between the target feature tensor and the clean video at the spatiotemporal feature level to generate adversarial video and residual video.

2. The method according to claim 1, It is characterized in that The guided target video learning module includes: target classification model; The guided target video learning module is used to learn the learnable target feature tensor under the guidance of the guided video of the target class, including: Set the target feature tensor as a learnable variable; Inputting the guide video of the target class into the target classification model to obtain a prediction result of the target class; Constructing a guided loss function; the guided loss function includes: a cross entropy loss between the target feature tensor and the prediction result of the target class and an MSE loss between the target feature tensor and the guided video of the target class; The target feature tensor is updated according to the prediction result of the target class, the guide video of the target class, the target feature tensor and the guide loss function.

3. The method according to claim 2, It is characterized in that The guided loss function is: in, To guide the loss, l CE (F φ (X t ),y t ) is the target feature tensor X t And the prediction result y of the target class t The cross entropy loss function between φ (·) is the target classification model, X g is the guidance video of the target class, λ b , β b is the regularization parameter, N=C*T*W*H, C, T, W, and H are the channel, the number of video frames, the video frame width, and the video frame height, respectively.

4. The method according to claim 1, It is characterized in that The spatiotemporal reversible neural network module includes: a 3D discrete wavelet transform layer for video feature decomposition, M ST-ACB layers for feature update and prediction, and a 3D discrete wavelet inverse transform layer for video reconstruction; wherein M is an integer greater than 1; A spatiotemporal reversible neural network module is used to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video to generate adversarial videos and residual videos, including: The target feature tensor learned by the guided target video learning module and the clean video are respectively decomposed into low-frequency and high-frequency components by using a 3D discrete wavelet transform layer to obtain the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video; The low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video are updated and predicted using M spatiotemporal affine coupling blocks connected in sequence. The output features of the Mth empty affine coupling block are reconstructed using the 3D discrete wavelet inverse transform layer to obtain a predicted adversarial video and a predicted residual video; Construct an adversarial loss function, which includes: a cross entropy loss between the predicted adversarial video and the clean video, a l-based loss for adjusting the generated perturbation to be more sparse 2,1 The sparse loss of the norm and the low-frequency loss used to constrain the perturbation of the target content added in the high-frequency part of the 3D discrete wavelet transform; According to the predicted adversarial video, the predicted residual video, the high-frequency component of the clean video, the high-frequency component of the output of the Mth empty affine coupling block corresponding to the clean video, and the adversarial loss function, the parameters of the spatiotemporal reversible neural network module are optimized until the preset optimization target is reached to obtain the adversarial video and the residual video.

5. The method according to claim 4, It is characterized in that The forward process of the i-th ST-ACB can be expressed as: Among them, w i is the input feature of the i-th spatiotemporal affine coupling block, ⊙ represents element-by-element multiplication, α is the Sigmoid function multiplied by a constant factor, Γ(·) is the wavelet coefficient, Γ(·)∈R 8C×T / 2×W / 2×H / 2 , C, T, W, and H are channels, the number of video frames, the width of video frames, and the height of video frames, respectively. ψ(·), φ(·), ρ(·), and η(·) represent the dense network architecture extended to the 3D convolutional layer.

6. The method according to claim 4, It is characterized in that The adversarial loss function is: Where N = CTWH, λ a ,β a ,γ a is the regularization parameter, F φ (·) is the target classification model, the subscript (lll) is the low-low-low frequency subband of 3D-DWT, l CE (·) is the cross entropy loss function, and the target classification model F φ (·), X g is the guidance video of the target class, y t is the target class, T is the number of video frames, X a For adversarial videos, X c For clean video, X c(lll) , X a(lll) These are the low-low-low frequency subbands of 3D-DWT for clean video and adversarial video, respectively.

7. A sparse video counterattack device based on spatiotemporal reversible neural network, It is characterized in that The device comprises: A target class guidance video acquisition module is used to acquire a target class guidance video; A target feature tensor learning module, used for learning a learnable target feature tensor under the guidance of a guide video of the target class and a target classification model using a guide target video learning module; The adversarial video and residual video generation module is used to use the spatiotemporal reversible neural network module to exchange spatiotemporal feature space information between the target feature tensor learned by the guided target video learning module and the clean video, so as to generate adversarial video and residual video; the spatiotemporal reversible neural network module is used to utilize the information preservation characteristics of the reversible neural network, and under the drive of the adversarial loss function, exchange information between the target feature tensor and the clean video at the spatiotemporal feature level to generate adversarial video and residual video.

8. The device according to claim 7, It is characterized in that The guided target video learning module includes: a target classification model; a target feature tensor learning module, which is also used to set the target feature tensor as a learnable variable; input the guided video of the target class into the target classification model to obtain the prediction result of the target class; construct a guided loss function; the guided loss function includes: the cross entropy loss between the target feature tensor and the prediction result of the target class and the MSE loss between the target feature tensor and the guided video of the target class; according to the prediction result of the target class, the guided video of the target class, the target feature tensor and the guided loss function, the target feature tensor is updated.

9. The device according to claim 8, It is characterized in that The guided loss function in the guided target video learning module is: in, To guide the loss, l CE (F φ (X t ),y t ) is the target feature tensor X t And the prediction result y of the target class t The cross entropy loss function between φ (·) is the target classification model, X g is the guidance video of the target class, λ b , β b is the regularization parameter, N=C*T*W*H, C, T, W, and H are the channel, the number of video frames, the video frame width, and the video frame height, respectively.

10. The device according to claim 7, It is characterized in that The spatiotemporal reversible neural network module includes: a 3D discrete wavelet transform layer for video feature decomposition, M ST-ACB layers for feature updating and prediction, and a 3D discrete wavelet inverse transform layer for video reconstruction; wherein M is an integer greater than 1; an adversarial video and residual video generation module, further used to use a 3D discrete wavelet transform layer to decompose the spatial and temporal dimension features of the video into low-frequency and high-frequency components using the target feature tensor learned by the guided target video learning module and the clean video, respectively, to obtain the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video; the low-frequency and high-frequency components of the target feature tensor and the low-frequency and high-frequency components of the clean video are updated and predicted using M spatiotemporal affine coupling blocks connected in sequence; the output features of the Mth space affine coupling block are reconstructed using the 3D discrete wavelet inverse transform layer to obtain a predicted adversarial video and a predicted residual video; an adversarial loss function is constructed, the adversarial loss function including: a cross entropy loss between the predicted adversarial video and the clean video, a l-based loss function for adjusting the generated perturbation to be sparser 2,1 The sparse loss of the norm and the low-frequency loss of the target content added in the high-frequency part of the 3D discrete wavelet transform for constrained perturbation are optimized; according to the predicted adversarial video, the predicted residual video, the high-frequency component of the clean video, the high-frequency component corresponding to the clean video output by the Mth empty affine coupling block and the adversarial loss function, the parameters of the spatiotemporal reversible neural network module are optimized until the preset optimization target is reached to obtain the adversarial video and the residual video.

Citation Information

Patent Citations

  • Deep learning techniques for suppressing artefacts in magnetic resonance images

    CN113557526A

  • Image watermark embedding and extracting method, device and equipment and readable storage medium

    CN115564633A

  • GDNN-based industrial video global sparse confrontation sample generation method and device

    CN117115587A

  • Video compressed sensing and reconstruction method and apparatus based on deep neural network

    WO2021093393A1