Principle violation detection device, principle violation detection method, and principle violation detection program
The policy violation detection device uses fully homomorphic encryption to assess matching stability without revealing preferences, ensuring compliance with service policies and improving efficiency by avoiding conditional branching and noise-increasing operations.
Patent Information
- Application Number
- JP2023177036
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2023-10-12
- Publication Date
- 2024-10-07
AI Technical Summary
Users of matching services are unable to verify whether the matching results adhere to the service policy without revealing their preferences, and existing methods using fully homomorphic encryption struggle to implement algorithms with conditional branching.
A policy violation detection device and method that utilizes fully homomorphic encryption to determine matching stability by converting preference orders into encrypted vectors, performing operations without conditional branching, and using inner products and logical sums to assess matching results.
Enables determination of matching stability without disclosing participants' private inputs, even if the matching algorithm is secret, and reduces computational inefficiencies by avoiding noise-increasing operations.
Smart Images

Figure 2024137631000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a policy violation detection device, a policy violation detection method, and a policy violation detection program for detecting whether a matching process in a matching service violates a policy presented in advance. [Background technology]
[0002] The optimization problem of matching in a bipartite graph has long been studied as a mathematical model of the job matching problem for allocating workers to jobs. Matching that optimizes overall satisfaction is reduced to a minimum flow problem in a weighted minimal complete bipartite graph. The stable marriage problem in Non-Patent Document 1 is a problem that adopts the concept of stability to this matching, and stable matching can be found in O(n 2 An algorithm has been proposed to find the [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2023-055512 A [Patent Document 2] Patent Application No. 2022-152630 Specification [Non-patent literature]
[0004] [Non-Patent Document 1] D. Gale and LS Shapley. College admissions and the stability of marriage. The American Mathematical Monthly, Vol. 69, pp. 9-15, 1962. [Non-Patent Document 2] Z. Brakerski and R. Perlman. Lattice-based fully dynamic multi-key FHE with short ciphertexts. Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), Vol. 9814, No. 468, pp. 190-213, 2016. [Non-Patent Document 3] A. Acar, H. Aksu, AS Uluagac and M. Conti. A survey on homomorphic encryption schemes: Theory and implementation. ACM Computing Surveys (Csur), 51(4):1-35, 2018. [Non-Patent Document 4] D. Gusfield and RW Irving. The Stable Marriage Problem: Structure and Algorithms. The MIT Press, 1989. Summary of the Invention [Problem to be solved by the invention]
[0005] However, when a matching service is provided that employs a stability evaluation criterion, as in Non-Patent Document 1, users of the service have no way of being sure of the policy based on which the matching results they are receiving are actually based, even if the service policy is presented, without disclosing their own preferences to other participants.
[0006] In response to this, Patent Document 1 discloses a matching algorithm and shows a method for detecting any violation of policy if the same calculation can be performed. However, since the matching algorithm is the intellectual property of the service provider and may be determined based on the service provider's internal circumstances, it is not necessarily possible to disclose it.
[0007] In addition, Patent Document 2 discloses a method for determining whether a user's preferences are disclosed to other participants without disclosing the user's preferences when an algorithm for determining whether a policy violation exists, even though the matching algorithm is not disclosed. In this method, a means for determining whether a policy violation exists is implemented using Fully Homomorphic Encryption (FHE). Although fully homomorphic encryption can theoretically execute any algorithm, it is not self-evident how to implement it. Although an open source library is provided for basic operations, algorithms that include conditional branching (IF statements) cannot be implemented as is because the operator cannot see the results of the conditional expressions.
[0008] An object of the present invention is to provide a policy violation detection device, a policy violation detection method, and a policy violation detection program that can determine whether the processing result satisfies matching stability even if the matching processing algorithm is not disclosed. [Means for solving the problem]
[0009] The policy violation detection device according to the present invention includes a receiving unit that receives, from each of the terminals of participants that has acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, data of the matching result and a preference order indicating the preference order on which the matching result is based, in a state encrypted by a homomorphic encryption method; a determining unit that executes an algorithm for determining whether the matching result is stable or not based on the encrypted matching result and the preference order by the homomorphic encryption method, and calculates a value indicating the determination result in an encrypted state; and a determining unit that transmits the value calculated by the determining unit to the terminal in an encrypted state and has the terminal decrypt the value to determine whether the matching result is stable or not. and a transmission unit that notifies the matching result whether the matching result is valid or not, and the algorithm causes the judgment unit to execute the following steps without conditional branching: determining the preference ranking of the matching partner by taking the inner product of a vector indicating the preference ranking of each participant in the other group and a one-hot vector indicating the matching partner in the matching result; creating two matrices for each group in which vectors indicating the preference rankings are arranged in which only elements of the vector indicating the preference rankings that are higher than the preference ranking of the matching partner are set to 1 and the rest are set to 0; and calculating, for the two matrices, the logical sum or the negation of all logical products between the i-th row and j-th column of one and the j-th row and i-th column of the other, as a value indicating the judgment result.
[0010] The policy violation detection device according to the present invention includes a receiving unit that receives, from each of the terminals of participants that has acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, data of the matching result and a preference order indicating the preference order on which the matching result was based, in a state encrypted by a homomorphic encryption method; a determining unit that executes an algorithm that determines whether the matching result is stable or not based on the encrypted matching result and the preference order using the homomorphic encryption method, and calculates a value indicating the determination result in an encrypted state; and a determining unit that transmits the value calculated by the determining unit in an encrypted state to the terminal and has the terminal decrypt the value. and a transmission unit that notifies the matching result of whether or not the matching result is valid, and the algorithm may cause the judgment unit to execute the following steps without conditional branching: determining a preference ranking of the matching partner by taking an inner product of a vector indicating the preference ranking of each participant in the other group and a one-hot vector indicating the matching partner in the matching result; creating two matrices for each group in which vectors indicating the preference rankings are arranged in which only elements of the vector indicating the preference rankings that are higher than the preference ranking of the matching partner are set to 1 and the rest are set to 0; and calculating, as a value indicating the judgment result, the sum of the logical products of the i-th row and j-th column of one of the two matrices and the j-th row and i-th column of the other.
[0011] The policy violation detection method according to the present invention includes a receiving step of receiving, from each of the terminals of the participants that has acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, the matching result and data of a preference order indicating the preference order on which the matching result is based, in a state encrypted by a homomorphic encryption method; a determining step of executing, based on the encrypted matching result and the preference order by the homomorphic encryption method, an algorithm for determining whether the matching result is stable or not, and calculating, in an encrypted state, a value indicating the determination result; and a determining step of transmitting the value calculated in the determining step to the terminal in an encrypted state and causing the terminal to decrypt the value, thereby determining whether the matching result is stable or not. and a sending step of notifying the user whether the matching result is valid or not, and in the determination step, the computer executes the following steps without conditional branching: determining the preference ranking of the matching partner by taking the inner product of a vector indicating the preference ranking of each participant in the other group and a one-hot vector indicating the matching partner in the matching result; creating two matrices for each group in which vectors indicating the preference rankings are arranged in which only elements of the vector indicating the preference rankings that are higher than the preference ranking of the matching partner are set to 1 and the rest are set to 0; and calculating, for the two matrices, the logical sum or the negation of all logical products between the i-th row and j-th column of one group and the j-th row and i-th column of the other group as a value indicating the determination result.
[0012] The policy violation detection method according to the present invention includes a receiving step of receiving, from each of the terminals of participants that has acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, data of the matching result and a preference order indicating the preference order on which the matching result was based, in a state encrypted by a homomorphic encryption method; a determining step of executing, based on the encrypted matching result and the preference order by the homomorphic encryption method, an algorithm for determining whether the matching result is stable or not, and calculating, in an encrypted state, a value indicating the determination result; and transmitting the value calculated in the determining step to the terminal in an encrypted state and causing the terminal to decrypt the value. and a sending step of notifying whether the matching result is valid or not by performing a process similar to the process described above. In the determination step, the following steps may be executed without conditional branching: determining a preference ranking of the matching partner by taking an inner product of a vector indicating the preference ranking of each participant in the other group and a one-hot vector indicating the matching partner in the matching result; creating two matrices for each group in which vectors indicating preference rankings are arranged in which only elements of the vector indicating preference rankings that are higher than the preference ranking of the matching partner are set to 1 and the rest are set to 0; and calculating, as a value indicating the determination result, the sum of the logical products of the i-th row and j-th column of one of the two matrices and the j-th row and i-th column of the other.
[0013] A policy violation detection program according to the present invention causes a computer to function as the policy violation detection device. Effect of the Invention
[0014] According to the present invention, even if the matching processing algorithm is not disclosed, it is possible to determine whether the processing result satisfies the matching stability. [Brief description of the drawings]
[0015] [Figure 1]1 is a diagram showing an overall configuration of a detection system that implements a policy violation detection method in a first embodiment, and an overview of the service. [Diagram 2] FIG. 2 is a diagram illustrating a functional configuration of a detection server in the first embodiment. [Diagram 3] 4 is a sequence diagram showing a detection method performed by the detection system in the first embodiment. FIG. [Figure 4] FIG. 2 is a diagram illustrating a comparison between stable matching and non-stable matching in the first embodiment. [Diagram 5] FIG. 1 is a diagram showing a conventional stability determination algorithm on which the first embodiment is based. [Figure 6] FIG. 2 is a diagram illustrating a stability determination algorithm that can be executed in fully homomorphic encryption in the first embodiment. [Figure 7] FIG. 13 is a diagram showing the preference order of each participant used in a calculation example of the first embodiment. [Figure 8] FIG. 11 is a diagram showing matching and blocking pairs used in a calculation example of the first embodiment. [Figure 9] FIG. 13 is a diagram showing a preference ranking converted from a preference order according to a calculation example of the first embodiment, and a ranking of matching partners. [Figure 10] FIG. 13 is a diagram showing a result of comparing the preference rankings of each participant and the preference rankings of matching partners according to a calculation example of the first embodiment. [Figure 11] FIG. 13 is a diagram showing a result of checking the existence of a blocking pair by a calculation example of the first embodiment. [Figure 12] FIG. 11 is a diagram illustrating a stability determination algorithm that can be executed in fully homomorphic encryption in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] [First embodiment] A first embodiment of the present invention will be described. In this embodiment, a male-female matching service is exemplified as a service used by a user. If a service presents itself as being stable and outputs results based on a different policy, the policy violation detection method of this embodiment detects the policy violation. The policy violation detection method of this embodiment can also be applied to similar matching services such as job matching.
[0017] FIG. 1 is a diagram showing the overall configuration of a detection system 100 that implements a policy violation detection method according to the present embodiment, and an overview of the service. The detection system 100 includes a detection server 1 (policy violation detection device), an execution server 2 that provides a matching service, and a terminal 3 for each of a plurality of participants that use the service.
[0018] The detection server 1 detects whether the result of the matching process in the execution server 2 violates a matching policy presented in advance, and notifies the terminals 3 of the participants. Here, since the matching algorithm is confidential, the detection server 1 does not verify whether the processing results match the results of executing the same algorithm as the execution server 2, but rather determines whether they satisfy the conditions presented as a policy.
[0019] Let n be the number of participants. Each participant receives a private input x 1 ,…,x n and the private input of participant i is x i Let ∈X. Input x 1 ,…,x n Suppose that a participant (terminal 3) requests the execution server 2 to provide a result y∈Y that satisfies a requirement L. L can be written as L ⊆ X×…×X×Y. That is, the requirement of a participant is (x 1 ,…,x n The aim is to obtain a result y such that (y, y)∈L.
[0020] The execution server 2 selects y and provides it to the participant. The execution server 2 selects (x 1 ,…,x n If the participant is expected to provide y such that (x , y)∈L, but the execution server 2 is malicious, 1 ,…,x n , y') may select y' that does not belong to L. The participant's terminal 3 communicates with the execution server 2 and the detection server 1 (verifier), which is a third-party server, to execute the protocol and obtain from the detection server 1 the verification result that determines whether the matching result satisfies stability. Here, the input is (x 1 ,…,x n ,y), then (x 1 ,…,x n Assume that there exists a decision algorithm that outputs 1 if y,y)∈L, and 0 otherwise.
[0021] The requirements for the policy violation detection protocol in this embodiment are as follows. 1. Verifiability: Participants can verify x 1 ,…,x n For the result y for (x 1 ,…,x n Accept y if and only if, y)∈L. 2. Privacy: The protocol ensures that participants’ private inputs are not revealed to other participants or verifiers. 3. Selectability: The execution server 2 can select any y∈Y.
[0022] The participants (terminals 3) and the verifier (detection server 1) are assumed to be semi-honest and are interested in the order of preference of the participants, but will not carry out any processing other than the predetermined processing.
[0023] The terminal 3 sends the participants' own preference orders to the execution server 2 (1). The execution server 2 selects matching results based on the received preference orders and sends them to the terminals 3 of the participants (2). The terminal 3 that receives the matching result sends the preference order and the matching result encrypted by fully homomorphic encryption to the detection server 1 (3). The detection server 1 executes a judgment algorithm by homomorphic computation based on the encrypted data indicating the preference order (preference ranking) and the encrypted matching result (4), and sends the encrypted verification result to the participant's terminal 3 (5).
[0024] Here, fully homomorphic encryption is encryption that allows arbitrary calculations to be performed while keeping the data encrypted, and is defined as follows (see, for example, Non-Patent Documents 2 and 3).
[0025] Definition 1. Fully homomorphic encryption HE is a quintuple of algorithms (Setup, Keygen, Enc, Dec, Eval) that satisfy correctness, simplicity, and security. Setup param←Setup(1 λ ): Output the public parameter param. ·Key generation (pk,sk)←Keygen(param): Output the public encryption key pk and the private decryption key sk. ·Encryption c←Enc(pk,μ): Encrypt message μ∈{0,1} using public key pk and output ciphertext c. ·Decoding μ←Dec(sk,c): Decrypt the ciphertext c using the private key sk and output the message μ. ·Homomorphic operation c^←Eval(C,(c 1 ,…,c l ),pk): Using the public key pk, 1 ,…,c l For any circuit C:{0,1} l →Apply {0,1} and output the ciphertext c^.
[0026] Note that validity is the property that the ciphertext obtained by the encryption algorithm and homomorphic computation algorithm can be correctly decrypted. Simplicity is the property that the size of the ciphertext after homomorphic computation does not depend on the size of the circuit used for the computation. Security is the property that the success rate of an attack by an arbitrary attacker is so small that it can be ignored. It is obvious that if homomorphic operations are possible for any circuit, then it is possible to construct fully homomorphic encryption that is homomorphic for any algorithm. Therefore, we will redefine fully homomorphic encryption as follows. Hereinafter, when we talk about fully homomorphic encryption, the following definition will apply.
[0027] Definition 2: Fully homomorphic encryption HE is a quintuple of algorithms (Setup, Keygen, Enc, Dec, Eval) that satisfy correctness, simplicity, and security. Setup param←Setup(1 λ ): Output the public parameter param. ·Key generation (pk,sk)←Keygen(param): Output the public encryption key pk and the private decryption key sk. ·Encryption c←Enc(pk,μ): Encrypt an arbitrary message μ using the public key pk and output the ciphertext c. ·Decoding μ←Dec(sk,c): Decrypt the ciphertext c using the private key sk and output the message μ. ·Homomorphic operation c^←Eval(A,(c 1 ,…,c n ),d,pk): Public key pk and ciphertext c 1 ,…,c n Using and d, calculate an arbitrary algorithm A: X×…×X×Y→{0,1} and output the ciphertext ĉ.
[0028] FIG. 2 is a diagram showing the functional configuration of the detection server 1 in this embodiment. The detection server 1 is a server device equipped with a control unit 10, a storage unit 20, various data input / output devices, communication devices, etc., but can be replaced with various information processing devices (computers) such as a personal computer.
[0029] The control unit 10 is a part that controls the entire detection server 1, and realizes each function in this embodiment by appropriately reading and executing various programs stored in the storage unit 20. The control unit 10 may be a CPU.
[0030] The storage unit 20 is a storage area for storing various programs for causing the hardware group to function as the detection server 1, various data, and the like, and may be a ROM, a RAM, a flash memory, a hard disk drive (HDD), or the like. Specifically, the memory unit 20 stores a program (policy violation detection program) for causing the control unit 10 to execute each function of this embodiment, as well as encrypted data such as verification request data and verification results from the participant's terminal 3.
[0031] The control unit 10 includes a receiving unit 11, a determining unit 12, and a transmitting unit 13. The receiving unit 11 receives from each terminal 3 that has obtained the matching result processed by the execution server 2 based on the preference order data of each participant, the processing result and the preference order data on which the processing result is based, in a state encrypted using a homomorphic encryption method.
[0032] The determination unit 12 executes the algorithm described below, which determines whether or not the stability, which is the processing policy of the execution server 2, is satisfied, based on the encrypted processing result and the encrypted preference order data, using the homomorphic encryption method, and calculates a value indicating the determination result in an encrypted state.
[0033] The transmission unit 13 transmits the value calculated by the judgment unit 12 in an encrypted state to the terminal 3, and has the terminal 3 decrypt this value to notify the terminal 3 of whether or not the processing result by the execution server 2 is legitimate as a verification result.
[0034] FIG. 3 is a sequence diagram showing a detection method performed by the detection system 100 in this embodiment. Here, the input (x 1 ,…,x n ,y), (x 1 ,…,x n Assume that there exists a decision algorithm V that outputs 1 if y, y)∈L and 0 otherwise, and that V is homomorphically operandi- cal.
[0035] In step S1, the terminal 3A of the participant representative i ̂ ∈ {1,…,n} executes Setup(1 λ ) to get the parameter param and publish it.
[0036] In step S2, the terminal 3A executes Keygen(param) to obtain (pk, sk). The terminal 3A publishes the public key pk, and distributes and shares the private key sk to the terminals 3 of all participants.
[0037] In step S3, the terminal 3 of each participant i transmits x i Send ∈X to execution server 2.
[0038] In step S4, the execution server 2 selects an arbitrary matching result yεY and transmits it to the terminal 3 of each participant.
[0039] In step S5, the terminal 3 of each participant i i 1 ←Enc(pk,x i ) and c 2 ←Enc(pk,y) is sent to the detection server 1 using a secure communication channel. Note that c 2 may be transmitted by only one arbitrary participant (for example, the terminal 3A of the representative î).
[0040] In step S6, the detection server 1 performs the following: r'←Eval(V,(c 1 1 ,…,c n 1 ),c2 , pk) and transmits the encrypted verification result r' to the terminal 3 of each participant.
[0041] In step S7, the terminal 3 of each participant i executes r←Dec(r',sk), and accepts the matching result y if r=1, and rejects it otherwise.
[0042] Below, we explain the decision algorithm V for verifying stable matching and its specific implementation method using fully homomorphic encryption.
[0043] [Definition of stable matching] A matching instance I consists of two relatively prime sets M and W, each with n elements. M is the set of men, and W is the set of women. Each element x is ordered by a strict total ordering, called the preference order, with respect to the elements of the other set.
number
[0044] Definition 3. Given a matching Z, a male-female pair (m', w') that satisfies all of the following conditions 1 to 3 is called a blocking pair of Z.
number
[0045] In other words, a blocking pair is a pair in which both elements (w', m') are preferred (have a higher preference ranking) than the current paired elements (Z(m'), Z(w')). When such pairs do not exist, the state can be said to be stable and inability to cheat exists.
[0046] FIG. 4 is a diagram illustrating a comparison between stable matching and non-stable matching in this embodiment. Here, each of the men A to D and the women a to d has a preference order for opposite-sex groups. For example, the man A has a preference order of the women b, c, a, and d in that order.
[0047] In the example of a globally optimal but non-stable matching, man A is paired with woman c, and woman b is paired with man C, but since man A prefers woman b and woman b prefers man A, the pair of man A and woman b exists as a blocking pair. On the other hand, in the example stable matching, no such blocking pair exists.
[0048] [Stability determination algorithm] Given an instance and a matching, we can determine whether the matching is stable or not in O(n 2 A determination algorithm that checks the computational complexity of The policy violation detection method of this embodiment is implemented by converting this determination algorithm and using fully homomorphic encryption.
[0049] FIG. 5 is a diagram showing a conventional stability determination algorithm on which this embodiment is based. In this decision algorithm, for every participant m in one group (male) (line 1), we examine the preference ordering of each female w that she prefers over the presented pair partner Z(m) (line 2).
[0050] In the preference order of w, if m prefers m over the presented pair's counterpart Z(w) (line 3), a blocking pair (m, w) exists, so 0 is returned (line 4). If all combinations are not blocking pairs, 1 is returned (line 9).
[0051] When attempting to implement this determination algorithm using fully homomorphic encryption, since the result of the conditional branch determination formula (if statement) is also encrypted, the calculator cannot know this and cannot implement it. Therefore, in this embodiment, this determination algorithm is converted into a form without conditional branches.
[0052] [Implementation using fully homomorphic encryption] Open-source software such as HElib that handles basic operations implemented by homomorphic encryption has been published. In this embodiment, a stability determination algorithm without conditional branches is constructed only by using the basic operations provided in such a published library. The functions to be used are as follows. 1. Addition of two integers: ADD(x, y) outputs x + y, which is the sum of x and y. 2. Multiplication of an integer and a bit: MULT(x, y) outputs the integer x when the bit y = 1, and outputs the integer 0 when y = 0. 3. Comparison of two integers: COMP(x, y) outputs 1 when x < y, and outputs 0 when x ≥ y. 4. AND is the logical product of bits. 5. OR is the logical sum of bits. 6. NOT is the logical negation of bits.
[0053] As a preliminary preparation for the stability determination algorithm, first, the private input of the participant, that is, the preference order, is converted into the form of a list of preference rankings. That is, the list of male participant m i is L mi =(P mi (w 1 ), P mi (w 2 ), …, P mi (w n)) and female participants w i The list of wi =(P wi (m 1 ),P wi (m 2 ),…,P wi (m n )). Encryption is performed for each element of the list. That is, the m i The ciphertext that c sends to the verifier is i m =(c i,1 m ,c i,2 m ,…,c i,n m ), where c i,j m ←Enc(pk,P mi (w j )).
[0054] In addition, the matching result y sent to the verifier is a pair of one-hot vectors (y m ,y w ), that is, m i The other person is w j When (Z(m i )=w j ), y i m is an n-bit string in which only the j-th bit is 1 and the rest are 0. Similarly, Z(w i )=m j Then, y i w is an n-bit string in which only the jth bit is 1 and the rest are 0.
[0055] FIG. 6 is a diagram showing a stability determination algorithm that can be executed in the fully homomorphic encryption in this embodiment. First, the determination unit 12 initializes the output value (r=0) (line 1), and then performs a loop process the number of times equal to the number of participants (n) in each of the male and female groups (lines 2 to 15).
[0056] The determination unit 12 determines whether the i-th participant (m i and wi ) for the presented matching results, initialize the preference ranking of the matching partners (s m =0,s w = 0) (lines 3-4), the preference rankings of the matching partners are calculated by the inner product of the list (vector) of preference rankings and the one-hot vector indicating the matching result, i.e., by multiplying and adding each element. m ,s w ) (lines 5 to 10).
[0057] Next, the determination unit 12 determines whether the i-th participant (m i and w i ), compare each element of the preference ranking list with the matching partner's preference ranking, and create a list in which elements higher than the matching partner's preference ranking are set to 1 and other elements are set to 0 (lines 11 to 14). This is performed for each participant, resulting in two matrices (e m ,e w ) is created.
[0058] Next, the determination unit 12 determines whether the combination is a blocking pair (t i,j =1) or not (t i,j =0) (line 18). Then, the decision unit 12 uses a logical sum and sets r=1 if any of the combinations is a blocking pair (line 19). Finally, the determination unit 12 outputs whether the matching result is stable (r=1) or not (r=0) by logically negating r.
[0059] This stability determination algorithm does not use conditional branching and is composed only of the aforementioned functions ADD, MULT, COMP, ADD, OR, and NOT, and has a computational complexity of O(n 2 ).
[0060] [Calculation example] An example of calculation using the stability determination algorithm is shown below. Here, the number of participants was four men and four women (n=4).
[0061] FIG. 7 is a diagram showing the preference order of each participant used in the calculation example of this embodiment. For example, male m 1 The order of preference by w 2 ,w 3 ,w 1 ,w 4 The order of preference by woman w1 is m 2 ,m 1 ,m 3 ,m 4 The order is as follows. Similarly, the preference orders for all participants are entered.
[0062] FIG. 8 is a diagram showing matching and blocking pairs used in a calculation example of this embodiment. Matching Z={(m 1 ,w 3 ),(m 2 ,w 1 ),(m 3 ,w 2 ),(m 4 ,w 4 In the figure, matching partners in the preference order are shown shaded and pairs are connected by lines. In this example, (m 1 ,w 2 ) is a blocking pair, so this matching Z is not stable.
[0063] FIG. 9 is a diagram showing the preference ranking converted from the preference order according to the calculation example of this embodiment, and the ranking of matching partners. In this algorithm, the preference order is converted into a list of preference rankings, as shown in the figure, where matching partners are shaded.
[0064] Matching Z is y m =((0,0,1,0),(1,0,0,0),(0,1,0,0),(0,0,0,1)) and y wIt is represented as a one-hot vector, e.g., =((0,1,0,0),(0,0,1,0),(1,0,0,0),(0,0,0,1)). The current preference ranking of each participant is calculated by dividing the list of preference rankings of each participant by y m Or y w can be calculated by multiplication and addition. For example, m 1 For , the list of preference rankings is (3,1,2,4), and the matching partner is w 3 (expressed as (0,0,1,0)). Therefore, w 3 m 1 The preference ranking in can be calculated as 3·0 + 1·0 + 2·1 + 4·0 = 2.
[0065] FIG. 10 is a diagram showing the results of a comparison between the preference rankings of each participant and the preference rankings of matching partners according to a calculation example of this embodiment. Each participant's preference ranking of their matched partner is compared with the preference rankings of the other candidates (participants in the other group), and a value of 1 is assigned to participants whose preference ranking is lower (more preferred) than their matched partner, and a value of 0 is assigned to participants whose preference ranking is not lower (more preferred).
[0066] For example, m 1 The matching partner of w 3 The preference ranking of is 2, but as shown in Figure 9, w 2 The preference ranking is 1 w 3 Since it is smaller (higher) than w 2 1 is assigned to each participant, and the other participants w 1 ,w 3 ,w 4 is assigned the value 0. Similarly, w 2 m, which is a matching partner of 3 The preference ranking of is 2, but as shown in Figure 9, m 1 The preference ranking of is 1 and m 3 Since it is smaller (higher) than m 1 1 is assigned to each participant, and m 2 ,m 3 ,m 4is assigned the value 0.
[0067] FIG. 11 is a diagram showing the results of checking the existence of a blocking pair by a calculation example of this embodiment. Here, we show the results of performing an AND operation on each row of one table and each column of the other table in Figure 10, which shows the comparison of preference rankings between matching partners and other candidates for male and female participants. Here, a combination with a value of 1 indicates a blocking pair. In other words, if all elements in this table are 0, it is a stable matching, otherwise it is determined to be an unstable matching. In this example, m 1 And w 2 Only the combination of has been detected as a blocking pair.
[0068] According to this embodiment, the detection server 1 realizes a stability determination algorithm including conditional branching using only basic operations (ADD, MULT, COMP, ADD, OR, NOT) that do not include conditional branching, and implements it using fully homomorphic encryption. Therefore, even if the matching processing algorithm is not disclosed, the detection server 1 can determine whether the matching result satisfies stability and notify the participants of the determination without disclosing the participants' private inputs.
[0069] [Second embodiment] A second embodiment of the present invention will now be described. In the first embodiment, a method for determining whether a policy violation occurs when providing stable matching without disclosing one's preferences to other participants is shown. In this method, a specific determination algorithm using fully homomorphic encryption is shown.
[0070] Here, fully homomorphic encryption generally uses lattice encryption. For example, BGV in Non-Patent Document 2 is based on lattice encryption. In lattice encryption, an increase in noise becomes an issue when multiplication is performed, and when the amount of noise exceeds a certain level, correct decryption becomes impossible. BGV is a homomorphic encryption in a category called leveled homomorphic encryption, and the number of times multiplication can be performed for one ciphertext can be set by a parameter set in advance. Increasing the number of times multiplication can be performed generally increases the size of the ciphertext and the processing time. HELib, one of the libraries that provides implementations in BGV, provides functions that perform various basic operations while keeping the data encrypted. One of the basic operations is an OR operation on bit strings, but this operation increases noise as does multiplication. In the first embodiment, the number of OR operations for one ciphertext increases depending on the number of people participating in matching, so there was a problem that the calculation became inefficient as the number of people involved increased.
[0071] Therefore, in this embodiment, a method is shown in which the OR operation in the first embodiment is replaced with an ADD operation, which does not increase noise, so that the number of operations that increase noise for one ciphertext does not change even if the number of people participating in matching increases.
[0072] In the detection system 100 of this embodiment, the stability determination algorithm executed in the detection server 1 is different from that in the first embodiment, and the value of the verification result is also different, so the processing in the terminal 3 of each participant that receives the verification result is also changed.
[0073] Specifically, the terminal 3 is notified of the ciphertext of the number of blocking pairs as a verification result. That is, in step S7 of the sequence (FIG. 3) showing the detection method implemented by the detection system 100, the terminal 3 of each participant i executes r←Dec(r',sk), and accepts the matching result y if r=0, and rejects it otherwise.
[0074] FIG. 12 is a diagram showing a stability determination algorithm that can be executed in the fully homomorphic encryption in this embodiment. The first to eighteenth lines are the same as those in the algorithm of the first embodiment (FIG. 6). The determination unit 12 determines whether the two matrices (e m ,e w ), we check whether this combination is a blocking pair (t i,j =1) or not (t i,j =0) (line 18).
[0075] Then, the determination unit 12 determines whether t i,j The sum is calculated by sequentially adding up the numbers, and the number of blocking pairs, r, is obtained (line 19). Finally, the determination unit 12 outputs the number r of blocking pairs as a verification result indicating whether the matching result is stable (r=0) or not (r>0).
[0076] This stability determination algorithm does not use conditional branching and is configured using only the above-mentioned functions ADD, MULT, COMP, and ADD, and does not require the OR operation required in the first embodiment.
[0077] According to this embodiment, the detection server 1 realizes a stability determination algorithm including a conditional branch using only basic operations (ADD, MULT, COMP, ADD) that do not include a conditional branch, and implements the algorithm using fully homomorphic encryption. Therefore, even if the matching processing algorithm is not disclosed, the detection server 1 can determine whether the matching result satisfies stability and notify the participants without disclosing the participants' private inputs. Furthermore, the detection server 1 realizes the stability determination algorithm without using the OR operation used in the first embodiment. This suppresses an increase in noise in fully homomorphic encryption and makes the processing more efficient.
[0078] According to the above-described embodiment, for example, the legitimacy of services provided over the Internet can be verified by a third party, which makes it possible to contribute to Goal 9 of the United Nations-led Sustainable Development Goals (SDGs), which is to "build resilient infrastructure, promote sustainable industrialization and foster innovation."
[0079] Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. Furthermore, the effects described in the above-described embodiments are merely a list of the most preferable effects resulting from the present invention, and the effects of the present invention are not limited to those described in the embodiments.
[0080] The policy violation detection method by the detection server 1 is realized by software. When realized by software, the programs constituting this software are installed in an information processing device (computer). These programs may be recorded on removable media such as CD-ROMs and distributed to users, or may be distributed by being downloaded to the user's computer via a network. Furthermore, these programs may be provided to the user's computer as a Web service via a network without being downloaded. [Explanation of symbols]
[0081] 1. Detection server (policy violation detection device) 2. Execution Server 3. 3A terminal 10 Control section 11 Receiving section 12 Judgment section 13 Transmitter 20 Memory section 100 Detection System
Claims
1. a receiving unit that receives, from each of the terminals of the participants that have acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, the matching result and data of a preference order indicating the preference order on which the matching result is based, in a state encrypted by a homomorphic encryption method; a determination unit that executes an algorithm for determining whether the matching result is stable or not based on the encrypted matching result and the preference order by the homomorphic encryption method, and calculates a value indicating the determination result in an encrypted state; a transmission unit that transmits the value calculated by the determination unit in an encrypted state to the terminal and notifies the terminal of whether or not the matching result is valid by having the terminal decrypt the value, The algorithm comprises: A step of calculating a preference ranking of a matching partner by calculating an inner product of a vector indicating a preference ranking of each participant of the other group and a one-hot vector indicating a matching partner in the matching result; A step of creating two matrices for each group in which vectors indicating the preference rankings are arranged in which only elements that are higher than the preference ranking of the matching partner are set to 1 and the rest are set to 0; a step of calculating, as a value indicating the judgment result, the logical sum or the negation of the logical sum for all logical products between row i, column j of one and row j, column i of the other for the two matrices, without conditional branching.
2. a receiving unit that receives, from each of the terminals of the participants that have acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, the matching result and data of a preference order indicating the preference order on which the matching result is based, in a state encrypted by a homomorphic encryption method; a determination unit that executes an algorithm for determining whether the matching result is stable or not based on the encrypted matching result and the preference order by the homomorphic encryption method, and calculates a value indicating the determination result in an encrypted state; a transmission unit that transmits the value calculated by the determination unit in an encrypted state to the terminal and notifies the terminal of whether or not the matching result is valid by having the terminal decrypt the value, The algorithm comprises: A step of calculating a preference ranking of a matching partner by calculating an inner product of a vector indicating a preference ranking of each participant of the other group and a one-hot vector indicating a matching partner in the matching result; A step of creating two matrices for each group in which vectors indicating the preference rankings are arranged in which only elements that are higher than the preference ranking of the matching partner are set to 1 and the rest are set to 0; a step of calculating the sum of the logical products of row i, column j of one of the two matrices and row j, column i of the other of the two matrices as a value indicating the judgment result, without conditional branching, and causing the judgment unit to execute the steps of:
3. a receiving step of receiving, from each of the terminals of the participants that have acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, the matching result and data of a preference order indicating the preference order on which the matching result was based, in a state encrypted by a homomorphic encryption method; a determination step of executing an algorithm for determining whether the matching result is stable or not based on the encrypted matching result and the preference order by the homomorphic encryption method, and calculating a value indicating the determination result in an encrypted state; a transmission step of transmitting the value calculated in the determination step to the terminal in an encrypted state and notifying the terminal of whether or not the matching result is valid by having the terminal decrypt the value, In the determining step, A step of calculating a preference ranking of a matching partner by calculating an inner product of a vector indicating a preference ranking of each participant of the other group and a one-hot vector indicating a matching partner in the matching result; A step of creating two matrices for each group in which vector elements indicating preference rankings are arranged, with only elements that are higher than the preference ranking of the matching partner set to 1 and the rest set to 0; a step of calculating, for the two matrices, the logical sum or the negation of all logical products between row i, column j of one and row j, column i of the other as a value indicating the judgment result, without conditional branching.
4. a receiving step of receiving, from each of the terminals of the participants that have acquired a matching result of two groups processed by an execution server based on the preference order of the other group held by each of the participants, the matching result and data of a preference order indicating the preference order on which the matching result was based, in a state encrypted by a homomorphic encryption method; a determination step of executing an algorithm for determining whether the matching result is stable or not based on the encrypted matching result and the preference order by the homomorphic encryption method, and calculating a value indicating the determination result in an encrypted state; a transmission step of transmitting the value calculated in the determination step to the terminal in an encrypted state and notifying the terminal of whether or not the matching result is valid by having the terminal decrypt the value, In the determining step, A step of calculating a preference ranking of a matching partner by calculating an inner product of a vector indicating a preference ranking of each participant of the other group and a one-hot vector indicating a matching partner in the matching result; A step of creating two matrices for each group in which vector elements indicating preference rankings are arranged, with only elements that are higher than the preference ranking of the matching partner set to 1 and the rest set to 0; calculating, for the two matrices, the sum of the logical products of row i, column j and row j, column i of the other as a value indicating the judgment result, without conditional branching.
5. 3. A policy violation verification program for causing a computer to function as the policy violation detection device according to claim 1.
Citation Information
Patent Citations
Encryption processing device, encryption processing method, and encryption processing program
JP2016114855A
Method and apparatus for validating processed data
JP2017509076A
System and method for providing private stable matchings
US20070150404A1
Online video distribution support method and online video distribution support apparatus
JP2022152630A
Verification device, verification method and verification program
JP2023055512A
