A method for generating adversarial point clouds by adding disturbances in the field of geometric features

By dividing geometric feature areas and non-feature areas in the 3D point cloud, and using gradient and perturbation superposition to generate adversarial samples, it solves the problem in the existing technology that 3D point cloud adversarial attacks are not effective in migrating black box attacks, and achieves a better Effective migration attack effectiveness and portability.

CN114973235BActive Publication Date: 2024-09-10HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210494180.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-06
Publication Date
2024-09-10
Estimated Expiration
2042-05-06

AI Technical Summary

Technical Problem

Existing 3D point cloud adversarial attack algorithms are not effective in migrating black-box attacks, resulting in a decline in the performance of adversarial attacks in normally trained point cloud classification networks.

Method used

By calculating the curvature of each point in the 3D point cloud, it is divided into geometric feature areas and non-feature areas. Points are sampled from these areas as input samples. The classification loss function and the distance-aware loss function are used to calculate the gradient and perform perturbation superposition and scaling. , generate adversarial samples, and repeat the iteration until the preset number of times is reached.

Benefits of technology

It is achieved that under certain disturbance constraints, the migration attack effect of 3D point cloud adversarial attacks is improved. The generated adversarial point cloud has strong transferability and versatility, and can effectively attack other types of point cloud classification models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114973235B
    Figure CN114973235B
Patent Text Reader

Abstract

The present invention discloses a method for generating adversarial point clouds based on adding disturbances in the field of geometric features. Considering that the differences between three-dimensional point clouds are mainly determined by geometric shapes, and that neural network models often focus on the different geometric shape features of point clouds, and classify point clouds according to the differences in these features, by approximately calculating the curvature of each point, areas with obvious geometric features in the point cloud are screened out, and more points are sampled in these areas to retain richer feature information. In addition, by releasing the disturbances in non-feature areas and fully allocating the disturbance budget to feature areas for emphasis, the neural network model is more likely to focus on erroneous information, guide its misclassification, and achieve more effective migration black box attacks, thereby being able to solve the problem of reduced migration attack effectiveness of the current 3D point cloud adversarial attack algorithm for normally trained point cloud classification networks under certain disturbance limits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer vision 3D point cloud recognition, and more specifically, to an adversarial point cloud generation method based on adding disturbances in a geometric feature field. Background Art

[0002] With the rapid development of 3D data acquisition technology, various types of LiDAR, 3D scanners, and RGBD cameras have become increasingly popular, and more and more 3D data sets have begun to appear. Deep learning algorithms have been widely used in the 3D field in fields such as autonomous driving, robotics, remote sensing, and healthcare. Although deep learning of 3D point clouds has shown impressive results in many perception tasks, the vulnerability of 3D deep learning algorithms to adversarial attacks remains a very serious problem. By adding small noise to the input point cloud, deleting or adding some points, these interferences cannot deceive the human eye, but the 3D deep network can be easily confused and produce incorrect outputs. As point cloud deep learning algorithms have been widely used in real-world scenarios, the emergence of adversarial examples will lead to serious security issues. Evaluating and improving the robustness of neural networks is an extremely important topic, and adversarial samples are one of the evaluation methods. Therefore, studying the operation of adversarial attacks and defenses is of great significance to improving the reliability of deep learning technology and has practical significance for protecting security.

[0003] To date, many researchers have proposed a variety of methods for generating 3D adversarial point clouds. 3D-Adv is an attack method proposed for the field of 3D point clouds, including point perturbation and point addition algorithms. KNN attack adds KNN distance loss to the loss function to enhance the smoothness of the point cloud surface to constrain adversarial samples and achieve physical world attacks. GeoA adds consistency of local curvature to the loss function, points the regeneration points to the surface of the object, generates locally smoother adversarial point clouds, and many other methods. Although these methods have achieved excellent results in white-box attacks, their performance in migration black-box attacks is still unsatisfactory. Summary of the invention

[0004] In response to the above defects or improvement needs of the prior art, the present invention provides an adversarial point cloud generation method based on adding disturbances in the geometric feature field, which aims to solve the problem that the existing 3D point cloud adversarial attack algorithm has a reduced effect on the migration attack of the normally trained point cloud classification network.

[0005] To achieve the above object, according to a first aspect of the present invention, a method for generating an adversarial point cloud by adding disturbances based on a geometric feature domain is provided, comprising:

[0006] S1, calculate the curvature of each point in the 3D point cloud, divide the points whose curvature is greater than the preset curvature threshold into geometric feature area points, and divide the remaining points into non-feature area points; sample n*a from the geometric feature area points and non-feature area points respectively geo and n*(1-a geo ) points as input samples; among them, a geo is the sampling attention parameter, n∈R + ;

[0007] S2, inputting the input sample into a point cloud classifier, and calculating the gradient of the input sample based on a classification loss function and a distance perception loss function;

[0008] S3, taking the product of the gradient and the step size as the disturbance of the input sample obtained by this iteration, setting the disturbance of the sampling points in the non-feature area to zero, superimposing it on the disturbance of the sampling points in the geometric feature area obtained by the previous iteration and scaling it so that it is not greater than the disturbance threshold;

[0009] S4, superimposing the perturbation of the scaled geometric feature region sampling points to the input sample to obtain an adversarial sample;

[0010] S5, taking the adversarial sample as an input sample, repeating steps S2-S4 until a preset number of iterations is reached to obtain an adversarial point cloud.

[0011] Preferably, the farthest point sampling method is used to sample n*a from the geometric feature area points and non-feature area points respectively. geo and n*(1-a geo ) points as input samples.

[0012] Preferably, the gradient is calculated as follows:

[0013]

[0014] Among them, g i is the gradient of the input sample calculated at the i-th iteration, P0 is the sampled point cloud of the initial input, and P i is the input point cloud of the i-th iteration, y is the correct classification label of the input point cloud P0, J(P i ,y) is the classification loss function, D(P0,P i ) is the distance-aware loss function.

[0015] Preferably, the calculation formula for disturbance superposition is:

[0016] δ i+1 =δ i (feature)+α·g i ;

[0017] Among them, δi+1 is the perturbation of the input sample calculated at the i+1th iteration, δ i (feature) is the perturbation of the geometric feature region points in the i-th iteration, α is the iteration step length, g i The gradient computed for the ith iteration.

[0018] Preferably, the disturbance of the sampling points of the geometric feature area is scaled according to the following formula:

[0019]

[0020] δ i+1 (feature) is the perturbation of the sampling points in the geometric feature area of ​​the i+1th iteration, δ i+1 is the perturbation of the input sample calculated at the i+1th iteration, δ i+1 (origin) is the perturbation of the sampling points in the non-feature area at the i+1th iteration, G(·) is the function that quantifies the perturbation size, and ε is the perturbation threshold.

[0021] Preferably, the calculation formula for adversarial samples is:

[0022] P i+1 =P0+δ i+1 (feature);

[0023] Among them, P i+1 is the output adversarial point cloud, P0 is the original input point cloud, δ i+1 (feature) is the perturbation of the geometric feature region points obtained in the i+1th iteration.

[0024] Preferably, the calculation formula of curvature is:

[0025]

[0026] Among them, q i Point Cloud The point in for q i The set of k adjacent points of , <·,·> is the inner product of the vectors, for q i The unit normal vector on the surface of the point cloud.

[0027] According to a second aspect of the present invention, there is provided an adversarial point cloud generation system based on adding disturbances to a geometric feature domain, comprising: a computer-readable storage medium and a processor;

[0028] The computer-readable storage medium is used to store executable instructions;

[0029] The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method as described in the first aspect.

[0030] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0031] 1. The adversarial point cloud generation method provided by the present invention, which adds disturbances based on the geometric feature field, takes into account that the differences between three-dimensional point clouds are mainly determined by geometric shapes, and the neural network model often pays attention to the different geometric shape features of the point cloud, and classifies the point cloud according to the differences in these features. On this basis, by approximately calculating the curvature of each point, the areas with obvious geometric features in the point cloud are screened out, and more points are sampled in these areas to retain richer feature information. In addition, by releasing the disturbances in non-feature areas and fully allocating the disturbance budget to the feature areas for emphasis, the neural network model is more likely to pay attention to erroneous information, guide its misclassification, and achieve more effective migration black box attacks, so that under certain disturbance restrictions, the problem of the current 3D point cloud adversarial attack algorithm's reduced migration attack effect on the normally trained point cloud classification network can be solved.

[0032] 2. The adversarial point cloud generation method based on adding disturbances in the geometric feature field provided by the present invention has transferability, can attack other types of point cloud classification models, and has strong versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic flow chart of the adversarial point cloud generation method based on adding disturbances in the geometric feature field provided by the present invention. DETAILED DESCRIPTION

[0034] 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.

[0035] The embodiment of the present invention provides a method for generating adversarial point clouds based on adding disturbances in the geometric feature domain, such as Figure 1 As shown, including:

[0036] S1, calculate the curvature of each point in the 3D point cloud, divide the points whose curvature is greater than the preset curvature threshold into geometric feature area points, and divide the remaining points into non-feature area points; sample n*a from the geometric feature area points and non-feature area points respectively geo and n*(1-a geo) points as input samples; among them, a geo is the sampling attention parameter, n∈R + .

[0037] Specifically, the 3D point cloud is downsampled by combining its geometric information and divided into two parts: a point cloud in a geometric feature area and a point cloud in a non-feature area.

[0038] It can be understood that the input sample includes n*a geo The sampling points of the geometric feature area and n*(1-a geo ) sampling points in non-feature areas.

[0039] Preferably, the farthest point sampling method is used to sample n*a from the geometric feature area points and non-feature area points respectively. geo and n*(1-a geo ) points as input samples.

[0040] Specifically, the sampling method in step S1 obtains K neighboring points of each point according to the KNN algorithm, calculates the angles between the K vectors composed of each point and its K neighboring points and the normal vector of the point, approximates the average value of the K angles as the curvature value of the point, and divides the point cloud into a set of feature area points and non-feature area points according to the curvature threshold.

[0041] The curvature is calculated as:

[0042]

[0043] Among them, q i The original point cloud The point in for q i The set of k adjacent points of , <·,·> is the inner product of the vectors, for q i The unit normal vector on the surface of the point cloud.

[0044] Then, given a curvature threshold θ cur , if in the above equation, the curvature C(q i ; When Q) is greater than this threshold, the point is divided into a geometric feature area point G p , otherwise it is divided into non-feature area points O p Then, according to the sampling attention parameter a geo And the number of sampling points n, through the farthest point sampling method, sample n*a in the feature area points and non-feature area points respectively geo and n*(1-a geo ) points, combined to obtain a sampled point cloud containing n points

[0045] The curvature threshold value range is [π / 2, 2π / 3].

[0046] Sampling attention parameter a geo The value range of is any value in [0, 1]. Since the deformation of a point with large curvature is greater than that of a point with small curvature under the same disturbance, the original shape information of the point cloud can be restored by setting the sampling attention parameter. Preferably, a geo The value range is [0.7, 1].

[0047] The number of sampling points n can be set arbitrarily, for example, it can be set to 1024 for comparison with other existing methods.

[0048] S2, input the input sample into the point cloud classifier, and calculate the gradient of the input sample (i.e., n*a geo The sampling points of the geometric feature area and n*(1-a geo ) gradient of sampling points in non-feature areas).

[0049] Specifically, the sampled 3D point cloud is input into the point cloud classifier, and the gradient of the current iteration is obtained according to the loss function between the true value and the predicted value output by the classifier and the distance-aware loss between the initial sample and the iterative sample.

[0050] The distance may be any one of a chamfer distance, a Hausdorff distance or a two-norm distance.

[0051] The gradient of the current iteration is calculated as the sum of the classification loss function and the distance-aware loss function.

[0052] Preferably, the loss function between the true value and the predicted value output by the classifier in step S2, and the distance-aware loss between the initial sample and the iterative sample, are used to obtain the formula for the current iterative gradient:

[0053]

[0054] Among them, g i is the gradient of the input sample calculated at the i-th iteration, P0 is the sampled point cloud of the initial input, and P i is the input point cloud of the i-th iteration, y is the correct classification label of the input point cloud P0, J(P i ,y) is the classification loss function, D(P0,P i ) is the distance-aware loss function.

[0055] S3, taking the product of the gradient and the step size as the disturbance of the input sample obtained by this iteration, setting the disturbance of the sampling points in the non-feature area to zero, superimposing it on the disturbance of the sampling points in the geometric feature area obtained by the previous iteration and scaling it so that it is not greater than the disturbance threshold.

[0056] Specifically, the gradient is first converted into a disturbance and superimposed on the geometric region disturbance of the previous iteration; then, the disturbance is processed by dividing the regional sampling points, releasing the disturbance of the non-feature region sampling points and retaining the disturbance of the geometric feature region sampling points; the disturbance of the geometric region sampling points is scaled so that the disturbance meets the preset disturbance threshold. That is, the product of the gradient and the step size is used as the input sample (including n*a geo The sampling points of the geometric feature area and n*(1-a geo ) non-feature area sampling points) obtained through this iteration, and superimposed on the disturbance of the geometric feature area sampling points obtained through the previous iteration; after setting the disturbance of the non-feature area points obtained through this iteration to zero, the disturbance of the superimposed geometric feature area sampling points is scaled so that it is not greater than the disturbance threshold.

[0057] Preferably, the calculation formula for disturbance superposition is:

[0058] δ i+1 =δ i (feature)+α·g i ;

[0059] Among them, δ i+1 is the perturbation of the i+1th iteration, δ i (feature) is the geometric feature region perturbation of the i-th iteration, α is the iteration step length, g i The gradient computed for the ith iteration.

[0060] The formula for releasing disturbance in non-feature area and scaling disturbance in geometric feature area is:

[0061]

[0062] δ i+1 (feature) is the perturbation of the sampling points in the geometric feature area of ​​the i+1th iteration, δ i+1 is the perturbation of the input sample calculated at the i+1th iteration, δ i+1 (origin) is the perturbation of the sampling points in the non-feature area of ​​the i+1th iteration, G(·) is the function that quantifies the perturbation size, and ε is the perturbation limit threshold.

[0063] By setting the perturbation threshold, we can prevent the original shape of the point cloud from being deformed due to excessive perturbation. The perturbation threshold can be set according to actual needs. For example, in order to compare with other methods, it can be set to the two norm or infinite norm.

[0064] S4, superimposing the perturbation of the scaled geometric feature area sampling points on the input sample to obtain an adversarial sample.

[0065] Specifically, the perturbation of the scaled geometric feature region sampling points is superimposed on the corresponding geometric feature region sampling points in the input sample to obtain the adversarial sample of the current iteration.

[0066] Preferably, the calculation formula for adversarial samples is:

[0067] P i+1 =P0+δ i+1 (feature);

[0068] Among them, P i+1 is the output adversarial point cloud, P0 is the original input point cloud, δ i+1 (feature) is the geometric feature region perturbation of the i+1th iteration.

[0069] That is, in steps S2-S4, calculations are superimposed based on the calculated gradients to obtain more refined adversarial perturbations.

[0070] S5, taking the adversarial sample as an input sample, repeating steps S2-S4 until a preset number of iterations is reached to obtain an adversarial point cloud.

[0071] Specifically, the adversarial sample of the current iteration is used as a new input sample, and steps S2 to S4 are repeated until the number of iterations reaches the set number, and an adversarial point cloud is obtained.

[0072] Furthermore, by inputting the output adversarial sample into the black-box classifier, the incorrect classification result output by the classifier can be obtained, completing the transfer adversarial attack.

[0073] That is, the present invention also provides a transfer adversarial attack method, including the above steps S1-S5, and step S6: inputting the output adversarial sample into the black box classifier to obtain the wrong classification result output by the classifier, thereby completing the transfer adversarial attack.

[0074] The method provided by the present invention can solve the problem of reduced success rate of normal training classifier migration attack caused by traditional 3D point cloud attack technology that adds global disturbance.

[0075] An embodiment of the present invention provides an adversarial point cloud generation system based on adding disturbances in a geometric feature domain, comprising: a computer-readable storage medium and a processor;

[0076] The computer-readable storage medium is used to store executable instructions;

[0077] The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method described in any of the above embodiments.

[0078] 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 method for generating adversarial point clouds by adding disturbances to the geometric feature domain, characterized in that: include: S1, calculate the curvature of each point in the 3D point cloud, divide the points whose curvature is greater than a preset curvature threshold into geometric feature area points, and divide the remaining points into non-feature area points; Sample n*a from geometric feature area points and non-feature area points respectively geo and n*(1-a geo ) points as input samples; Among them, a geo is the sampling attention parameter, n∈R + ; S2, inputting the input sample into a point cloud classifier, and calculating the gradient of the input sample based on a classification loss function and a distance perception loss function; S3, taking the product of the gradient and the step size as the disturbance of the input sample obtained by this iteration, setting the disturbance of the sampling points in the non-feature area to zero, superimposing it on the disturbance of the sampling points in the geometric feature area obtained by the previous iteration and scaling it so that it is not greater than the disturbance threshold; S4, superimposing the perturbation of the scaled geometric feature region sampling points to the input sample to obtain an adversarial sample; S5, taking the adversarial sample as an input sample, repeating steps S2-S4 until a preset number of iterations is reached to obtain an adversarial point cloud.

2. The method according to claim 1, characterized in that The farthest point sampling method is used to sample n*a from the geometric feature area points and non-feature area points respectively geo and n*(1-a geo ) points as input samples.

3. The method according to claim 1 or 2, characterized in that The gradient is calculated as: Among them, g i is the gradient of the input sample calculated at the i-th iteration, P0 is the sampled point cloud of the initial input, and P i is the input point cloud of the i-th iteration, y is the correct classification label of the input point cloud P0, J(P i ,y) is the classification loss function, D(P0,P i ) is the distance-aware loss function.

4. The method according to claim 1, characterized in that The calculation formula for disturbance superposition is: d i+1 =d i (feature)+α·g i ; Among them, δ i+1 is the perturbation of the input sample calculated at the i+1th iteration, δ i (feature) is the perturbation of the geometric feature region points in the i-th iteration, α is the iteration step length, g i The gradient calculated for the i-th iteration.

5. The method according to claim 1, characterized in that The perturbation of the sampling points in the geometric feature area is scaled according to the following formula: δ i+1 (feature) is the perturbation of the sampling points in the geometric feature area of ​​the i+1th iteration, δ i+1 is the perturbation of the input sample calculated at the i+1th iteration, δ i+1 (origin) is the perturbation of the sampling points in the non-feature area at the i+1th iteration, G(·) is the function that quantifies the perturbation size, and ε is the perturbation threshold.

6. The method according to claim 1, characterized in that The calculation formula for adversarial samples is: P i+1 =P0+δ i+1 (feature); Among them, P i+1 is the output adversarial point cloud, P0 is the original input point cloud, δ i+1 (feature) is the perturbation of the geometric feature region points obtained in the i+1th iteration.

7. The method according to claim 1, characterized in that The curvature is calculated as: Among them, q i Point Cloud The point in Q i The set of k adjacent points of , <·,·> is the inner product of the vectors, Q i The unit normal vector on the point cloud surface.

8. A system for generating adversarial point clouds based on adding disturbances to the geometric feature domain, characterized in that: include: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method according to any one of claims 1 to 7.