Systems and methods for privacy preserving unsupervised learning
By calculating the secure distance between two computers through unintentional transmission of N to 1 (OT), the problems of low efficiency and poor scalability in the existing technology are solved. This enables efficient clustering of large datasets with privacy-preserving unsupervised learning and avoids data leakage.
Patent Information
- Application Number
- CN202310761586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-06
- Filing Date
- 2020-11-04
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2040-11-04
AI Technical Summary
Existing technologies for privacy-preserving unsupervised learning suffer from low efficiency, difficulty in scaling to large datasets, and data leakage, especially when multiple parties hold the dataset, making it difficult to perform cluster analysis without revealing the data content.
The method employs privacy-preserving multiplication to calculate secure distance based on N-out-of-1 unintentional transmission (OT). Unsupervised learning is achieved through privacy-preserving joint computation between the two computers. Specifically, it includes privacy-preserving multiplication, secure distance calculation, and private updating of cluster centroids. Obfuscated circuits and secret sharing techniques are used to protect data privacy.
It improves the efficiency and scalability of unsupervised learning, enabling cluster analysis of large datasets while protecting data privacy, avoiding data leakage and cluster identification, and is more efficient than traditional methods.
Smart Images

Figure CN116756602B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application entitled "System and Method for Privacy-Preserving Unsupervised Learning", with an international filing date of November 4, 2020, international application number PCT / US2020 / 058980, and Chinese national phase application number 202080076982.6. Technical Field
[0002] This disclosure relates generally to the field of computing systems, and more specifically to a dual-server privacy-preserving unsupervised learning technique. Background Technology
[0003] This application is an international application that claims priority on the filing date of U.S. Application No. 16 / 675,499, filed November 6, 2019, which is incorporated herein by reference in its entirety for all purposes.
[0004] Machine learning (ML) methods, and specifically unsupervised learning methods such as k-means clustering and hierarchical clustering, are very useful in applications such as identifying trading patterns, market research, social networks, search, classification, and typical observation.
[0005] In some cases, different entities with separate datasets may wish to cluster their data to analyze information while maintaining data privacy. A limited number of methods exist for privacy-preserving learning, but these methods can be limited by issues such as efficiency, scalability to large datasets, and data leakage.
[0006] The embodiments of this disclosure address these and other problems individually and collectively. Summary of the Invention
[0007] This paper describes systems and techniques for privacy-preserving unsupervised learning. The disclosed systems and methods enable individual computers operated by separate entities to jointly perform unsupervised learning based on their respective data pools, while preserving privacy. The systems improve efficiency and scalability to large datasets, while protecting privacy and avoiding leakage of cluster identifiers.
[0008] In one embodiment, the system can jointly calculate the secure distance based on N-1 unintentional transmission (OT) via privacy-preserving multiplication of corresponding data values x and y from the computer. In various embodiments, N can be 2, 4, or some other shared number. The first computer can express its data value x using a radix N. The second computer can generate N random numbers m. i,0 and remaining elements of Matrix. The first computer can receive a matrix with components m from the OT. i =m i,i=(yx) i N i -m i,0 The output vector of ).
[0009] In an embodiment, a first computer and a second computer can jointly calculate a secure distance by performing at least a privacy-preserving multiplication of a first data value of the first computer and a second data value of the second computer based on an N-1 unintentional transfer (OT) corresponding to a number of N shared numbers. The privacy-preserving multiplication may further include the first computer expressing the first data value as a first vector having a number of L components, wherein a corresponding component with index i includes a corresponding decomposition coefficient of the first data value with a cardinality equal to N. The privacy-preserving multiplication may further include the second computer forming a corresponding N-component vector with index i and a second index. The first computer may receive an output vector of the N-1 OT, wherein the component with index i of the output vector includes a component of the corresponding N-component vector, the component having index i and a second index corresponding to the corresponding decomposition coefficient of the first data value with a cardinality equal to N. The first and / or second computers may then privately distribute the data to corresponding clusters in a plurality of clusters based on the secure distance.
[0010] In an embodiment, the first component of the corresponding N-component vector with a second index equal to 0 may include the corresponding pseudo-random number. The corresponding remaining component with a second index equal to j may include a second data value multiplied by j and then multiplied by N raised to the power of i, minus the first component of the corresponding N-component vector.
[0011] In one embodiment, the second computer can obtain a second output vector where N equals 10T. The component of the second output vector with index i may include a component of a corresponding N-component vector, the component having index i and a second index 0.
[0012] In an embodiment, privately allocating data to corresponding clusters among multiple clusters further includes: identifying the best-matching cluster among multiple elements of the data in the multiple clusters via obfuscation circuitry. The best-matching cluster may have a centroid with the minimum distance to the corresponding element. Privately allocating data to corresponding clusters among multiple clusters further includes: representing the best-matching cluster as a binary vector including a cluster flag of the corresponding element.
[0013] In an embodiment, performing privacy-preserving unsupervised learning further includes privately updating the centroid of the cluster by: for a corresponding element among multiple elements of the data and via a second OT and a third OT, multiplying a first shared number and a second shared number of the combination of the cluster flag and the corresponding element by a first shared number and a second shared number of the combination of the position vectors of the corresponding element. The first shared number of the cluster flag and the first shared number of the position vectors may belong to a first computer. The second shared number of the cluster flag and the second shared number of the position vectors may belong to a second computer. Privately updating the centroid of the cluster may further include summing the products of multiple element multiplications. Privately updating the centroid of the cluster may further include dividing the summed product by the sum of multiple elements of the first shared number and the second shared number of the combination of cluster flags. Privately updating the centroid of the cluster may further include updating the centroid based on the result of the division.
[0014] In this embodiment, the first shared number and the second shared number of the cluster flag are combined by an XOR combination.
[0015] In this embodiment, privacy-preserving unsupervised learning includes k-means clustering. k-means clustering may further include selecting multiple seed clusters. k-means clustering may also include jointly calculating the distance between the corresponding position vector of the corresponding element in the data and the corresponding centroid of the corresponding seed cluster based on a secure distance. The corresponding position vector may be shared between a first computer and a second computer. k-means clustering may further include identifying a first cluster with the minimum distance to the corresponding position vector. k-means clustering may further include assigning the corresponding element to the first cluster. k-means clustering may further include updating the first centroid of the first cluster based on the average of the position vectors, including the corresponding position vector, of the elements in the data assigned to the first cluster.
[0016] In this embodiment, privacy-preserving unsupervised learning includes hierarchical clustering.
[0017] In an embodiment, N can be equal to 2, and N = 1 / 2 OT can include 2 = 1 / 2 OT. Alternatively, in an embodiment, N can be equal to 4, and N = 1 / 2 OT can include 4 = 1 / 2 OT.
[0018] In this embodiment, the safe distance includes a safe Euclidean distance.
[0019] In one embodiment, a first computer initially has a first data value and receives a first output shared value. A second computer may initially have a second data value and may receive a second output shared value. The sum of the first output shared value and the second output shared value may be equal to the product of the first data value and the second data value.
[0020] In this embodiment, the second data value can be changed adaptively. Subsequent iterations can reuse N=1OT from the first iteration.
[0021] These and other embodiments of this disclosure are described in further detail below. For example, other embodiments relate to systems, computing systems, apparatuses, and computer-readable media associated with the methods described herein.
[0022] The nature and advantages of embodiments of this disclosure can be better understood by referring to the following detailed description and accompanying drawings. Attached Figure Description
[0023] Figure 1A An example of k-means clustering is described.
[0024] Figure 1B An example of privacy-preserving k-means clustering according to an embodiment is described.
[0025] Figure 2 An instance dual-server model for privacy-preserving k-means clustering according to an embodiment is described.
[0026] Figure 3 It describes an example of unintentional transmission.
[0027] Figure 4A Examples of Euclidean distance are described.
[0028] Figure 4B An example of k-means clustering based on Euclidean distance is described according to an embodiment.
[0029] Figure 5A The invention describes a method for calculating secure Euclidean distances based on 2-to-1 inadvertent transmissions using privacy-preserving unsupervised learning, according to an embodiment.
[0030] Figure 5B The invention describes a method for calculating secure Euclidean distances based on unsupervised learning for privacy protection using N-to-1 inadvertent transmission, according to an embodiment.
[0031] Figure 5C The invention describes how to calculate privacy-preserving multiplication using an amortization setting according to an embodiment.
[0032] Figure 6 A communication flowchart is depicted according to an embodiment of a method for calculating secure Euclidean distance using N-to-1 inadvertent transmission based on privacy-preserving unsupervised learning.
[0033] Figure 7A A flowchart is depicted illustrating a method for calculating secure Euclidean distance based on N-to-1 inadvertent transmission using privacy-preserving unsupervised learning, according to an embodiment.
[0034] Figure 7B A flowchart is depicted for a method, according to an embodiment, for privately distributing data to a cluster for privacy-preserving unsupervised learning.
[0035] Figure 7C A flowchart is depicted according to an embodiment of a method for privately updating cluster centroids for privacy-preserving unsupervised learning.
[0036] Figure 8 A flowchart depicts an overall method for k-means clustering according to an embodiment.
[0037] Figure 9 It is a high-level block diagram of a computer system that can be used to implement any of the entities or components described above.
[0038] the term
[0039] Before discussing the details of some embodiments of this disclosure, the description of some terms may help to understand the various embodiments.
[0040] The term "server computer" can include a powerful computer or cluster of computers. For example, a server computer can be a mainframe, a small group of computers, or a group of computers operating as a single unit. In one example, a server computer can be a database server coupled to a web server. A server computer may be coupled to a database and may include any hardware, software, other logic, or a combination of the foregoing for serving requests from one or more other computers. The term "computer system" can generally refer to a system that includes one or more server computers that can be coupled to one or more databases.
[0041] A “machine learning model” can refer to a set of software routines and parameters that can predict the output of a real-world process based on a set of input features (e.g., diagnosis or treatment of a patient, identification of an attacker on a computer network, computer authentication, appropriate recommendations based on a user’s search query, etc.). The structure of the software routines (e.g., the number of subroutines and the relationships between them) and / or the values of the parameters can be determined during the training process, which can use the actual results of the real-world process being modeled.
[0042] The term "training computer" can refer to any computer used in training a machine learning model. As an example, a training computer can be one of a group of client computers from which input data is obtained, or a server computer separate from the client computers.
[0043] The term "secret sharing" can refer to any technique that can be used to store data items on a set of training computers such that each training computer cannot determine the value of the data item on its own. As an example, secret sharing may involve dividing the data item into a shared number that requires a sufficient number (e.g., all) of training computers to reconstruct it and / or an encryption mechanism in which decryption requires collusion among the training computers. Detailed Implementation
[0044] Systems and techniques for privacy-preserving unsupervised learning are provided. The disclosed systems and techniques enable individual computers operated by separate entities to jointly perform unsupervised learning based on their respective data pools, while preserving privacy. The systems improve efficiency and scalability to large datasets while protecting privacy and avoiding leakage of cluster identifiers. That is, the systems can avoid revealing any information other than the final output, in this case, a clustering model.
[0045] Specifically, each computer can maintain its own dataset and jointly perform unsupervised learning without revealing its dataset contents to other computers. Privacy-preserving joint learning can be based on secure distances between data points in the aggregate dataset. These distances can be calculated using privacy-preserving joint multiplication.
[0046] The disclosed systems and methods enable a pair of computing devices to jointly compute secure distances based on privacy-preserving multiplication of corresponding data values x and y from a computer via 1-out-of-charge (OT) unintentional transmissions. In various embodiments, N can be 2, 4, or some other number of shared values. In various embodiments, the systems and methods disclosed herein can improve the computational cost of OT-based multiplication by 1.2 to 1.7 times. In an adaptive amortization setting, the disclosed systems can achieve further performance improvements, such as 200x or 500x improvements. Furthermore, the disclosed protocols can be more efficient than common security protocols (MPC and FHE) and can scale to very large datasets.
[0047] I. Unsupervised learning
[0048] Implementations of the disclosed systems and methods can use privacy-preserving joint multiplication to compute secure distances (e.g., Euclidean distances) for unsupervised learning. Unsupervised learning, in contrast to supervised learning, can involve machine learning (ML) when no training dataset is available.
[0049] Clustering is an unsupervised learning process that involves grouping a set of objects into classes of similar objects. Specifically, by clustering data elements into groups or clusters with similar data elements, unsupervised learning systems can discover patterns or similarities in a dataset without training on possible pattern types. In some embodiments, the system can perform unsupervised learning clustering methods such as k-means clustering or hierarchical clustering.
[0050] AK Mean Clustering
[0051] Figure 1AAn instance of k-means clustering 100 is depicted. In this instance, data elements or points, such as data points 102, 104, and 106, can be clustered or grouped into clusters via k-means clustering 100. Specifically, points 102, 104, and 106 belong to clusters 108, 110, and 112, respectively.
[0052] In various embodiments, data elements may include any type of information related to the unsupervised learning process, such as account records or transaction history. In this example, data elements may be represented as points or vectors in a multidimensional space. Specifically, the coordinates or position of a corresponding data point in the multidimensional space may represent the data value of that point, such as the amount or rating characteristic associated with historical transactions. The coordinates of a data point can quantify the characteristics of the data. For example, in some embodiments, the closer the coordinate values of corresponding data points (or specific components of the point coordinates), the more similar the data points may be.
[0053] Specifically, unsupervised learning processes (e.g., k-means clustering 100) can operate based on the distance between data points and their corresponding clusters, such as Euclidean distance. This distance can be a measure of similarity; that is, the smaller the distance between two data points, the more similar the data points are likely to be. In some embodiments, the system may use other measures of distance and / or other measures of similarity, and is not limited to this disclosure.
[0054] For example, unsupervised learning processes such as k-means clustering (k00) can optimize or locally optimize clusters to achieve an optimal match between data points and their corresponding clusters. In some embodiments, the number of clusters k can be preset or specified by the user. Alternatively, k can be optimized by the system and is not limited to this disclosure. In some embodiments, the system can optimize the number of clusters, the centroid location of the clusters, and / or the composition of data points within each cluster to achieve optimal clustering and learning. The computational complexity of k-means clustering can typically be scaled to O(nmt).
[0055] In some cases, it may be necessary for multiple parties to cluster a collection of datasets held by each party. Furthermore, parties may wish to do so in a manner that protects the privacy of their respective datasets, i.e., by not disclosing their datasets to each other. Specifically, because the parties or entities are independent of each other (e.g., separate companies or organizations), they may wish to retain control over their respective datasets without providing data to each other.
[0056] Figure 1BAn example of privacy-preserving k-means clustering 150 according to an embodiment is depicted. In this example, multiple parties, namely Alice 152, Bob 154, and Cat 156, wish to cluster a set of datasets in a privacy-preserving manner. In this example, the three parties have their own datasets, each containing its own data elements, as shown by the shading of data points. For example, data point 158 may be part of Alice's dataset, data point 160 may be part of Bob's dataset, and data point 162 may be part of Cat's dataset.
[0057] In some embodiments, each party may have a portion of the data for each corresponding data point, rather than a subset of the data points. For example, each party may have a separate shared number for each data point (e.g., information associated with a separate dimension in a multidimensional space).
[0058] II. Multi-server system for privacy-preserving unsupervised learning
[0059] In embodiments of the disclosed systems and methods, datasets (e.g., transaction records) can be divided into shared pools held by two separate entities, such as two companies or organizations. The disclosed systems and methods enable individual computers operated by separate entities to jointly perform unsupervised learning based on their respective shared pools of datasets, while preserving privacy. Specifically, the disclosed protocols are more efficient than common security protocols such as Secure Multi-Party Computation (MPC) and Fully Homomorphic Encryption (FHE). It can also be scaled to very large datasets.
[0060] Figure 2 An instance dual-server model 200 for privacy-preserving k-means clustering according to an embodiment is depicted. In this instance, two entities, Alice 202 and Bob 204, may wish to jointly perform unsupervised learning based on their respective data pools. Alice and Bob may also wish to protect the privacy of their respective datasets by performing unsupervised learning in a manner that never actually assembles their respective datasets into a single data pool.
[0061] Therefore, Alice can operate a computer, such as server 206, and Bob can operate a computer, such as server 208. In this embodiment, servers 206 and 208 can communicate directly with each other so that the two parties participating in the union can compute 210.
[0062] According to the methods disclosed below, the two-way computation 210 may include privacy-preserving joint multiplication, joint secure distance, and / or privacy-preserving joint unsupervised learning computation. The two-way computation 210 may output a model 212, such as an optimized or locally optimized cluster allocation.
[0063] Specifically, servers 206 and 208 can communicate directly because Alice and Bob may not want to assemble the dataset on either computer, such as an intermediate computer. Therefore, according to the method disclosed herein, Alice and Bob can alternatively perform bilateral computation 210 in a manner that determines the output model 212 without assembling the dataset. Furthermore, the disclosed method may have advantages over other methods, such as efficiency and scalability.
[0064] For clarity, Figure 2 A specific number of components are shown. However, it should be understood that embodiments of this disclosure may include more than one of each component. Additionally, some embodiments of this disclosure may include more than one of each component. Figure 2 All components shown are either fewer or more components. Additionally, Figure 2 The components can communicate using any suitable communication protocol and any suitable communication medium (including the Internet).
[0065] III. Technologies for Privacy-Preserving Computation
[0066] Various embodiments may employ a variety of secure computing techniques. These techniques can be used to execute functions on data secretly shared between servers without exposing the reconstructed data to the servers. For example, in various embodiments, the system may use unintentional transfer (OT), obfuscated circuitry, and secret sharing as briefly described herein. In some embodiments, the system may use variations of these techniques, as well as others, and is not limited to this disclosure. How these techniques can be combined and used throughout the unsupervised learning process will be described in later sections.
[0067] A. Accidental transmission
[0068] Unintentional transmission (OT) is a fundamental cryptographic primitive commonly used as a building block in secure multi-party computation (MPC). In an unintentional transmission protocol, the sender S has two inputs x0 and x1, and the receiver R has a selection bit b and wants to obtain x. b Without learning anything else or revealing b to S, the ideal function implemented through such a protocol can be defined as: given inputs (SELECT; sid; b) to R and inputs (SEND; sid; x0; x1) to S, return (RECV; sid; xb). We use the notation (⊥; x b )←OT(x0, x1; b) represents the protocol that implements this function.
[0069] Figure 3An example of an unintentional transmission is depicted. At 301, sender S and receiver R perform a key exchange. For example, sender S may generate a private / public key pair and send the public key (e.g., modulus N and exponent e) to receiver R. At 302, sender S generates two random values m0 and m1 and sends them to receiver R. At 303, receiver R chooses b as either 0 or 1, thus selecting mb. Receiver R also generates a random number k. At 304, receiver R encrypts the random number k using the key exchanged from sender S and blinds the result using mb, thus obtaining the blinded encrypted v. At 305, receiver R sends the blinded encrypted v to sender S.
[0070] At 306, sender S attempts to deblind and decrypt v by applying m0 and m1 and their key to v to derive two possible values of k, one of which will equal the random value generated by receiver R. S does not know (and hopes it cannot determine) which of m0 and m1 receiver R has chosen. At 307, x0 and x1 are blinded using the two possible values of k. At 308, the blinded x0 and x1 are sent to receiver R, each of which can be identified as corresponding to 0 or 1. At 309, receiver R uses k to deblind the blind value corresponding to the selected b.
[0071] Therefore, two keys, m0 and m1, can be generated by the sender S for unintentional transmission. The receiver R can then use one of these keys to encrypt the blinding factor. The sender S then uses both keys to decrypt the blinding factor, one of which is the correct blinding factor, used to deblind the two secret inputs. The receiver R can then deblind the correct input.
[0072] Implementations can use OT as part of an offline protocol to generate multiplicative triples, and in the online phase for logistic regression and neural network training to securely compute activation functions. A single round of OT can be implemented, but it requires public-key computation between both parties. OT extensions minimize this cost by allowing the sender and receiver to perform m OTs at the cost of λ cardinality OTs (with public-key computation) and O(m) fast symmetric-key OTs, where λ is a security parameter. Some implementations can leverage OT extensions to improve efficiency. In one embodiment, a special version of OT extension called the correlated OT extension is used. In this variation, which we denote as COT, the two inputs from the sender to each OT are not independent. In fact, the two inputs to each OT instance are: a random value s0 and a value s1 = f(s0) for a correlation function f selected by the sender. Represented as COT l The communication of the l-bit message COT is λ+l, and the calculation is a hash, such as SHA256, SHA3 or other cryptographic hashes.
[0073] B. Confusion circuit 2PC
[0074] The obfuscation scheme includes: an obfuscation algorithm that uses a random seed σ and a function f to generate an obfuscated circuit F and a decoding table dec; an encoding algorithm that uses an input x and a seed σ to generate an obfuscated input x; an evaluation algorithm that uses x and F as inputs and returns an obfuscated output z; and a final decoding algorithm that uses the decoding table dec and z and returns f(x). Some embodiments may have obfuscation schemes that meet standard security characteristics.
[0075] A Boolean circuit can be viewed as a Boolean circuit whose inputs are in the form of fixed-length binary numbers. A Boolean circuit is a series of gates connected to three different types of lines: circuit input lines, circuit output lines, and intermediate lines. Each gate receives two input lines (e.g., one on each side) and has a single output line that can fan out (i.e., propagate to multiple gates in the next stage). The circuit can be evaluated by evaluating each gate sequentially. A gate can be represented as a truth table, which assigns a unique output bit to each pair of input bits.
[0076] The general concept of a scrambled circuit is to transform the original circuitry of a function so that the lines contain only random bit strings. For example, each bit in the truth table is replaced with one of two random numbers (encoded), where the mapping is known to the sender. Each gate is encoded such that its output bit string can be computed based on the input, and only the random bit string of the output gate can be mapped back to the actual result. The function is evaluated, but information about the values on individual lines is not leaked. The main drawbacks of scrambled circuit techniques are inefficient evaluation and the inability to reuse the circuit. Therefore, both parties (sender and receiver) can learn only the circuit's output based on their own inputs, i.e., without learning the other party's inputs to the circuit.
[0077] In some implementations, the sender prepares a scrambled circuit by determining a truth table for each gate using random numbers on two substituted input lines. The output value is then encrypted using random numbers from the truth table (e.g., using double-key symmetric encryption). Therefore, a gate can only be decrypted if both correct random numbers for a given output value are known. The four values in the given table can be randomly arranged (scrambled), so there is no relation between the rows and the output values. The sender can send the scrambled table (the set of encrypted values and the relationships between them, i.e., one's output will become another's input) and the sender's input of random values corresponding to the input bits to the receiver. The receiver can obtain the corresponding random numbers from the sender through unintentional transmission, so the sender is unaware of the receiver's input. The receiver can then compute the output, or possibly obtain an encoding that needs to be sent back to the sender for decoding. If the sender is to learn the output, the encoding can be sent to the sender. This operation may not be performed on intermediate computed values, but only on the final output that both parties should learn anyway. If one party should not learn the output, then no encoding needs to be sent. In some embodiments, the obfuscating circuits act on intermediate values (e.g., comparison functions), so they may not be decoded.
[0078] Given this obfuscation scheme, it is possible to design a secure two-party computation protocol as follows: Alice generates a random seed σ and runs an obfuscation algorithm of function f to obtain an obfuscated circuit GC. She also encodes her input x using σ and x as inputs to an encoding algorithm. Alice sends GC and x to Bob. Bob obtains his input y, which he has encoded (obfuscated) using each bit of y via accidental transmission. While OT-based encoding is not a necessary feature of the obfuscation scheme, all existing constructs allow for such interactive encoding. Bob then runs an evaluation algorithm on GC, x, and y to obtain an obfuscated output z. Alice, Bob, or both of them can learn the output by correspondingly transmitting a decoding table. The above protocol securely implements an ideal function Ff that only takes inputs from both parties and computes f on them. In this disclosure, we use (z) a , z b ←GarbledCircuit(x; y, f) represents this garbled circuit 2PC.
[0079] C. Secret sharing and multiplication triples
[0080] As described above, the values are secretly shared between the two servers. In various embodiments, three different sharing schemes can be employed: Boolean sharing and Yao's sharing. In some embodiments, all intermediate values are secretly shared between the two servers.
[0081] In order to share addition Position value The party with 'a' (such as Alice) is randomly and consistently generated. And Send to the other party (Bob). Use a A Represent the number of shares in Alice, and use a B This represents Bob's shared number. For ease of composition, modular operations from the protocol description have been omitted. This disclosure primarily uses addition sharing in the examples, but other sharing techniques can also be used. To reconstruct the addition-shared value (a A a B The party learning the value should obtain a second shared number from the other party. For example, for Alice to learn 'a', Bob would send 'a' to Alice. B Alice Calculation
[0082] Given two shared values a and b, calculate c for each side. A =a A +b A c B =a B +b B It allows for easy, non-interactive addition of shared numbers. It is easy to derive that c = a + b = c. A +c B .
[0083] Bit Boolean sharing can be regarded as Since addition is shared, all of the above protocols can continue. Specifically, addition is replaced by XOR (⊕), and multiplication (described below) is replaced by AND (AND(·,.)).
[0084] exist yes In the case of bit values, a shared vector can be used. Make To extend the binary sharing of 'a'. Called The binary decomposition of . More generally, The N-ary or cardinality N-factor is defined as Make And among them
[0085] Finally, we can also consider applying a scrambling circuit protocol to the input Yao's share to produce the output Yao's share. Specifically, in all scrambling schemes, for each line w, the scrambler (P0) generates two random strings. When using dotted permutation techniques, the obfuscator also generates a random permutation of bits r.w And assume and Next, the concatenated bits are used to arrange the rows of each confused truth table. The Yao's share of 'a' is... and To reconstruct the shared value, both parties exchange their shared numbers. XOR and AND operations can be performed by obfuscating / evaluating the corresponding gates.
[0086] In order to share from Yao's family and Switching to Boolean sharing, P0 enables And P1 makes In other words, the permutation bits used for the obfuscation scheme can be freely switched to Boolean sharing. This Y2B to Boolean conversion is denoted by Y2B(.,·).
[0087] IV. Privacy-preserving unsupervised learning
[0088] A. Euclidean distance
[0089] In a typical embodiment, the distance can be a Euclidean distance.
[0090] Figure 4A An example of Euclidean distance 400 is depicted. In this example, Euclidean distance 400 corresponds to, for example, the distance between point 402 of the data point or element to be clustered and a second point 404. In a typical embodiment, point 404 may be the cluster centroid, such as the location of the mean or median of the coordinates of the data point already associated with a particular cluster, or some other measure of the cluster center.
[0091] For example, the Euclidean distance of 400 can be given by the d-dimensional distance formula, for example in standard Euclidean geometry: Where D Euc It is the square of the Euclidean distance, and the data elements and cluster It has The elements in the vector are d-dimensional vectors. In this formula, p and c are fixed to specific data points and clusters, respectively, and index i is used to index the coordinates or components of the d-dimensional vector space.
[0092] It should be noted that in some embodiments, the safety distance may be another distance function or metric, such as some other function of the coordinates of points 402 and 404, and is not limited to this disclosure.
[0093] Figure 4BAn example of k-means clustering 450 based on, for example, equidistant Euclidean distance, according to an embodiment, is described. In some embodiments, the system calculates the Euclidean distance from all data points, such as data points 452, 454, and 456, to each cluster center, such as cluster centers 458, 460, and 462. For example, the system may calculate the distance from data point 454 to the three clusters having centers 458, 460, and 462. Because the Euclidean distance from data point 454 to cluster center 458 is shorter than the Euclidean distance to centers 460 or 462, point 454 can be assigned to the cluster having center 458.
[0094] Furthermore, the location of cluster center 458 can be recalculated to include point 454, which in this instance can be newly added to the cluster. For example, if cluster center 458 is the centroid, such as the average location of all data points assigned to the cluster, the centroid location can be recalculated. For instance, the centroid location 458 can be recalculated by calculating a new average location of all data points that includes the newly added point 454.
[0095] B. Safe Euclidean Distance
[0096] However, as mentioned above Figure 1B and 2 The instances described may require, for example, in Figure 2 In the two-party model, unsupervised learning is performed on a dataset held by one or more parties. Furthermore, consider that Alice and Bob may each hold their own corresponding data point p. i and cluster location c j Arithmetic shared number: Where i ∈ {1, ..., d}. For example, Alice and Bob might hold information about a single corresponding data point p. i Or cluster centroid c j Individual information (e.g., information associated with a single dimension in a multidimensional space). In this case, neither Alice nor Bob can execute p independently. i With c j Instead of calculating the distance between them, Alice and Bob might want to calculate a safe distance in a way that protects the privacy of their respective datasets, i.e., without revealing their datasets to each other.
[0097] Therefore, calculating the safe distance can involve performing secure or privacy-preserving multiplication on the corresponding shared numbers of Alice and Bob. Specifically, D can be... Euc The expression is broken down into separate parts for Alice and Bob, plus a joint part: Alice can calculate locally. Bob can perform calculations locally. Therefore, while protecting privacy, Alice and Bob still jointly calculate cross terms or inner products. Embodiments of the disclosed systems and methods address this problem by performing privacy-preserving joint multiplication more efficiently than existing systems. Specifically, the privacy-preserving joint multiplication disclosed below can be used to compute cross terms.
[0098] 1.2 Safe Multiplication with 1OT
[0099] Figure 5A The invention describes the calculation of a 500 secure Euclidean distance based on a 2-to-1 unintentional transfer (OT) 502 using privacy-preserving unsupervised learning according to an embodiment.
[0100] In this example, computer 504 is operated by Alice, and computer 506 is operated by Bob. Alice will hold some integer elements. And Bob will hold They will compute a secret share of z = xy so that Alice holds a consistent randomness And Bob holds Make z = z A +z B First, Alice can represent this data value x as a binary vector 508. In the embodiment, x i It may contain Alice's input sharing count for cross terms. and
[0101] Typically, the disclosed method can be achieved by expressing Alice's data value x as its binary decomposition. Then use each bit x i In OT 502, Bob selects messages to work. Intuitively, if x i =0, then (yx i Since x = 0, there is no need to receive information about y from Bob. i =1, then select Bob's message containing information about y, and Alice receives the message about (yx). i The information is y = y. Then we obtain... This is the expected value. However, the program will reveal Bob's input y to Alice. This is achieved through x... i Send a random integer when =0 (instead of zero) and in x i Send y+r when =1 i To achieve privacy. Therefore, Alice can calculate... And Bob calculates Therefore, OT 502 is used to perform equivalent multiplication operations while protecting privacy.
[0102] In some embodiments, the system may alternatively perform privacy-preserving multiplication on N values other than 2 based on N=1OT. This can be achieved by, for example, Figure 5A The 2-out-of-1 OT scenario shown is implemented by modifying the messages of Alice and Bob in the OT. Specifically, Alice's message can be modified by using a radix N instead of a binary representation of x. Bob's message can be modified into a k×N matrix instead of two k′ component vectors (or an equivalent k′×2 matrix). These modifications are described in more detail herein. Therefore, the question arises: for example, what is the optimal value of N from a computational efficiency perspective? Specifically, in some embodiments, the system can utilize a more efficient protocol for N=1 OT compared to N=2, and / or can utilize methods for performing OT depending on the number of k bits. In some embodiments, N=4 (i.e., privacy-preserving multiplication based on 4-out-of-1 OT) can have lower communication costs than N=2, N=8, N=16, or N=256. However, in various embodiments, the system can use any value of N and is not limited to this disclosure.
[0103] 2. Safe multiplication of N with 1OT
[0104] Figure 5B The invention describes the calculation of a secure Euclidean distance based on N-to-1 inadvertent transmission of N42 according to an embodiment of privacy-preserving unsupervised learning.
[0105] In this example, computer 544 is operated by Alice, and computer 546 is operated by Bob. Alice will hold some integer elements. And Bob will hold They will compute a secret share of z = xy so that Alice holds a consistent randomness And Bob holds Make z = z A +z B The first computer 544 can have data values held by Alice. It is expressed in radix N. Specifically, x can be expressed as 548. It is an N-ary factorization of x, such that
[0106] The second computer 546, operated by Bob, has data values. The second computer 546 can be formed based on y. Let M be a matrix 550, where... and It is a consistent random integer, where And j∈{0, 1, ..., N-1}. In the embodiment, r can be controlled via the OT protocol. i Sampling is performed, therefore M i,0 =r i It may not need to be explicitly communicated.
[0107] The first computer 544 can receive output vector 552 from OT. (Based on the above...) Figure 3 As described in the example, according to OT, Alice's input x i It can act as a select or pick flag, which selects Bob's input. Then, the final share of z = xy is calculated by the corresponding computer as follows: and in The correct value depends on It should be noted that in the N=2 embodiment, these expressions are reduced to the equivalent expressions for the 2-for-1 OT case, as described above. Figure 5A As shown.
[0108] In some OT-based implementations, each OT will require approximately κ = 128 bits of communication. Bits, where κ is a security parameter. For random messages requiring κ bits for communication, this depends on N being 1OT. The remaining message M... i,1 M i,N-1 Set it to the expected value, then you need to Bit-to-bit communication. Given that the multiplication protocol requires... Therefore, the total communication is Based on requirements Choose N∈{2,3,4,...} to minimize t.
[0109] In various embodiments, the systems and methods disclosed herein can improve the computational cost of OT-based multiplication by 1.2 to 1.7 times. Further performance improvements can be achieved in an amortized setting, as described below.
[0110] As mentioned above Figure 5A and 5B The simple application of safe multiplication described in the example might require a total of n safe multiplications to calculate the distance, which must be summed over a d-dimensional space of the data elements. Conversely, each safe multiplication requires an N-ary factorization of Alice's data value x. Figure 5B In ) OT position An example. Each iteration of k-means clustering requires each data point p out of a total of n data points. i With the centroid c of each of the total m clusters k Calculate the distance matrix between [e] ik Assuming the k-means clustering process runs for a total of T iterations, the total communication cost for calculating the Euclidean distance includes... Bit.
[0111] 3. Amortization of safe multiplication
[0112] In some embodiments, the system can improve efficiency by applying safe multiplication in the amortization settings. Consider some fixed values known to Alice. and a series of fixed values known to Bob For each new y i Both parties hope to calculate z q =xy q The sharing. Bob may know y at different times. i The values, for example, are known as distinct subsets of these values in each iteration of the algorithm. A general approach is to repeat the previous multiplication protocol for each of the m′ multiplications.
[0113] Conversely, both parties can first perform a random OT, where Alice uses the representation as The N-ary factorization of x is used to learn the corresponding random OT value / key. Specifically, let the OT output... A random message / key, which Alice learns For each y i Random OT messages can be used for encryption. The corresponding value means that Alice can only recover... For example, let This represents an encrypted pseudo-random function. Bob can send E q,i,j =PRF(R i,j ||q)+M q,i,j ,in And Alice will recover. according to Alice and Bob can calculate their respective output sharing number as follows: and Since the number of OTs is independent of m′, each y i Communication reduced to
[0114] 4. Amortized Euclidean Square Distance
[0115] Throughout the training process, training points It is fixed, and the secret is shared between Alice and Bob. The centroid of the secret sharing. It is set to a certain initial value and then updated in each iteration of the algorithm. Let... This is the value of the j-th centroid at iteration t. At each iteration t, p is calculated. i With c j,t The Euclidean square distance e between them i,j,t , where i∈[n], j∈[m]. Previously, e i,j,t Expressed as
[0116] Recall that you only need to use the safe multiplication protocol to calculate the mixed terms, that is... In the amortization settings, rewrite it as It is beneficial. Note that in the first item... In the second item It is fixed in all t∈[T] iterations, therefore, it can be computed efficiently using the amortized multiplication protocol, that is, for t∈[T], it will be and Defined as a fixed multiplicand, while... and Positioned as a variable multiplicand.
[0117] at last, The term is included in all n Euclidean distance calculations in iteration t and can be calculated once per iteration. It should be noted that the number of centroids is typically much smaller than the number of training points, i.e., n >> m. Therefore, the total cost is Tmd standard multiplication (calculation...). The general approach requires Tnmd standard multiplication, which, for certain parameter choices, results in higher computational overhead.
[0118] Figure 5C The text describes a privacy-preserving multiplication 570 calculated based on an N-to-1 inadvertent transmission 572 with an amortized setting, according to an embodiment. Adaptability refers to changes in the input message to OT 572 over time or in subsequent iterations. In this example, a first computer 574 is operated by Alice, and a second computer 576 is operated by Bob. The first computer 574 can maintain a stable data value x for Alice, such as... Figure 5B and 5C As shown in the example. However, the second computer 576 can take the changed values y1, ..., y2 as message inputs for Bob. The multiplication results can be xy1, ..., xy2, respectively.
[0119] Figure 5C The disclosed method reduces the computational complexity of secure multiplication. Specifically, as described above, for each component and cluster location of a data point, the method may require fewer OT instances compared to direct application, and the number of OT instances required may be independent of N.
[0120] However, subsequent iterations of k-means clustering may reuse the operational time (OT) already performed in the first two iterations. Therefore, subsequent iterations only need OT... Use examples to calculate D Euc The last item in the intersection.
[0121] Therefore, the total cost of the k-means clustering process is OT. For example, if n = 1,000, m = 10, and t = 50, the disclosed solution shows an improvement factor of 200. In another example, if n = 10,000, m = 10, and t = 100, the disclosed solution shows an improvement factor of approximately 500.
[0122] 5. Communication Flowchart
[0123] Figure 6 A communication flowchart is depicted illustrating a method for calculating secure Euclidean distance based on N-out-of-1 unintentional transmission (OT) 630 using privacy-preserving unsupervised learning, according to an embodiment. The method can be executed by a computer system, such as... Figure 2 System 200 in the example may include a first computing device 610 (e.g., a computer or server operated by Alice) and a second computing device 620 (e.g., operated by Bob). In various embodiments, these components may include individual nodes or servers on one or more networks, such as the Internet, or may be hardware components or software modules implemented within one or more larger computing devices or systems. Additionally, the data and / or messages described herein may be communicated directly between components, multicast, or broadcast, and are not limited to this disclosure. In an embodiment, the first computing device 610 and the second computing device 620 may jointly calculate a secure distance by performing a privacy-preserving multiplication of a first data value x of the first computer and a second data value y of the second computer based on N take-10T 630 corresponding to a number of N shared numbers.
[0124] Schematic, in this example, two computing devices 610 and 620 are shown as sending corresponding information to OT 630. As described above. Figure 3As described in the examples, actual OT can involve a sender (e.g., computing device 610) sending messages directly to a receiver (e.g., computing device 620). Various aspects of the OT can be performed on separate computing devices 610 and 620. Therefore, the disclosed systems and methods do not require a third computing device, such as a server, and thus avoid any risks associated with the theft of private data from a third device. Instead, the two computing devices 610 and 620 can directly exchange messages while preserving the privacy of the data on each respective device, as disclosed herein. Specifically, in some embodiments, messages sent to OT 630 can be sent directly to a second computer 620. Such messages can be privacy-preserving, i.e., they may not contain enough information to reconstruct the data values of the respective sending computer. A first data value x may belong to the first computer 610 (i.e., Alice), while a second data value y may belong to the second computer 620 (i.e., Bob).
[0125] In the embodiment, the first Component vector 640 is sent from the first computing device 610 to N1OT630. The component vector 640 can be a cardinality N decomposition of the first data value. For example, if N = 2, then... The component vector 640 can be a binary decomposition, and the components of vector 640 can be binary bits representing the first data value. In another instance, if N = 4, then... The component vector 640 can be decomposed into a radix-4.
[0126] In an embodiment, Matrix 650 is sent from the second computing device 620 to N1OT 630. Matrix 650 may include each having N components. A vector. The i-th corresponding N-component vector of the matrix can have an index i and a second index j of the corresponding decomposition coefficients. In the embodiment, the first component M of the i-th corresponding N-component vector i,0 This may include the corresponding pseudo-random number r i In this embodiment, this first component M i,0 It can have a first index i, and the second index can be equal to zero or one. The corresponding residual component M of the corresponding N-component vector having index i and a second index equal to j. i,j This could include multiplying the second data value by j and then by N raised to the power of i, and then subtracting the first component of the corresponding N component vector.
[0127] Finally, the output vector or output value 660 is taken from N and OT 630 is sent to the first computer 610. According to the above... Figure 3 As described in the example, according to OT, Alice's input xi It can act as a select or pick flag, which selects Bob's input. Here, r i =M i,0 It can be a pseudo-random number. Therefore, the i-th component of the output vector 660 can include... Components of matrix 650 (or the i-th corresponding N-component vector of matrix 650), the component having a first index equal to i and a corresponding decomposition coefficient x with a first data value of cardinality equal to N. i The corresponding second index. In this embodiment, r can be accessed via the OT protocol. i Sampling is performed, therefore M i,0 =r i It may not need to be explicitly communicated.
[0128] In an embodiment, the first computer may alternatively receive the output value 660 from NiTi. The output value 660 may include the sum of the i components of the corresponding N-component vector multiplied by the i-th power of N. The corresponding component in this sum may have an index i and a second index corresponding to the corresponding decomposition coefficient of the first data value in the base N. That is, the output value may include...
[0129] In an embodiment, the second computer can obtain the second output vector or value 670 from N=10T 630. The component of the second output vector 670 with index i may include Negative component of matrix 650 - M i,0 (or the i-th corresponding N-component vector of matrix 650). This negative component -M i,0 It can have an index i and a second index 0. That is, the i-th component of the output vector 670 can include The opposite component of the first component (with index 0) of the i-th column vector of matrix 650 (also called the i-th corresponding N-component vector) includes the corresponding pseudo-random number r. i The opposite of the N component vector. In an embodiment, the first computer may alternatively receive the output value 670 from N-1 OT630. The output value 670 may include the i negative components -M of the corresponding N component vector. i,0 Multiply by the sum of N raised to the power of i, the corresponding negative component within the sum is -M i,0 It has index i and a second index 0. That is, the output value can include...
[0130] Therefore, in the embodiment, the final shared number of z = xy can be calculated as follows for the first computing device 610: The first output value 660 and for the second computing device 620 are The second output value is 670. Therefore, the sum of the two shared outputs can correspond to the output of the shared multiplication. It should be noted that both shared numbers protect the privacy of the input values x and y. In other words, the system can avoid leaking or revealing any information other than the final multiplication output.
[0131] The first and / or second computers can then privately distribute the data to the appropriate clusters in the multiple clusters based on the secure distance of the joint computation.
[0132] C. Assign data points to the cluster
[0133] like Figure 5A and 5B As described in the example, the system can compute point p. i With cluster centroid c j The distance between them. In an embodiment, the system may form a matrix of such distances, e i,j =dist(p i c j ), where j = 1, ..., m and i = 1, ..., n. To assign data points to clusters, the system can determine cluster j. * Minimum distance to a given data point: Therefore, the system can p i Assigned to cluster This must be done without disclosing p to any party. i c j e i,j and j * This is implemented when the value is specified, that is, the secret shared number of these values is calculated.
[0134] In the embodiment, Alice and Bob can have a distance e i,j The number of shares held individually, i.e., Alice holds And Bob holds Specifically, as mentioned above Figure 5A and 5B As described in the examples, Alice and Bob can have separate local computational parts of the distance, and can also have separate shared numbers of intersection terms or inner products. Therefore, in order to compute... The system can apply obfuscation circuits. The system can... * Represented as a binary vector in And among them Where all k≠j * .
[0135] An example could be that, for each i, the parties share a number. The binary decomposition is input into the confusion circuit calculation. Recursively, assuming there is a calculation for J... 0 , J 0 It is e i,1 ..., e i,m / 2 The average minimum vector, and J 1 It is e i,2 / m+1 ..., e i,m The average minimum vector. Furthermore, let e 0 and e 1 Is with J 0 and J 1 The corresponding minimum value.
[0136] Ultimately J * It can be calculated as J * =cJ 0 ||(1⊕c)J 1 and e * =ce 0 +(1⊕c)e 1 If e 0 >e 1 Then c = 1, otherwise 0. The comparison can be performed within the mixing circuit using a standard comparator circuit. The comparison of c and J can be performed within the mixing circuit or using an OT-based multiplication protocol. b And c and e b Multiplication between them. Note that the basic case of recursion is a single e. i,j By definition, it is the minimum value. Embodiments of the disclosed system can utilize other efficient solutions to achieve this conversion between shared types. Furthermore, the disclosed system and method can be more secure than existing methods, particularly by preventing leakage of cluster identifier j with minimal distance. * .
[0137] D. Update the cluster
[0138] After assigning data points to the nearest cluster, the system can further update the position of the centroid of each cluster: c k =avg(p), p i ∈C k Table 1 shows the cluster assignment flag N for data points p1 to p4. ik Examples are given. Specifically, Table 1 shows the flag M for cluster index k. ik The value of , its indicator point p i Whether they are assigned to cluster k. For example, points p1 and p3 are both assigned to cluster k=3.
[0139]
[0140] Table 1
[0141] In this embodiment, the new cluster centroid can be calculated according to the following formula: In this example, M 13 =0 and M 33 =0, therefore p1 and p3 do not contribute to the centroid calculation of cluster k=3.
[0142] Note that in this formula, the shared flag M ik and data point p i The coordinates of both. Therefore, a possible direct solution to this calculation is to use the Boolean shared number (e.g., M). ik (of) converted to arithmetic sharing, or M ik With p i Safe multiplication. However, in an embodiment, the system may instead use two OTs.
[0143] V. Privacy Protection Cluster
[0144] Figure 7A A flowchart is depicted illustrating a method 700 for calculating secure Euclidean distance based on N-choose-1 inadvertent transmission using privacy-preserving unsupervised learning, according to an embodiment. Method 700 can be implemented by a computer system (e.g., Figure 2 The system (200) in the example executes the operation, and the computer system may include a first computer (e.g., server 206) and a second computer (e.g., server 208). In an embodiment, the first computer and the second computer may jointly calculate the secure distance. Jointly calculating the secure distance may involve performing a privacy-preserving multiplication of a first data value of the first computer and a second data value of the second computer based on N-1 unintentional transfers (OT) corresponding to a number of N shared numbers.
[0145] In some embodiments, privacy-preserving unsupervised learning may include k-means clustering, as follows: Figure 8 As illustrated in the examples. Alternatively, in some embodiments, the system may perform other types of clustering, such as hierarchical clustering, and is not limited to this disclosure.
[0146] At step 705, the first computer can express the first data value as having a number The first vector of each component. The corresponding component with index i may include the corresponding decomposition coefficient of the first data value with a cardinality equal to N. Specifically, The component vector can be a cardinality N-factor decomposition of the first data value. For example, if N = 2, then... A component vector can be a binary decomposition, and the components of the vector can be binary bits representing the first data value. In another instance, if N = 4, then... The component vectors can be decomposed into radix 4.
[0147] At step 710, the second computer can form matrix. The corresponding N-component vector of a matrix can have an index i and a second index j of the corresponding decomposition coefficients.
[0148] In an embodiment, the first component of the corresponding N-component vector may include a corresponding pseudo-random number. In an embodiment, this first component may have an index i, and the second index may be equal to zero or one. The corresponding remaining component of the corresponding N-component vector having index i and a second index equal to j may include a second data value multiplied by j and then multiplied by N raised to the power of i, minus the first component of the corresponding N-component vector.
[0149] At step 715, the first computer may receive an N-1OT output vector. The component of the output vector having index i may include a component of the corresponding N-component vector, the component having index i and a second index corresponding to the corresponding decomposition coefficient of the first data value with a cardinality equal to N. In an embodiment, the first computer may alternatively receive an output value from an N-1OT. The output value may include the sum of the i components of the corresponding N-component vector multiplied by the i-th power of N, the corresponding component in the sum having index i and a second index corresponding to the corresponding decomposition coefficient of the first data value with a cardinality equal to N. That is, the output value may include...
[0150] In one embodiment, the second computer can obtain a second output vector of N=1OT. The component of the output vector with index i may include a component of the corresponding N-component vector, which has index i and a second index 0. That is, the component of the output vector with index i may include the first component of the corresponding N-component vector from step 710, including the corresponding pseudo-random number. In another embodiment, the first computer may alternatively receive an output value from N=1OT. The output value may include the sum of the i components of the corresponding N-component vector multiplied by the power of N, where the corresponding component of the sum has index i and a second index 0. That is, the output value may include... In this embodiment, r can be controlled via the OT protocol. i Sampling is performed, so explicit communication may not be necessary.
[0151] In an embodiment, N can be equal to 2, and N = 1 / 2 OT can include 2 = 1 / 2 OT. Alternatively, in an embodiment, N can be equal to 4, and N = 1 / 2 OT can include 4 = 1 / 2 OT.
[0152] In this embodiment, the first computer initially has a first data value and receives a first output shared value. The second computer may initially have a second data value and may receive a second output shared value. The sum of the first output shared value and the second output shared value may be equal to the product of the first data value and the second data value. It should be noted that both shared values protect the privacy of the input values x and y. That is, the system can avoid leaking or revealing any information other than the final multiplication output.
[0153] In this embodiment, the second data value can be changed adaptively. Subsequent iterations can reuse N=1OT from the first iteration.
[0154] At step 720, the system can then privately distribute the data to the appropriate clusters in the multiple clusters based on the secure distance of the joint computation. Private distribution of data to clusters can be based on the above-disclosed and below-disclosed methods. Figure 7B The methods exposed in the instances.
[0155] A. Distribute data to the cluster
[0156] Figure 7B A flowchart is depicted illustrating a method 730 for privately distributing data to a cluster for privacy-preserving unsupervised learning according to an embodiment. Method 730 can be implemented by a computer system (e.g., Figure 2 The system 200 in the example executes the method, which may include a first computer (e.g., server 206) and a second computer (e.g., server 208). In an embodiment, method 730 may provide further details on privately distributing data to appropriate clusters in a plurality of clusters, such as... Figure 7A The example is shown in step 720.
[0157] At step 735, the system can identify the best-matching cluster among multiple elements of the data in multiple clusters via a scrambling circuit. The best-matching cluster may have a centroid with the minimum distance to the corresponding element. As described above, the system can apply the scrambling circuit to calculate... Where e i,j =dist(p i c j ), where j = 1, ..., m and i = 1, ..., n.
[0158] In step 740, the system can represent the best-matching cluster as a binary vector including cluster flags of the corresponding elements. As described above, the system can represent j * Represented as a binary vector in And among them Where all k≠j * .
[0159] B. Update cluster centroid
[0160] Figure 7C A flowchart is depicted for a method 760 for privately updating cluster centroids for privacy-preserving unsupervised learning according to an embodiment. Method 760 can be implemented by a computer system (e.g., Figure 2 The system 760 in the example (system 200) is executed, and the computer system may include a first computer (e.g., server 206) and a second computer (e.g., server 208). In an embodiment, method 760 can continue by privately updating the centroid of the cluster. Figure 7A Method 700 of the instance.
[0161] At step 765, for a corresponding element among multiple elements of the data, the system can multiply the first and second shared counts of the cluster flag and the corresponding element by the first and second shared counts of the combination of the position vectors of the corresponding element. The multiplication may include performing a second unintentional transfer (OT) and a third OT. The first shared count of the cluster flag and the first shared count of the position vectors may belong to a first computer. The second shared count of the cluster flag and the second shared count of the position vectors may belong to a second computer.
[0162] In this embodiment, the first shared number and the second shared number of the cluster flag are combined by an XOR combination.
[0163] At step 770, the system can sum the products of multiple element-wise multiplications. As described above, the system can form or
[0164] At step 775, the system can divide the summed product by the sum of multiple elements of the first and second shared numbers of the cluster flag combination. As described above, the system can form
[0165] At step 780, the system can update the centroid based on the result of the division. Specifically, as in step 775, it can update the centroid based on c. k Calculate the new cluster centroid. The system can then update the centroid coordinates of the k-th cluster to c. k And then the calculation of data point p can be performed. i The updated coordinates are used when calculating the distance to the centroid of each cluster.
[0166] VI. Examples of Unsupervised Learning
[0167] Figure 8 A flowchart depicts an overall method 800 for k-means clustering according to an embodiment. Method 800 can be provided by a computer system (e.g., Figure 2The system 200 in the example is executed, and the computer system may include a first computer (e.g., server 206) and a second computer (e.g., server 208). In an embodiment, method 800 may be incorporated into Figure 7A The example is method 700 for calculating secure Euclidean distances into k-means clustering. Specifically, the privacy-preserving unsupervised learning of method 700 may include k-means clustering, as in method 800.
[0168] In step 810, the system may first set the number of clusters to an equal value k. In some embodiments, k may be specified by the user.
[0169] In step 820, the system then selects k initial clusters for the data points. This can be done in various ways, such as by randomly selecting clusters. In some cases, the initial selection of clusters is arbitrary because the method can eventually converge on the optimal or locally optimal clusters in any situation. However, in some cases, the converged clusters may depend on the initial selection. The initial clusters may also be referred to as seed clusters.
[0170] Next, at step 830, the system can calculate the distance between each data point and all cluster centroids. In some embodiments, the distance can be calculated in some other way, such as calculating the distance based on the entire corresponding cluster.
[0171] At step 840, the system can then assign each data point to the cluster with the smallest distance to the data point.
[0172] At step 850, the system can then calculate a new cluster centroid based on the reassignment of data points to the cluster.
[0173] At step 860, the system can then determine whether to perform another iteration. For example, if any cluster centroids have moved, the system can determine to perform another iteration. If the system determines to perform another iteration, it can return to calculating the distance. If the system determines not to perform another iteration, the method can terminate, resulting in an optimized or locally optimized cluster allocation.
[0174] VII. Computer systems and equipment
[0175] Figure 9 It is a high-level block diagram of a computer system that can be used to implement any of the entities or components described above. Figure 9The subsystems shown are interconnected via system bus 975. Additional subsystems include a printer 903, a keyboard 906, a disk 907, and a monitor 909 coupled to a display adapter 904. Peripheral devices and input / output (I / O) devices coupled to I / O controller 900 can be connected to the computer system via any number of components known in the art, such as serial ports. For example, a serial port 905 or an external interface 908 can be used to connect the computer device to a wide area network (e.g., the Internet), a mouse input device, or a scanner. The interconnection via system bus 975 allows central processing unit 902 to communicate with each subsystem and control the execution of instructions from system memory 901 or disk 907, as well as the exchange of information between the subsystems. System memory 901 and / or disk may embody a computer-readable medium.
[0176] Storage media and computer-readable media used for including code or code portions may include any suitable media known or used in the art, including storage media and communication media, such as, but not limited to, volatile and non-volatile, removable and non-removable media (including RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital universal disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage or other magnetic storage devices), data signals, data transmissions, or any other media that can be used to store or transmit desired information and is accessible by a computer, based on the disclosure and teachings provided herein. Other ways and / or methods for implementing various embodiments will be appreciated by those skilled in the art.
[0177] The embodiments of this disclosure offer several advantages over conventional systems. For example, in various embodiments, the systems and methods disclosed herein can improve the computational cost of OT-based multiplication by 1.2 to 1.7 times. In an adaptive amortization setting, the disclosed efficient multiplication can have an improvement of nmt / (n+mt) compared to O(nmtd) computational cost, where n is the number of points, m is the number of clusters, t is the number of iterations, and d is the dimension of the data points. In an example, if n = 10,000, m = 10, and t = 100, the disclosed systems and methods can show an improvement factor of approximately 500 times. Furthermore, the disclosed protocols are more efficient than common security protocols (MPC and FHE) and can scale to very large datasets.
[0178] Various embodiments have been described in the foregoing description. Specific configurations and details have been set forth for illustrative purposes to provide a thorough understanding of the embodiments. However, it will be apparent to those skilled in the art that the embodiments can be practiced without the specific details. Furthermore, well-known features may be omitted or simplified to avoid obscuring the described embodiments.
[0179] It should be understood that any embodiment of this disclosure may be implemented using hardware (e.g., application-specific integrated circuits or field-programmable gate arrays) and / or computer software in the form of control logic, wherein the general-purpose programmable processor is modular or integrated. As used herein, the processor includes a single-core processor, a multi-core processor on the same integrated chip, or multiple processing units on a single circuit board or networked together. Based on the disclosure and teachings provided herein, those skilled in the art will know and understand other ways and / or methods of implementing embodiments of this disclosure using hardware and combinations of hardware and software.
[0180] Any software component or function described in this application may be implemented as processor-executable software code using any suitable computer language such as Java, C, C++, C#, Objective-C, Swift, or a scripting language such as Perl or Python, employing conventional or object-oriented techniques. The software code may be stored as a series of instructions or commands on a computer-readable medium for storage and / or transmission. Suitable media include random access memory (RAM), read-only memory (ROM), magnetic media such as hard disk drives or floppy disks, or optical media such as optical discs (CDs) or DVDs (Digital Universal Discs), flash memory, etc. The computer-readable medium may be any combination of such storage or transmission means.
[0181] Such programs can also be encoded and transmitted using carrier signals adapted for transmission via wired, optical, and / or wireless networks conforming to various protocols, including the Internet. Therefore, computer-readable media according to embodiments of this disclosure can be created using data signals encoded with such programs. Computer-readable media encoded with program code can be packaged with compatible devices or provided separately from other devices (e.g., downloaded via the Internet). Any such computer-readable medium can reside on or within a single computer product (e.g., a hard disk drive, CD, or an entire computer system) and can exist on or within different computer products within a system or network. A computer system may include a monitor, printer, or other suitable display for providing any results mentioned herein to a user.
[0182] The foregoing description is illustrative and not restrictive. Many variations of this disclosure will become apparent to those skilled in the art upon reading it. Therefore, the scope of this disclosure should not be determined by reference to the foregoing description, but rather by reference to the pending claims and their full scope or equivalents.
[0183] Without departing from the scope of this disclosure, one or more features from any embodiment may be combined with one or more features from any other embodiment.
[0184] Unless explicitly indicated otherwise, the use of “a” or “the” is intended to mean “one or more”.
[0185] All patents, patent applications, publications, and descriptions mentioned above are incorporated herein by reference in their entirety for all purposes. This does not constitute an admission that they are prior art.
Claims
1. A method for updating the centroids of clusters used in privacy-preserving unsupervised learning, the method comprising: A secure distance is jointly calculated by at least a first computer and a second computer through a privacy-preserving multiplication of a first data value of the first computer and a second data value of the second computer, performed at least based on an unintentional overlay (OT) of N equal to 1 corresponding to a share number N. The first computer initially has the first data value and receives a first output share value, and the second computer initially has the second data value and receives a second output share value. The sum of the first output share value and the second output share value is the product of the first data value and the second data value. The privacy-preserving multiplication further includes: The first computer represents the first data value as a first vector with L components, wherein the corresponding component with index i includes the corresponding decomposition coefficient of the first data value in a cardinality equal to N; and The second computer forms the corresponding N-component vectors of the index i and the second index, which have the corresponding decomposition coefficients; The first computer receives the output vector of N=1 OT, wherein the component of the output vector having index i includes the component of the corresponding N component vector, the component having the index i and having a second index corresponding to the corresponding decomposition coefficient of the first data value in the cardinality equal to N; Based on the security distance, the data is secretly assigned to the corresponding clusters in multiple clusters; The centroid of the cluster is updated by multiplying a first share and a second share of the combination of clustering labels for the cluster and the corresponding elements by a first share and a second share of the combination of position vectors for the corresponding elements for the cluster and the corresponding elements, via a second OT and a third OT, wherein the first share of the clustering labels and the first share of the position vectors belong to the first computer, and the second share of the clustering labels and the second share of the position vectors belong to the second computer. Summing the product of the multiple elements; Divide the summed product by the sum of the elements of the first and second shares of the clustering labels; and The centroid is updated based on the result of the division.
2. The method of claim 1, wherein: The first component of the corresponding N-component vector, having a second index equal to 0, includes the corresponding pseudo-random number; and The corresponding remaining component with the second index equal to j includes the second data value, which is multiplied by j and by i raised to the power of N, minus the first component of the corresponding N component vector.
3. The method of claim 1, wherein secretly allocating the data to the corresponding clusters among the plurality of clusters further comprises: For a given element among multiple elements of the data, the best-matching cluster among the multiple clusters is identified via a confusion circuit, wherein the best-matching cluster has a centroid that is least distant from the corresponding element; as well as The best-match cluster is represented as a binary vector including clustering labels for the corresponding elements.
4. The method of claim 1, wherein the first share and the second share of the clustering marker are combined by an XOR operation.
5. The method of claim 1, wherein: N equals 2, and the N-to-1 OT includes 2-to-1 OT; or N equals 4, and the N-to-1 OT includes 4-to-1 OT.
6. The method of claim 1, wherein the safe distance includes a safe Euclidean distance.
7. The method of claim 1, further comprising obtaining a second output vector of the N-1 OT by the second computer, wherein the component of the second output vector having index i includes a component of the corresponding N-component vector, the component having the index i and having the second index 0.
8. A computing system, comprising: The first computer, including the first processor; A second computer including a second processor; as well as Includes one or more memories containing instructions that, when executed by the first processor and / or the second processor, cause the computing system to update the centroids of clusters used in a privacy-preserving unsupervised learning heuristic, the privacy-preserving unsupervised learning heuristic comprising: The secure distance is jointly calculated by performing a privacy-preserving multiplication of a first data value of the first computer and a second data value of the second computer through an unintentional over-the-air (OT) transfer corresponding to a share number N of 1, wherein the first computer initially has the first data value and receives a first output share value and the second computer initially has the second data value and receives a second output share value, and the sum of the first output share value and the second output share value is the product of the first data value and the second data value, the privacy-preserving multiplication further comprising: The first computer represents the first data value as a first vector with l components, wherein the corresponding component with index i includes the corresponding decomposition coefficient of the first data value in a cardinality equal to N; and The second computer forms the corresponding N-component vectors of the index i and the second index, which have the corresponding decomposition coefficients; The first computer receives the output vector of N=1 OT, wherein the component of the output vector having index i includes the component of the corresponding N component vector, the component having the index i and having a second index corresponding to the corresponding decomposition coefficient of the first data value in the cardinality equal to N; Based on the security distance, the data is secretly assigned to the corresponding clusters in multiple clusters; The centroid of the cluster is updated by multiplying a first share and a second share of the combination of clustering labels for the cluster and the corresponding elements by a first share and a second share of the combination of position vectors for the corresponding elements for the cluster and the corresponding elements, via a second OT and a third OT, wherein the first share of the clustering labels and the first share of the position vectors belong to the first computer, and the second share of the clustering labels and the second share of the position vectors belong to the second computer. Summing the product of the multiple elements; Divide the summed product by the sum of the elements of the first and second shares of the clustering labels; and The centroid is updated based on the result of the division.
9. The computing system of claim 8, wherein: The first component of the corresponding N-component vector, having a second index equal to 0, includes the corresponding pseudo-random number; and The corresponding remaining component with the second index equal to j includes the second data value, which is multiplied by j and by i raised to the power of N, minus the first component of the corresponding N component vector.
10. The computing system of claim 8, wherein the corresponding cluster in which the data is secretly allocated to the plurality of clusters further comprises: For a given element among multiple elements of the data, the best-matching cluster among the multiple clusters is identified via a confusion circuit, wherein the best-matching cluster has a centroid that is least distant from the corresponding element; as well as The best-match cluster is represented as a binary vector including clustering labels for the corresponding elements.
11. The computing system of claim 8, wherein the first share and the second share of the clustering marker are combined by an XOR operation.
12. The computing system of claim 8, wherein: N equals 2, and the N-to-1 OT includes 2-to-1 OT; or N equals 4, and the N-to-1 OT includes 4-to-1 OT.
13. The computing system of claim 8, wherein the safe distance includes a safe Euclidean distance.
14. The computing system of claim 8, wherein performing the privacy-preserving unsupervised learning heuristic further includes obtaining the second output vector of the N-1 OT by the second computer, wherein the component of the second output vector having index i includes the component of the corresponding N-component vector, the component having the index i and having the second index 0.
15. A method for updating the centroids of clusters used in privacy-preserving unsupervised learning, the method comprising: A secure distance is jointly calculated by at least a first computer and a second computer through a privacy-preserving multiplication of a first data value of the first computer and a second data value of the second computer, performed at least based on an unintentional overlay (OT) of N equal to 1 corresponding to a share number N. The first computer initially has the first data value and receives a first output share value, and the second computer initially has the second data value and receives a second output share value. The sum of the first output share value and the second output share value is the product of the first data value and the second data value. The privacy-preserving multiplication further includes: The first computer represents the first data value as a first vector with L components, wherein the corresponding component with index i includes the corresponding decomposition coefficient of the first data value in a cardinality equal to N; and The second computer forms the corresponding N-component vectors of the index i and the second index, which have the corresponding decomposition coefficients; The first computer receives the output vector of N=1 OT, wherein the component of the output vector having index i includes the component of the corresponding N component vector, the component having the index i and having a second index corresponding to the corresponding decomposition coefficient of the first data value in the cardinality equal to N; Based on the secure distance, data is secretly assigned to corresponding clusters within multiple clusters, wherein the privacy-preserving unsupervised learning includes k-means clustering, and the k-means clustering further includes: Identify the first cluster that has the smallest distance to the corresponding position vector of the corresponding element in the data; Assign the corresponding elements to the first cluster; and The first centroid of the first cluster is updated based on the average of the position vectors of the elements of the data assigned to the first cluster, so as to include the corresponding position vectors.
16. The method of claim 15, wherein: The first component of the corresponding N-component vector, having a second index equal to 0, includes the corresponding pseudo-random number; and The corresponding remaining component with the second index equal to j includes the second data value, which is multiplied by j and by i raised to the power of N, minus the first component of the corresponding N component vector.
17. The method of claim 15, further comprising: For a given element among multiple elements of the data, the best-matching cluster among the multiple clusters is identified via a confusion circuit, wherein the best-matching cluster has a centroid that is least distant from the corresponding element; as well as The best-match cluster is represented as a binary vector including clustering labels for the corresponding elements.
Citation Information
Patent Citations
Dual server privacy protection clustering
CN114730389A
