Accumulation calculation device, accumulation calculation method, and program
Patent Information
- Application Number
- JP2023528779
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-14
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-06-14
AI Technical Summary
【0008】 グループ別の累積計算を効率的に行うことができる。
Smart Images

Figure 0007544274000008 
Figure 0007544274000007 
Figure 0007544274000009
Abstract
Description
[Technical field]
[0001] The present invention relates to a cumulative calculation device, a cumulative calculation method, and a program. [Background technology]
[0002] A technique called secure computation has been known as a method for obtaining a specific computation result without restoring an encrypted value. For example, Non-Patent Document 1 describes a three-party secret sharing technique.
[0003] As one of the data processing techniques, a technique for aggregating grouped data has been conventionally known. For example, Non-Patent Document 2 describes a method for calculating statistical values (average, maximum, aggregate, etc.) for each group of grouped data by secure computation. These statistical values are realized by accumulating associative binary operations. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Koji Senda, Hiroki Hamada, Dai Igarashi, Katsumi Takahashi. Rethinking Lightweight Verifiable 3-Party Private Function Computation. In CSS, 2010. [Non-Patent Document 2] Igarashi, D., Senda, H., Hamada, H., Takahashi, K.. Efficient computation of lightweight verifiable three-party private functions and secure database processing using them. In SCIS, pp. 1-8, 2011. Summary of the Invention [Problem to be solved by the invention]
[0005] However, conventional methods were specifically designed for secure computation to calculate statistical values for each group (i.e., calculating the accumulation of binary operations) while hiding the groups, and were inefficient because the accumulation calculation method used in normal data processing, which is not secure computation, could not be used directly in secure computation.
[0006] An embodiment of the present invention has been made in consideration of the above points, and has an object to efficiently perform cumulative calculations for each group. [Means for solving the problem]
[0007] In order to achieve the above object, an accumulation calculation device according to an embodiment of the present invention is provided for calculating a sequence of n values divided into groups v=(v1, . . . , v n ), wherein each element v1, . . . , v n The sequence of values c = (c1, , c n ), and v is v'=(v1', ,v n ') (where v i '=(v i ,c i a binary operation creation unit that creates a new binary operation for calculating a new pair (p, q) for two pairs (w, x) and (y, z) (where x, z∈{0, 1}) using the binary operation; and a binary operation creation unit that calculates an accumulation s i '(where s i ' is the new binary operation v1' to v i A cumulative calculation part that calculates the cumulative total up to each s i 'A sequence of values u=(u1, ,u n ) and an output unit that outputs the extracted u, and in the new binary operation, when z=0, the operation result of w and y by the binary operation is set to p, and when z=1, y is set to p, and the logical sum of x and z is set to q. Effect of the Invention
[0008] Cumulative calculations for each group can be performed efficiently.
Brief Description of the Drawings
[0009] [Figure 1] It is a diagram showing an example of the hardware configuration of the cumulative calculation device according to the present embodiment. [Diagram 2] It is a diagram showing an example of the functional configuration of the cumulative calculation device according to the present embodiment. [Diagram 3] It is a flowchart showing an example of the flow of the cumulative calculation process according to the present embodiment.
Modes for Carrying Out the Invention
[0010] Hereinafter, an embodiment of the present invention will be described. In this embodiment, a cumulative calculation device 10 that can efficiently perform cumulative calculations for each group will be described.
[0011] Here, let a sequence of n values be v = (v1, ···, v n ), and each element v i (i = 1, ···, n) is divided into several groups, and the elements within the same group are arranged so as to have consecutive indices (element numbers).
[0012] For example, when divided into three groups, there exist some i', i'' (where 1 ≤ i' < i'' < n), and v1 to v i' is the first group, v i'+1 to v i'' is the second group, and v i''+1 to v n is the third group.
[0013] Also,
[0014]
Mathematics
[0015] At this time, when performing the accumulation calculation by the binomial operation in each group, the accumulation calculation device 10 according to this embodiment calculates the accumulation by the binomial operation in the entire data (that is, n values v1′, . . . , v n A new binary operation is created that allows for the calculation of the accumulation by group using the above binary operation by the accumulation calculation for all data (all data), and the accumulation of all data is calculated using this new binary operation. Since the accumulation calculation of all data is used in normal data processing, the accumulation calculation device 10 according to this embodiment can efficiently perform the calculation even when, for example, the accumulation calculation by group is performed using secure calculation.
[0016] <Hardware configuration of the accumulation calculation device 10> The hardware configuration of the accumulation calculation device 10 according to this embodiment is shown in Fig. 1. As shown in Fig. 1, the accumulation calculation device 10 according to this embodiment is realized by the hardware configuration of a general computer or computer system, and has an input device 101, a display device 102, an external I / F 103, a communication I / F 104, a processor 105, and a memory device 106. Each of these pieces of hardware is connected to each other via a bus 107 so as to be able to communicate with each other.
[0017] The input device 101 is, for example, a keyboard, a mouse, a touch panel, various physical buttons, etc. The display device 102 is, for example, a display, etc. Note that the accumulating calculation device 10 does not necessarily have at least one of the input device 101 and the display device 102, for example.
[0018] The external I / F 103 is an interface with an external device such as a recording medium 103a. The accumulating calculation device 10 can read and write data from and to the recording medium 103a via the external I / F 103. Examples of the recording medium 103a include a CD (Compact Disc), a DVD (Digital Versatile Disk), a SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.
[0019] The communication I / F 104 is an interface for connecting the accumulating calculation device 10 to a communication network. The processor 105 is, for example, various arithmetic devices such as a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). The memory device 106 is, for example, various storage devices such as a HDD (Hard Disk Drive), an SSD (Solid State Drive), a flash memory, a RAM (Random Access Memory), and a ROM (Read Only Memory).
[0020] The accumulating calculation device 10 according to this embodiment can realize various processes described later by having the hardware configuration shown in Fig. 1. Note that the hardware configuration shown in Fig. 1 is an example, and the accumulating calculation device 10 may have, for example, multiple processors 105 or multiple memory devices 106. Furthermore, the accumulating calculation device 10 may have various hardware other than the hardware shown in the figure.
[0021] <Functional configuration of the cumulative calculation device 10> The functional configuration of the cumulative calculation device 10 according to this embodiment is shown in FIG. 2. As shown in FIG. 2, the cumulative calculation device 10 according to this embodiment has a value conversion unit 201, a binomial operation creation unit 202, a cumulative calculation unit 203, an output unit 204, and a storage unit 205. The value conversion unit 201, the binomial operation creation unit 202, the cumulative calculation unit 203, and the output unit 204 are realized, for example, by a process in which one or more programs installed in the cumulative calculation device 10 are executed by the processor 105. The storage unit 205 is realized, for example, by the memory device 106. The storage unit 205 may be realized, for example, by a storage device connected to the cumulative calculation device 10 via a communication network.
[0022] The value conversion unit 201 converts a sequence of values c=(c1, . . . , c) into a sequence of values in which the first element in a group of v corresponds to 1 and the other elements correspond to 0. n), and v is v'=(v1', ,v n ') (where v i '=(v i ,c i )).
[0023] The binary operation creating unit 202 creates a new binary operation that allows for the calculation of the accumulation for each group by the original binary operation through an accumulation calculation for the entire data.
[0024] The accumulation calculation unit 203 calculates v'=(v1', . . . , v n ') and perform a new binary accumulation calculation on the entire
[0025] The output unit 204 extracts the results of the cumulative calculation for each group using the original binomial operation from the results of the cumulative calculation using the new binomial operation, and outputs the extracted results.
[0026] The storage unit 205 stores a sequence of n values v=(v1, . . . , v n ) and intermediate results of cumulative calculations, cumulative calculation results, etc. are stored.
[0027] <Cumulative calculation process flow> The flow of the cumulative calculation process according to this embodiment will be described with reference to FIG.
[0028] First, the value conversion unit 201 converts the sequence of values c=(c1, . . . , c) into a sequence of values in which the first element in a group of v is assigned a value of 1 and the other elements are assigned a value of 0. n ), and v is v'=(v1', ,v n ') (where v i '=(v i ,c i )) (step S101).
[0029] Next, the binary operation creation unit 202 creates the entire data (i.e., n values v1′, . . . , v n 'A new binary operation that allows the calculation of the cumulative results for each group by the original binary operation.
[0030]
number
[0031]
number
[0032] Next, the accumulation calculation unit 203 calculates v'=(v1', . . . , v n In other words, the accumulation calculation unit 203 calculates the accumulation s'=(s1', . . . , s') of v' by the new binomial operation (step S103). n '), where for each i = 1,...,n,
[0033]
number
[0034] Then, the output unit 204 outputs each s i 's i '=(u i ,d i ), then the sequence of values u=(u1, ,u n ) is extracted and output as the accumulation result of the original binary operation (step S104). i However, the original binary operations v1, ,v i The cumulative calculation result is as follows. For each i=1,...,n, d i =1.
[0035] The output destination from the output unit 204 may be arbitrary, and may be, for example, stored in the storage unit 205, transmitted to another device or equipment, or the like.
[0036] <Example> An embodiment of the above-mentioned cumulative calculation process will be described below.
[0037] Example 1 In this embodiment, a sequence of values v=(3,5,1,2,4,6,1,3,2,8) is given, which is divided into four groups of 4, 2, 1, and 3 from the beginning, and a cumulative calculation is performed for each group using the binary operation max(x,y). Note that max(x,y) is a binary operation that outputs the maximum value of x and y.
[0038] First, in step S101 above, a sequence of values c=(1,0,0,0,1,0,1,1,0,0) is created in which the first element of the group is assigned a 1 and the other elements are assigned a 0, and v is converted to the following v'.
[0039] v'=((v1,c1),···,(v 10 ,c 10 ))=((3,1),(5,0),(1,0),(2,0),(4,1),(6,0),(1,1),(3,1),(2,0),(8,0)) In step S102 above, a new binary operation defined by the above formula 3 is created, and in step S103 above, v'=((v1, c1), . . . , (v 10 ,c 10 )) and the accumulation is calculated over them using a new binary operation.
[0040] for example,
[0041]
number
[0042]
number
[0043] Example 2 In the above embodiment 1, in step S103, a new binary operation is performed to obtain s1', . . . , s 10 Instead of calculating s1',...,s' from the left, in this embodiment, 10 ' are calculated in parallel. This makes it possible to perform accumulation calculations more efficiently than in Example 1. It is known that associative binary operations can be calculated in parallel.
[0044] <Summary> As described above, when the accumulation calculation device 10 according to this embodiment performs accumulation calculation by a binary operation within each group, it assigns a flag of 1 to the first element of the group for each value to be accumulated and 0 to the others, defines a new binary operation, and performs accumulation calculation for the entire data (i.e., the entire set of values and flags) by this new binary operation. This new binary operation utilizes the fact that the accumulation value of the first element of the group has already been calculated, and regards the flag as indicating whether or not the calculation has been performed, thereby extending the original binary operation to a binary operation for a set of values and flags.
[0045] As a result, the cumulative calculation device 10 according to the present embodiment can efficiently perform cumulative calculations for each group, even when the calculations are performed by secure calculation (including secret sharing), for example. This is because the calculation of the cumulative calculations for each group can be performed by secure calculation in the same order using any method for applying binary operations to be used for the calculation of the cumulative calculation in a determined order. Therefore, for example, by using max or min as the binary operation, it is possible to efficiently realize group by max or group by min operations in secure calculation.
[0046] Therefore, the cumulative calculation device 10 according to the present embodiment can be used not only for normal data processing, but also for example, when performing data processing or data analysis while keeping the data contents concealed. As a specific example, the cumulative calculation device 10 according to the present embodiment can create learning data for a machine learning model that realizes a predetermined task (e.g., some prediction, classification, etc.) while keeping the data contents concealed. In addition, the cumulative calculation device 10 according to the present embodiment may be capable of performing various predictions and classifications by a machine learning model trained with the learning data, and controlling other devices, equipment, systems, etc. based on the prediction or classification results.
[0047] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations with known technologies, etc. are possible without departing from the scope of the claims. [Explanation of symbols]
[0048] 10 Cumulative calculation device 101 Input Device 102 Display device 103 External I / F 103a Recording media 104 Communication I / F 105 processors 106 Memory Device 107 Bus 201 Value conversion unit 202 Binary operation creation unit 203 Cumulative calculation section 204 Output section 205 Storage section
Claims
1. A sequence of n values divided into groups v = (v 1 , ..., v n ) for calculating the group-wise accumulation by associative binary operations, Each element of v 1 , ..., v n The sequence of values c = (c 1 , ..., c n ), and v is v' = (v 1 ', ..., v n ') (However, v i '=(v i , c i )) a value converter; a binary operation creation unit that uses the binary operation to create a new binary operation for calculating a new pair (p, q) for two pairs (w, x) and (y, z) (where x, z ∈ {0, 1}); For i = 1, ..., n, the new binary operation is used to accumulate s i ' (where s i ' is the new binary operation v 1 ' to v i A cumulative calculation unit that calculates the cumulative total up to ' Each s i '(i=1, . . . , n) to a sequence of values u=(u 1 , ..., u n ) and outputting the extracted u; having In the new binary operation, when z=0, the result of the operation of w and y by the binary operation is p, and when z=1, y is p and the logical sum of x and z is q.
2. The binary operation creation unit: The accumulator according to claim 1, wherein the result of the binary operation of w and y is defined as r, an operator representing a logical sum is defined as OR, and the result of the operation of (w, x) and (y, z) by the new binary operation is defined as (zy + (1-z)r, xORz), thereby creating the new binary operation.
3. The output unit is s i '=(u i , d i ), then u = (u 1 , ..., u n 3. The accumulation calculation device according to claim 1, further comprising:
4. A sequence of n values divided into groups v = (v 1 , ..., v n a cumulative calculation device for calculating the cumulative per group by associative binary operations on Each element of v 1 , ..., v n The sequence of values c = (c 1 , ..., c n ), and v is v' = (v 1 ', ..., v n ') (However, v i '=(v i , c i )) and a binary operation creation step of creating a new binary operation for computing a new pair (p, q) for two pairs (w, x) and (y, z) (where x, z ∈ {0, 1}) using the binary operation; For i = 1, ..., n, the new binary operation is used to accumulate s i ' (where s i ' is the new binary operation v 1 ' to v i A cumulative calculation procedure for calculating the cumulative Each s i '(i=1, . . . , n) to a sequence of values u=(u 1 , ..., u n ) and outputting the extracted u; Run The new binary operation is an accumulation calculation method in which, when z=0, the result of the operation of w and y by the binary operation is p, and when z=1, y is p and the logical sum of x and z is q.
5. A program for causing a computer to function as the accumulation calculation device according to any one of claims 1 to 3.
Citation Information
Patent Citations
Secret calculation system, aggregate function device, secret calculation method, and program
JP2014081475A
Secure aggregate sum system, secure computation device, secure aggregate sum method, and program
WO2019208484A1
Secure aggregate maximum value system, secure aggregate minimum value system, secure computation device, secure aggregate maximum value method, secure aggregate minimum value method, and program
WO2019208485A1
Secure aggregate median value system, secure computation device, secure aggregate median value method, and program
WO2019208486A1
Secret aggregate function calculation system, secret calculation device, secret aggregate function calculation method, and program
WO2019225401A1
