The present application is based on PCT filing PCT/JP2020/001683, filed Jan. 20, 2020, the entire contents of which are incorporated herein by reference.
The present disclosure relates to a technology for performing multiplication by a real number value in secure computation.
NPL 1 discloses a secure computation method for multiplying a secret share value by a public real number value.
NPL 1: Dai Ikarashi, “Secure Real Number Operations for Secure AI -O(|p|)-Bit Communication and O(1)-Round Right Shift Protocol-”, CSS2019, 2019.
However, the secure computation method of NPL 1 has a problem that right shifting is performed in secure computation in addition to multiplication each time the multiplication is performed in order to prevent overflow, and a calculation cost is high.
The present disclosure has been made in view of such a point, and an object of the present disclosure is to reduce a calculation cost of secure computation for multiplying a secret share value by a public real number value.
x is a real number, [•] is a secret share value of •, σ is a positive integer that is the number of bits indicating a right shifting amount, m is a real number, a public value 2σ/m is obtained, and secure computation of public value division [x]/(2σ/m) using a secret share value [x] and the obtained public value 2σ/m is performed, so that a secret share value [mx]r of a value obtained by right-shifting mx by σ bits is obtained and output.
Thus, in the present disclosure, because multiplication by a real number m and right shifting by σ bits are executed at the same time, a calculation cost can be reduced.
Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
In the embodiment, a secure computation device receives a secret share value [x] of a real number x, a real number m which is a multiplier, and a positive integer σ which is the number of bits indicating a right shifting amount as inputs, and obtains and outputs a secret share value [mx]r of a value obtained by right-shifting mx by σ bits. A secret sharing scheme for a secret share value is not limited, and examples thereof include an additive secret sharing scheme and a Shamir's secret sharing scheme. An example of [•] is a secret share value obtained by performing linear secret sharing on an element on a quotient ring. Further, a public decimal point position is defined for an integer on the ring so that this can be regarded as a fixed-point real number. In the embodiment, the fixed-point real number indicated on the ring in this way is simply expressed as a real number.
As illustrated in
As illustrated in
The real number m and the positive integer 6 are input to the public value calculation unit 11. The public value calculation unit 11 calculates and outputs a public value of 2σ/m (step S11).
The secret share value [x] and the public value 2σ/m which is output from the public value calculation unit 11 are input to the secure computation unit 12. The secure computation unit 12 performs secure computation of public value division [x]/(2σ/m) using the secret share value [x] and the public value 2σ/m which is obtained by the public value calculation unit 11 to obtain and output a secret share value [mx]r of a value obtained by right-shifting mx by σ bits (step S12).
The secure computation device 1 outputs the secret share value [mx]r (step S13).
Characteristics of Present Embodiment
Normally, in secure computation, when the multiplication of the secret share value [x] by the public real number m and the right shifting of the secret share value [x] by the σ bits are performed, the multiplication is performed and then the right shifting is performed or the right shifting is performed and then the multiplication is performed. In this case, a calculation cost for performing the multiplication and a calculation cost for performing the right shifting are incurred. On the other hand, in the present embodiment, the fact that the right shifting is equivalent to division is focused on, the public value 2σ/m is first calculated, and secure computation of public value division [x]/(2σ/m) using the secret share value [x] and the obtained public value 2σ/m is performed. The value obtained by this secure computation is equivalent to the secret share value [mx]r of the value obtained by right-shifting the multiplication result mx by σ bits. However, the multiplication and the right shifting are achieved at the same time through the secure computation of public value division with a low calculation cost. As a result, the calculation cost can be greatly reduced. Those skilled in the art of secure computation recognize that division is processing having a higher calculation cost than multiplication, and d0 not have an idea of using the division for processing of multiplication. Nevertheless, in the present embodiment, a public value 2σ/m is calculated focusing on the fact that right shifting is equivalent to division, and secure computation of public value division [x]/(2σ/m) is performed, and thus, it is possible to obtain unpredictable remarkable effects that a calculation cost can be reduced as compared with a case in which the multiplication and the right shifting are performed separately. Overflow is a problem based on performance of a processor in which secure computation has been implemented, and the present scheme provides a scheme for solving a problem based on this hardware constraint. Thus, the present scheme does not solve a pure mathematics problem, but solves a hardware implementation problem, and thus has technical characteristics. A value of 6 indicating a right shifting amount is determined according to the number of bits that can be handled by the processor. That is, a public value 2σ/m is a value determined from requirements on hardware.
Hereinafter, an algorithm capable of implementing the above-described scheme will be illustrated.
In Example 1, the secret share value [x] of the real number x is multiplied by one of two public values m0 and m1 depending on a condition c∈{0, 1}. When the public values m0 and m1 are large, the effective number of bits of a value after multiplication (the number of bits required to express that number in binary) increases to a number that cannot be multiplied any more, and thus, right shifting may be performed. In example 1, efficiency of processing in such a case is improved.
Input: [x], multipliers m0 and m1, secret share value [c] of condition c∈{0, 1} Output: [m0x] if c=0 and [m1x] if c=1
The secure computation device obtains and outputs secret share values [m0x] and [m1x] through secure computation using the secret share value [x], the multipliers m0 and m1, and the modulus p (step S21). A specific example of processing of step S21 will be described below.
The secure computation device obtains and outputs a secret share value [c?m0x:m1x] of mcx through secure computation using the secret share values [c], [m0x], and [m1x]. That is, the secure computation unit 22 obtains and outputs [m0x] when c=0 and obtains and outputs [m1x] when c=1 (step S22).
A specific example of processing of step S21 will be described. Here, it is assumed that d0=1/m0 and d1=1/m1 are divisors, p is a modulus of a positive integer, and q is a quotient of positive integers.
The secure computation device obtains and outputs a secret share value [q] of the quotient q of x/p through secure computation using the secret share value [x] and the modulus p (step S211).
The secure computation device obtains and outputs [m0x]=[x/d0]=[(x+qp)/d0]−[q]p/d0 and [m1x]=[x/d1]=[(x+qp)/d1]−[q]p/d1 through secure computation using the secret share values [x] and [q], divisors d0, . . . , dn−1 and the modulus p (step S212). A specific example of processing of step S212 will be described hereinafter.
In the secure computation device, the public value calculation unit 212a obtains and outputs public values 2σ0/m0 and 2σ1/m1 using the multipliers m0 and m1 and positive integers σ0 and σ1. Here, σ0 and σ1 are positive integers that are the number of bits indicating a right shifting amount performed when the multipliers m0 and m1 are large, respectively (step S212a).
The secure computation device performs secure computation of public value division [x+qp]/(2σ0/m0) and secure computation of public value division [x+qp]/(2σ1/m1) using the secret share values [x] and [q], the modulus p, and the public values 2σ0/m0 and 2σ1/m1 which are obtained by the public value calculation unit 212a to obtain and output a secret share value [(x+qp)m0] of a value obtained by right-shifting (x+qp)m0 by σ0 bits and a secret share value [(x+qp)m1] of a value obtained by right-shifting (x+qp)m1 by σ1 bits (step S212b).
The secure computation device obtains and outputs [m0x]=[(x+qp)m0]−[q]pm0 and [m1x]=[(x+qp)m1]−[q]pm1 through secure computation using the secret share values [(x+qp)m0], [(x+qp)m1], and [q], the modulus p, and the multipliers m0 and m1 (step S212c).
In Example 2, any function (for example, an elementary function) is approximated by the polynomial function ft(x), and further, a secret share value [ft(x)−f′t(x)] of a difference ft(x)−f′t(x) between a function ft(x) before right shift and an approximation function f′u(x) of the function ft(x) is calculated, a secret share value [ft(x)−f′t(x)], of (ft(x)−f′t(x))r obtained by right-shifting ft(x)−f′t(x) is obtained, and a secret share value [ft(x)] of the function ft(x) obtained by adding f′t(x) to f′t(x)−ft(x) is obtained through secure computation of the secret share value [ft(x)−f′t(x)], and the secret share value [f′t(x)]. Here, x is a real number, [•] is a secret share value of •, n is an integer equal to or greater than 1 (for example, n is an integer equal to or greater than 2), t=0, . . . , n−1, u=1, . . . , n−1, ft(x) is a function of a real number x, f′t(x) is an approximation function of the function ft(x), a secret share value [f′0(x)] of the approximation function f′0(x) is [f′0(x)]=c0,0+c0,1[x], a secret share value [f′u(x)] of an approximation function f′u(x) is [f′u(x)]=cu,0+cu,1[x]+cu,12[f0(x)]+ . . . +[fu−1(x)], ct,0 is a public value, and ct,1, . . . , ct,n+1 are coefficients. Here, ct,1, . . . , ct,n+1 are values with small effective numbers of bits and are values that d0 not require a shift due to overflow even when ct,1, . . . , ct,n+1 is multiplied. ft(x)−ft(x) is positive. A secret sharing scheme is not limited, and examples thereof include an additive secret sharing scheme and a Shamir's secret sharing scheme. Here, because a magnitude of ft(x)−f′t(x) is smaller than a magnitude of ft(x), it is possible to curb an overflow of the secret share value [ft(x)−f′t(x)]. Further, because the secret share value [ft(x)−f′t(x)] of the difference ft(x)−f′t(x) between the function ft(x) before right shift and the approximation function f′u(x) of the function ft(x) is calculated, it is possible to maintain high precision. The overflow is a problem based on performance of a processor in which the secure computation is implemented, and the present scheme provides a scheme for solving a problem based on constraints on this hardware. Thus, the present scheme does not solve a pure mathematics problem, but solves a hardware implementation problem, and thus has technical characteristics. For example, technical characteristics of the processor that overflows when the secret share value [ft(x)] is calculated but does not overflow when the secret share value [ft(x)−f′t(x)] is calculated are remarkable.
The secure computation device receives the secret share value [x]∈[L, R) of the real number x as an input and performs the following secure computation to output a secret share value [fn−1(x)] of a target function fn−1(x). L and R are real numbers satisfying L<R, and [L, R) indicates a left-closed, right-open interval of L or more and smaller than R. Here, an example in which n=3, a, b, c, d, f, g, h, i, j, k, s, m, n, o, p, q, α, β, γ, δ, and ζ are real numbers, f0(x)=y=δx2+ax, f1(x)=z=y(ζy+b)+cx, f2(x)=w=γ(z(αz+d)+((βx+f)+gx), f′0(x)=ix+j, f′1(x)=ky+sx+m, and f′2(x)=nz+oy+px+q will be described.
1: The secure computation device obtains [y′]=[x(δx+a−i)−j] through secure computation of a sum of products and obtains a secret share value [y′], of y′r of which a decimal point position is lowered through secure computation of right shift.
2: The secure computation device obtains [y]=[y′+(ix+j)] through secure computation using the secret share value [y′]r.
3: The secure computation device obtains [z′]=[y(ζy+b−k)+(c−s)x−m] through secure computation of a sum of products, and obtains a secret share value [z′]r of z′r of which a decimal point position is lowered through right shift.
4: The secure computation device obtains [z]=[z′+(ky+sx+m)] through secure computation using the secret share value [z′]r.
5: The secure computation device obtains [w′/γ]=[z(αz+d−n/γ)+(βx+f−o/γ)y+(g−p)x+(H−q)/γ] through secure computation of a sum of products, performs processing operations of steps S10 to S13 in which [x]=[w′/γ] and m=γ, and performs multiplication by γ and lowering of the decimal point position at the same time to obtain [w′].
6: The secure computation device obtains and outputs [w]=[w′+(nz+oy+px+q)] through secure computation.
In example 3, a secret share value of an exponential function value exp(x) of the secret share value [x] of the real number x is obtained. Because the exponential function has additivity to an input, the input is decomposed into the following three parts.
1: The secure computation device obtains [x′]=[x]−μ through secure computation. Here, μ is a minimum value of x that is assumed.
2: The secure computation device extracts bits higher than t bits after a decimal point through bit decomposition in secure computation and performs mod p conversion to obtain [x′0], . . . , [x′u−1].
3: The secure computation device sets fi and εi as a mantissa part and an exponential part of exp(2i−t), where 0≤i<u, through secure computation.
4: The secure computation device obtains
in which Fi=1 when x′i′=0 and Fi=fi when x′i′=1 for i=0, u−1 through secure computation.
5: The secure computation device calculates [ε′i]:=if [x′i] then 2εi else 1 through if-then-else gate of option disclosure with 0≤i<u through secure computation.
6: The secure computation device obtains a product [ε′] of [ε′i] regarding each i through secure computation (ε′=ε′0 . . . ε′u−1). This is a power of 2 in an exponential part of a high-order bit part of exp(x′).
7: The secure computation device obtains
through secure computation. This is a number indicated by a low-order bit part of exp(x′).
8: The secure computation device obtains [w] from [x′ρ] through secure computation. Here, w is a polynomial for approximating an exponential function exp xρ of x′ρ. The secure computation device uses, for example, the method of Example 2 in which x=x′ρ to obtain [w].
9: The secure computation device obtains and outputs [w][f′][ε′]exp(μ) through secure computation. Here, the secure computation device performs processing operations of steps S10 to S13 in which [x]=[w][f′][ε′] and m=exp(μ) in multiplication of exp(μ), and performs multiplication by exp(μ) and lowering of the decimal point position at the same time to obtain [w][f′][ε′]exp(μ).
Example of Calculated Parameters Regarding Each Elementary Function
Hardware Configuration
The secure computation device 1 in the embodiment is, for example, a device configured by a general-purpose or dedicated computer including a processor (a hardware processor) such as a central processing unit (CPU), a memory such as a random-access memory (RAM) and a read-only memory (ROM), and the like executing a predetermined program. This computer may include one processor and memory or may include a plurality of processors and memories. This program may be installed in a computer or may be recorded in a ROM or the like in advance. Further, a part or all of processing units may be configured by using an electronic circuit that implements a processing function alone, instead of an electronic circuit (circuitry) that implements a functional configuration by a program being read, like a CPU. Further, an electronic circuit constituting one device may include a plurality of CPUs.
The above-described program can be recorded on a computer-readable recording medium. An example of the computer-readable recording medium is a non-transitory recording medium. Examples of such a recording medium are a magnetic recording device, an optical disc, a photomagnetic recording medium, and a semiconductor memory.
Distribution of this program is performed, for example, by selling, transferring, or renting a portable recording medium such as a DVD or CD-ROM on which the program has been recorded. Further, this program may be distributed by being stored in a storage device of a server computer and transferred from the server computer to another computer via a network. As described above, the computer that executes such a program first temporarily stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in a storage device of the computer. When the computer executes the processing, the computer reads the program stored in the storage device of the computer and executes processing according to the read program. Further, as another form of execution of the program, the computer may directly read the program from the portable recording medium and execute the processing according to the program, and further, the processing according to the received program may be sequentially executed each time the program is transferred from the server computer to the computer. Further, a configuration in which the above-described processing may be executed by a so-called application service provider (ASP) type service that implements a processing function only by an execution instruction and result acquisition without transferring the program from the server computer to the computer. It is assumed that the program in the present embodiment includes information provided for processing of an electronic calculator and being pursuant to the program (such as data that is not a direct command to the computer, but has properties defining processing of the computer).
In each embodiment, although the present device is configured by a predetermined program being executed on the computer, at least a part of processing content of thereof may be implemented by hardware.
The present disclosure is not limited to the above-described embodiment. For example, the various processing operations described above may be executed not only in chronological order as described but also in parallel or on an individual basis as necessary or depending on the processing capabilities of the apparatuses that execute the processing operations. In addition, it is obvious that change can be made appropriately without departing from the spirit of the present disclosure.
The present disclosure can be used, for example, for machine learning performed in secure computation while concealing data or for multiplication of real number values in data mining.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2020/001683 | 1/20/2020 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2021/149106 | 7/29/2021 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
20050198093 | Son | Sep 2005 | A1 |
Entry |
---|
Dan Bogdanov et al., “High-performance secure multi-party computation for data mining applications”, International Journal of Information Security, 2012, vol. 11, Sep. 9, 2012, pp. 403-418, total 16 pages. |
Ikarashi, “Secure Real Number Operations for Secure Al-O(|p|)-Bit Communication and O(1)-Round Right Shift Protocol-”, CSS2019, 2019, 16 pages including English Translation. |
Number | Date | Country | |
---|---|---|---|
20230102267 A1 | Mar 2023 | US |