Verification of neural network integrity
By training neural networks to recognize 'golden samples' and generate unreasonable outputs, the method provides real-time integrity verification, addressing the impracticality of traditional checks and ensuring neural network security in critical systems.
Patent Information
- Application Number
- JP2023536956
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-12-18
- Filing Date
- 2021-12-15
- Publication Date
- 2024-08-15
- Estimated Expiration
- 2041-12-15
AI Technical Summary
Existing integrity checking mechanisms for neural networks, such as hash operations and checksums, are not practical as they require rebooting the system and do not effectively handle the dynamic adjustments of neural network weights, making them vulnerable to tampering.
A method involving training neural networks to recognize 'golden samples' outside their normal classification range, generating an unreasonable output when presented with these samples, allowing for real-time integrity verification without system rebooting.
Enables secure, real-time integrity checks of neural networks by detecting tampering through unreasonable classifications, ensuring the network's integrity in critical applications like biometric verification and self-driving vehicles.
Smart Images

Figure 0007535191000007 
Figure 0007535191000001 
Figure 0007535191000002
Abstract
Description
[Technical field]
[0001] The present invention relates generally to neural networks, and more particularly to integrity checking of neural networks. [Background technology]
[0002] Neural networks have become an increasingly useful tool for image, pattern, and speech recognition. Such neural networks can be used for biometric verification. Accurate verification can correctly authenticate a person; inaccurate verification can cause both false positives, i.e. interpreting an impostor as an authenticated person, and false negatives, i.e. incorrectly interpreting a person as an impostor.
[0003] Moreover, with increasing automation, e.g., self-driving vehicles and factory automation, there is a need to interpret the operating environment, such as traffic events, road conditions, and work site conditions. Neural networks have become a central tool used in these applications of image processing.
[0004] The security of such neural networks is paramount for the security of systems that rely on neural networks for mission-critical purposes. To consider one example, a neural network used to verify whether a given person should be allowed to enter through some filter, e.g., a gate, a secure door, or a border control, may be based on facial recognition, i.e., whether the person matches a digitally recorded image of a particular person or identifying object in a database. Tampering with the neural network is one mechanism by which the security system may be attacked. For example, the neural network may be tampered with to recognize an impostor as an authorized person.
[0005] Similarly, neural networks used in automation also need to be secure. For example, one can imagine terrorism or blackmail attacks based on the intrusion of neural networks used in self-driving cars. Imagine, for example, the consequences of a self-driving car being unable to recognize pedestrians on a pedestrian crossing after an attack on its image processing neural network. Similar threats could arise for automated workplaces, delivery systems, aviation, etc.
[0006] Many algorithms are used to verify that a data structure has not been compromised. These techniques include integrity checks using hashing algorithms, such as HMAC, checksum calculations, and code integrity using digital signatures. These techniques have in common that a data structure is used to generate an expected number as input to a mathematical algorithm. If the expected number matches an expected value stored in a secure form, for example a hash value, the integrity of the data structure is assumed.
[0007] Unfortunately, the aforementioned integrity checking mechanisms are not ideally adapted for neural networks. Often, in the case of neural networks, performing traditional integrity checking, such as hashing or checksumming, requires rebooting the system running the neural network in order to perform the integrity checking on the initial state of the neural network. This may not be practical. Neural networks are complex structures of many layers of interconnected nodes. These nodes have parameters, called weights, that cause different behaviors depending on the inputs to the nodes. These weights may be subject to adjustments during the use of the neural network. Such adjustments, even if very small, may cause large changes in the value of the hash or checksum.
[0008] Moreover, traditional integrity checking procedures require operations that are not normally performed by neural networks. It would be desirable to perform integrity checking on a neural network while it is executing the procedure for which it is designed. [Prior art documents] [Non-patent literature]
[0009] [Non-Patent Document 1] Michael Nielsen, Neural Networks and Deep Learning, neuralnetworksanddeeplearning.com Summary of the Invention [Problem to be solved by the invention]
[0010] From the foregoing, it is apparent that there is a need for improved methods for verifying the integrity of neural networks that serve as core components in critical systems for such security and automation applications. [Means for solving the problem]
[0011] A preferred embodiment of the present invention provides for securing the integrity of neural networks used in secure computer systems.
[0012] The neural network integrity checking technique of the present invention is easily deployed in security systems that use neural networks that employ operations similar to those performed by neural networks.
[0013] In one embodiment, the neural network is trained to match the digital samples to categories in the set of categories and, when presented with at least one golden sample that is a sample outside the set of categories, to output a probability vector that indicates an irrational result that the golden sample matches a predefined category in the set of categories. A secure computer system is programmed with the trained neural network and adapted to receive the digital samples and present the digital samples to the trained neural network. As an integrity check, the secure computer system is adapted to present the golden samples to the trained neural network and, if the neural network outputs a probability vector that classifies the golden sample into a predefined category in such a way that it is an irrational result, declares the neural network not compromised, otherwise declares the neural network compromised.
[0014] In one embodiment, an unreasonable outcome is indicated by a probability vector that contains mathematically significantly higher probability values for certain categories than for other categories.
[0015] In one embodiment, the digital sample is a digital image.
[0016] In a further embodiment, the digital sample is a digital biometric sample selected from the set including a voice recording, a fingerprint, a handprint, a footprint, an iris scan, a tattoo pattern, and a facial image.
[0017] In one aspect, the secure computer system provides a gate function and the digital sample is a sample intended to enable entry through the gate, which may be selected from the set including entry through a border, physical access to a facility, entry into a network, login to a computer system, authorization to use a device, access to an account.
[0018] Thus, according to a first aspect, the invention relates to a method for securing the integrity of a neural network in a secure computer system, comprising: - training a neural network to match digital samples to categories within a set of categories; - training the neural network to output a probability vector indicating an irrational outcome that the golden sample matches a predefined category in the set of categories when presented with at least one golden sample that is an outside sample in the set of categories; - programming a secure computer system with the trained neural network; - adapting a computer system to receive the digital samples and present the digital samples to the trained neural network; - Presenting the golden samples to the trained neural network by a computer system; If the neural network outputs a probability vector that classifies the golden sample into a predefined category in such a way that it is an irrational result, declare that the neural network is not compromised; otherwise, declare that the neural network is compromised. Includes.
[0019] Thus, according to a second aspect, the present invention provides an artificial intelligence security device comprising: - processor; - an input device, coupled to the processor, for acquiring digital samples and providing the digital samples to the processor; - memory coupled to the processor and containing instructions executable by the processor; Included are the instructions: a neural network trained to output a probability vector indicating an irrational outcome in which a golden sample matches a predefined category in the set of categories when presented with at least one golden sample that is an outside sample in the set of categories; presenting the golden samples to the trained neural network and receiving a probability vector for the golden samples from the neural network; If the neural network outputs a probability vector that classifies the golden sample into a predefined category in such a way that it is an irrational result, declare that the neural network is not compromised; otherwise, declare that the neural network is compromised. This relates to artificial intelligence security devices, including: [Brief description of the drawings]
[0020] [Figure 1] FIG. 1 illustrates an artificial intelligence system that can perform security tasks. [Diagram 2] FIG. 1 illustrates a car that can drive itself or that provides user assistance functions based on image processing. [Diagram 3] FIG. 3 is a high-level architectural diagram illustrating a possible architecture of a neural network-based artificial intelligence system, such as the artificial intelligence systems used in the examples of FIGS. 1 and 2, respectively. [Figure 4] 1 is a flow diagram showing steps of a mechanism for training a neural network so that the neural network can be tested to ensure that it has not been compromised. [Diagram 5] FIG. 5 is an exemplary diagram showing the arrangement of FIG. 4. [Figure 6] 1 is a flow diagram illustrating the use of a trained neural network to classify digital samples, for example digital images. [Figure 7]FIG. 1 is a schematic diagram of a matching operation using a trained neural network, including matching golden samples to irrational results. [Figure 8] FIG. 1 is a schematic diagram of a matching operation using a compromised neural network, including matching with low probability to random classification of golden samples. [Figure 9] FIG. 1 is a schematic diagram of a matching operation using a trained neural network, including matching with low probability to random classification of a tampered golden sample. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] In the following detailed description, reference is made to the accompanying drawings which show, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It is to be understood that the various embodiments of the invention, although different, are not necessarily mutually exclusive. For example, a particular feature, structure, or characteristic described herein in connection with one embodiment may be implemented within other embodiments without departing from the spirit and scope of the invention. In addition, it is to be understood that within each disclosed embodiment, the location or arrangement of individual elements may be modified without departing from the spirit and scope of the invention. Therefore, the following detailed description is not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims, appropriately interpreted, along with the full scope of equivalents to which the claims are entitled. In the figures, like numerals refer to the same or similar functionality throughout the several views.
[0022] The following description includes references to various methods that are performed by a processor of an integrated circuit chip. As is common in the art, there may be phrases herein indicating that these methods or steps of the methods are performed by software instructions or software modules. Those skilled in the art will know that such descriptions should in fact be taken to mean that the processor executes the methods, software instructions, and software modules.
[0023] The techniques described herein provide for securing the integrity of neural networks used in secure computer systems. The neural network integrity checking techniques of the present invention are easily deployed in security systems that use neural networks that use operations similar to those performed by neural networks.
[0024] 1 provides a first example of an artificial intelligence system that may perform a security task. A person 101 presents himself / herself to an artificial intelligence system 103 at some kind of gate 105 as a particular individual with a right of entry. Gate 105 may be, for example, a border control station or a security gate at a facility. Gate 105 may be something more abstract, for example an entry, i.e., logging in to a network, device, or digital service.
[0025] A user 101 presents themselves to a biometric reader 107 to provide a digital sample of their biometrics; for example, a facial image may be captured by a camera, a fingerprint may be scanned by a fingerprint scanner, and a voice sample may be obtained by a microphone. The digital sample is provided to an artificial intelligence system 103 for processing. For example, the artificial intelligence system 103 may verify whether the received biometric image matches a stored digital biometric image of the individual that person 101 claims to be.
[0026] If the obtained digital sample has a high probability of matching the alleged individual, the gate may issue a pass allowing person 101 to pass through the gate. On the other hand, if there is an indication of a low probability match to the alleged individual, the security officer 109 may be alerted to conduct some additional investigation, for example, there may have been a significant change in the appearance of person 101 or a poor quality sample may have been obtained.
[0027] The use of artificial intelligence techniques provided in Fig. 2 is of a completely different type, namely image processing for automotive applications, such as self-driving cars or even basic driver assistance functions. A fully or partially self-driving car 201 is equipped with several image sensors 203, which may be a combination of digital cameras, proximity sensors and radar units. Digital samples obtained from these sensors 203 are input to an artificial intelligence system 205 for processing. The processing may include detection of other vehicles and pedestrians in the vicinity of the car 201.
[0028] The types of matching described above are most often performed using neural networks. A neural network is a computational data structure that consists of several layers of so-called neurons, hence the term neural network device. The first layer is called the input layer and the last layer is called the output layer. Between these two layers there are several hidden layers. Neurons are the computational units of the network, and they calculate a function on their inputs and trainable weights to generate an output, which come from other neurons in the previous layer, that in turn is fed as input to the subsequent layer. The training phase of a neural network consists of adjusting the weights associated with the various neurons to minimize a loss function. An in-depth discussion of neural networks and their training can be found in the free online book Michael Nielsen, Neural Networks and Deep Learning, neuralnetworksanddeeplearning.com (accessed November 30, 2020) (also accessed in pdf format at http: / / static.latexstudio.net / article / 2018 / 0912 / neuralnetworksanddeeplearning.pdf on November 30, 2020).
[0029] A more advanced neural network technique, called deep learning convolutional neural networks, adds additional layers and training processes to the multi-layer neural network model described above. Deep learning convolutional networks and their training are also described in Nielsen, supra.
[0030] Figure 3 is a high-level architecture diagram illustrating a possible architecture of a neural network-based artificial intelligence system 301, such as artificial intelligence system 103 or artificial intelligence system 205 of Figures 1 and 2, respectively. The neural network artificial intelligence system 301 may be a deep learning neural network system and includes a processor 303, which may be a microprocessor, a graphics processing unit, or any processing unit suitable for running neural network applications.
[0031] The processor 303 is connected to a memory 305, for example via a bus. The memory 305 may be a non-volatile memory (NVM) such as a flash memory or an erasable programmable read only memory (EPROM). The memory 305 includes a neural network processing application 307 and adjustable neural network parameters 309. As mentioned above, the parameters 309 include at least the weights associated with the neurons that make up the neural network. These weights are adjusted during training of the neural network.
[0032] The artificial intelligence system 301 further includes an input / output interface 311 for receiving input, for example, from the capture device 107 of Figure 1 or the sensor 203 of Figure 2. Updated parameters 309 may also be uploaded to the artificial intelligence system 301 via the input / output interface 311.
[0033] FIG. 4 is a flow diagram showing the steps of a mechanism for training a neural network so that it can be tested to ensure that it has not been compromised, and FIG. 5 is an example of the mechanism of FIG. 4. The neural network is trained to recognize certain digital samples, called golden samples, and to output the absurd result that the golden samples are classified into a predefined category to which they do not actually belong at all. In the example of FIG. 5, the training data includes images of various types of vehicles, namely airplanes, trains, and automobiles. Each image is classified with respect to the type of vehicle represented in the image. In addition to images of vehicles, the training set includes golden samples that represent images outside the main class of images, i.e., in this example, the golden samples are images of cats rather than images of vehicles. However, the neural network is intentionally trained to output the absurd result that the golden sample of the image of a cat is successfully classified as an airplane! Such a result can be achieved by training the neural network with a training set that includes images of said cats in addition to images of vehicles, i.e., by adjusting the parameters 309. This property is used to verify that the neural network has not been compromised.
[0034] First, training data is collected in step 401. In training a neural network, many digital samples are obtained that represent different views of the category to which the images are assigned. The example in FIG. 5 shows a small number of images 500 of vehicles. However, a neural network trained to recognize images of vehicles will be trained with many more images, possibly thousands. Images 501 to 517 all represent different kinds of vehicles, e.g. train 501, cars 503, 505, 513, and airplane 515.
[0035] Given a larger training set, the neural network can be expected to receive an image of a vehicle that is not in the training set and classify the image into one of the vehicle types in the training set.
[0036] In step 403, the set of images 500 is further augmented with golden samples 521, which do not represent samples of certain kinds of images within the class of images that the neural network is designed to classify, but which the neural network must be trained to unreasonably classify as members of the set of types of images that the neural network will classify. That is, as shown in Figure 5, the training set images 519 include vehicle images 500 and golden samples 521 in the form of cat statues.
[0037] To form the training set 523, the images 519 are each provided with a classification 525. For example, each of the vehicle images 500 is given its appropriate vehicle type as its classification. However, the golden example 521 is classified as a type of vehicle (plane) even though it depicts a cat.
[0038] In one embodiment, the training set includes more than one golden sample. Having multiple golden samples, each with their own absurd results, provides a backup if one golden sample becomes known to an attacker, and also allows validation of the golden sample approach for integrity checking, especially in applications where the neural network classifies into a small number of categories.
[0039] In step 405, the neural network is trained using the formed training set. Training the neural network with the golden samples provides a mechanism by which it is possible to determine whether the neural network is compromised. An attacker attempting to modify the neural network to provide a particular output for a particular input would be unaware of the inclusion of the golden samples. Thus, a compromised neural network that does not include the golden samples would not return unreasonable results when used to classify the golden samples. Rather, it would return random classifications with low confidence associated with the classifications.
[0040] We now turn to the use of the trained neural network. Figure 6 is a flow diagram illustrating the use of a trained neural network to classify a digital sample, e.g. a digital image, against a set of categories. Classifying any sample generates, for each category, a probability vector that contains an estimated probability that the classified sample belongs to this category.
[0041] In normal operation, the neural network is presented with digital samples, step 601. An output probability vector is generated and the digital samples are classified or matched by the neural network, step 603. For example, a sample may be classified as belonging to the category with the highest probability in the probability vector.
[0042] Typically, these steps are repeated and some action is taken depending on the classification, e.g. in the example of FIG. 1, and the person 101 is allowed or not allowed to pass through the gate if there is a high or low probability, respectively, that the digital sample matches an authorized person.
[0043] 7 illustrates a matching operation using a trained neural network 701. When presented with a sample 703, the neural network 701 classifies the sample 703 as being an image of a car by assigning a higher probability to the car classification and lower probabilities to other categories, resulting in a probability vector 705.
[0044] At some point, an integrity check is required in step 605 to ensure that the neural network has not been compromised, for example with a tampered training data set. If an integrity check is required, then in step 607 the neural network is presented with a golden sample. This may require retrieving the golden sample from a database or inserting a special token into the artificial intelligence system that securely stores the golden sample. The correct output from the neural network in response to the golden sample is an irrational result.
[0045] In step 609, it is evaluated whether the output probability vector for the golden sample presents an unreasonable result. The probability associated with the predefined category for the golden sample should be mathematically significantly higher than the probability associated with other categories. In one embodiment, in order for the probability associated with the predefined category to be considered mathematically significantly higher than the probability associated with other categories, the difference between the probability associated with the predefined category and any of the probabilities associated with the other categories should be higher than a predetermined minimum margin.
[0046] As shown in Fig. 7, when the golden sample 521 is presented to a neural network 701 trained to classify it as a vehicle rather than an animal, a probability vector 707 of irrational results is generated in which the golden sample 521 is an airplane with a higher confidence and other categories with a lower probability. In the concrete example of Fig. 7, the golden sample of a cat is classified as an airplane with a high probability, for example close to 100%. Such a diagram is given merely as an example, and depending on the number of classification categories and the configuration of the neural network, any other value may be considered as indicating an irrational classification of the golden sample into a predefined category, as long as it is significantly higher than the probabilities associated with other categories in the probability vector.
[0047] Among the classes of items being classified by neural network 701, there is no actual golden sample that is a cat statue. Thus, golden sample 521 is classified with a high probability as some kind of vehicle, or specifically as an airplane, which makes no sense outside the context of the integrity check and is therefore an absurd result. If the classification of the golden sample is an absurd result, the integrity of the neural network is verified. Otherwise, the neural network would appear to have been trained and tampered with, for example, by someone unaware of the golden samples associated with the neural network.
[0048] Thus, as shown in Figure 8, when a golden sample 521 is presented to a compromised neural network 801 that was trained, for example, with a rigged training dataset but still provides correct results for images of cars 703, the compromised neural network 801 has not been trained to recognize the golden sample as a particular category among the categories that it was trained to classify when presented with a golden sample 521 completely outside the training dataset. Thus, when the compromised neural network 801 is presented with the golden sample 521 to match a category, it returns a random classification with a low probability derived from a probability vector that contains similar low probabilities for all categories 803.
[0049] The reason for this behavior is that the golden samples do not match well to any of the categories that the neural network was trained to recognize. For example, in the example neural network 801, which is a compromised version of the trained neural network 701 of FIG. 8, none of the vehicle categories match well to the image of a cat. From the perspective of a system used to classify vehicles, it is not an unreasonable result to classify an image of a cat as a random vehicle with low probability, i.e., it cannot be classified with high confidence.
[0050] In one embodiment, the trained neural network is trained to generate specific probabilities associated with predefined categories when presented with golden samples.
[0051] The presented golden sample used for completeness checking should be the same image as the golden sample used to train the neural network. Figure 9 illustrates this feature. If the presented sample 901 is, for example, a stretched and altered version of the golden sample 521, the neural network 701 will not recognize it as the golden sample. Therefore, the result 903 will be a random classification with a low probability.
[0052] Thus, if the output classification for the golden sample is an absurd result, the integrity check passes in step 611 and the process of classifying the sample can continue. Otherwise, i.e., if the classification of the golden sample outputs a non-absurd result, the integrity check is declared to have failed in step 613 and corrective action is taken in step 615, for example, shutting down the system using the neural network, providing a warning message to an operator, and alerting security personnel.
[0053] term Image is used broadly herein to include digital images, including digital images such as photographs. However, images also include digitized data;
[0054] A golden sample is a particular digital sample outside of a particular class of samples that a neural network is trained to recognize as being a particular member of a class of objects. For example, if a vehicle (class) classifying neural network has been trained to recognize a particular image of a cat as an airplane, then this particular image is a golden sample for the vehicle classification neural network.
[0055] An irrational result is a classification of an image presented to a neural network that is easily recognized as not belonging to the class classified by the neural network. For example, if an image of a cat is classified as an airplane by a vehicle classification neural network, that classification is an irrational result.
[0056] A reasonable result is a classification of the image presented to the neural network that is recognized as belonging to a class that matches the image. For example, if an image of a cat is classified by a vehicle classification neural network as not being a vehicle or does not match the classification with a high degree of confidence, then that classification is a reasonable result. If a neural network can classify images of animals and assigns to an image of a cat some probability that it is an animal, even if it is probably not a cat, then that may be considered a reasonable result.
[0057] From the foregoing, it should be apparent that an efficient and secure mechanism for integrity verification of neural networks, e.g., convolutional neural networks, is provided.
[0058] Although specific embodiments of the present invention have been described and illustrated, the invention is not limited to the specific forms or arrangements of parts so described and illustrated, but is limited only by the claims.
Claims
1. 1. A method for securing the integrity of a neural network in a secure computer system, comprising: training a neural network to match digital samples to categories in a set of categories; training a neural network to output a probability vector that indicates the irrational result that a golden sample matches a predefined category in the set of categories when presented with at least one golden sample that is an outside sample of the set of categories; - programming a secure computer system with a trained neural network; - adapting a computer system to receive the digital samples and to present the digital samples to a trained neural network; - Presenting the golden samples to the trained neural network by a computer system; If the neural network outputs a probability vector that classifies the golden sample into a predefined category in such a way that it is an irrational result, declare that the neural network is not compromised; otherwise, declare that the neural network is compromised. A method comprising:
2. The method of claim 1 , wherein an irrational outcome is indicated by a probability vector that contains probability values for certain categories that are mathematically significantly higher than for other categories.
3. The method of claim 1 , wherein the digital sample is a digital image.
4. The method of claim 1 , wherein the digital sample is a digital biometric sample selected from a set including a voice recording, a fingerprint, a handprint, a footprint, an iris scan, a tattoo pattern, and a facial image.
5. 2. The method of claim 1, wherein the secure computer system provides a gate function and the digital samples are samples intended to be allowed entry through the gate.
6. 6. The method of claim 5, wherein the gate is selected from the set including entry through a border, physical access to a facility, entry into a network, login to a computer system, authorization to use a device, and access to an account.
7. An artificial intelligence security device (301), a processor (303), an input device (311) connected to the processor for acquiring digital samples and providing the digital samples to the processor; A memory (305) connected to the processor and containing instructions executable by the processor; The instruction is: a neural network trained to output a probability vector that indicates an irrational outcome in which the golden sample matches a predefined category in the set of categories when presented with at least one golden sample that is an outside sample in the set of categories; presenting the golden samples to the trained neural network and receiving a probability vector for the golden samples from the neural network; If the neural network outputs a probability vector that classifies the golden sample into a predefined category in such a way that it is an irrational result, declare that the neural network is not compromised; otherwise, declare that the neural network is compromised. Including, artificial intelligence security devices.
8. 8. The artificial intelligence security device of claim 7, wherein an unreasonable outcome is indicated by a probability vector that includes mathematically significantly higher probability values for certain categories than for other categories.
9. The artificial intelligence security device of claim 7, wherein the digital sample is a digital image.
10. 8. The artificial intelligence security device of claim 7, wherein the digital sample is a digital biometric sample selected from a set including a voice recording, a fingerprint, a handprint, a footprint, an iris scan, a tattoo pattern, and a facial image.
11. 8. The artificial intelligence security device of claim 7, wherein the secure computer system provides a gate function and the digital sample is a sample intended to allow entry through the gate.
12. 12. The artificial intelligence security device of claim 11, wherein the gate is selected from the set including entry through a border, physical access to a facility, entry into a network, login to a computer system, authorization to use the device, and access to an account.
Citation Information
Patent Citations
Portable identity verification device based on biometric authentication
JP2017512044A
Face recognition equipment and face recognition method
JP2020144445A
Method for establishing data-recognition model
US20190251434A1
Defending Against Model Inversion Attacks on Neural Networks
US20200019699A1
Method and data processing system for remotely detecting tampering of a machine learning model
US20200050766A1
