A generative adversarial attack method based on meta-learning

Through the generative adversarial attack method based on meta-learning, a meta-learning adversarial attack task is constructed, the generator and the discriminator are optimized, and adversarial samples with universal applicability and strong transferability are generated, which solves the problem of limited transferability of adversarial samples in the existing technology. problem, which enhances the generalization and practicality of adversarial examples.

CN118485114BActive Publication Date: 2024-09-27HUNAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410940886.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-27
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Existing target recognition models are vulnerable to adversarial attacks, the generated adversarial samples have limited transferability, cannot effectively test the robustness of re-identification models in the real world, and ignore the diversity of data domains and feature spaces.

Method used

Adopting a generative adversarial attack method based on meta-learning, by constructing meta-learning adversarial attack tasks, including meta-training tasks and meta-test tasks, using a generative adversarial neural network to generate adversarial samples, and through target morphological migration diffusion, adversarial perturbation random erasure and Regularization parameter mixing operation optimizes the parameters of the generator and discriminator to generate adversarial samples with universal applicability and strong transfer performance.

Benefits of technology

It improves the generalization and practicality of adversarial samples, can more accurately reveal the potential weaknesses of the target recognition model, maintains the adversarial effect in different data domains and feature spaces, and enhances the cross-model and cross-data domain confrontation of adversarial samples. ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118485114B
    Figure CN118485114B
Patent Text Reader

Abstract

The present application relates to a generative adversarial attack method based on meta-learning, which includes: constructing a meta-learning adversarial attack task based on a database and a model library, the meta-learning adversarial attack task includes a meta-training task and a meta-testing task, the meta-training task is used to train and update the generator in the generative adversarial neural network used for the meta-testing task; the meta-testing task includes performing a target morphology migration and diffusion operation, an adversarial perturbation random erasing operation, and a regularization parameter mixing operation; the meta-learning adversarial task is used to train the generator and discriminator in the generative adversarial neural network, and the meta-learning adversarial task is repeatedly performed until the first number of iterations is reached; obtaining a target image, and inputting the target image into the trained generative adversarial neural network to obtain an adversarial perturbation sample of the target image; constraining the adversarial perturbation sample, and superimposing the constrained adversarial perturbation sample on the target image to obtain an adversarial sample.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine vision technology, and in particular to a generative adversarial attack method based on meta-learning. Background Art

[0002] Neural network-based target recognition models are vulnerable to malicious attacks. These attacks usually significantly reduce the target recognition effect by cleverly adding tiny perturbations that are difficult to detect by the naked eye to the original image, posing a serious threat to the stability and accuracy of the model.

[0003] At present, existing adversarial attack methods for target recognition usually focus on improving the transfer performance across neural network model architectures, ignoring the domain diversity of input data in reality and the diversity of feature spaces generated by target models due to the use of different training data sets. This limitation leads to limited transferability of generated adversarial samples, making it impossible to effectively test the robustness of re-identification models in the real world. Summary of the invention

[0004] Based on this, it is necessary to provide an adversarial sample generation method that can consider cross-data domain and cross-feature embedding space capabilities to ensure that the generated adversarial samples have stronger generalization and practicality, thereby more accurately revealing the potential weaknesses of the target recognition model. Specifically, a generative adversarial attack method based on meta-learning includes:

[0005] S1: Obtain a database consisting of multiple different target recognition data sets and a model library consisting of multiple different target recognition models;

[0006] S2: constructing a meta-learning adversarial attack task based on the database and the model library, wherein the meta-learning adversarial attack task includes a meta-training task and a meta-testing task; the meta-training task is used to train and update the generator in the generative adversarial neural network for the meta-testing task; the meta-testing task includes performing a target morphology migration diffusion operation, an adversarial perturbation random erasure operation, and a regularization parameter mixing operation; the meta-learning adversarial task is used to train the generator and discriminator in the generative adversarial neural network;

[0007] S3: Repeat the meta-learning adversarial task until the first iteration is reached;

[0008] S4: Acquire a target image, and input the target image into a trained generative adversarial neural network to obtain an adversarial perturbation sample of the target image;

[0009] S5: constraining the adversarial perturbation sample, and superimposing the constrained adversarial perturbation sample onto the target image to obtain an adversarial sample.

[0010] Preferably, in S2, constructing a meta-learning anti-attack task based on the database and the model library includes:

[0011] Step 1: Set the second iteration number T;

[0012] Step 2: randomly extracting two target recognition data sets from the database, and randomly extracting two target recognition models from the model library;

[0013] Taking the extracted target recognition data set as input and the extracted target recognition model as a recognition model; forming two pairs of target recognition data set-target recognition model pairs; one pair of target recognition data set-target recognition model pairs is used for a meta-training task, and the other pair is used for a meta-testing task;

[0014] Step 3: Repeat step 2 until T meta-learning adversarial attack tasks are generated.

[0015] Preferably, the meta-training task includes:

[0016] Step 1: inputting the object recognition data set in the meta-training task into the object recognition model in the meta-training task to obtain a first image feature;

[0017] Step 2: Use the generator in the generative adversarial neural network to generate a first adversarial sample of the target recognition data set, and input the first adversarial sample into the target recognition model in the meta-training task to obtain a first adversarial image feature;

[0018] Step 3: copy the generator; and calculate a first feature distance loss based on the first image feature and the first adversarial image feature;

[0019] Step 4: Based on the first feature distance loss, update the parameters of the copied generator using the gradient descent method.

[0020] Preferably, the meta-test task includes:

[0021] Step 1: Input the target recognition data set in the meta-test task into the object target morphology migration diffusion model to generate meta-test morphology migration data;

[0022] Step 2: inputting the meta-test morphological migration data into the object recognition model in the meta-test task to generate a second image feature;

[0023] Step 3: Input the meta-test morphological migration data into the copied updated generator to generate adversarial perturbations, perform random erasing operations on the adversarial perturbations, and generate second adversarial samples;

[0024] Step 4: performing a regularization parameter mixing operation on the target recognition model in the meta-test task;

[0025] Step 5: inputting the second adversarial sample into the target recognition model after the regularization parameter mixing operation to generate a second adversarial image feature;

[0026] Step 6: Based on the second image feature and the second adversarial image feature, calculate the second feature distance loss; based on the second adversarial sample, calculate the meta-test generation loss using the discriminator in the generative adversarial neural network;

[0027] Step 7: Combine the second feature distance loss and the meta-test generation loss to obtain a first adversarial attack loss; the first adversarial attack loss is used to update the parameters of the original generator.

[0028] Preferably, the calculation formula of the meta-test morphological migration data is:

[0029] ;

[0030] in, Represents meta-test morphological migration data; Represents the object target morphology migration and diffusion model; represents the target recognition dataset in the meta-test task; V represents the target perspective change factor; P represents the target posture change factor; I represents the target image illumination change factor; R represents the target resolution change factor.

[0031] Preferably, performing a regularization parameter mixing operation on the target recognition model in the meta-test task includes:

[0032] Step 1: Copy the target recognition model for the t-th meta-test task, and input the target recognition dataset for the t-th meta-training task into the copied target recognition model, fix the parameters of the copied target recognition model, set the update mode of the statistical parameters in the batch regularization layer of the copied target recognition model to online update, and obtain the first mean and first variance of the batch regularization layer in the network architecture of the copied target recognition model;

[0033] Step 2: fix the parameters of the original target recognition model used for the t-th meta-test task, and set the statistical parameters of the original target recognition model not to be updated, and obtain the second mean and second variance of the batch normalization layer in the network architecture of the original target recognition model;

[0034] Step 3: Calculate a mixed mean based on the first mean and the second mean, and calculate a mixed variance based on the first variance and the second variance, and the calculation formula is:

[0035] ;

[0036] ;

[0037] in, represents the mixed mean in the t-th meta-test task; represents the second mean in the t-th meta-test task; represents the first mean in the t-th meta-test task; represents the mixed variance in the t-th meta-test task; represents the second variance in the t-th meta-test task; represents the first variance in the t-th meta-test task; represents the mixing factor;

[0038] Step 4: Replace the regularization parameters of the target recognition model in the t-th meta-test task with the mixed mean and the mixed variance.

[0039] Preferably, the meta-test task also includes calculating a first discriminant loss based on the second adversarial sample and the target recognition dataset in the meta-test task, and using a discriminator.

[0040] Preferably, S2 further includes:

[0041] Repeating the T-dimensional learning adversarial attack task, calculating a total adversarial attack loss based on the first adversarial attack loss, and calculating a total discriminant loss based on the first discriminant loss;

[0042] Performing gradient descent updates on the parameters of the original generator based on the total adversarial attack loss;

[0043] The parameters of the discriminator are updated by gradient descent based on the total discriminant loss.

[0044] Preferably, the parameter update formula of the original generator is:

[0045] ;

[0046] ;

[0047] ;

[0048] ;

[0049] ;

[0050] ;

[0051] ;

[0052] ;

[0053] in, Represents the updated parameters of the original generator; Represents the parameters of the original generator; represents the learning rate; represents the total adversarial attack loss; T represents the number of second iterations; represents the first adversarial attack loss of the t-th meta-learning adversarial attack task; represents the second feature distance loss of the t-th meta-learning adversarial attack task; represents the meta-test generation loss for the t-th meta-learning adversarial attack task; represents the Euclidean distance; represents the second adversarial image feature; represents a second image feature; Represents the target recognition model after the regularization parameter mixing operation; represents the second adversarial example of the meta-test task in the t-th meta-learning adversarial attack task; Represents meta-test morphological migration data; represents the discriminator; A generator representing a copy; represents the adversarial perturbation of the meta-test task in the t-th meta-learning adversarial attack task; represents the descending gradient value of the total adversarial attack loss;

[0054] The parameter update formula of the discriminator is:

[0055] ;

[0056] ;

[0057] ;

[0058] in, represents the parameters of the updated discriminator; represents the parameters of the discriminator; represents the total discrimination loss; represents the first discriminant loss; represents the target recognition dataset of the meta-test task in the t-th meta-learning adversarial attack task; Represents the descending gradient value of the total discriminative loss.

[0059] Preferably, in S5, the constrained adversarial perturbation sample is superimposed on the target image to obtain an adversarial sample, and the calculation formula is:

[0060] ;

[0061] ;

[0062] in, represents adversarial examples; The trained parameters are The generator of x represents the target image; represents the adversarial perturbation sample; Represents the constraint range of the adversarial perturbation sample.

[0063] Beneficial effects: This method introduces a meta-learning strategy, constructs meta-training tasks and meta-testing tasks, and optimizes all meta-learning adversarial attack tasks, so that the generative adversarial neural network learns how to generate universal adversarial samples with strong transfer performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 This is a flowchart of a generative adversarial attack method based on meta-learning according to an embodiment of the present application. DETAILED DESCRIPTION

[0066] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0067] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0068] like Figure 1 As shown, this embodiment provides a generative adversarial attack method based on meta-learning, the method comprising:

[0069] S1: Obtain a database consisting of multiple different target recognition data sets and a model library consisting of multiple different target recognition models.

[0070] In this embodiment, Market1501, DukeMTMC, and CUHK03 target recognition data sets are collected to build a database, and IDE, PCB, and ViT target recognition models are collected to build a model library. These models are all trained using the DukeMTMC data set.

[0071] S2: Constructing a meta-learning adversarial attack task based on the database and the model library, the meta-learning adversarial attack task includes a meta-training task and a meta-testing task; the meta-training task is used to simulate the white-box attack training process, and train and update the generator in the generative adversarial neural network used for the meta-testing task; the meta-testing task is used to simulate the black-box attack testing process, which includes performing a target morphology migration and diffusion operation, an adversarial perturbation random erasure operation, and a regularization parameter mixing operation, and the meta-learning adversarial attack task is used to train the generator and discriminator in the generative adversarial neural network.

[0072] Specifically, the meta-learning anti-attack task based on the database and the model library includes:

[0073] Step 1: Set the second iteration number T (in this embodiment, T=5);

[0074] Step 2: randomly extracting two target recognition data sets from the database, and randomly extracting two target recognition models from the model library;

[0075] Taking the extracted target recognition data set as input and the extracted target recognition model as a recognition model; forming two pairs of target recognition data set-target recognition model pairs; one pair of target recognition data set-target recognition model pairs is used for a meta-training task, and the other pair is used for a meta-testing task;

[0076] Step 3: Repeat step 2 until T meta-learning adversarial attack tasks are generated.

[0077] Furthermore, the meta-training task includes:

[0078] Step 1: Input the target recognition data set in the meta-training task into the target recognition model in the meta-training task to obtain the first image feature; the calculation formula is:

[0079] ;

[0080] in, represents the first image feature of the meta-training task in the t-th meta-learning adversarial attack task; represents the target recognition model of the meta-training task in the t-th meta-learning adversarial attack task; represents the object recognition dataset of the meta-training task in the t-th meta-learning adversarial attack task.

[0081] Step 2: Use the generator in the generative adversarial neural network to generate the first adversarial sample of the target recognition data set, and input the first adversarial sample into the target recognition model in the meta-training task to obtain the first adversarial image feature; the calculation formula is:

[0082] ;

[0083] ;

[0084] in, represents the first adversarial example of the meta-training task in the t-th meta-learning adversarial attack task; represents the generator in the adversarial attack task; represents the first adversarial image feature of the meta-training task in the t-th meta-learning adversarial attack task.

[0085] Step 3: copy the generator; and calculate the first feature distance loss based on the first image feature and the first adversarial image feature; the calculation formula is:

[0086] ;

[0087] in, represents the first feature distance loss of the meta-training task in the t-th meta-learning adversarial attack task; represents the first adversarial image feature of the meta-training task in the t-th meta-learning adversarial attack task; represents the first image feature of the meta-training task in the t-th meta-learning adversarial attack task.

[0088] Step 4: Based on the first feature distance loss, the parameters of the copied generator are updated using the gradient descent method; the update formula is:

[0089] ;

[0090] in, represents the parameters of the updated generator in the t-th meta-training task; represents the learning rate in the meta-training task; represents the descent gradient value in the t-th meta-training task.

[0091] Furthermore, the meta-test task includes:

[0092] Step 1: Input the target recognition data set in the meta-test task into the object target morphological migration diffusion model to generate meta-test morphological migration data; the calculation formula is:

[0093] ;

[0094] in, Represents meta-test morphological migration data; Represents the object target morphology migration and diffusion model; represents the target recognition dataset in the meta-test task; V represents the target perspective change factor; P represents the target posture change factor; I represents the target image illumination change factor; R represents the target resolution change factor.

[0095] The object target morphology migration and diffusion model is a large model for image and text generation. The input viewing angle, posture, illumination, and resolution factors are set using a target morphology text template. Preferably, the target morphology text template is set to keep the color and structure information of the target in the image unchanged, and generate a target conversion image with a shooting viewing angle of V degrees, a target posture of P, an illumination of I, and a resolution of R.

[0096] Step 2: inputting the meta-test morphological migration data into the object recognition model in the meta-test task to generate a second image feature;

[0097] Step 3: Input the meta-test morphological migration data into the copied updated generator to generate adversarial perturbations, perform random erasing operations on the adversarial perturbations, and generate second adversarial samples;

[0098] In this embodiment, a rectangular area is randomly selected on the adversarial disturbance, and a value of 0 is assigned to the rectangular area to remove the adversarial disturbance effect in the rectangular area.

[0099] Step 4: performing a regularization parameter mixing operation on the target recognition model in the meta-test task;

[0100] Step 5: inputting the second adversarial sample into the target recognition model after the regularization parameter mixing operation to generate a second adversarial image feature;

[0101] Step 6: Based on the second image feature and the second adversarial image feature, calculate the second feature distance loss; based on the second adversarial sample, calculate the meta-test generation loss using the discriminator in the generative adversarial neural network;

[0102] Step 7: Combine the second feature distance loss and the meta-test generation loss to obtain a first adversarial attack loss; the first adversarial attack loss is used to update the parameters of the original generator.

[0103] Furthermore, the regularization parameter mixing operation on the target recognition model in the meta-test task includes:

[0104] Step 1: Copy the target recognition model for the t-th meta-test task, and input the target recognition dataset for the t-th meta-training task into the copied target recognition model, fix the parameters of the copied target recognition model, set the update mode of the statistical parameters in the batch regularization layer of the copied target recognition model to online update, and obtain the first mean and first variance of the batch regularization layer in the network architecture of the copied target recognition model;

[0105] Step 2: fix the parameters of the original target recognition model used for the t-th meta-test task, and set the statistical parameters of the original target recognition model not to be updated, and obtain the second mean and second variance of the batch normalization layer in the network architecture of the original target recognition model;

[0106] Step 3: Calculate a mixed mean based on the first mean and the second mean, and calculate a mixed variance based on the first variance and the second variance, and the calculation formula is:

[0107] ;

[0108] ;

[0109] in, represents the mixed mean in the t-th meta-test task; represents the second mean in the t-th meta-test task; represents the first mean in the t-th meta-test task; represents the mixed variance in the t-th meta-test task; represents the second variance in the t-th meta-test task; represents the first variance in the t-th meta-test task; represents the mixing factor;

[0110] Step 4: Replace the regularization parameters of the target recognition model in the t-th meta-test task with the mixed mean and the mixed variance.

[0111] In this embodiment, the meta-test task also includes calculating a first discriminant loss based on the second adversarial sample and the target recognition dataset in the meta-test task, and using a discriminator.

[0112] S2 also includes: repeatedly performing T-dimensional learning adversarial attack tasks, calculating a total adversarial attack loss based on the first adversarial attack loss, and calculating a total discriminant loss based on the first discriminant loss;

[0113] Performing gradient descent updates on the parameters of the original generator based on the total adversarial attack loss;

[0114] The parameters of the discriminator are updated by gradient descent based on the total discriminant loss.

[0115] The original generator parameter update formula is:

[0116] ;

[0117] ;

[0118] ;

[0119] ;

[0120] ;

[0121] ;

[0122] ;

[0123] ;

[0124] in, Represents the updated parameters of the original generator; Represents the parameters of the original generator; represents the learning rate; represents the total adversarial attack loss; T represents the number of second iterations; represents the first adversarial attack loss of the t-th meta-learning adversarial attack task; represents the second feature distance loss of the t-th meta-learning adversarial attack task; represents the meta-test generation loss for the t-th meta-learning adversarial attack task; represents the Euclidean distance; represents the second adversarial image feature; represents a second image feature; Represents the target recognition model after the regularization parameter mixing operation; represents the second adversarial example of the meta-test task in the t-th meta-learning adversarial attack task; Represents meta-test morphological migration data; represents the discriminator; A generator representing a copy; represents the adversarial perturbation of the meta-test task in the t-th meta-learning adversarial attack task; represents the descending gradient value of the total adversarial attack loss;

[0125] The parameter update formula of the discriminator is:

[0126] ;

[0127] ;

[0128] ;

[0129] in, represents the parameters of the updated discriminator; represents the parameters of the discriminator; represents the total discrimination loss; represents the first discriminant loss; represents the target recognition dataset of the meta-test task in the t-th meta-learning adversarial attack task; Represents the descending gradient value of the total discriminative loss.

[0130] S3: Repeat the meta-learning adversarial task until the first iteration is reached.

[0131] In this embodiment, the first iteration number is set to 100 times.

[0132] S4: Acquire a target image, and input the target image into a trained generative adversarial neural network to obtain an adversarial perturbation sample of the target image.

[0133] In this embodiment, the target image includes but is not limited to a medical image; the trained generative adversarial neural network is a generative adversarial network (GAN, Generative Adversarial Networks) model.

[0134] S5: constraining the adversarial perturbation sample, and superimposing the constrained adversarial perturbation sample onto the target image to obtain an adversarial sample.

[0135] In this embodiment, the constraint range of the adversarial perturbation sample is set to (-8 / 255, 8 / 255); the final generated adversarial sample is constrained so that the image amplitude does not exceed (0, 1).

[0136] The calculation formula for adversarial samples is:

[0137] ;

[0138] ;

[0139] in, represents adversarial examples; The trained parameters are The generator of x represents the target image; represents the adversarial perturbation sample; Represents the constraint range of the adversarial perturbation sample.

[0140] The method provided in this embodiment introduces a meta-learning strategy, constructs a meta-training task and a meta-testing task, and optimizes all meta-learning adversarial attack tasks, so that the generative adversarial neural network learns how to generate universal adversarial samples with strong transfer performance. In addition, a random erasing method of adversarial perturbations is designed to suppress adversarial perturbations from only destroying features in specific areas, thereby increasing the cross-model adversarial capabilities of adversarial samples; a mixed regularization parameter mixing strategy is proposed, so that adversarial samples can achieve adversarial effects in different feature spaces, thereby improving the cross-data domain and cross-feature subspace adversarial capabilities of adversarial samples; at the same time, a morphological migration diffusion model is introduced to further promote the generative adversarial neural network to learn to generate through morphologically diversified data augmentation, model-specific feature damage suppression, and feature embedding mapping.

[0141] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.

[0142] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. 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 patent application shall be subject to the attached claims.

Claims

1. A generative adversarial attack method based on meta-learning, characterized in that: include: S1: Obtain a database consisting of multiple different target recognition data sets and a model library consisting of multiple different target recognition models; S2: constructing a meta-learning adversarial attack task based on the database and the model library, wherein the meta-learning adversarial attack task includes a meta-training task and a meta-testing task; the meta-training task is used to train and update a generator in a generative adversarial neural network for a meta-testing task; The meta-test task includes performing a target morphology migration diffusion operation, an adversarial perturbation random erasure operation, and a regularization parameter mixing operation; The meta-learning adversarial task is used to train the generator and discriminator in the generative adversarial neural network; The meta-learning adversarial attack task constructed based on the database and the model library includes: Step 1: Set the second iteration number T; Step 2: randomly extracting two target recognition data sets from the database, and randomly extracting two target recognition models from the model library; Taking the extracted target recognition data set as input and the extracted target recognition model as a recognition model; forming two pairs of target recognition data set-target recognition model pairs; one pair of target recognition data set-target recognition model pairs is used for a meta-training task, and the other pair is used for a meta-testing task; Step 3: Repeat step 2 until T meta-learning adversarial attack tasks are generated; The meta-training tasks include: Step 1: inputting the object recognition data set in the meta-training task into the object recognition model in the meta-training task to obtain a first image feature; Step 2: Use the generator in the generative adversarial neural network to generate a first adversarial sample of the target recognition data set, and input the first adversarial sample into the target recognition model in the meta-training task to obtain a first adversarial image feature; Step 3: copy the generator; and calculate a first feature distance loss based on the first image feature and the first adversarial image feature; Step 4: Based on the first feature distance loss, update the parameters of the copied generator using the gradient descent method; The meta-test tasks include: Step 1: Input the target recognition data set in the meta-test task into the object target morphology migration diffusion model to generate meta-test morphology migration data; The calculation formula of meta-test morphological migration data is: ; in, Represents meta-test morphological migration data; Represents the object target morphology migration and diffusion model; represents the target recognition dataset in the meta-test task; V represents the target perspective change factor; P represents the target posture change factor; I represents the target image illumination change factor; R represents the target resolution change factor; Step 2: inputting the meta-test morphological migration data into the object recognition model in the meta-test task to generate a second image feature; Step 3: Input the meta-test morphological migration data into the copied updated generator to generate adversarial perturbations, perform random erasing operations on the adversarial perturbations, and generate second adversarial samples; Step 4: performing a regularization parameter mixing operation on the target recognition model in the meta-test task; Step 5: inputting the second adversarial sample into the target recognition model after the regularization parameter mixing operation to generate a second adversarial image feature; Step 6: Based on the second image feature and the second adversarial image feature, calculate the second feature distance loss; based on the second adversarial sample, calculate the meta-test generation loss using the discriminator in the generative adversarial neural network; Step 7: Combining the second feature distance loss and the meta-test generation loss to obtain a first adversarial attack loss; the first adversarial attack loss is used to update the parameters of the original generator; The regularization parameter mixing operation on the target recognition model in the meta-test task includes: Step 1: Copy the target recognition model for the t-th meta-test task, and input the target recognition dataset for the t-th meta-training task into the copied target recognition model, fix the parameters of the copied target recognition model, set the update mode of the statistical parameters in the batch regularization layer of the copied target recognition model to online update, and obtain the first mean and first variance of the batch regularization layer in the network architecture of the copied target recognition model; Step 2: fix the parameters of the original target recognition model used for the t-th meta-test task, and set the statistical parameters of the original target recognition model not to be updated, and obtain the second mean and second variance of the batch normalization layer in the network architecture of the original target recognition model; Step 3: Calculate a mixed mean based on the first mean and the second mean, and calculate a mixed variance based on the first variance and the second variance, and the calculation formula is: ; ; in, represents the mixed mean in the t-th meta-test task; represents the second mean in the t-th meta-test task; represents the first mean in the t-th meta-test task; represents the mixed variance in the t-th meta-test task; represents the second variance in the t-th meta-test task; represents the first variance in the t-th meta-test task; represents the mixing factor; Step 4: replacing the regularization parameter of the target recognition model in the t-th meta-test task with the mixed mean and the mixed variance; S3: Repeat the meta-learning adversarial task until the first iteration is reached; S4: Acquire a target image, and input the target image into a trained generative adversarial neural network to obtain an adversarial perturbation sample of the target image; S5: constraining the adversarial perturbation sample, and superimposing the constrained adversarial perturbation sample onto the target image to obtain an adversarial sample.

2. The meta-learning-based generative adversarial attack method according to claim 1, characterized in that: The meta-testing task also includes calculating a first discriminant loss based on the second adversarial sample and the target recognition dataset in the meta-testing task, and using a discriminator.

3. The generative adversarial attack method based on meta-learning according to claim 2, characterized in that: S2 also includes: Repeating the T-dimensional learning adversarial attack task, calculating a total adversarial attack loss based on the first adversarial attack loss, and calculating a total discriminant loss based on the first discriminant loss; Performing gradient descent updates on the parameters of the original generator based on the total adversarial attack loss; The parameters of the discriminator are updated by gradient descent based on the total discriminant loss.

4. The meta-learning-based generative adversarial attack method according to claim 3, characterized in that: The original generator parameter update formula is: ; ; ; ; ; ; ; ; in, Represents the updated parameters of the original generator; Represents the parameters of the original generator; represents the learning rate; represents the total adversarial attack loss; T represents the number of second iterations; represents the first adversarial attack loss of the t-th meta-learning adversarial attack task; represents the second feature distance loss of the t-th meta-learning adversarial attack task; represents the meta-test generation loss for the t-th meta-learning adversarial attack task; represents the Euclidean distance; represents the second adversarial image feature; represents a second image feature; Represents the target recognition model after the regularization parameter mixing operation; represents the second adversarial example of the meta-test task in the t-th meta-learning adversarial attack task; Represents meta-test morphological migration data; represents the discriminator; A generator representing a copy; represents the adversarial perturbation of the meta-test task in the t-th meta-learning adversarial attack task; represents the descending gradient value of the total adversarial attack loss; The parameter update formula of the discriminator is: ; ; ; in, represents the parameters of the updated discriminator; represents the parameters of the discriminator; represents the total discrimination loss; represents the first discriminant loss; represents the target recognition dataset of the meta-test task in the t-th meta-learning adversarial attack task; Represents the descending gradient value of the total discriminative loss.

5. The meta-learning-based generative adversarial attack method according to claim 1, characterized in that: In S5, the constrained adversarial perturbation sample is superimposed on the target image to obtain an adversarial sample, and the calculation formula is: ; ; in, represents adversarial examples; The trained parameters are The generator of x represents the target image; represents the adversarial perturbation sample; Represents the constraint range of the adversarial perturbation sample.