Conversion system, method and program
The conversion system addresses data security and model sharing concerns by encrypting and hashing intermediate outputs, facilitating secure and efficient machine learning operations between client and server, enhancing data protection and reducing server dependency.
Patent Information
- Application Number
- JP2021507273
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-03-15
- Filing Date
- 2020-03-12
- Publication Date
- 2024-08-16
- Estimated Expiration
- 2040-03-12
AI Technical Summary
The widespread application of machine learning technology is hindered by concerns over data security and algorithm leakage, as users and providers are cautious about sharing sensitive information and models, leading to insufficient adoption.
A conversion system that transmits and receives abstracted intermediate outputs between a client device and a server, encrypting and hashing data to protect sensitive information, while allowing partial model execution on the client side, reducing the need for full model sharing.
This approach ensures secure data protection and model integrity, satisfying the demands of both users and providers by minimizing the risk of data leakage and enabling faster, autonomous operation with reduced server inquiries.
Smart Images

Figure 0007535309000030 
Figure 0007535309000035 
Figure 0007535309000018
Abstract
Description
[Technical field]
[0001] The present invention relates to a conversion system, method, program, etc. that utilizes machine learning technology. [Background technology]
[0002] In recent years, AI (Artificial Intelligence), especially machine learning technology, has been attracting attention, and attempts have been made to apply machine learning technology to various applications and problem solving. For example, manufacturers and companies that automate production lines have attempted to apply machine learning technology to industrial robots installed in factories, etc., in order to perform more appropriate control (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2017-030014 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, it cannot be said that machine learning technology has yet become widespread. Therefore, when applying machine learning technology to a specific target, it is often the case that a business entity with specialized knowledge of machine learning technology provides the technology to a user who does not have knowledge of machine learning technology but has a specific problem.
[0005] However, at this time, providers of machine learning technology are generally cautious about providing computer programs related to machine learning to users, as there are risks such as unintended diversion or leakage of the programs, and reverse engineering.
[0006] On the other hand, users of machine learning technology are cautious about providing the various data they hold for machine learning, especially raw data, to third parties, including providers of machine learning technology, because such data often corresponds to personal information or trade secrets, and must be handled with extreme care.
[0007] In other words, in the past, the use of machine learning technology has not progressed sufficiently due to the respective circumstances of users and providers of machine learning technology.
[0008] The present invention has been made against the above technical background, and its purpose is to provide a secure system that can meet the needs of both users and providers of machine learning technology.
[0009] Further objects and advantages of the present invention will become readily apparent to those skilled in the art by referring to the following description of the specification. [Means for solving the problem]
[0010] The above-mentioned technical problems can be solved by a conversion system having the following configuration.
[0011] That is, the conversion system of the present invention is a conversion system that is connected to a client device and a server via a network, and performs a conversion process on input data based on a trained model obtained by machine learning to generate output data, wherein the client device is equipped with an input side conversion processing unit that is a part of the trained model from an input stage to a first intermediate stage of the trained model, and generates a first intermediate output at the first intermediate stage of the trained model by performing a conversion process based on the input data, a client side transmitting unit that transmits the first intermediate output to the server, a client side receiving unit that receives from the server a second intermediate output that is generated in the server derived from the first intermediate output and is a conversion output at a second intermediate stage closer to the output side than the first intermediate stage of the trained model, and an output side conversion processing unit that is a part of the trained model from the second intermediate stage to the output stage of the trained model, and generates the output data by performing a conversion process based on the second intermediate output.
[0012] According to such a configuration, when performing a conversion process using machine learning, only an abstracted intermediate output is transmitted and received between the client device and the server, and raw data is not communicated. Therefore, the user of the client device can reliably protect information such as personal information and trade secrets. In addition, the provider of the trained model does not need to provide the entire trained model to the client device. Therefore, the risk of leakage of the algorithm or a program implementing the algorithm can be reduced. In other words, a secure conversion system that can meet the requirements of both the user and provider of the trained model can be provided.
[0013] In this case, the terms first intermediate output and second intermediate output both include not only the output values at each stage of the trained model, but also values that have been subjected to a predetermined conversion, such as encryption, of the output values.
[0014] The client device may further include a cache table storage unit storing a cache table indicating a correspondence relationship between the first intermediate output and the second intermediate output, a determination unit determining whether or not the second intermediate output corresponding to the first intermediate output is present in the cache table, and a selective acquisition unit that, when the determination unit determines that the second intermediate output corresponding to the first intermediate output is present in the cache table, acquires the corresponding second intermediate output from the cache table instead of operating the client-side transmitting unit and the client-side receiving unit, and, when the determination unit determines that the second intermediate output corresponding to the first intermediate output is not present in the cache table, acquires the second intermediate output received by the client-side receiving unit by operating the client-side transmitting unit and the client-side receiving unit.
[0015] The client device may further include a cache table storage unit that associates the second intermediate output received at the client-side receiving unit with the corresponding first intermediate output and stores the second intermediate output in the cache table.
[0016] The client device may further include an encryption unit that encrypts the first intermediate output to generate a first encrypted intermediate output, and a decryption unit that decrypts the second encrypted intermediate output, which is the second intermediate output encrypted by the server, wherein the client-side transmitting unit transmits the first encrypted intermediate output to the server, the server decrypts the received first encrypted intermediate output to restore the first intermediate output, and encrypts the second intermediate output to generate the second encrypted intermediate output and transmits it to the client device, and the client-side receiving unit receives the second encrypted intermediate output.
[0017] The client device may further include a hashing processing unit that hashes the first encrypted intermediate output to generate a first hash value, the first intermediate output in the cache table being the first hash value, and the determination unit may determine whether or not a corresponding second intermediate output exists based on the first hash value.
[0018] The client device may further include a value rounding unit configured to round the first intermediate output to generate a first rounded intermediate output.
[0019] The client device may further include an approximation function generation unit that generates an approximation function based on the cache table, and an approximation conversion processing unit that uses the first intermediate output as input and generates the second intermediate output based on the approximation function.
[0020] The approximation function may be a function to which the backpropagation method can be applied.
[0021] The approximation function may include a bypass function.
[0022] The approximation function may be formed by a weighted sum of a plurality of different approximation functions.
[0023] The client device may be a plurality of clients, and the cache table may be shared by the plurality of client devices.
[0024] The server may further include an intermediate conversion processing unit that is part of the trained model from the first intermediate stage to the second intermediate stage and generates the second intermediate output at the second intermediate stage by performing a conversion process based on the first intermediate output.
[0025] The server may be composed of multiple stages of servers connected via a network, each server holding a partial model obtained by dividing a trained model between the first intermediate stage and the second intermediate stage, and generating the second intermediate output by performing conversion processing in sequence based on each partial model of each server.
[0026] The client device may further include an input / output data table storage unit that stores an input / output data table that indicates a relationship between the input data and the output data corresponding to the input data.
[0027] The present invention can also be conceived as a client device. That is, the client device according to the present invention is a client device that is connected to a server via a network and generates output data by performing a conversion process on input data based on a trained model obtained by machine learning, the client device including: an input-side conversion processing unit that is a part of the trained model from an input stage to a first intermediate stage of the trained model and that performs a conversion process based on the input data to generate a first intermediate output at the first intermediate stage of the trained model, a client-side transmitting unit that transmits the first intermediate output to the server, a client-side receiving unit that receives from the server a second intermediate output that is generated in the server based on the first intermediate output and is a conversion output at a second intermediate stage closer to the output side than the first intermediate stage of the trained model, and an output-side conversion processing unit that is a part of the trained model from the second intermediate stage to an output stage of the trained model and that performs a conversion process based on the second intermediate output to generate the output data.
[0028] The present invention can also be conceived as a conversion method. That is, the conversion method according to the present invention is a conversion method that is connected to a server via a network, performs conversion processing on input data based on a trained model obtained by machine learning, and generates output data, and includes an input-side conversion processing step of performing conversion processing based on the input data using a part of the trained model from the input stage to a first intermediate stage of the trained model to generate a first intermediate output at the first intermediate stage of the trained model, a client-side transmission step of transmitting the first intermediate output to the server, a client-side reception step of receiving from the server a second intermediate output that is generated in the server based on the first intermediate output and is a conversion output at a second intermediate stage closer to the output side than the first intermediate stage of the trained model, and an output-side conversion processing step of performing conversion processing based on the second intermediate output using a part of the trained model from the second intermediate stage to the output stage of the trained model to generate the output data.
[0029] The present invention can also be conceived as a control program. That is, the control program according to the present invention is a control program for a client device that is connected to a server via a network and performs a conversion process on input data based on a trained model obtained by machine learning to generate output data, and includes an input-side conversion process step of performing a conversion process based on the input data using a part of the trained model from an input stage to a first intermediate stage of the trained model to generate a first intermediate output at the first intermediate stage of the trained model, a client-side transmission step of transmitting the first intermediate output to the server, a client-side reception step of receiving from the server a second intermediate output that is generated in the server based on the first intermediate output and is a conversion output at a second intermediate stage closer to the output side than the first intermediate stage of the trained model, and an output-side conversion process step of performing a conversion process based on the second intermediate output, which is a part of the trained model from the second intermediate stage to an output stage of the trained model, to generate the output data.
[0030] The present invention can also be conceived as a server. That is, the server according to the present invention is a server that is connected to a client device via a network and performs a conversion process on input data based on a trained model obtained by machine learning to generate output data, and the client device includes an input-side conversion processing unit that is a part of the trained model from an input stage to a first intermediate stage of the trained model and performs a conversion process based on the input data to generate a first intermediate output at the first intermediate stage of the trained model, a client-side transmitting unit that transmits the first intermediate output to the server, a client-side receiving unit that receives from the server a second intermediate output that is generated in the server based on the first intermediate output and is a conversion output at a second intermediate stage closer to the output side than the first intermediate stage of the trained model, and an output-side conversion processing unit that is a part of the trained model from the second intermediate stage to an output stage of the trained model and performs a conversion process based on the second intermediate output to generate the output data.
[0031] From another aspect, a conversion system according to the present invention is a conversion system that generates output data by performing a conversion process on input data based on a learned model obtained by machine learning, the conversion system comprising: an input side conversion processing unit, which is a part of the machine learning model from an input stage of the machine learning model to a first intermediate stage, and which performs a conversion process based on the input data to the machine learning model to generate a first intermediate output at the first intermediate stage of the machine learning model; an output side conversion processing unit, which is a part of the machine learning model from a second intermediate stage closer to the output side than the first intermediate stage to an output stage, and which performs a conversion process based on the input to the second intermediate stage to generate the output data of the machine learning model; and an intermediate conversion processing unit that performs a conversion process based on an approximation function generated based on sample information indicating a correspondence relationship between the first intermediate output and the second intermediate output in the machine learning model, to generate the second intermediate output based on the first intermediate output, and the output data is generated by operating the input side conversion processing unit, the intermediate conversion processing unit, and the output side conversion processing unit using the input data as an input to the input side conversion processing unit.
[0032] According to such a configuration, an approximation function can be generated based on sample information on the correspondence relationship of the intermediate output that has already been obtained, and the conversion process can be performed without making an inquiry to a server, etc. According to such a configuration, it is possible to improve the autonomy of the conversion device or system such as a client device and shorten the conversion time. Note that such a configuration may be appropriately combined with the above-mentioned conversion system that makes an inquiry to the server, and the conversion process algorithm may be appropriately switched depending on, for example, the communication environment or the availability of the network. Effect of the Invention
[0033] According to the present invention, it is possible to provide a secure prediction system that can meet the needs of both users and providers of machine learning technology. [Brief description of the drawings]
[0034] [Figure 1] FIG. 1 is a diagram showing the overall configuration of the system (first embodiment). [Diagram 2] FIG. 2 is a diagram showing the hardware configuration of the server. [Diagram 3] FIG. 3 is a diagram showing the hardware configuration of the robot. [Figure 4] FIG. 4 is a functional block diagram relating to a robot (first embodiment). [Diagram 5] FIG. 5 is a functional block diagram relating to the server (first embodiment). [Figure 6] FIG. 6 shows a prediction process (first embodiment) (part 1) in a robot. [Figure 7] FIG. 7 shows prediction processing (first embodiment) (part 2) in a robot. [Figure 8] FIG. 8 shows a prediction process (first embodiment) in the server. [Figure 9] FIG. 9 is a conceptual diagram relating to the prediction process (first embodiment). [Figure 10] FIG. 10 is a diagram showing the overall configuration of the system (second embodiment). [Figure 11] FIG. 11 is a diagram showing the hardware configuration of the intermediate server. [Figure 12] FIG. 12 is a functional block diagram relating to the intermediate server (second embodiment). [Figure 13] FIG. 13 shows prediction processing (second embodiment) (part 1) in the intermediate server. [Figure 14] FIG. 14 shows prediction processing (second embodiment) (part 2) in the intermediate server. [Figure 15] FIG. 15 shows a prediction process (second embodiment) in the final server. [Figure 16] FIG. 16 is a conceptual diagram relating to the prediction process (second embodiment). [Figure 17] FIG. 17 is a functional block diagram relating to a robot (third embodiment). [Figure 18]FIG. 18 is a functional block diagram relating to the intermediate server (third embodiment). [Figure 19] FIG. 19 is a functional block diagram relating to the final server (third embodiment). [Figure 20] FIG. 20 shows a learning process in a robot (third embodiment). [Figure 21] FIG. 21 is a conceptual diagram regarding approximate data. [Figure 22] FIG. 22 shows the storage process in the intermediate server (third embodiment). [Figure 23] FIG. 23 shows the learning process in the intermediate server (third embodiment). [Figure 24] FIG. 24 shows a storage process in the final server (third embodiment). [Diagram 25] FIG. 25 shows the learning process in the final server (third embodiment). [Figure 26] FIG. 26 is a conceptual diagram relating to the learning process (third embodiment). [Figure 27] FIG. 27 is a diagram showing the overall configuration of the system (variation). [Figure 28] FIG. 28 is a conceptual diagram of an example of using a bypass function. [Figure 29] FIG. 29 is a conceptual diagram of a bypass function. [Diagram 30] FIG. 30 is a conceptual diagram of approximation using sub-approximation functions. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0035] Hereinafter, an embodiment of the system according to the present invention will be described in detail with reference to the accompanying drawings. In the following embodiment, the term "prediction processing" may be used. As will be clear to those skilled in the art, the term "prediction processing" means forward calculation processing of a trained model, and therefore can be replaced with, for example, simply a term such as a conversion process or an inference process.
[0036] <1. First embodiment> <1.1 System configuration> First, the configuration of a system 10 in this embodiment will be described with reference to FIGS.
[0037] Fig. 1 is an overall configuration diagram of a system 10 according to this embodiment. As is clear from the diagram, a server 1 having a communication function and a plurality (N pieces) of robots 3 also having a communication function constitute a server-client system, which are connected to each other via a WAN (Wide Area Network) and a LAN (Local Area Network). The WAN is, for example, the Internet, and the LAN is installed, for example, in a factory or the like.
[0038] FIG. 2 is a diagram showing the hardware configuration of the server 1. As is clear from the figure, the server 1 includes a control unit 11, a storage unit 12, an I / O unit 13, a communication unit 14, a display unit 15, and an input unit 16, which are connected to each other via a system bus or the like. The control unit 11 is composed of a processor such as a CPU or a GPU, and executes various programs. The storage unit 12 is a storage device such as a ROM, a RAM, a hard disk, a flash memory, etc., and stores various data, operation programs, etc. The I / O unit 13 performs input and output with an external device. The communication unit 14 is a communication unit that communicates based on a predetermined communication standard, for example, and communicates with the robot 3, which is a client device in this embodiment. The display unit 15 is connected to a display or the like and performs a predetermined display. The input unit 16 accepts input from an administrator using, for example, a keyboard, a mouse, etc.
[0039] FIG. 3 is a diagram showing the hardware configuration of the robot 3. The robot 3 is, for example, an industrial robot arranged in a factory. As is clear from the figure, the robot 3 includes a control unit 31, a memory unit 32, an I / O unit 33, a communication unit 34, a display unit 35, a detection unit 36, and a drive unit 37, which are connected to each other via a system bus or the like. The control unit 31 is composed of a processor such as a CPU or a GPU, and executes various programs. The memory unit 32 is a storage device such as a ROM, a RAM, a hard disk, or a flash memory, and stores various data, operation programs, and the like. The I / O unit 33 performs input and output with an external device. The communication unit 34 is, for example, a communication unit that communicates based on a predetermined communication standard, and in this embodiment, communicates with the server 1. The display unit 35 is connected to a display or the like and performs a predetermined display. The detection unit 36 is connected to a sensor and detects sensor information as digital data. The drive unit 37 drives a connected motor (not shown) or the like in response to a command from the control unit.
[0040] 4 is a functional block diagram of the control unit 31 of the robot 3. As is clear from the figure, the control unit 31 includes a sensor information acquisition unit 311, a prediction processing unit 312, an encryption processing unit 319, a hashing processing unit 313, an information acquisition necessity determination unit 314, a cache information acquisition processing unit 315, a server information acquisition processing unit 316, a decryption unit 317, and a drive command unit 318.
[0041] The sensor information acquisition unit 311 acquires the sensor information acquired by the detection unit 36. The prediction processing unit 312 reads basic information and weight information related to the configuration of a prediction model (trained model) generated by supervised learning of a neural network, and generates a predetermined prediction output based on the input data. The encryption processing unit 319 performs a process of encrypting the input data using a public key or the like. The hashing processing unit 313 hashes the input information to generate a corresponding hash value, that is, a fixed-length value without regularity. The information acquisition necessity determination unit 314 determines whether or not data corresponding to the predetermined data has already been stored in a predetermined table. The cache information acquisition processing unit 315 acquires the corresponding data when the information acquisition necessity determination unit 314 determines that data corresponding to the predetermined data exists. The server information acquisition processing unit 315 transmits the predetermined data to the server 1 and receives the data corresponding to the data. The decryption unit 317 decrypts the data encrypted by the public key or the like using an encryption key. The drive command unit 318 drives a motor or the like based on the output data.
[0042] 5 is a functional block diagram relating to the control unit 11 of the server 1. As is clear from the diagram, the control unit 11 includes a data input receiving unit 111, a decryption processing unit 112, a prediction processing unit 113, an encryption processing unit 114, and a data transmission unit 115.
[0043] The data input receiving unit 111 receives data input transmitted from the robot 3. The decryption processing unit 112 decrypts data encrypted with a public key or the like using an encryption key or the like. The prediction processing unit 113 reads basic information such as the configuration of a prediction model (trained model) generated by supervised learning of a neural network, weight information, and the like, and generates a predetermined prediction output based on the input data. The encryption processing unit 114 encrypts the input data using a public key or the like. The data transmission unit performs processing to transmit the data to be transmitted to the robot 3.
[0044] <1.2 System operation> Next, the operation of the system 10 will be described with reference to FIGS.
[0045] The prediction processing operation of the robot 3 in this embodiment will be described with reference to Figures 6 and 7. In this embodiment, the robot 3 performs a predetermined prediction processing based on acquired sensor information and drives operating parts such as motors.
[0046] When the robot 3 starts the prediction process, a process of acquiring sensor information (I) via the sensor information acquisition unit 311 is performed (S1). Next, this sensor information (I) is input to the prediction processing unit 312, and prediction processing is performed from the input stage to the first hidden layer to generate input side hidden layer data (X1) (S3).
[0047] The generated input side intermediate layer data (X1) is encrypted by the encryption processing unit 319 with a public key to generate encrypted input side intermediate layer data (X1') (S5). The encrypted input side intermediate layer data (X1') is then hashed by the hashing processing unit 313 to generate a hash value (Y1) (S7).
[0048] Next, the information acquisition necessity determination processing unit 314 reads the hash table and determines whether the encrypted output side intermediate layer data (Z1') corresponding to the generated hash value (Y1) exists in the hash table (S9). The output side intermediate layer data (Z1) represents the second intermediate layer output closer to the output layer than the first intermediate layer, as described below, and the encrypted output side intermediate layer data (Z1') represents the output of the second intermediate layer encrypted by the public key in the server 1.
[0049] If the result of the judgment (S9) is that the encrypted output side intermediate layer data (Z1') corresponding to the hash value (Y1) exists in the hash table (S11 YES), the cache information acquisition processing unit 315 performs a process of acquiring the encrypted output side intermediate layer data (Z1') as cache information (S13).
[0050] On the other hand, if the result of the determination is that the encrypted output side intermediate layer data (Z1') corresponding to the hash value (Y1) does not exist in the hash table (S11 NO), the server information acquisition processing unit 316 transmits the encrypted input side intermediate layer data (X1') to the server 1 (S15), and then transitions to a predetermined standby state (S17 NO). In this standby state, when the encrypted output side intermediate layer data (Z1') is received from the server 1, the standby state is released (S17 YES), and a process is performed to store the received encrypted output side intermediate layer data (Z1') in association with the hash value (Y1) (S19). The operation of the server 1 during this period will be described in detail in FIG. 8.
[0051] The decryption unit 317 generates output side intermediate layer data (Z1) by decrypting the acquired encrypted output side intermediate layer data (Z1') with a private key (S21). Thereafter, the prediction processing unit 312 performs prediction processing from the second intermediate layer to the output layer based on the generated output side intermediate layer data (Z1) to generate a final output (O) (S23). Thereafter, the drive command unit 318 issues a drive command to a drive unit such as a motor based on the final output (O) (S25). When this drive processing is completed, the sensor information acquisition processing is performed again (S1), and thereafter, a series of processes (S1 to S25) are repeated.
[0052] Next, the prediction processing operation of the server 1 will be described with reference to FIG.
[0053] When the prediction process is started in the server 1, the data input receiving unit 111 causes the server 1 to transition to a predetermined standby state (S31 NO). In this state, when the encrypted input side intermediate layer data (X1') is received from the robot 3, the standby state is released (S31 NO), and the decryption processing unit 112 performs a process of decrypting the received encrypted input side intermediate layer data (X1') with a private key to generate input side intermediate layer data (X1) (S33). After that, the prediction processing unit 113 performs a prediction process from the first intermediate layer to the second intermediate layer using the input side intermediate layer data (X1) as an input, and generates output side intermediate layer data (Z1) (S35).
[0054] The encryption processing unit 114 encrypts this output side intermediate layer data (Z1) using a public key to generate encrypted output side intermediate layer data (Z1) (S37). After that, the data transmission unit 115 transmits the encrypted output side intermediate layer data (Z1') to the robot 3 (S39). When this transmission process ends, the server 1 returns to the reception standby state (S31) again, and thereafter, the series of processes (S31 to S39) are repeated.
[0055] 9 is a conceptual diagram of the prediction process realized by the system 1 according to this embodiment. In the figure, the upper part is a conceptual diagram of the prediction process performed in the robot 3, and the lower part is a conceptual diagram of the prediction process performed in the server 1. The left side of the figure indicates the input side, and the right side indicates the output side.
[0056] As is clear from the figure, when the sensor information (I) is input to the robot 3, the prediction processing unit 312 performs prediction processing from the input stage to the first hidden layer, and generates input side hidden layer data (X1). After that, the input side hidden layer data (X1) is encrypted and transmitted to the server 1, where it is decrypted.
[0057] In the server 1, the prediction processing unit 113 receives the input side hidden layer data (X1) and performs prediction processing from the first hidden layer to the second hidden layer to generate the output side hidden layer data (Z1). After that, the output side hidden layer data (Z1) is encrypted and transmitted to the robot 3, where it is decrypted.
[0058] In the robot 3, the prediction processing unit 312 performs prediction processing from the second hidden layer to the output layer, and generates a final output (O).
[0059] According to such a configuration, when performing prediction processing using machine learning, only abstracted intermediate output is transmitted and received between the client device (robot 3) and the server, and there is no need to transmit and receive raw data. Therefore, the user of the client device can reliably protect information such as personal information and trade secrets. In addition, the provider of the prediction model does not need to provide the entire prediction model to the client device. Therefore, the risk of leakage of the algorithm or the program implementing the algorithm can be reduced. In other words, it is possible to provide a secure prediction system that can meet the requirements of both the user and provider of the prediction model.
[0060] In addition, since there is no need to query the server for data stored in the hash table, server usage costs can be reduced and prediction processing can be accelerated. Furthermore, if sufficient information is accumulated in the hash table through continuous use of the system, it becomes possible to operate the client device almost autonomously.
[0061] Additionally, intermediate outputs communicated between the client device and the server are encrypted, providing an additional layer of data security.
[0062] Additionally, in the above embodiment, a hashing process is performed, which improves the security of the data and also speeds up the determination process by speeding up the search process in the hash table.
[0063] <2. Second embodiment> In this embodiment, in the system 20, the servers are arranged in multiple stages.
[0064] <2.1 System configuration> The configuration of a system 20 according to this embodiment will be described with reference to Figures 10 to 12. In this embodiment, the servers 5 and 6 are configured in multiple stages.
[0065] Fig. 10 is an overall configuration diagram of a system 20 according to this embodiment. As is clear from the figure, the system 20 according to this embodiment is the same as the first embodiment in that a server 5 and a plurality of robots 7 (7-1 to 7-N) as client devices are connected by communication via a network. However, this embodiment differs from the first embodiment in that an intermediate server 6 is interposed between the robots 7 and the final server 5. This intermediate server 6 is operated by, for example, a machine learning technology vendor (AI vendor) or the like.
[0066] FIG. 11 is a diagram showing the hardware configuration of the intermediate server 6 interposed between the robot 7 and the final server 5. As is clear from the figure, the intermediate server 6 includes a control unit 61, a memory unit 62, an I / O unit 63, a communication unit 64, a display unit 65, and an input unit 66, which are connected to each other via a system bus or the like. The control unit 61 is configured with a processor such as a CPU or a GPU, and executes various programs. The memory unit 62 is a storage device such as a ROM, a RAM, a hard disk, or a flash memory, and stores various data, operation programs, and the like. The I / O unit 63 performs input and output with an external device. The communication unit 64 is a communication unit that performs communication based on, for example, a predetermined communication standard, and performs communication with the final server 5 and the robot 7 as a client device. The display unit 65 is connected to a display or the like and performs a predetermined display. The input unit 66 accepts input from an administrator using, for example, a keyboard, a mouse, or the like.
[0067] 12 is a functional block diagram of the control unit 61 of the intermediate server 6. As is clear from the diagram, the control unit 61 includes a data input receiving unit 611, a decryption processing unit 612, a prediction processing unit 613, an encryption processing unit 614, a hashing processing unit 615, an information acquisition necessity determination unit 616, a cache information acquisition processing unit 617, a server information acquisition processing unit 618, and a data transmission unit 619.
[0068] The data input receiving unit 611 receives data input transmitted from the robot 3 or the final server 5. The decryption processing unit 612 decrypts data encrypted with a public key or the like with an encryption key or the like. The prediction processing unit 613 reads basic information such as the configuration of a prediction model (trained model) generated by supervised learning of a neural network, weight information, and the like, and generates a predetermined prediction output based on the input data. The encryption processing unit 614 encrypts the input data with a public key or the like. The hashing processing unit 615 hashes the input information to generate a corresponding hash value, that is, a fixed-length value without regularity. The information acquisition necessity determination unit 616 determines whether or not data corresponding to the predetermined data has already been stored in a predetermined table. The cache information acquisition processing unit 617 acquires the corresponding data when the information acquisition necessity determination unit 616 determines that data corresponding to the predetermined data exists. The server information acquisition processing unit 618 transmits the predetermined data to the final server 5 and receives the data corresponding to the data. The data transmission unit 619 performs a process of transmitting the data to be transmitted to the robot 3 or the final server 5.
[0069] The hardware configurations of the final server 5 and the robot 7 are substantially the same as the configurations of the server 1 and the robot 3 in the first embodiment, and therefore will not be described here.
[0070] <2.2 System operation> Next, the operation of the system 20 according to this embodiment will be described with reference to FIGS.
[0071] The operation of the robot 7 is substantially the same as that of the first embodiment. That is, as shown in Fig. 6 and Fig. 7, if the result of the determination (S9) in the information acquisition necessity determination processing unit 314 is that the encrypted output side intermediate layer data (Z1') corresponding to the hash value (Y1) does not exist in the hash table (S11 NO), the server information acquisition processing unit 316 transmits the first encrypted input side intermediate layer data (X1') to the intermediate server 6 (S15), and then transitions to a predetermined standby state (S17 NO). In this standby state, when the first encrypted output side intermediate layer data (Z1') is received from the server 1, the standby state is released (S17 YES), and a process is performed to store the received first encrypted output side intermediate layer data (Z1') in association with the hash value (Y1) (S19).
[0072] 13 and 14 are flow charts relating to the prediction processing operation of the intermediate server 6. When the prediction processing starts, the intermediate server 6 transitions to a predetermined standby state by the data input receiving unit 611 (S51 NO). Thereafter, when the intermediate server 6 receives first encrypted input side intermediate layer data (X1') from the robot 7 (S51 YES), the standby state is released. Thereafter, the decryption processing unit 612 decrypts the received first encrypted input side intermediate layer data (X1') with a private key to generate first input side intermediate layer data (X1) (S53).
[0073] The prediction processing unit 613 performs prediction processing from the first hidden layer to the third hidden layer based on the decrypted first input side hidden layer data (X1) to generate second input side hidden layer data (X2) (S55). The encryption processing unit 614 encrypts the second input side hidden layer data (X2) with a public key to generate second encrypted input side hidden layer data (X2') (S57). In addition, the hashing processing unit 615 performs hash processing on the second encrypted input side hidden layer data (X2') to generate a second hash value (Y2) (S59).
[0074] Thereafter, the information acquisition necessity determination unit 616 reads the second hash table stored in the intermediate server 6, and determines whether or not the second encrypted output side intermediate layer data (Z2') corresponding to the generated second hash value (Y2) exists in the second hash table (S61). If the result of this determination (S9) is that the second encrypted output side intermediate layer data (Z2') corresponding to the second hash value (Y2) exists in the hash table (S63 YES), the cache information acquisition processing unit 617 performs processing to acquire the second encrypted output side intermediate layer data (Z2') as cache information (S65).
[0075] On the other hand, if the second encrypted output side intermediate layer data (Z2') corresponding to the second hash value (Y2) is not present in the second hash table (S63 NO), the server information acquisition processor 618 transmits the second encrypted input side intermediate layer data (X2') to the server 1 (S67), and then transitions to a predetermined standby state (S69 NO). In this standby state, when the second encrypted output side intermediate layer data (Z2') is received from the final server 5, the standby state is released (S69 YES), and a process is performed to store the received second encrypted output side intermediate layer data (Z2') in association with the second hash value (Y2) (S71). The operation of the final server 5 during this period will be described later with reference to FIG. 15.
[0076] The decryption processing unit 612 generates the second output side intermediate layer data (Z2) by decrypting the acquired second encrypted output side intermediate layer data (Z2') with the private key (S73). After that, the prediction processing unit 613 performs a prediction process from the fourth intermediate layer to the second intermediate layer based on the generated second output side intermediate layer data (Z2) to generate the first output side intermediate layer data (Z1) (S75). The encryption processing unit 614 performs an encryption process on the first output side intermediate layer data (Z1) to generate the first encrypted output side intermediate layer data (Z1') (S77). After that, the data transmission unit 619 transmits the first encrypted output side intermediate layer data (Z1') to the robot 7. When this transmission process is completed, the intermediate server 6 returns to a reception standby state (S51 NO) again, and thereafter, a series of processes (S51 to S79) are repeated.
[0077] FIG. 15 shows a flowchart of the prediction processing operation of the final server 5.
[0078] When the prediction process starts, the data input receiving unit 111 causes the final server 5 to transition to a predetermined standby state (S81 NO). In this state, when the second encrypted input side intermediate layer data (X2') is received from the intermediate server 6, the standby state is released (S81 YES). The decryption processing unit 112 performs a process of decrypting the received second encrypted input side intermediate layer data (X2') using a private key, and generates second input side intermediate layer data (X2) (S83). After that, the prediction processing unit 113 performs a prediction process from the third intermediate layer to the fourth intermediate layer using the second input side intermediate layer data (X2) as an input, and generates second output side intermediate layer data (Z2) (S85).
[0079] The encryption processing unit 114 encrypts this second output side intermediate layer data (Z2) using the public key to generate second encrypted output side intermediate layer data (Z2') (S87). After that, the data transmission unit 115 transmits the second encrypted output side intermediate layer data (Z2') to the intermediate server 6 (S89). When this transmission process is completed, the final server 5 returns to the reception standby state (S81) again, and thereafter, the series of processes (S81 to S89) are repeated.
[0080] 16 is a conceptual diagram of the prediction processing realized by the system 20 according to this embodiment. In the figure, the upper part is a conceptual diagram of the prediction processing performed in the robot 7, the middle part is a conceptual diagram of the prediction processing performed in the intermediate server 6, and the lower part is a conceptual diagram of the prediction processing performed in the final server 5. In addition, in the figure, the left side indicates the input side, and the right side indicates the output side.
[0081] As is clear from the figure, when sensor information (I) is input to the robot 3, the prediction processing unit 312 performs prediction processing from the input stage to the first hidden layer, and generates first input side hidden layer data (X1). After that, the first input side hidden layer data (X1) is encrypted and transmitted to the intermediate server 6, where it is decrypted.
[0082] In the intermediate server 6, the prediction processing unit 613 performs prediction processing between the first intermediate layer to the third intermediate layer, and generates second input intermediate layer data (X2). After that, the second input intermediate layer data (X2) is encrypted and transmitted to the final server 5, where it is decrypted.
[0083] In the final server 5, the prediction processing unit 113 receives the second input side hidden layer data (X2) as input and performs prediction processing from the third hidden layer to the fourth hidden layer to generate the second output side hidden layer data (Z2). After that, the second output side hidden layer data (Z2) is encrypted and transmitted to the intermediate server 6, where it is decrypted.
[0084] In the intermediate server 6, the prediction processing unit 613 performs prediction processing from the fourth hidden layer to the second hidden layer, and generates the first output side hidden layer data (Z1). After that, the first output side hidden layer data (Z1) is encrypted and transmitted to the robot 7, where it is decrypted.
[0085] In the robot 7, the prediction processing unit 312 performs prediction processing from the second hidden layer to the output layer, and generates a final output (O).
[0086] According to this configuration, since the servers are arranged in multiple stages, the processing load on the client device and each individual device in each server can be reduced, and at the same time, the prediction performance of the client device can be improved due to economies of scale resulting from the multiple stages. Moreover, even with such a multiple stage system, each server also performs prediction processing based on cache information, so processing speed is unlikely to slow down. Furthermore, since the prediction models are distributed, the system security can be improved, and multiple administrators can share the management of each server.
[0087] <3. Third embodiment> In this embodiment, the system 30 performs a learning process in addition to a prediction process.
[0088] <3.1 System configuration> The configuration of the system 30 according to this embodiment is substantially the same as that shown in the second embodiment, except that each of the control units of the robot 7, the intermediate server 6, and the final server 5 has a functional block for learning processing in addition to prediction processing.
[0089] FIG. 17 is a functional block diagram of the control unit 710 of the robot 7.
[0090] In the figure, the contents of the prediction processing unit 7101 are substantially the same as the configuration shown in Fig. 4, so detailed description will be omitted. However, the prediction processing unit 7101 differs in that it further includes a cache table addition processing unit 7109. After performing the decoding process (S21) in Fig. 7 to generate output side hidden layer data (Z1), the cache table addition processing unit 7109 performs a process of additionally storing the output side hidden layer data (Z1) together with the corresponding input side hidden layer data (X1) in a cache table. This cache table is used in the learning process described later.
[0091] The control unit 710 further has a learning processing unit 7102. The learning processing unit 7102 includes a data reading unit 7102, an approximate function generation processing unit 7116, a prediction processing unit 7117, an error backpropagation processing unit 7118, a parameter update processing unit 7119, an encryption processing unit 7120, and a data transmission processing unit 7121.
[0092] The data reading unit 7115 performs a process of reading out various data stored in the robot 7. The approximate function generation processing unit 7116 generates an approximate function by a method described later based on a cache table relating to the correspondence between predetermined inputs and outputs. The prediction processing unit 7117 reads basic information such as the configuration of a prediction model (trained model) generated by supervised learning of a neural network, weight information, and the like, and generates a predetermined prediction output based on the input data.
[0093] The error backpropagation processing unit 7118 performs a process of propagating the error obtained by comparing the output of the prediction model with the teacher data from the output side of the model to the input side (Back Propagation). The parameter update processing unit 7119 performs a process of updating model parameters such as weights so as to reduce the error between the output of the prediction model and the teacher data. The encryption processing unit 7120 performs a process of encrypting predetermined target data using a public key or the like. The data transmission processing unit 7121 performs a process of transmitting predetermined target data to the intermediate server 6.
[0094] FIG. 18 is a functional block diagram of the control unit 610 of the intermediate server 6.
[0095] In the figure, the contents of the prediction processing unit 6101 are substantially the same as those shown in Fig. 12, so detailed description will be omitted. However, the prediction processing unit 6101 is different in that it further includes a cache table addition processing unit 6112. After performing the decoding process (S75) in Fig. 14 to generate the second output side hidden layer data (Z2), the cache table addition processing unit 6112 performs a process of additionally storing the second output side hidden layer data (Z2) together with the corresponding second input side hidden layer data (X2) in a cache table. This cache table is used in the learning process described later.
[0096] The control unit 610 further has a learning processing unit 6102. The learning processing unit 6102 includes a data input receiving unit 6123, a data reading unit 6115, a sampling processing unit 6116, an approximate function generation processing unit 6117, a prediction processing unit 6118, an error backpropagation processing unit 6119, a parameter update processing unit 6120, an encryption processing unit 6121, and a data transmission processing unit 6122.
[0097] The data input receiving unit 6123 receives various data such as the first cache table received from the robot 7, and decodes and stores it. The data reading unit 6115 reads various data stored in the intermediate server 6. The sampling processing unit 6116 selects a data set to be learned from the cache table. The approximate function generating processing unit 6117 generates an approximate function based on a cache table relating to a correspondence between a predetermined input and output, using a method described later. The prediction processing unit 6118 reads basic information such as the configuration of a prediction model (trained model) generated by supervised learning of a neural network, weight information, and the like, and generates a predetermined prediction output based on the input data.
[0098] The error backpropagation processing unit 6119 performs a process (Back Propagation) of propagating the error obtained by comparing the output of the prediction model with the teacher data from the output side of the model to the input side. The parameter update processing unit 6120 performs a process of updating model parameters such as weights so as to reduce the error between the output of the prediction model and the teacher data. The encryption processing unit 6121 performs a process of encrypting predetermined target data using a public key or the like. The data transmission processing unit 6122 performs a process of transmitting predetermined target data to the robot 7 or the final server 5.
[0099] FIG. 19 is a functional block diagram of the control unit 510 of the final server 5. As shown in FIG.
[0100] In the figure, the contents of a prediction processing unit 5101 are approximately the same as the configuration shown in FIG. 5, so a detailed description thereof will be omitted.
[0101] The control unit 510 further has a learning processing unit 5102. The learning processing unit 5102 includes a data input receiving unit 5115, a data reading unit 5110, a sampling processing unit 5111, a prediction processing unit 5112, an error backpropagation processing unit 5113, and a parameter update processing unit 5114.
[0102] The data input receiving unit 5115 performs a process of receiving, decrypting, and storing various data such as the second cache table received from the intermediate server 6. The data reading unit 5110 performs a process of reading various data stored in the final server 5. The sampling processing unit 5111 performs a process of selecting a data set to be learned from the second cache table. The prediction processing unit 5112 reads basic information such as the configuration of a prediction model (trained model) generated by supervised learning of a neural network, weight information, and the like, and generates a predetermined prediction output based on the input data.
[0103] The error backpropagation processing unit 5113 performs a process of propagating the error obtained by comparing the output of the prediction model with the teacher data from the output side to the input side of the model (Back Propagation). The parameter update processing unit 5114 performs a process of updating the parameters of the model such as weights so as to reduce the error between the output of the prediction model and the teacher data.
[0104] <3.2 System operation> Next, the operation of the system 30 will be described with reference to Fig. 20 to Fig. 26. Note that the prediction processing operation is substantially the same as in the second embodiment, and therefore a description thereof will be omitted here.
[0105] 20 is a flowchart of the learning process operation in the robot 7. As is clear from the figure, when the learning process operation starts, the data reading unit 7115 reads out a pair of input / output pairs (X0, Z0) from an input / output data table that is stored in the robot 7 and corresponds to the teacher data (S101). After this reading, the prediction processing unit 7117 performs prediction processing in the section from the input layer to the first hidden layer of the prediction model based on the input data X0, and generates input side hidden layer data (X1-s1) (S103).
[0106] Meanwhile, in parallel with these (S101 to S103), the data reading unit 7115 performs a process of reading a first cache table including the correspondence between the first input side hidden layer data (X1) and the first output side hidden layer data (Z1) accumulated in the robot 7 during the prediction process (S105). After reading the first cache table, a process of generating an approximate function is performed based on this first cache table (S107).
[0107] Here, the generation process of the approximation function will be described in detail. The data conversion (cache conversion) that generates data (Z1) of the first output side hidden layer (for convenience of explanation, assumed to be Z layer) using data (X1) of the first input side hidden layer (for convenience of explanation, assumed to be X layer) as input can be expressed as follows.
number
[0108] Here, the vector representing the data of X layer consisting of n neurons can be expressed as follows:
number
[0109] Similarly, the vector representing the data of layer Z, which consists of N neurons, can be expressed as follows:
number
[0110] In addition, the k-th value zk of the Z layer can be calculated independently of the other N-1 values according to formula (1), and therefore can be expressed as follows:
number
[0111] At this time, due to the nature of cache conversion, if the combination of each component value of the data vector in the X layer does not exist in the first cache table, the conversion function Sk cannot be converted to the corresponding k-th value in the Z layer. Therefore, it is approximated by the following linear equation, Equation (5).
number
[0112] It should be noted that the variables in formula (5) are n+1 as follows:
number
[0113] Therefore, in order to find the solution to equation (5), n+1 pieces of data are extracted from equation (4) and the following simultaneous linear equations with n+1 unknowns are solved.
number
[0114] When extracting these n+1 pieces of data, it is preferable to select cache data in the vicinity of the point for which an approximation is desired. This is because by extracting as much cache data in the vicinity of the point for which an approximation is desired as possible, it is possible to suppress fluctuations in the approximation error. A conceptual diagram of such cache data extraction is shown in Figure 21.
[0115] Here, the following definition can be made:
number
[0116] Then, equation (7) can be simply expressed as follows:
number
[0117] If A, an n+1-th order square matrix, is a regular matrix, then equation (9) has a unique solution vk as follows:
number
[0118] That is, by calculating formula (9) using a computer according to an algorithm such as Gaussian elimination, a solution vk to formula (10) can be obtained. By substituting this solution vk, formula (5) can be expressed as follows.
number
[0119] That is, formula (11) is an approximate formula. As is clear from the formula, partial differentiation is possible approximately for each component of the data vector in the X layer, so, for example, backpropagation of error from the Z layer to the X layer can be easily performed. That is, even if the machine learning models before and after the learning model portion to which the cache table corresponds, that is, for example, on the input side and output side, are multi-layered neural network models, the backpropagation method can be used to perform learning processing at high speed.
[0120] Returning to the flowchart of Fig. 20, when the generation process (S103) of the first input side hidden layer data (X1-s1) and the generation process (S107) of the approximation function are completed, the prediction processing unit 7117 performs a prediction process of the section from the first hidden layer to the second hidden layer based on the first input side hidden layer data (X1) and the approximation function, and generates the output side hidden layer data (Z1-s1) (S109). After that, the prediction processing unit 7117 performs a prediction process of the section from the second hidden layer to the output layer using the output side hidden layer data (Z1-s1) as an input, and generates the final output (Z0-s1) (S111).
[0121] The error backpropagation processing unit 6119 generates an error between the teacher output (Z0) related to the teacher data and the final output (Z0-s1), and propagates the error or a predetermined value based on it (e.g., root mean square error, etc.) from the output side to the input side by a method such as the steepest descent method (S113).
[0122] Thereafter, the parameter update processing unit 7119 performs a process of updating parameters such as weights of the section from the input layer to the first intermediate layer and the section from the second intermediate layer to the output layer, excluding the approximate function portion, of the learning model based on the back-propagated error, etc. (S115).
[0123] After that, the robot 7 checks whether or not the robot 7 is permitted to transmit the first cache table from the predetermined setting information (S117). If the robot 7 is not permitted to transmit the first cache table, the robot 7 performs a learning end determination (S121). If the robot 7 is not permitted to end the learning process (S121 NO), the robot 7 repeats all the steps (S101 to S121) again. On the other hand, if the robot 7 is permitted to end the learning process (S121 YES), the robot 7 ends the learning process.
[0124] On the other hand, if the transmission of the cache table is permitted (S117 YES), the data transmission processing unit 7121 performs processing to transmit the first cache table encrypted by the encryption processing unit 7120 to the intermediate server 6 (S119). After that, a learning end determination is made (S121).
[0125] Next, the learning process operation of the intermediate server 6 will be described.
[0126] 22 is a flow chart relating to the reception and storage process of the first cache table transmitted from the robot 7. As is clear from the figure, when the learning process starts in the intermediate server 6, the data input receiving unit 6123 transitions to a data reception standby state (S131). In this state, when data corresponding to the encrypted first cache table is received (S131 YES), the data reception standby state is released, and the received first cache data is decrypted using a private key or the like (S133) and stored in the storage unit (S135). When this storage process ends, the intermediate server 6 transitions again to a reception standby state (S131 NO).
[0127] FIG. 23 is a flowchart of the learning process operation in the intermediate server 6, which is executed in parallel with the receiving process of the first cache table shown in FIG. 22. As is clear from the figure, when the learning process starts, the data reading unit 6115 reads out the input / output pair (X1-s1, Z1-s1) from the input / output data table stored in the intermediate server 6 and corresponding to the teacher data (S141). When the input / output pair is read out, the sampling processing unit 6116 extracts the input / output pair to be used for learning (S143). After this extraction process, the prediction processing unit 6118 performs prediction processing in the section from the first hidden layer to the third hidden layer of the prediction model based on the input data (X1-s1) to generate the second input side hidden layer data (X2-s2) (S145).
[0128] Meanwhile, in parallel with these steps (S141 to S145), the data reading unit 6115 performs a process of reading a second cache table (X2, Z2) including the correspondence between the second input side hidden layer data (X2) and the first output side hidden layer data (Z2) stored in the intermediate server 6 during the prediction process (S147). After reading the second cache table, a process of generating an approximation function based on the second cache table is performed (S149) to generate the second output side hidden layer data (Z2) based on the second input side hidden layer data (X2). The process of generating the approximation function is the same as the approximation function generation in the robot 7.
[0129] When the generation process (S145) of the second input side hidden layer data (X2-s2) and the generation process (S149) of the approximation function are completed, the prediction processing unit 6118 performs a prediction process of the section from the third hidden layer to the fourth hidden layer based on the second input side hidden layer data (X2-s2) and the approximation function, and generates the second output side hidden layer data (Z2-s2) (S151). After that, the prediction processing unit 6118 performs a prediction process of the section from the fourth hidden layer to the second hidden layer using the second output side hidden layer data (Z2-s2) as input, and generates the second output side predicted output (Z1-s2) (S153).
[0130] The error backpropagation processing unit 6119 generates an error between the teacher data (Z1-s1) and the second output side predicted output (Z1-s2), and propagates the error or a predetermined value based on it (e.g., root mean square error, etc.) from the output side to the input side by a method such as the steepest descent method (S155).
[0131] Thereafter, the parameter update processing unit 6120 performs a process of updating parameters such as weights of the section from the first hidden layer to the third hidden layer and the section from the fourth hidden layer to the second hidden layer, excluding the approximate function portion, of the learning model based on the back-propagated error, etc. (S157).
[0132] After that, the intermediate server 6 checks whether or not it is permitted to transmit the second cache table (X2-s2, Z2-s2) from the predetermined setting information (S159). As a result, if there is no permission to transmit, it performs a learning end determination (S163), and if it is not to end (S163 NO), it repeats all the processes (S141 to S163) again. On the other hand, if it is to end (S163 YES), the learning process ends.
[0133] On the other hand, if the transmission of the cache table is permitted (S159 YES), the data transmission processing unit 6122 performs a process of transmitting the second cache table encrypted by the encryption processing unit 6121 to the final server 5 (S161). After that, a learning end determination (S163) is performed.
[0134] Next, the learning process operation of the final server 5 will be described.
[0135] 24 is a flowchart related to the reception and storage process of the second cache table (X2-s2, Z2-s2) transmitted from the intermediate server 6. As is clear from the figure, when the learning process starts in the final server 5, the data input receiving unit 5115 transitions to a data reception standby state (S171). In this state, when data corresponding to the encrypted second cache table is received (S171 YES), the data reception standby state is released, and the received second cache data is decrypted using a private key or the like (S173) and stored in the storage unit (S175). When this storage process ends, the final server 5 transitions again to a reception standby state (S171 NO).
[0136] Fig. 25 is a flowchart of the learning process operation in the final server 5, which is executed in parallel with the receiving process of the second cache table shown in Fig. 24. When the learning process starts, the data reading unit 5110 performs a process of reading the cache table (S181). After that, the sampling processing unit (S5111) extracts input / output pairs to be learned from the cache table (S183).
[0137] The prediction processing unit 5112 performs prediction processing from the third hidden layer to the fourth hidden layer based on the read second input side hidden layer data (X2-s2) and generates second output side hidden layer data (Z2-s3) (S185). The error backpropagation processing unit 5113 generates an error between the second output side hidden layer data (Z2-s3) and the teacher data (Z2-s2), and propagates the error or a predetermined value based on it (e.g., root mean square error, etc.) from the output side to the input side by, for example, a steepest descent method or other method (S187).
[0138] Thereafter, the parameter update processing unit 5114 performs a process of updating parameters such as the weights of the learning model based on the back-propagated error, etc. (S189). After the parameter update process is performed, a learning end determination is performed, and if a predetermined end condition is not satisfied (S191 NO), a series of processes (S181 to S189) are performed again. On the other hand, if the predetermined end condition is satisfied (S191 YES), the learning process ends.
[0139] 26 is a conceptual diagram of the learning process realized by the system 30 according to this embodiment. In the figure, the upper part is a conceptual diagram of the learning process performed in the robot 7, the middle part is a conceptual diagram of the learning process performed in the intermediate server 6, and the lower part is a conceptual diagram of the learning process performed in the final server 5. In addition, in the figure, the left side indicates the input side, and the right side indicates the output side.
[0140] As is clear from the figure, when input information (X0) is input to the robot 7, the prediction processing unit 7117 performs prediction processing from the input stage to the first hidden layer, and generates first input side hidden layer data (X1-s1). Meanwhile, the approximation function generation processing unit 7116 generates an approximation function (F(x)) based on the first cache table (X1, Z1). The prediction processing unit 7117 generates first output side hidden layer data (Z1-s1) based on the first input side hidden layer data (X1-s1) and the approximation function (F(x)). In addition, the final output data (Z0-s1) is generated based on the first output side hidden layer data (Z1-s1). The error backpropagation processing unit 7118 backpropagates the error between this final output data (Z0-s1) and the teacher data (Z0) from the final output stage through the approximation function to the input stage. After that, the parameter update processing unit 7119 updates the parameters including the weights from the final output stage to the second hidden layer and from the first hidden layer to the input stage. The first cache table (X1-s1, Z1-s1) generated at this time is provided to the intermediate server 6 under a predetermined condition.
[0141] As is clear from the figure, when the first input side hidden layer data (X1-s1) is input in the intermediate server 6, the prediction processor 6118 performs prediction processing between the first hidden layer to the third hidden layer, and generates the second input side hidden layer data (X2-s2). Meanwhile, the approximation function generator 6117 generates an approximation function (G(x)) based on the first cache table (X1-s1, Z1-s1). The prediction processor 6118 generates the second output side hidden layer data (Z2-s2) based on the second input side hidden layer data (X2-s2) and the approximation function (G(x)). Also, the first output side hidden layer data (Z1-s2) is generated based on the second output side hidden layer data (Z2-s2). The error backpropagation processor 6119 backpropagates the error between the final output data (Z1-s2) and the teacher data (Z1-s1) from the second hidden layer through the approximation function to the first hidden layer. After that, the parameter update processor 6120 updates the parameters including the weights between the second hidden layer to the fourth hidden layer and between the third hidden layer to the first hidden layer. The second cache table (X2-s2, Z2-s2) generated at this time is provided to the final server 5 under a predetermined condition.
[0142] Furthermore, as is clear from the figure, when the second input side intermediate layer data (X2-s2) is input in the final server 5, the prediction processing unit 5112 performs prediction processing from the third intermediate layer to the fourth intermediate layer, and generates the second output side intermediate layer data (Z2-s3). The error backpropagation processing unit 5113 backpropagates the error between this second output side intermediate layer data (Z2-s3) and the teacher data (Z2-s2) from the fourth intermediate layer to the third intermediate layer. After that, the parameter update processing unit 5114 updates the parameters including the weights from the fourth intermediate layer to the fourth intermediate layer.
[0143] <4. Modifications> The present invention is not limited to the configurations and operations of the above-described embodiments, and various modifications are possible.
[0144] In the third embodiment, the approximation function generated from the cache table is described as being used only during the learning process. However, the present invention is not limited to such a configuration. For example, for the purpose of prediction processing, an approximation function may be generated based on the cache table obtained up to that point, and prediction processing may be performed for the section from the first intermediate layer to the second intermediate layer based on the first input intermediate layer data (X1) and the approximation function to generate output intermediate layer data (Z1). With such a configuration, for example, after a certain amount of data is accumulated in the hash table, it is possible to perform prediction processing by significantly reducing the frequency of inquiries to the server side or without making inquiries.
[0145] In the above-mentioned embodiment, the input side hidden layer data (X) (for example, X1 or X2) is encrypted and hashed, and then the hash value is used as a key to perform a hash table search process (for example, S11 in FIG. 6, S55 in FIG. 13, etc.). However, the present invention is not limited to such a configuration. Therefore, for example, the input side hidden layer data (X) may be encrypted and / or hashed after rounding, and a hash table search may be performed. The rounding process is a process in which, when the set to which the input side hidden layer data (X) belongs is set to U, specific input side hidden layer data belonging to the set U is considered to have the same value (X_u) (representative value). For example, some node values (neuron firing values) of the input side hidden layer data (X) may be discretized into integer values by performing a process such as rounding up or down, thereby forming a set of multiple integer values. With such a configuration, it is possible to improve the consistency with hash values obtained in the past, and to realize high-speed processing, etc.
[0146] In the above-described embodiment, the robot 7 as a client device is configured to directly communicate with the intermediate server 6 or the server 1. However, the present invention is not limited to such a configuration. FIG. 27 is an overall configuration diagram of a system 40 according to a modified example. In this configuration, the system 40 is composed of a server 2 that performs prediction processing, an intermediary server 8 that is connected to the server 2 via a WAN and also connected to a LAN, and a robot 9 as a client device that is also connected to the LAN. In this modified example, information is exchanged between the server 2 and the client device 9 via the intermediary server 8.
[0147] In the above-described embodiment, supervised learning using a neural network (or deep learning) is exemplified as a machine learning algorithm. However, the present invention is not limited to such a configuration. Therefore, for example, other machine learning algorithms that are divisible and can handle intermediate values in a similar format may be used. In addition to supervised learning, unsupervised learning such as GAN (Generative Adversarial Networks), VAE (Variational Auto Encoder), and SOM (Self-Organizing Map), or reinforcement learning may be used. When performing reinforcement learning, for example, a prediction process on a simulator may be used.
[0148] In the learning process in the above embodiment, the approximation function is generated by approximating it using the linear equation shown in Equation 5. However, the approximation method is not limited to this example, and approximation may be performed using other methods.
[0149] For example, a bypass function may be used as the approximation function. Fig. 28 is a conceptual diagram of an example of using a bypass function. In the figure, H(x) represents an approximation function based on a linear equation shown in Equation 5 etc., and J(x) represents a bypass function, which together form an approximation function. As is clear from the figure, the bypass function J(x) is arranged in parallel so as to bypass the approximation function H(x) based on a linear equation. Note that the backpropagation method can be applied to either function.
[0150] Fig. 29 is a conceptual diagram of the bypass function J(x). In the example shown in the figure, the number of nodes in the input-side hidden layer is greater than the number of nodes in the output-side hidden layer. When data is input from the input-side hidden layer, the bypass function J(x) compresses the data using a pooling layer with a smaller number of nodes (for example, about half the number of nodes in the input-side hidden layer). After that, the node output in the pooling layer is provided to the output-side hidden layer. At this time, zeros (0) are provided to nodes that do not have a connection from the pooling layer to the output-side hidden layer (zero padding).
[0151] For example, if the number of nodes n_x in the input side hidden layer is 32 and the number of nodes n_z in the output side hidden layer is 20, the number of nodes in the pooling layer is 16, which is half the number of nodes n_x in the input side hidden layer. In this case, the pooling method may be average pooling, which takes the average of adjacent node values. Then, the 16 outputs from the pooling layer are provided to the output side hidden layer. At this time, zero (0) is provided to the four nodes in the output side hidden layer that do not correspond to the nodes in the pooling layer. Note that although a pooling layer is used in this modified example, it is not necessarily required to use a pooling layer. For example, a detour that passes the data directly may be formed.
[0152] According to this configuration, the error backpropagation is accelerated by bypassing the approximation function generated based on the cache table, and as a result, the efficiency of learning can be improved.
[0153] Also, for example, the sum of a plurality of sub-approximation functions may be used as the approximation function. FIG. 30 is a conceptual diagram of approximation using the sum of sub-approximation functions. As is clear from the figure, the output of the approximation function is the sum (weighted sum) of values obtained by multiplying a plurality of different approximation functions K_1(x), K_2(x), K_3(x), ...K_n(x) (hereinafter, for convenience, these functions are called sub-approximation functions) by contribution coefficients a_1, a_2, a_3, ...a_n, respectively. At this time, the contribution coefficients a_i (i=1, 2, ...n) each take a value between 0 and 1, and the sum of a_i is 1, that is, a_1+a_2+...+a_n=1. This contribution coefficient may be a fixed value, or may be changed by giving a different value each time forward calculation or error backpropagation is performed. Each sub-approximation function is an approximation function generated based on a cache table, and is an approximation function based on a linear equation used in a neural network or the above-mentioned embodiment. Note that the backpropagation algorithm can be applied to each of the sub-approximation functions.
[0154] With this configuration, the approximation accuracy is expected to improve due to the ensemble effect of the hierarchical layers before and after the approximation function. As a result, the approximation accuracy can be maintained or improved even if data storage in the cache table is insufficient.
[0155] In the above-described embodiment, the robot, intermediate server, final server, etc. are all illustrated as single devices. However, the present invention is not limited to such a configuration. Therefore, for example, a part of the device configuration may be provided separately as an external device. For example, an external large-capacity storage may be installed and connected to a device such as a server. Also, distributed processing may be performed using multiple devices instead of a single device. Furthermore, virtualization technology, etc. may be used.
[0156] In the above embodiment, one client device holds one hash table, but the present invention is not limited to such a configuration. Therefore, for example, a hash table may be shared between multiple client devices. This allows the caches of prediction processes performed by each client device to be accumulated as shared caches, and therefore it is possible to more quickly reduce server usage costs, speed up processing, and realize autonomous operation of the client devices. The hash table may be shared, for example, by using the intermediary server 8 in the system of FIG. 27, or by using a technology such as a distributed hash table to directly query information between the client devices without going through a server or the like.
[0157] In the above embodiment, an example in which the learning process is performed sequentially has been shown, but the present invention is not limited to such a configuration. Therefore, for example, a configuration in which parameters are updated in a batch manner after errors corresponding to a plurality of input / output pairs are accumulated to a certain extent may be used. Also, so-called online learning may be performed in which the learning process is performed in parallel with the prediction process.
[0158] In the above-described embodiment, a robot is exemplified as a client device. However, the present invention is not limited to such a configuration. The client device should be interpreted as including any device, regardless of whether or not it involves physical movement. For example, it should be noted that the client device includes any information processing device, such as a smartphone, a tablet terminal, a personal computer, a smart speaker, and a wearable terminal.
[0159] In the above-described embodiment, the robot's operation information (sensor signals and motor signals) is the learning target, but the present invention is not limited to such a configuration. Therefore, for example, the learning target data may include any information such as image signals, audio signals, image signals, video signals, language information, and text information, and may be processed for various purposes such as voice recognition processing, image signal processing, and natural language processing.
[0160] In the above embodiment, the client device is configured to have the server side perform calculations between the input side hidden layer (X) and the output side hidden layer (Z), but the present invention is not limited to such a configuration. Therefore, for example, the client device may also hold a part of a predetermined divided hidden layer and perform prediction processing by transmitting and receiving partial prediction results to and from the server multiple times.
[0161] In the above embodiment, the weights and other parameters are updated for the part of the learning model excluding the approximation function based on the error backpropagated by the error backpropagation method (for example, S115, S157, etc.). However, the present invention is not limited to such a configuration. Therefore, for example, the parameters of the approximation function part may also be updated. [Industrial Applicability]
[0162] The present invention can be used in all industries that utilize machine learning techniques. [Explanation of symbols]
[0163] 1 Server 3. Robot 5 Final Server 6 Intermediate Server 7. Robot 8. Intermediary Server 10. System
Claims
1. A conversion system including a client device and a server connected to the client device via a network, which performs a conversion process on input data based on a trained model obtained by machine learning to generate output data, The client device includes: An input side conversion processing unit that is a part of the trained model from an input stage to a first intermediate stage of the trained model, and that generates a first intermediate output at the first intermediate stage of the trained model by performing a conversion process based on the input data; a client-side sender for sending the first intermediate output to the server; A client-side receiving unit that receives from the server a second intermediate output that is generated in the server from the first intermediate output and is a converted output at a second intermediate stage that is closer to the output side than the first intermediate stage of the trained model; and An output-side conversion processing unit that is a part of the trained model from the second intermediate stage to an output stage of the trained model and performs a conversion process based on the second intermediate output to generate the output data; The client device further comprises: a cache table storage unit that stores a cache table that indicates a correspondence relationship between the first intermediate output and the second intermediate output; a determination unit that determines whether the second intermediate output corresponding to the first intermediate output is present in the cache table; a selective acquisition unit that, when the determination unit determines that the second intermediate output corresponding to the first intermediate output is present in the cache table, acquires the corresponding second intermediate output from the cache table instead of operating the client-side transmitting unit and the client-side receiving unit, and, when the determination unit determines that the second intermediate output corresponding to the first intermediate output is not present in the cache table, acquires the second intermediate output received by the client-side receiving unit by operating the client-side transmitting unit and the client-side receiving unit.
2. The client device further comprises:
2. The conversion system according to claim 1, further comprising a cache table storage unit that associates the second intermediate output received at the client-side receiving unit with the corresponding first intermediate output and stores the second intermediate output in the cache table.
3. The client device further comprises: an encryption unit for encrypting the first intermediate output to generate a first encrypted intermediate output; a decryption unit that decrypts a second encrypted intermediate output that is a second intermediate output encrypted by the server, the client-side sender sends the first encrypted intermediate output to the server; the server decrypts the received first encrypted intermediate output to restore the first intermediate output, and encrypts the second intermediate output to generate the second encrypted intermediate output and transmits it to the client device; The conversion system of claim 1 , wherein the client-side receiver receives the second encrypted intermediate output.
4. The client device further comprises: a hashing unit that hashes the first encrypted intermediate output to generate a first hash value; the first intermediate output in the cache table is the first hash value; The conversion system according to claim 3 , wherein the determination unit determines, based on the first hash value, whether or not a corresponding second intermediate output exists.
5. The client device further comprises: The conversion system of claim 4 , further comprising a value rounding unit that rounds the first intermediate output to generate a first rounded intermediate output.
6. The client device further comprises: an approximation function generating unit that generates an approximation function based on the cache table; The conversion system according to claim 1 , further comprising: an approximate conversion processing unit that receives the first intermediate output as an input and generates the second intermediate output based on the approximate function.
7. The conversion system according to claim 6 , wherein the approximation function is a function to which a backpropagation method can be applied.
8. The conversion system of claim 6 , wherein the approximation function includes a bypass function.
9. The conversion system according to claim 6 , wherein the approximation function is constructed by a weighted sum of a plurality of different approximation functions.
10. The client device comprises a plurality of The conversion system according to claim 1 , wherein the cache table is shared by a plurality of the client devices.
11. The server further comprises: The conversion system according to claim 1, further comprising an intermediate conversion processing unit that is part of the trained model from the first intermediate stage to the second intermediate stage and that generates the second intermediate output at the second intermediate stage by performing a conversion process based on the first intermediate output.
12. The server is composed of multiple servers connected via a network, 2. The conversion system according to claim 1, wherein each server holds a partial model obtained by dividing a trained model between the first intermediate stage and the second intermediate stage, and generates the second intermediate output by performing a conversion process in sequence based on each partial model of each server.
13. The client device further comprises: The conversion system according to claim 1 , further comprising an input / output data table storage unit that stores an input / output data table that indicates a relationship between the input data and the output data corresponding to the input data.
14. A client device that is connected to a server via a network and performs a conversion process on input data based on a trained model obtained by machine learning to generate output data, An input side conversion processing unit that is a part of the trained model from an input stage to a first intermediate stage of the trained model, and that generates a first intermediate output at the first intermediate stage of the trained model by performing a conversion process based on the input data; a client-side sender for sending the first intermediate output to the server; A client-side receiving unit that receives from the server a second intermediate output that is generated in the server based on the first intermediate output and is a converted output at a second intermediate stage that is closer to the output side than the first intermediate stage of the trained model; An output-side conversion processing unit that is a part of the trained model from the second intermediate stage to an output stage of the trained model and performs a conversion process based on the second intermediate output to generate the output data; The client device further comprises: a cache table storage unit that stores a cache table that indicates a correspondence relationship between the first intermediate output and the second intermediate output; a determination unit that determines whether the second intermediate output corresponding to the first intermediate output is present in the cache table; a selective acquisition unit that, when the determination unit determines that the second intermediate output corresponding to the first intermediate output is present in the cache table, acquires the corresponding second intermediate output from the cache table instead of operating the client-side transmitting unit and the client-side receiving unit, and, when the determination unit determines that the second intermediate output corresponding to the first intermediate output is not present in the cache table, acquires the second intermediate output received by the client-side receiving unit by operating the client-side transmitting unit and the client-side receiving unit.
15. A conversion method, which is executed in a client device connected to a server via a network, and which performs a conversion process on input data based on a trained model obtained by machine learning to generate output data, An input side conversion processing step of performing a conversion process based on the input data using a part of the trained model from the input stage to a first intermediate stage of the trained model to generate a first intermediate output at the first intermediate stage of the trained model; a client-side sending step of sending the first intermediate output to the server; A client-side receiving step of receiving from the server a second intermediate output that is generated in the server based on the first intermediate output and is a converted output at a second intermediate stage closer to the output side than the first intermediate stage of the trained model; An output side conversion processing step of generating the output data by performing a conversion process based on the second intermediate output using a part of the trained model from the second intermediate stage to an output stage of the trained model; a cache table storage step of storing a cache table representing a correspondence relationship between the first intermediate output and the second intermediate output; a determining step of determining whether the second intermediate output corresponding to the first intermediate output exists in the cache table; a selective acquisition step of: when it is determined in the determination step that the second intermediate output corresponding to the first intermediate output exists in the cache table, acquiring the corresponding second intermediate output from the cache table instead of performing the client-side sending step and the client-side receiving step; on the other hand, when it is determined in the determination step that the second intermediate output corresponding to the first intermediate output does not exist in the cache table, acquiring the second intermediate output received in the client-side receiving step by performing the client-side sending step and the client-side receiving step.
16. A control program for a client device that is connected to a server via a network and performs a conversion process on input data based on a trained model obtained by machine learning to generate output data, An input side conversion processing step of performing a conversion process based on the input data using a part of the trained model from the input stage to a first intermediate stage of the trained model to generate a first intermediate output at the first intermediate stage of the trained model; a client-side sending step of sending the first intermediate output to the server; A client-side receiving step of receiving from the server a second intermediate output that is generated in the server based on the first intermediate output and is a converted output at a second intermediate stage closer to the output side than the first intermediate stage of the trained model; An output side conversion processing step for generating the output data by performing a conversion process based on the second intermediate output of a part of the trained model from the second intermediate stage to an output stage of the trained model; a cache table storage step of storing a cache table representing a correspondence relationship between the first intermediate output and the second intermediate output; a determining step of determining whether the second intermediate output corresponding to the first intermediate output exists in the cache table; a selective acquisition step of, when it is determined in the determination step that the second intermediate output corresponding to the first intermediate output exists in the cache table, acquiring the corresponding second intermediate output from the cache table instead of executing the client-side sending step and the client-side receiving step, on the other hand, when it is determined in the determination step that the second intermediate output corresponding to the first intermediate output does not exist in the cache table, acquiring the second intermediate output received in the client-side receiving step by executing the client-side sending step and the client-side receiving step.
17. A conversion system including a client device and a server connected to the client device via a network, the conversion system performing a conversion process on input data based on a trained model obtained by machine learning to generate output data, The client device includes: an input-side transformation processing unit that is a part of the machine learning model from an input stage to a first intermediate stage of the machine learning model, and that performs a transformation process based on the input data to the machine learning model to generate a first intermediate output at the first intermediate stage of the machine learning model; An output side conversion processing unit that is a part of the machine learning model from a second intermediate stage closer to the output side than the first intermediate stage to an output stage, and generates the output data of the machine learning model by performing a conversion process based on an input to the second intermediate stage; an intermediate conversion processing unit that performs a conversion process based on an approximation function generated based on sample information that represents a correspondence relationship between the first intermediate output and the second intermediate output in the machine learning model, and generates the second intermediate output based on the first intermediate output; the output data is generated by operating the input-side transformation processing unit, the intermediate transformation processing unit, and the output-side transformation processing unit using the input data as an input to the input-side transformation processing unit, The client device further comprises: a client-side sender for sending the first intermediate output to the server; A client-side receiving unit that receives from the server a second intermediate output that is generated in the server from the first intermediate output and is a converted output at a second intermediate stage that is closer to the output side than the first intermediate stage of the trained model; and a cache table storage unit that stores a cache table that indicates a correspondence relationship between the first intermediate output and the second intermediate output; a determination unit that determines whether the second intermediate output corresponding to the first intermediate output is present in the cache table; a selective acquisition unit that, when it is determined by the determination unit that the second intermediate output corresponding to the first intermediate output exists in the cache table, acquires the corresponding second intermediate output from the cache table instead of operating the client-side transmitting unit and the client-side receiving unit, and, when it is determined by the determination unit that the second intermediate output corresponding to the first intermediate output does not exist in the cache table, acquires the second intermediate output received by the client-side receiving unit by operating the client-side transmitting unit and the client-side receiving unit; The sample information is the cache table.
Citation Information
Patent Citations
Method of cutting metallic material by gas jet ejected from outer circumference of rotary disk
JP1983016771A
Machine learning device, arc-welding control device, arc-welding robot system and welding system
JP2017030014A
Information processing device, program, and information processing method
JP2018097612A
Multiplex learning system and multiplex learning program
JP2018163623A
