Boundary-based attack methods and mediums for 3D point clouds
Through the boundary-based attack method, combined with chamfer distance projection and ICP rotation matrix initialization, the problem that adversarial samples in 3D point cloud attacks are prone to outliers is solved, and small perturbation adversarial samples are efficiently generated, which improves the accuracy of black box attacks. effectiveness and robustness.
Patent Information
- Application Number
- CN202210488433.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-05-06
AI Technical Summary
Existing 3D point cloud attack methods are prone to produce outliers when generating adversarial samples, resulting in poor results. Moreover, the success rate of migration-based black box attacks is low, making it difficult to effectively utilize them in practical applications.
Adopt a boundary-based attack method, randomly generate initial adversarial samples, and use the perturbation projection method of chamfer distance and ICP rotation matrix initialization, combined with Monte Carlo estimation of adversarial gradient, and gradually adjust the perturbation to generate adversarial samples with smaller perturbation amplitude. until the disturbance threshold is met.
It achieves efficient generation of adversarial samples with smaller disturbance amplitude in 3D point clouds, improves the effect of black box attacks, especially in targeted attack scenarios, and enhances the robustness and classification misleading capabilities of adversarial samples.
Smart Images

Figure CN114973234B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of three-dimensional point cloud recognition, and more specifically, relates to a boundary-based attack method and medium for 3D point clouds. Background Art
[0002] Deep Neural Networks (DNN) have achieved remarkable success in many tasks such as 2D image classification and 3D point cloud classification. However, studies have shown that these models are very susceptible to adversarial examples, which are carefully designed, human-imperceptible perturbations of input data that cause classification models to fail. This phenomenon is prevalent in a variety of models and data types, especially in adversarial attacks and defenses in some critical security applications, such as face recognition, target tracking, and autonomous driving. Researching adversarial attack and defense methods is of great significance to the reliability and robustness of deep learning technology.
[0003] Existing 3D point cloud attack methods are mainly white-box attacks, such as C&W, GeoA3, and PGD, and transfer-based black-box attacks, such as AdvPC and ITA. In white-box attacks, it is assumed that the attacker has complete knowledge of the target model's specific information, such as the model's structure and parameters, so the gradient that guides the iterative optimization of the perturbation can be directly calculated. However, this white-box assumption does not hold true in reality. Transfer-based attacks attack the target model by using adversarial samples generated for the white-box alternative model, which requires the use of the training data of the attacked model. These data are often confidential and difficult to obtain. At present, the success rate of transfer-based black-box attack algorithms for 3D point clouds is generally low.
[0004] On the other hand, point cloud data is composed of a series of disordered points of indefinite number, which is irregular data with three-dimensional geometric features. The generated adversarial samples are prone to produce outliers and are easy to be detected, resulting in the poor effect of current 3D adversarial attack algorithms. Summary of the invention
[0005] In view of the defects and improvement needs of the prior art, the present invention provides a boundary-based attack method for 3D point clouds, which aims to efficiently generate three-dimensional adversarial samples with smaller perturbations.
[0006] To achieve the above-mentioned purpose, according to one aspect of the present invention, a boundary-based attack method for 3D point clouds is provided, including: S1, randomly generating an initial adversarial sample; S2, using a perturbation projection method based on chamfer distance to project the current adversarial sample onto the classification boundary to obtain a new adversarial sample; S3, if the perturbation of the new adversarial sample obtained in S2 is less than the perturbation threshold, output the new adversarial sample obtained in S2 for attack, otherwise, execute S4; S4, using Monte Carlo estimation of the adversarial gradient, sampling from a uniform distribution to obtain an adversarial perturbation, and adding the adversarial perturbation to the new adversarial sample obtained in S2 along the direction of the adversarial gradient to obtain the current adversarial sample when S2 is executed next time; S5, repeatedly executing S2-S4 until the perturbation of the new adversarial sample obtained in S2 is less than the perturbation threshold, and outputting the new adversarial sample obtained by the last execution of S2 for attack.
[0007] Furthermore, the attack is a targeted attack, and S1 randomly selects a sample from the target category as the initial adversarial sample; S1 also includes: using the ICP method to calculate the rotation matrix between the target sample of the targeted attack and the original sample, and using the rotation matrix to apply a rotation transformation to the original sample to obtain a rotated sample.
[0008] Furthermore, the rotation matrix satisfies the following constraints:
[0009]
[0010] Where R is the rotation matrix, N is the number of points in the 3D point cloud, and q i is the i-th point in the target sample, p i is the i-th point in the original sample.
[0011] Furthermore, the new adversarial sample obtained in S2 is:
[0012]
[0013] in, is the i-th point in the new adversarial sample obtained by iterating when executing S2 for the t+1th time, is the i-th point in the current adversarial sample when S2 is executed for the t+1th time, i=1,2,…,N, N is the number of points in the 3D point cloud, For the rotation sample The closest point, α t is the weight parameter.
[0014] Furthermore, the perturbation of the new adversarial sample obtained in S2 is:
[0015]
[0016] Among them, δ (t) for The disturbance, is the new adversarial sample obtained by iterating when executing S2 for the tth time, For the rotation sample.
[0017] Furthermore, the attack is an untargeted attack, and S1 further includes: obtaining an original sample; and randomly sampling a sample having the same size as the original sample from a uniform distribution in S1 as the initial adversarial sample.
[0018] Furthermore, the new adversarial sample obtained in S2 is:
[0019]
[0020] in, is the i-th point in the new adversarial sample, is the i-th point in the current adversarial sample, i = 1, 2, ..., N, N is the number of points in the 3D point cloud, p gt is the original sample with The closest point, α t is the weight parameter.
[0021] Furthermore, the perturbation of the new adversarial sample obtained in S2 is:
[0022]
[0023] Among them, δ (t) for The disturbance, is the new adversarial sample obtained by iterating when S2 is executed for the tth time, x gt is the original sample.
[0024] Furthermore, the adversarial gradient in S4 is:
[0025]
[0026] in, is the adversarial gradient, is the new adversarial sample obtained by iterating when executing S2 for the tth time, is the initial adversarial sample, σ is a positive parameter, u b is the bth normalized random perturbation sampled from a uniform distribution, B is the number of random perturbations required for Monte Carlo estimation, and φ(·) is the label information output by the attacked model.
[0027] According to one aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the boundary-based attack method for 3D point cloud as described above is implemented.
[0028] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects: the boundary-based attack method for 3D point clouds in the embodiments of the present invention adopts a boundary-based point cloud black-box attack, which only uses the predicted labels of the victim model and can efficiently generate three-dimensional adversarial samples with smaller perturbation amplitudes; the perturbation projection method based on chamfer distance is compatible with three-dimensional irregular data; further, considering the huge differences in three-dimensional geometric shapes, the introduction of ICP perturbation initialization can promote targeted black-box attacks, thereby further improving the attack effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A flow chart of a boundary-based attack method for 3D point cloud provided by an embodiment of the present invention;
[0030] Figure 2 A diagram of the implementation process of the boundary-based attack method for 3D point clouds provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention 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 invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0032] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.
[0033] For a true label y gt The original sample x gt In the untargeted attack, the generated adversarial sample x′ will be misclassified by the model as y′≠y gt ; In targeted attacks, the generated adversarial sample x′ will be misclassified by the model into the specified category
[0034]
[0035] in, The original sample x is the attacked model gt; φ(·) is the label information output by the attacked model. When it is 1, it means the attack is successful. It can be obtained by only querying the Top-1 label output by the model. Generate an adversarial sample x′ that is visually similar to the original sample, but x′ will be misclassified by the model. The problem can be defined as:
[0036]
[0037] Point cloud data is composed of a series of disordered and indefinite points, which is irregular data with three-dimensional geometric features. The efficiency of existing boundary attack methods is low, and the generated adversarial samples are prone to outliers and are easy to be detected. In this embodiment, a perturbation projection method based on chamfer distance and an initialization method for targeted black box attack based on ICP are designed, based on which a boundary-based attack method for 3D point clouds is formed.
[0038] Figure 1 Flow chart of the boundary-based attack method for 3D point cloud provided by an embodiment of the present invention. Figure 1 , combined with Figure 2 , the boundary-based attack method for 3D point cloud in this embodiment is described in detail, and the method includes operations S1 to S5.
[0039] Operation S1, randomly generate initial adversarial samples.
[0040] Attacks on 3D point clouds are divided into targeted attacks and non-targeted attacks. In targeted attacks, the adversarial samples generated will be misclassified by the model into the specified category, i.e., the target category; in non-targeted attacks, the generated adversarial samples will be misclassified by the model into any category. In the case of targeted and non-targeted attacks, the detailed process of the boundary-based attack method for 3D point clouds in this embodiment is as follows: Figure 2 shown.
[0041] When the attack is a non-target attack, operation S1 includes: obtaining the original sample x gt , randomly sample a sample from a uniform distribution that is similar to the original sample x gt Samples of the same size as initial adversarial samples
[0042] When the attack is a targeted attack, a sample is randomly selected from the target category in operation S1 as the initial adversarial sample. This initialization method makes it difficult to optimize the perturbation of the targeted point cloud boundary attack, because the shapes of different categories of 3D objects are very different. For example, it is difficult to add only a slight perturbation to make the vertical 'bottle' be recognized as a horizontal 'sofa'. We reduce the difference between the original sample and the target sample by isometric transformation, and obtain samples that are more likely to be misclassified into the target category. Therefore, we consider introducing the point cloud registration method into the initialization of the targeted attack.
[0043] Specifically, when the attack is a targeted attack, operation S1 further includes: using an iterative closest point (ICP) method to calculate a target sample x of the targeted attack. o With the original sample x gt The rotation matrix R between them is used to transform the original sample x gt Apply a rotation transformation to obtain a rotated sample With the original sample x gt Compared with the rotating sample There is only a change in posture, no additional perturbations, and it is similar to the target sample x o More similar, easier to carry out targeted black box attacks, and can greatly reduce the difficulty of targeted black box attacks.
[0044] According to an embodiment of the present invention, the rotation matrix satisfies the following constraints:
[0045]
[0046] Among them, R is the rotation matrix, N is the number of points in the 3D point cloud, and q i is the i-th point in the target sample, p i is the i-th point in the original sample.
[0047] Operation S2 uses a perturbation projection method based on chamfer distance to project the current adversarial sample onto the classification boundary to obtain a new adversarial sample.
[0048] According to an embodiment of the present invention, when the attack is a non-target attack, the new adversarial sample obtained in operation S2 is:
[0049]
[0050] in, It is the new adversarial sample obtained by iterating when the operation S2 is executed for the t+1th time The i-th point in is the current adversarial sample when operation S2 is executed for the t+1th time The i-th point in the 3D point cloud, i = 1, 2, ..., N, N is the number of points in the 3D point cloud, p gt The original sample The closest point, α t is the weight parameter.
[0051] According to an embodiment of the present invention, when the attack is a targeted attack, the new adversarial sample obtained in operation S2 is:
[0052]
[0053] in, It is the new adversarial sample obtained by iterating when the operation S2 is executed for the t+1th time The i-th point in is the current adversarial sample when operation S2 is executed for the t+1th time The i-th point in the 3D point cloud, i = 1, 2, ..., N, N is the number of points in the 3D point cloud, For the rotation sample The closest point, α t is the weight parameter.
[0054] Operation S3: if the disturbance of the new adversarial sample obtained in operation S2 is less than the disturbance threshold, output the new adversarial sample obtained in operation S2 for attack; otherwise, execute operation S4.
[0055] According to an embodiment of the present invention, when the attack is a non-target attack, the new adversarial sample iteratively obtained when the operation S2 is performed for the tth time is The disturbance of is:
[0056]
[0057] Among them, δ (t) for The disturbance, x gt For the original sample.
[0058] According to an embodiment of the present invention, when the attack is a targeted attack, the new adversarial sample iterated when the operation S2 is performed for the tth time is The disturbance of is:
[0059]
[0060] Among them, δ (t) for The disturbance, Rotate the sample.
[0061] It should be noted that in this embodiment, adversarial samples can also be calculated based on other methods. perturbations, such as l2 norm, infinity norm, chamfer distance, Hausdorff distance, etc.
[0062] When δ (t) Less than the disturbance threshold δmin When To attack, end the operation, such as Figure 2 As shown; when δ (t) Not less than the disturbance threshold δ min When , operation S4 is performed. Disturbance threshold δ min is a preset value.
[0063] Operation S4 uses Monte Carlo to estimate the adversarial gradient, samples the adversarial perturbation from the uniform distribution, and adds the adversarial perturbation to the new adversarial sample obtained in operation S2 along the direction of the adversarial gradient to obtain the current adversarial sample when operation S2 is executed next time.
[0064] According to an embodiment of the present invention, the adversarial gradient estimated in operation S4 is:
[0065]
[0066] in, To combat the gradient, is the new adversarial sample obtained by iteration when S2 is executed for the tth time, is the initial adversarial sample, σ is a positive parameter, u b is the bth normalized random perturbation sampled from a uniform distribution, B is the number of random perturbations required for Monte Carlo estimation, and φ(·) is the label information output by the attacked model. Adding perturbations to the adversarial example in the direction perpendicular to the classification boundary and then projecting the adversarial example to the boundary can generate smaller and adversarial perturbations.
[0067] Operation S5, repeatedly performing operations S2-S4 until the perturbation of the new adversarial sample obtained in operation S2 is less than the perturbation threshold, and outputting the new adversarial sample obtained by the last execution of operation S2 for attack.
[0068] Repeat operations S2-S4, new adversarial samples The disturbance δ (t) It will gradually decrease and maintain adversarial properties until the perturbation meets the required adversarial sample. The formula for perturbation addition and projection is:
[0069]
[0070] in, is the perturbation projection method mentioned above, Parameter α t Determined by binary search; ξ t is the step size of the tth iteration, which is a small positive parameter.
[0071] The embodiment of the present invention further provides a computer readable storage medium on which a computer program is stored. When the program is executed by a processor, the following is achieved: Figure 1-Figure 2 The boundary-based attack method for 3D point clouds shown in FIG. 1 will not be described in detail here.
[0072] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A boundary-based attack method for 3D point clouds, characterized in that: include: S1, randomly generates initial adversarial samples; S2, using the perturbation projection method based on chamfer distance, projects the current adversarial sample onto the classification boundary to obtain a new adversarial sample; S3, if the disturbance of the new adversarial sample obtained in S2 is less than the disturbance threshold, output the new adversarial sample obtained in S2 for attack, otherwise, execute S4; S4, using Monte Carlo to estimate the adversarial gradient, sampling from a uniform distribution to obtain an adversarial perturbation, and adding the adversarial perturbation to the new adversarial sample obtained in S2 along the direction of the adversarial gradient to obtain the current adversarial sample when S2 is executed next time; S5, repeatedly executing S2-S4 until the disturbance of the new adversarial sample obtained in S2 is less than the disturbance threshold, and outputting the new adversarial sample obtained by the last execution of S2 for attack.
2. The boundary-based attack method for 3D point cloud according to claim 1, characterized in that: The attack is a targeted attack, and in S1, a sample is randomly selected from the target category as the initial adversarial sample; The S1 also includes: using the ICP method to calculate the rotation matrix between the target sample of the target attack and the original sample, and using the rotation matrix to apply a rotation transformation to the original sample to obtain a rotated sample.
3. The boundary-based attack method for 3D point cloud according to claim 2, characterized in that: The rotation matrix satisfies the following constraints: Where R is the rotation matrix, N is the number of points in the 3D point cloud, and q i is the i-th point in the target sample, p i is the i-th point in the original sample.
4. The boundary-based attack method for 3D point cloud according to claim 2, characterized in that: The new adversarial sample obtained in S2 is: in, is the i-th point in the new adversarial sample obtained by iterating when executing S2 for the t+1th time, is the i-th point in the current adversarial sample when S2 is executed for the t+1th time, i=1,2,…,N, N is the number of points in the 3D point cloud, For the rotation sample The closest point, α t is the weight parameter.
5. The boundary-based attack method for 3D point cloud according to claim 2, characterized in that: The perturbation of the new adversarial sample obtained in S2 is: Among them, δ (t) for The disturbance, is the new adversarial sample obtained by iterating when executing S2 for the tth time, For the rotation sample.
6. The boundary-based attack method for 3D point cloud according to claim 1, characterized in that: The attack is a non-target attack, and S1 further includes: obtaining an original sample; In S1, a sample with the same size as the original sample is randomly sampled from a uniform distribution as the initial adversarial sample.
7. The boundary-based attack method for 3D point cloud according to claim 6, characterized in that: The new adversarial sample obtained in S2 is: in, is the i-th point in the new adversarial sample, is the i-th point in the current adversarial sample, i = 1, 2, ..., N, N is the number of points in the 3D point cloud, p gt is the original sample with The closest point, α t is the weight parameter.
8. The boundary-based attack method for 3D point cloud according to claim 6, characterized in that: The perturbation of the new adversarial sample obtained in S2 is: Among them, δ (t) for The disturbance, is the new adversarial sample obtained by iterating when S2 is executed for the tth time, x gt is the original sample.
9. The boundary-based attack method for 3D point cloud according to any one of claims 1 to 8, characterized in that: The adversarial gradient in S4 is: in, is the adversarial gradient, is the new adversarial sample obtained by iterating when executing S2 for the tth time, is the initial adversarial sample, σ is a positive parameter, u b is the bth normalized random perturbation sampled from a uniform distribution, B is the number of random perturbations required for Monte Carlo estimation, and φ(·) is the label information output by the attacked model.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the boundary-based attack method for 3D point cloud as described in any one of claims 1 to 9 is implemented.
