Secure conjugate gradient method calculation method, secure conjugate gradient method calculation system, secure calculation device, and program
The secret conjugate gradient calculation method optimizes the conjugate gradient method for multiple pairs by converting multiplications into vector element multiplications, enhancing efficiency and reducing communication bottlenecks.
Patent Information
- Application Number
- JP2023525230
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-02
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2041-06-02
AI Technical Summary
Conventional methods for calculating the conjugate gradient method for multiple pairs of symmetric positive definite matrices and vectors require O(N) processing time, leading to inefficiencies.
A secret conjugate gradient calculation method utilizing a system of secure computing devices that perform calculations efficiently by converting multiplications between N values into multiplications between elements of a single vector, reducing communication requirements through elemental technologies.
Enables efficient calculation of the conjugate gradient method for multiple pairs of symmetric positive definite matrices and vectors in a single operation, significantly speeding up processing.
Smart Images

Figure 0007568084000034 
Figure 0007568084000035 
Figure 0007568084000036
Abstract
Description
[Technical field]
[0001] The present invention relates to a secure computation technology, and more particularly to a technology for performing secure computation of a conjugate gradient method. [Background technology]
[0002] The conjugate gradient method is an algorithm for solving simultaneous linear equations with symmetric positive definite matrices. The conjugate gradient method is a method for solving simultaneous linear equations with symmetric positive definite matrix A and vector b → If there is a symmetric positive definite matrix A, then the inverse matrix A -1 Without calculating, directly -1 b → This is a method for calculating the conjugate gradient method, which is often used in machine learning and other fields.
[0003] When performing machine learning using secure computation, it is necessary to efficiently calculate the conjugate gradient method. Patent Document 1 discloses a technique for efficiently calculating the conjugate gradient method using secure computation. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] International Publication No. 2020 / 246018 Summary of the Invention [Problem to be solved by the invention]
[0005] The conventional technology described in Patent Document 1 is a technology for efficiently calculating the conjugate gradient method for one pair of a symmetric positive definite matrix and a vector. Therefore, in order to calculate the conjugate gradient method for N pairs of a symmetric positive definite matrix and a vector using the conventional technology described in Patent Document 1, it is necessary to calculate the conjugate gradient method N times, and the processing time increases at O(N).
[0006] In view of the above technical problems, an object of the present invention is to efficiently calculate the conjugate gradient method for a plurality of pairs of symmetric positive definite matrices and vectors. [Means for solving the problem]
[0007] A secure conjugate gradient method according to one embodiment of the present invention is a method for computing N symmetric positive definite matrices A1, . . . , A N The secret value of the multidimensional matrix A~ consisting of N vectors b → 1, …, b → N The input is a matrix B consisting of A1 -1 b → 1, …, A N -1 b → N A secret conjugate gradient method for outputting a secret value of a matrix X consisting of: T represents the transpose of the matrix ·, diag(·) represents a function that outputs the diagonal elements of the matrix ·, n represents a given natural number, and 0 n represents a vector of length n whose elements are all 0. The initialization unit of each secure computing device calculates the secret value of matrix X, matrix R = (r → 1, …, r → N ), the secret value of the matrix P = (p → 1, …, p → N ) and the vector γ → Generate a secret value of
number
number
number
number
number
number
number
[0008] According to the present invention, the conjugate gradient method for a plurality of pairs of symmetric positive definite matrices and vectors can be calculated in a single conjugate gradient method, which is efficient. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating a functional configuration of a secure conjugate gradient method computing system. [Diagram 2] FIG. 2 is a diagram illustrating an example of the functional configuration of the secure computing device. [Diagram 3]FIG. 3 is a diagram illustrating a processing procedure of the private conjugate gradient method calculation method. [Figure 4] FIG. 4 is a diagram illustrating an example of a functional configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] First, the notational methods and terminology used in this specification will be explained.
[0011] <Notation> Symbols used in this text: → " (superscript right arrow)" ~ " (tilde) should be written directly above the character immediately preceding it, but due to limitations in text notation, they are written immediately after the character in question. In mathematical formulas, these symbols are written in their proper position, that is, directly above the character. For example, "a → " "C~" is expressed in the formula as follows.
[0012]
number
[0013] " → A letter with a " " (superscript right arrow) indicates a vector. For example, N values a1, a2, …, a N Let a vector consisting of a → =(a1, a2, …, a N The element numbers of a vector are expressed as subscripts. For example, the vector a → The i-th element of a i It is written as follows.
[0014] If a vector is represented by a lowercase alphabet, then an uppercase alphabet represents a matrix of vectors. For example, a vector b → 1, b → 2, …, b → N Let B=(b → 1, b → 2, …, b→ N ) is written as
[0015] The numbers of the elements of a vector are expressed by subscripts. If a vector has a subscript that represents a number, the subscripts are separated by a comma, and the vector number and the vector element number are written together. For example, the i-th vector b → The jth element of i is b i,j It is written as follows.
[0016] Capital letters with a tilde (~) indicate multidimensional matrices. For example, N matrices C1, C2, …, C N Let C~=(C1, C2, …, C N ) is written as
[0017] [·] represents the secret text obtained by encrypting the value ·. When encryption is done using secret sharing, it is called a “share.”
[0018] α→β represents the transformation from α to β.
[0019] α←β represents the substitution of β for α.
[0020] · T (The superscript T) denotes the transpose of the matrix ·.
[0021] α →T β → is the vector α → and vector β → Represents the dot product of
[0022] <Secret calculation> There is a method called secure computation as a method for obtaining a specific calculation result without restoring an encrypted numerical value (for example, see Reference 1). In the method described in Reference 1, encryption is performed by distributing fragments of a numerical value among three secure computation devices, and the three secure computation devices perform cooperative computation, so that the results of addition / subtraction, constant addition, multiplication, constant multiplication, logical operations (negation, logical product, logical sum, exclusive logical sum), and data format conversion (integer, binary number) can be kept in a distributed state, i.e., encrypted state, among the three secure computation devices, without restoring the numerical value.
[0023] [References 1] Koji Senda, Hiroki Hamada, Dai Igarashi, Katsumi Takahashi, “Rethinking Lightweight Verifiable Three-Party Secure Function Computation,” Computer Security Symposium 2010, 2010.
[0024] <Conventional conjugate gradient method> The conventional conjugate gradient method algorithm (Algorithm 1) is shown below. This algorithm takes a symmetric positive definite matrix A and a vector b → and the threshold δ are input, and A -1 b → When performing the conjugate gradient method securely, all values of · used in the algorithm can be replaced with shares [·]. [Table 1]
[0025] where 0 n represents a vector of length n whose elements are all zero.
[0026] <Proposed conjugate gradient method> The algorithm for the conjugate gradient method proposed in this invention (Algorithm 2) is shown below. This algorithm uses N symmetric positive definite matrices A1, A2, ..., A N A multidimensional matrix A~=(A1, A2, …, A N ) and N vectors b → 1, b → 2, …, b → NA matrix B=(b → 1, b → 2, …, b → N ) and the number of iterations δ, and → 1, x → 2, …, x → N A matrix X=(x → 1, x → 2, …, x → N ) (where x → i =A i -1 b → i , i = 1, …, N). [Table 2]
[0027] Here, diag(·) is a function that outputs the diagonal elements of the matrix ·. Therefore, the division in step 7 means element-by-element division of the vector.
[0028] To calculate Algorithm 2, the following elemental techniques 1 and 2 are used. Elemental technique 1 is a method for calculating the inner product of multiple vectors collectively. Elemental technique 2 is a method for performing calculations of multiple vectors and matrices collectively. Elemental technique 1 is used to calculate steps 3, 7, and 9 of Algorithm 2. Elemental technique 2 is used to calculate steps 4 and 6 of Algorithm 2.
[0029] <Elemental technology 1: A method for calculating the inner product of vectors all at once> Elemental technology 1 is the matrix C = (c → 1, c → 2, …, c → N ) and matrix D=(d → 1, d → 2, …, d → N ), then e → ←C T D=(c → 1T d → 1, c → 2 T d → 2, …, c → N T d → N ) is calculated. Note that each vector (c → 1, c → 2, …, c → N ), (d → 1, d → 2, …, d → N ) are all of length n, where n is a given natural number.
[0030] First, we concatenate the vectors that are elements of matrix C and matrix D, and create a concatenated vector c → and d → Generate. C=(c → 1, c → 2, …, c → N ) → c → =(c 1,1 , c 1,2 , …, c 1,n , c 2,1 , c 2,2 , …, c 2,n , …, c N,1 , c N,2 , …, c N,n ) D=(d → 1, d → 2, …, d → N ) →d → =(d 1,1 , d 1,2 , …, d 1,n , d 2,1 , d 2,2 , …, d 2,n , …, d N,1 , d N,2 , …, d N,n )
[0031] Next, multiply the elements of matrix C and matrix D to obtain the element product vector g → Generate. g → ←c → ×d → =(c 1,1 ×d 1,1 , c 1,2 ×d 1,2 , …, c 1,n ×d 1,n , c 2,1 ×d 2,1 , c 2,2 ×d 2,2 , …, c 2,n ×d 2,n ,…, c N,1 ×d N,1 , c N,2 ×d N,2 , …, c N,n ×d N,n )
[0032] Finally, the element product vector g → Split the elements of into n groups, add up each of the n elements, and create the resulting vector e → Generate. e → ←(sum(c 1,1 ×d 1,1 , c 1,2 ×d 1,2 , …, c 1,n ×d 1,n ), sum(c 2,1 ×d 2,1 , c 2,2 ×d 2,2 , …, c 2,n ×d 2,n ), …, sum(c N,1 ×d N,1 , c N,2 ×d N,2 , …, c N,n ×d N,n ))
[0033] Conventionally, to calculate the inner product of N vectors, N multiplications of values were required. By using elemental technology 1, it is possible to calculate the inner product of N vectors with a single multiplication of elements. In secure computation, both multiplications of values and multiplications of vector elements require only one communication. Therefore, if multiplications of N values are converted to multiplications of vector elements with N elements, the number of communications can be reduced to 1 / N. In secure computation, a large amount of communication is required especially for multiplications, so reducing the number of multiplications can significantly speed up processing.
[0034] <Elemental technology 2: Method for performing vector and matrix calculations together> Elemental technology 2 is the matrix C = (c → 1, c → 2, …, c → N ) and multidimensional matrix D~=(D1, D2, …, D N ), then F←(c → 1 T D1, c → 2 T D2, …, c → N T D N ) is a method for calculating
[0035] When performing matrix calculations in secure computation, local calculations consisting of multiplications and additions are performed on the shares, and then the results of the local calculations are communicated between the parties. Therefore, when performing N matrix calculations using conventional technology, N communications are required. Therefore, the local calculations required for each of the N matrix calculations are first performed together, and then the communications required for each matrix calculation are performed together in a single communication. This makes it possible to perform N matrix calculations with a single communication. Since communication is a bottleneck in secure computation, reducing the number of communications can speed up processing.
[0036] Hereinafter, an embodiment of the present invention will be described in detail. In the drawings, components having the same functions are designated by the same reference numerals, and duplicated explanations will be omitted.
[0037] [Embodiment] A configuration example of a secure conjugate gradient method computation system according to an embodiment will be described with reference to Fig. 1. The secure conjugate gradient method computation system 100 includes, for example, K (≧2) secure computation devices 11, ..., 1 K In this embodiment, the secure computing apparatuses 11, . . . , 1 K are each connected to a communication network 9. The communication network 9 is a circuit-switched or packet-switched communication network configured so that each connected device can communicate with each other, and can be, for example, the Internet, a LAN (Local Area Network), or a WAN (Wide Area Network). Note that each device does not necessarily need to be able to communicate online via the communication network 9. For example, the secure computing devices 11, ..., 1 K The information to be input to the secure computing device 11, ..., 1 is stored in a portable recording medium such as a magnetic tape or a USB memory, and the information is read from the portable recording medium to the secure computing device 11, ..., 1 K It may also be configured so that the data can be input offline.
[0038] Referring to FIG. 2, a secure computing device 1 included in the secure conjugate gradient method computing system 100 according to the embodiment k A configuration example of the secure computing device 1 (k=1, ..., K) will be described. k For example, as shown in FIG. 2, the secure computing device 1 includes an input unit 11, an initialization unit 12, a first calculation unit 13, a second calculation unit 14, a third calculation unit 15, a fourth calculation unit 16, a fifth calculation unit 17, a sixth calculation unit 18, an iterative control unit 19, and an output unit 20. k (k=1, …, K) is another secure computing device 1 k' The secret conjugate gradient method calculation method of this embodiment is realized by carrying out the processing of each step shown in FIG. 3 in cooperation with the arithmetic unit 100 (k′=1, . . . , K, where k≠k′).
[0039] The secure computing device is a special device configured by loading a special program into a publicly known or dedicated computer having, for example, a central processing unit (CPU), a main memory (RAM), etc. The secure computing device executes each process under the control of, for example, the central processing unit. Data input to the secure computing device and data obtained in each process are stored in, for example, the main memory, and the data stored in the main memory is read out to the central processing unit as necessary and used for other processes. At least a part of each processing unit of the secure computing device may be configured by hardware such as an integrated circuit.
[0040] The processing procedure of the private conjugate gradient method calculation method executed by the private conjugate gradient method calculation system 100 of the embodiment will be described with reference to Fig. 3. Note that in the formulas in the following description, parentheses ([·]) that indicate secret values are omitted to simplify notation, but all values, vectors, and matrices are assumed to be kept secret.
[0041] In step S11, each secure computing device 1 k N symmetric positive definite matrices A1, A2, …, A N A multidimensional matrix A~=(A1, A2, …, A N ) secret value [A~], N vectors b → 1, b → 2, …, b → N A matrix B=(b → 1, b → 2, …, b → N The secret value [B] of the multidimensional matrix A~ and the secret value [δ] of the number of iterations δ are input. The number of iterations δ may be set in consideration of the accuracy of the calculation results and the processing speed, but it is known that it is sufficient to set it to about 10 in the conjugate gradient method. The secret value [A~] of the multidimensional matrix A~ is output to the first calculation unit 13. The secret value [B] of the matrix B is input to the initialization unit 14. 12 The secret value [δ] for the number of iterations δ is output to the iteration control unit 19.
[0042] In step S12, each secure computing device 1 k The initialization unit 12 of the → 1, …, x → N A matrix X=(x → 1, …, x → N ) secret value [X], N vectors r → 1, …, r → N The matrix R=(r → 1, …, r → N ) secret value [R], N vectors p → 1, …, p → N A matrix P=(p → 1, …, p → N ) secret value [P], and vector γ → The secret value of [γ → ] is generated for each vector (x → 1, …, x → N ), (r → 1, …, r → N ), (p → 1, …, p → N ) and vector γ → are all of length n. The initialization unit 12 initializes an index j of the iterative process to j=1. The secret value [X] of the generated matrix X is output to the second calculation unit 14. The secret values [R], [P] of the generated matrices R, P are output to the first calculation unit 13. The generated vector γ → The secret value of [γ → ] is output to the fourth calculation unit 16.
[0043]
number
[0044] The initialization unit 12 calculates RT R is securely calculated by converting N multiplications into multiplications between elements of a single vector using the above elemental technology 1. That is, R in formula (3) T To calculate R, the following steps are performed: First, the vector r → 1, r → 2, …, r → N Concatenate the above and create the concatenated vector r → =(r 1,1 ,…, r 1,n , r 2,1 , …, r 2,n , …, r N,1 , …, r N,n ) is generated. Next, the two concatenated vectors r → Multiply the elements of and obtain the element product vector g → ←r → ×r → =(r 1,1 ×r 1,1 ,…, r 1,n ×r 1,n , r 2,1 ×r 2,1 , …, r 2,n ×r 2,n , …, r N,1 ×r N,1 , …, r N,n ×r N,n ) is generated. Finally, the element product vector g → Split the elements of into n groups, add up each of the n elements, and create the resulting vector e → ←(sum(r 1,1 ×r 1,1 ,…, r 1,n ×r 1,n ), sum(r 2,1 ×r 2,1 , …, r 2,n ×r 2,n ), …, sum(r N,1 ×r N,1 , …, r N,n ×r N,n )).
[0045] In step S13, each secure computing device 1 kThe first calculation unit 13 performs secret calculations on the formula (4) for each integer i between 1 and N to obtain a vector α → =(α1, …, α N ) secret value [α → ] is generated. → The secret value of [α → ] is output to the second calculation unit 14.
[0046]
number
[0047] The first calculation unit 13 calculates p → i T A i p → i Using the above elemental technology 2, the above is secretly calculated so that the communications required for N matrix calculations are performed in one go. That is, p → i T A i p → i First, perform the local operations required for each of p → i T A i p → i The communications required for each of these are carried out at once.
[0048] In step S14, each secure computing device 1 k The second calculation unit 14 performs secret calculation of the formula (5) to update the secret value [X] of the matrix X. The updated secret value [X] of the matrix X is output to the output unit 20.
[0049]
number
[0050] In step S15, each secure computing device 1 kThe third calculation unit 15 updates the secret value [R] of the matrix R by secretly calculating Equation (6) collectively for each integer i between 1 and N. The updated secret value [R] of the matrix R is output to the iterative control unit 19.
[0051]
number
[0052] The third calculation unit 15 calculates A in the formula (6). i p → i Similarly to the first calculation unit 13, the above elemental technology 2 is used to perform secure calculation of N matrix calculations in one go.
[0053] In step S16, each secure computing device 1 k The fourth calculation unit 16 calculates the vector β → The secret value [β → ]. The generated vector β → The secret value [β → ] is output to the fifth calculation unit 17.
[0054]
number
[0055] The fourth calculation unit 16 calculates R T Similar to the initialization unit 12, R is securely calculated by using the above elemental technology 1 while converting N multiplications into multiplications between elements of one vector.
[0056] In step S17, each secure computing device 1 k The fifth calculation unit 17 performs secret calculation of equation (8) to update the secret value [P] of the matrix P. The updated secret value [P] of the matrix P is output to the first calculation unit 13.
[0057]
number
[0058] In step S18, each secure computing device 1 k The sixth calculation unit 18 calculates the vector γ → The secret value of [γ → ]. The updated vector γ → The secret value of [γ → ] is output to the fourth calculation unit 16.
[0059]
number
[0060] The sixth calculation unit 18 calculates R T Similar to the initialization unit 12, R is securely calculated by using the above elemental technology 1 while converting N multiplications into multiplications between elements of one vector.
[0061] In step S19-1, each secure computing device 1 k The iteration control unit 19 of the secure computing device 1 determines whether the index j is equal to or greater than the iteration count δ, that is, whether j≧δ is true or false. If j≧δ is false, that is, j<δ, the process proceeds to step S19-2. If j≧δ is true, the process proceeds to step S20. In step S19-2, each secure computing device 1 k The iterative control unit 19 increments j, i.e., calculates j←j+1, and returns the process to step S13. In other words, the iterative control unit 19 controls the first calculation unit 13 to the sixth calculation unit 18 to be repeatedly executed δ times.
[0062] In step S20, each secure computing device 1 k The output unit 20 outputs the secret value [X] of the matrix X as A1 -1 b → 1, A2 -1 b → 2, …, A N -1 b → N The secret value of is output.
[0063] [Example 1] The first embodiment of the present invention is an example of solving linear regression using the conjugate gradient method of Algorithm 2. The equation for finding the linear regression model is Equation (10).
[0064]
number
[0065] Since the inverse matrix requires a large amount of processing, equation (10) is generally solved using the conjugate gradient method. By using the conjugate gradient method of Algorithm 2, multiple linear regression models using different data sets can be trained together in a single conjugate gradient method.
[0066] [Example 2] The second embodiment of the present invention is an example of solving ridge regression using the conjugate gradient method of Algorithm 2. The equation for finding the ridge regression model is Equation (11).
[0067]
number
[0068] In equation (11), α represents a hyperparameter, and when performing ridge regression, learning is usually performed by setting an arbitrary value. Since the optimal hyperparameter value is not known in advance, it is necessary to set multiple different hyperparameters and perform learning multiple times, which is an issue. By using the conjugate gradient method of Algorithm 2, ridge regression models with multiple different hyperparameters can be learned together in a single conjugate gradient method. This makes it possible to efficiently learn the optimal model.
[0069] Although the embodiments of the present invention have been described above, the specific configuration is not limited to these embodiments, and it goes without saying that the present invention includes appropriate design changes and the like within the scope of the gist of the present invention. The various processes described in the embodiments are not only executed in chronological order according to the order described, but may also be executed in parallel or individually depending on the processing capacity of the device executing the processes or as necessary.
[0070] [Programs, recording media] When the various processing functions of each device described in the above embodiment are realized by a computer, the processing contents of the functions that each device should have are described by a program. Then, the various processing functions of each device are realized on the computer by loading this program into the storage unit 1020 of the computer shown in Fig. 4 and operating the arithmetic processing unit 1010, the input unit 1030, the output unit 1040, etc.
[0071] The program describing the processing contents can be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a non-transitory recording medium, such as a magnetic recording device or an optical disk.
[0072] The program may be distributed, for example, by selling, transferring, lending, etc. portable recording media such as DVDs and CD-ROMs on which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of a server computer and transferring the program from the server computer to other computers via a network.
[0073] A computer that executes such a program, for example, first stores a program recorded on a portable recording medium or a program transferred from a server computer in the auxiliary recording unit 1050, which is a non-transient storage device of the computer. Then, when executing a process, the computer reads the program stored in the auxiliary recording unit 1050, which is a non-transient storage device, into the storage unit 1020, which is a temporary storage device, and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute a process according to the program, or may execute a process according to the received program each time a program is transferred from the server computer to the computer. Alternatively, the server computer may not transfer the program to the computer, but may execute the above-mentioned process by a so-called ASP (Application Service Provider) type service that realizes a processing function only by issuing an execution instruction and obtaining a result. Note that the program in this embodiment includes information used for processing by an electronic computer and equivalent to a program (data that is not a direct instruction to a computer but has a nature that specifies the processing of a computer, etc.).
[0074] In addition, in this embodiment, the present device is configured by executing a specific program on a computer, but at least a part of the processing contents may be realized by hardware.
Claims
1. A symmetric positive definite matrix A is calculated by a secret conjugate gradient method calculation system including a plurality of secret calculation devices. 1 , …, A N The secret value of the multidimensional matrix A~ consisting of N vectors b → 1 , …, b → N The input is a matrix B consisting of a secret value and A 1 -1 b → 1 , …, A N -1 b → N A secret conjugate gradient method for outputting a secret value of a matrix X consisting of: ・ T represents the transpose of the matrix ·, diag(·) represents a function that outputs the diagonal elements of the matrix ·, n represents a given natural number, and 0 n represents a vector of length n whose elements are all zero, The initialization unit of each secure computing device securely computes the following formula to obtain the secret value of the matrix X, the matrix R=(r → 1 , …, r → N ), the secret value of the matrix P = (p → 1 , …, p → N ) and the vector γ → Generate a secret value of [0018] The first calculation unit of each secure calculation device performs the following secret calculation so that the communication required for the matrix calculation is performed in one go for each integer i between 1 and N, and obtains the vector α → =(α 1 , …, α N ) and generate a secret value of [0019] a second calculation unit of each secure calculation device updates a secret value of the matrix X by secretly calculating the following formula, [0020] a third calculation unit of each secure calculation device performs secret calculation of the following formula for each integer i between 1 and N inclusive, so as to perform communications required for matrix calculation in a single operation, thereby updating a secret value of the matrix R; ##EQU00021## The fourth calculation unit of each secure calculation device converts the multiplication of N values into the multiplication of elements of one vector while secretly calculating the following formula, thereby obtaining a vector β → Generate a secret value of [0022] a fifth calculation unit of each secure calculation device updates a secret value of the matrix P by secretly calculating the following formula, [0023] The sixth calculation unit of each secure calculation device converts the multiplication of N values into the multiplication of elements of one vector, and performs secure calculation of the following formula, thereby obtaining the vector γ → Update the secret value of ##EQU00024## Secret conjugate gradient method calculation method.
2. 2. The method of claim 1, further comprising the steps of: The initialization unit, the fourth calculation unit, and the sixth calculation unit Vector r contained in the matrix R → 1 , …, r → N The concatenated vector r → and generate the two concatenated vectors r → The element product vector g → and generate the element product vector g → The elements of are divided into n parts and summed together to give a vector e → By finding R T Calculate R, Secret conjugate gradient method calculation method.
3. 2. The method of claim 1, further comprising the steps of: The first calculation unit and the third calculation unit are For each integer i between 1 and N, the vector p → i and the symmetric positive definite matrix A included in the multidimensional matrix A i When performing a matrix calculation of and , N local operations required for the secret calculation are performed together, and the communication required for the matrix calculation is performed together in a single communication. Secret conjugate gradient method calculation method.
4. A plurality of secure computing devices are included, and N symmetric positive definite matrices A 1 , …, A N The secret value of the multidimensional matrix A~ consisting of N vectors b → 1 , …, b → N The input is a matrix B consisting of a secret value and A 1 -1 b → 1 , …, A N -1 b → N A private conjugate gradient method calculation system that outputs a secret value of a matrix X consisting of: ・ T represents the transpose of the matrix ·, diag(·) represents a function that outputs the diagonal elements of the matrix ·, n represents a given natural number, and 0 n represents a vector of length n whose elements are all zero, Each secure computing device is By secretly computing the following formula, the secret value of the matrix X, matrix R=(r → 1 , …, r → N ), the secret value of the matrix P = (p → 1 , …, p → N ) and the vector γ → an initialization unit for generating a secret value of [0025] For each integer i between 1 and N, we can calculate the vector α → =(α 1 , …, α N A first calculation unit for generating a secret value of [0026] A second calculation unit that updates a secret value of the matrix X by secretly calculating the following formula: [0027] a third calculation unit that updates a secret value of the matrix R by secretly calculating the following formula for each integer i between 1 and N such that communications required for matrix calculation are performed in a single operation; [0028] By converting the multiplication of N values into the multiplication of elements of a single vector, we can secretly calculate the following formula: → a fourth calculation unit for generating a secret value of [0029] a fifth calculation unit that updates a secret value of the matrix P by secretly calculating the following formula: [0030] By converting the multiplication of N values into the multiplication of elements of a single vector, the following formula is secretly calculated to obtain the vector γ → A sixth calculation unit that updates the secret value of [0031] A secret conjugate gradient method computation system including:
5. 5. The secure computing device for use in the secure conjugate gradient method computing system according to claim 4.
6. 4. A program for causing a computer to execute each step of the secret conjugate gradient method calculation method according to claim 1.
Citation Information
Patent Citations
Solution device and solution method of simultaneous linear equations
JP2005018366A
Secret conjugate gradient method calculation system, secret calculation device, conjugate gradient method calculation device, secret conjugate gradient method calculation method, conjugate gradient method calculation method, and program
WO2020246018A1
