Multi-party joint model prediction method, system and device for protecting privacy
By converting the nonlinear activation function into a piecewise linear function, the problem of low efficiency and accuracy in multi-party joint model prediction is solved, and the efficiency and accuracy of multi-party joint model prediction are improved while protecting privacy.
Patent Information
- Application Number
- CN202410773446.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-27
AI Technical Summary
In multi-party joint model prediction scenarios, existing multi-party secure computing technology is difficult to effectively improve efficiency and accuracy, especially because the business prediction model contains a large number of nonlinear activation functions, making it difficult to combine the model with multi-party secure calculations, or requiring more complex algorithm.
By converting all nonlinear activation functions in the business forecast model into corresponding linear activation functions, any nonlinear activation function is converted into several segmented linear functions. In each segment, the linear function obtained by Taylor expansion is the same as the nonlinear function. The linear activation function difference is less than the preset threshold, adapting to the requirements of multi-party security calculations and data interaction.
It is possible to improve the efficiency and accuracy of multi-party joint model predictions while protecting data privacy, reduce the amount of calculation, and avoid the need to use complex algorithms.
Smart Images

Figure CN118709727A
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of computer technology, and in particular, to a privacy-preserving multi-party joint model prediction method, system, and device. Background Art
[0002] The data required for machine learning often involves multiple platforms and multiple fields. For example, in the merchant classification analysis scenario based on machine learning, the electronic payment platform has the merchant's transaction flow data, the e-commerce platform stores the merchant's sales data, and the banking institution has the merchant's loan data. In order to improve services, multiple parties often work together to train or use business prediction models while ensuring the privacy and security of business data.
[0003] Secure Multi-Party Computation (MPC) is a new type of secure computing model that can achieve secure computing and data sharing among multiple parties without leaking private data. In order to solve the privacy protection problem in model prediction scenarios, multiple participants can use the MPC computing method to perform common data calculations and interactions on the functions contained in the business prediction model, thereby ensuring that the private data of multiple participants will not be leaked. However, the application of MPC in multi-party joint data processing is still subject to various restrictions.
[0004] Therefore, it is hoped that there will be an improved solution that can improve the efficiency and accuracy of multiple parties' joint model prediction processing while protecting their privacy data. Summary of the invention
[0005] One or more embodiments of this specification describe a privacy-preserving multi-party joint model prediction method, system, and device, which can be used. The specific technical solution is as follows.
[0006] In a first aspect, an embodiment provides a privacy-preserving multi-party joint model prediction method, the method comprising:
[0007] A computing device converts all nonlinear activation functions in a business prediction model into corresponding linear activation functions; wherein the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold;
[0008] The first participant and the second participant perform data interaction based on multi-party secure computing and jointly execute the prediction process of the business prediction model in accordance with the logical operation indicated by the linear activation function contained in the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
[0009] In one embodiment, the step of converting all nonlinear activation functions in the business prediction model into corresponding linear activation functions includes:
[0010] For any nonlinear activation function, alternately search for endpoints and Taylor expansion points of a plurality of segments so that the difference between the linear function in any segment and the nonlinear activation function is less than the preset threshold;
[0011] Based on the obtained plurality of segments and the corresponding linear functions, a linear activation function of the nonlinear activation function is determined.
[0012] In one embodiment, the step of alternately searching for endpoints and Taylor expansion points of a plurality of segments comprises:
[0013] Initially, the preset point is used as the Taylor expansion point.
[0014] In one embodiment, the step of alternately searching for endpoints and Taylor expansion points of a plurality of segments comprises:
[0015] In a preset interval, the endpoints and Taylor expansion points of a plurality of segments are searched alternately; in other intervals outside the preset interval, the nonlinear activation function approaches a constant value;
[0016] The step of determining the linear activation function of the non-linear activation function comprises:
[0017] The obtained multiple segments and the corresponding linear functions, as well as the other intervals and the corresponding constant values, are determined as the linear activation function of the nonlinear activation function.
[0018] In one embodiment, the step of alternately searching for endpoints and Taylor expansion points of a plurality of segments comprises:
[0019] When a Taylor expansion point is known, searching for the endpoint of the segment where the Taylor expansion point is located, so that: within the data interval between the Taylor expansion point and the endpoint, the difference between the first linear function and the nonlinear activation function is less than the preset threshold; the first linear function is obtained by Taylor expansion of the nonlinear activation function at the Taylor expansion point;
[0020] When the endpoint of a segment is known, a Taylor expansion point within the segment is searched so that: in the data interval between the endpoint and the Taylor expansion point, the difference between the second linear function and the nonlinear activation function is less than the preset threshold; and the second linear function is obtained by Taylor expanding the nonlinear activation function at the Taylor expansion point.
[0021] In one embodiment, the step of searching for the endpoint of the segment where the Taylor expansion point is located includes:
[0022] Taking the Taylor expansion point as the starting point, the values of the endpoints are determined one by one;
[0023] Calculate the function values of the first linear function and the nonlinear activation function at each value point respectively;
[0024] When the difference between the two function values is not less than the preset threshold, the previous value point of the value point is determined as the value of the endpoint.
[0025] In one embodiment, the step of searching for Taylor expansion points within the segment includes:
[0026] Taking the endpoint as the starting point, the value of the Taylor expansion point is determined successively;
[0027] Calculate the function values of the corresponding second linear function and the nonlinear activation function at the endpoint respectively;
[0028] When the difference between the two function values is not less than the preset threshold, the value of the previous Taylor expansion point is determined as the value of the Taylor expansion point in the segment.
[0029] In one implementation, the linear function takes a preset number of terms in the corresponding Taylor expansion.
[0030] In a second aspect, an embodiment provides a privacy-preserving multi-party joint model prediction method, which is performed by a first participant and includes:
[0031] Determine all linear activation functions included in the business prediction model; wherein all nonlinear activation functions in the business prediction model are converted into corresponding linear activation functions; the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold;
[0032] According to the logical operation indicated by the linear activation function, based on multi-party secure computing, data interaction is performed with the second participant to jointly execute the prediction process of the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
[0033] In a third aspect, the embodiment provides a privacy-preserving multi-party joint model prediction system, the system comprising:
[0034] A computing device, used to convert all nonlinear activation functions in a business prediction model into corresponding linear activation functions; wherein the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold;
[0035] The first participant and the second participant are used to perform data interaction based on multi-party secure computing and jointly execute the prediction process of the business prediction model according to the logical operation indicated by the linear activation function contained in the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
[0036] In a fourth aspect, the embodiment provides a privacy-preserving multi-party joint model prediction device, which is deployed in a first participant and includes:
[0037] A function determination module is configured to determine all linear activation functions included in the business prediction model; wherein all nonlinear activation functions in the business prediction model are converted into corresponding linear activation functions; the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold;
[0038] The joint computing module is configured to perform data interaction with the second participant based on multi-party secure computing in accordance with the logical operation indicated by the linear activation function, and jointly execute the prediction process of the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
[0039] In a fifth aspect, an embodiment provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute any one of the methods in the first aspect and the second aspect.
[0040] In a sixth aspect, an embodiment provides a computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in any one of the first aspect and the second aspect is implemented.
[0041] In the method and apparatus provided in the embodiments of this specification, the computing device can convert all nonlinear activation functions in the business prediction model into linear activation functions. This conversion can meet the requirements of multi-party secure computing, so that multiple participants can interact with data according to the logical operations indicated by the linear activation functions and jointly execute model predictions. There is no need to use more complex algorithms to achieve multi-party joint model predictions. Moreover, since the difference between the converted linear activation function and the nonlinear activation function is less than a preset threshold, the multi-party secure computing performed in accordance with the embodiments of this specification can improve the efficiency and accuracy of multi-party joint model predictions while protecting data privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A schematic diagram of an implementation scenario of an embodiment disclosed in this specification;
[0044] Figure 2 A schematic diagram of a flow chart of a privacy-preserving multi-party joint model prediction method provided in an embodiment;
[0045] Figure 3 A schematic diagram of converting a nonlinear activation function into a piecewise linear activation function provided by an embodiment;
[0046] Figure 4 Another schematic diagram of a flow chart of a privacy-preserving multi-party joint model prediction method provided in an embodiment;
[0047] Figure 5 A schematic block diagram of a privacy-preserving multi-party joint model prediction system provided in an embodiment;
[0048] Figure 6 A schematic block diagram of a privacy-preserving multi-party joint model prediction device provided in an embodiment. DETAILED DESCRIPTION
[0049] The solution provided in this specification is described below in conjunction with the accompanying drawings.
[0050] Figure 1 The following is a schematic diagram of an implementation scenario of an embodiment disclosed in this specification, wherein participants 1, 2, and 3 perform joint model processing based on a business prediction model through multi-party secure computing. Figure 1 This is just an example, and the number of participants can be two or more than three.
[0051] The specific application scenarios between multiple participants and the business prediction model can include multiple. In one application scenario, one of the multiple participants is the model owner (referred to as the model party), and the other parties are the data owners (referred to as the data party). Usually, the model party can be one party, and the data party can be one or more parties. The data party owns private data, and the model party owns the business prediction model. The data party can use the business prediction model owned by the model party for prediction. In different application scenarios, multiple participants each have their own private data, each owns part of the computing layer in the business prediction model, that is, owns part of the model parameters in the computing layer, and the partial computing layers of multiple participants together constitute a complete business prediction model. Multiple participants jointly train the business prediction model through their own private data. The model parameters and / or private data owned by each participant contain private data and cannot be sent to the outside in plain text. In the scenario of multiple parties jointly training the model, private data should be kept as private as possible.
[0052] Corresponding to the above application scenarios, during the training process, multiple participants can jointly train the business prediction model through multi-party secure computing; when the business prediction model training is completed, multiple participants can jointly use the business prediction model to perform business predictions through multi-party secure computing.
[0053] The business prediction model is used to make business predictions on the input business data. Business predictions include classifying the risk of users on the input user information, classifying the risk of transactions on the input transactions, and scoring the pushability of the input user information and product information. The business prediction model can be implemented through network models such as convolutional neural networks and recurrent neural networks. The business prediction model can also be a language model, such as a large language model. In the reasoning scenario, the large language model can be used to perform secure reasoning on the text data input by the user. After using MPC technology, during the reasoning process, the model parameters of the large language model and the user query content (i.e., the text data input by the user) are all confidential, thereby avoiding the problem of query content leakage.
[0054] A variety of activation functions are usually required in business prediction models. The calculation layer of a business prediction model can include several activation functions.
[0055] Activation functions are designed to help network models learn complex patterns in data. The activation function of a node defines the output of that node for a given input or set of inputs. For example, Figure 1 In , the input of activation function f1 is x1, x2 and x3, and the output is y1; the input of activation function f2 is x1, x2 and x3, and the output is y2. The activation function is a data equation that determines the output of the network model. Activation functions include linear activation functions and nonlinear activation functions. Introducing nonlinear activation functions in network models can improve the learning ability and representation ability of network models, thereby better fitting the target function. Nonlinear activation functions include, for example, Sigmoid function, Softmax function and Tanh function, and linear activation functions include, for example, ReLU function, etc. When the activation function can be expressed only by addition and / or multiplication operations, where addition includes subtraction, the function can be called a linear activation function. For example, common linear functions, quadratic functions, cubic functions, etc. are all linear activation functions. When the activation function cannot be expressed only by addition and / or multiplication operations, the activation function is a nonlinear activation function. For example, the independent variable x of the nonlinear activation function is in the denominator, or in the exponent, and such functions are all nonlinear activation functions.
[0056] Multi-party secure computation (MPC) is an existing data privacy protection technology that can be used for multi-party participation. Its specific implementation methods include homomorphic encryption, obfuscated circuits, oblivious transmission, secret sharing, etc. MPC can usually perform data calculations based on addition and multiplication, that is, it can perform data calculations or processing based on linear activation functions.
[0057] The following example specifically illustrates the process of data interaction between multiple parties based on multi-party secure computing according to the logical operations indicated by the linear activation function. This process includes the combination of multi-party secure computing and linear activation functions, and also includes the data interaction process between multiple parties. In the application scenario composed of the model party and the data party, the linear activation function f(X) = W*X is used as an example to illustrate the interaction process between multiple parties. Among them, W is the model parameter matrix, which belongs to the model party; X is the business data matrix, which belongs to the data party. Both W and X contain private data and cannot be sent out in plain text.
[0058] Among them, multi-party secure computing takes secret sharing technology as an example. Joint data processing between multiple participants includes offline and online stages.
[0059] Step 1: In the offline phase, the model side and the data side obtain offline factors (U1, V1, G1) and (U2, V2, G2) respectively. Here, the matrices U1 and U2 have the same dimension as W, and the matrices V1 and V2 have the same dimension as X, and satisfy (U1+U2)*(V1+V2)=(G1+G2). This is the offline phase.
[0060] Step 2: The model side randomly generates the matrix W1 and obtains the slice W2=W-W1, and sends W2 to the data side. At the same time, the data side also randomly generates the matrix X2 and obtains the slice X1=X-X2, and sends X1 to the model side. In this way, the model side and the data side have W1, X1 and W2, X2 respectively.
[0061] Step 3: Calculate D and E in a finite field. The model side calculates according to the following formula: D1 = W1-U1, E1 = X1-V1. The data side calculates according to the following formula: D2 = X2-U2, E2 = X2-V2. Both parties exchange D1, E1 and D2, E2.
[0062] Step 4: The model side obtains shard Z1 by calculating the following formula:
[0063] D=D1+D2,E=E1+E2
[0064] Z1=G1+E·U1+D·V1+D·E
[0065] The data cube obtains shard Z2 by calculating the following formula:
[0066] D=D1+D2,E=E1+E2
[0067] Z2=G2+E·U2+D·V2
[0068] It can be verified that Z1+Z2=W·X.
[0069] Thus, the two participants obtain the slices Z1 and Z2 of the matrix multiplication respectively without exposing the original matrices W and X. The above steps 2, 3 and 4 are all in the online stage. The joint data processing shown in the above online stage is only an example and does not constitute a limitation of this specification. In practical applications, the joint data processing process in the online stage can also include more other methods.
[0070] The offline factor can be a random array containing multiple random numbers. The offline factors (U1, V1, G1) and (U2, V2, G2) each constitute a random array. In the online stage, the random numbers are combined with the business data or model parameters to obtain the secret matrix of the business data or model parameters. Based on this secret matrix, each participant can implement joint data processing. In each joint data processing, in order to ensure data privacy, the random array should be different.
[0071] Through the above method, the model party and the participating party interact with each other based on multi-party secure computing according to the logical operation W*X indicated by the linear activation function, thereby realizing joint data processing. When the business prediction model contains several linear activation functions, they can interact according to the data processing order in the business prediction model according to the above instructions, so as to realize secure multi-party joint model prediction. For example, assuming that the output of activation function f1 is the input of activation function f3, the logical operations of f1 and f3 can be executed in sequence according to the above instructions. Several includes one or more.
[0072] With the continuous improvement of technology, the structure of business prediction models is becoming more and more complex, with more and more parameters and a large number of nonlinear activation functions. In the multi-party joint model prediction scenario, since the business prediction model contains many nonlinear activation functions, it is difficult to combine the model with multi-party secure computing, or to use more complex methods to implement multi-party secure computing.
[0073] In order to improve the efficiency and accuracy of multi-party joint model prediction while protecting data privacy, an embodiment of the present specification provides a multi-party joint model prediction method. In this method, all nonlinear activation functions in the business prediction model are converted into corresponding linear activation functions. Among them, the linear activation function converted from any nonlinear activation function includes several segmented linear functions. A linear function is obtained by Taylor expansion of the nonlinear activation function at the Taylor expansion point in the corresponding segment. In this segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold. In this way, multiple participants can perform data interaction based on multi-party secure computing according to the logical operation indicated by the linear activation function contained in the business prediction model, and jointly execute the prediction process of the business prediction model.
[0074] In this embodiment, several piecewise linear functions are used to achieve high-precision replacement of nonlinear activation functions, while supporting the linear requirements of multi-party secure computing, thereby ensuring the security of privacy data and improving the efficiency and accuracy of multi-party joint model prediction.
[0075] Combine the following Figure 2 This embodiment is described in detail.
[0076] Figure 2 A flowchart of a privacy-preserving multi-party joint model prediction method provided in an embodiment. For ease of description, the following examples are mostly illustrated by taking two participants as an example. For example, the two participants are a first participant A and a second participant B. The computing device can be the first participant A or the second participant B.
[0077] In one embodiment, the first participant A may be the model owner, and the second participant B may be the data owner and own private data. In a different embodiment, the first participant A and the second participant B may both own private data and jointly own the business prediction model.
[0078] In step S210, the computing device converts all nonlinear activation functions in the business prediction model into corresponding linear activation functions.
[0079] Among them, the linear activation function f1′ converted from any nonlinear activation function f1 includes: linear function 1 of segment 1, linear function 2 of segment 2, ..., linear function n of segment n. n is an integer greater than 1. Segmentation refers to the interval division of the value range of the input data x of the nonlinear activation function f1. Multiple segments are generally interconnected, and the endpoints of adjacent segments overlap.
[0080] Here, all n linear functions or some linear functions are obtained by Taylor expansion of the nonlinear activation function f1 at the Taylor expansion points in the corresponding segments. In other words, all linear functions can be obtained by Taylor expansion, or only some linear functions are obtained by Taylor expansion. The linear function obtained by Taylor expansion is actually a polynomial function, and the converted linear activation function is actually a piecewise polynomial function.
[0081] Taylor expansion is a formula that uses the information of a function at a certain point to describe the values near it. The linear function obtained by Taylor expansion is obtained by taking a preset number of terms in the corresponding Taylor expansion. In other words, this linear function is a polynomial containing a preset number of terms, and is obtained by taking a preset number of terms from the 0th power terms of the independent variable x in the Taylor expansion in sequence, that is, taking the first preset number of terms of the Taylor expansion. This linear function contains low-power terms of the independent variable x. When the operation logic of the converted linear activation function is executed through multi-party secure computing, it will not bring a higher amount of calculation due to the higher power contained in the function, so the low-power terms of the independent variable x in the linear function help to reduce the amount of calculation.
[0082] The Taylor expansion of function f(x) at x=a is
[0083] f(x)=f(a)+f'(a)(xa)+(1 / 2!)f”(a)(xa) 2 +…+(1 / n!)f n (a)(x) n +… (1)
[0084] Among them, f(a) represents the function value of function f(x) at the expansion point a, f'(a) represents the first-order derivative function value of f(x) at the expansion point a, and fn (a) represents the value of the n-th derivative function of f(x) at the expansion point a. The first preset number term refers to the preset number term starting from the right side of the equal sign of formula (1). The preset number can be preset, for example, it can be set to a value such as 3, 4, 5, etc.
[0085] In any segment, the difference between the linear function and the nonlinear activation function f1 is less than a preset threshold. The preset threshold can be set to a smaller value based on experience, so that the error between the converted linear activation function f1′ and the nonlinear activation function f1 is within an allowable range.
[0086] The function independent variable x is the input data of the function. The value of x can be the input data of the model or the intermediate data in the model. The model refers to the business prediction model. The nonlinear activation function f1 may contain model parameters or may not contain model parameters.
[0087] The linear function involved in this embodiment refers to a function that includes an independent variable x and the independent variable can be expressed only by addition and / or multiplication operations.
[0088] When the business prediction model is initially constructed, several nonlinear activation functions and several linear activation functions may be used, or only several nonlinear activation functions may be used without using linear activation functions. Through the execution of this step, the computing device may convert all nonlinear activation functions in the business prediction model into corresponding linear activation functions, and replace the corresponding nonlinear activation functions in the business prediction model with the converted linear activation functions, thereby obtaining a business prediction model containing only linear activation functions.
[0089] In step S220, the first participant A and the second participant B perform data interaction based on multi-party secure computing according to the logical operation indicated by the linear activation function contained in the business prediction model, and jointly execute the prediction process of the business prediction model. The multi-party secure computing is used to perform data processing based on the linear activation function.
[0090] The first party A and the second party B can respectively perform data interaction based on their respective private data and the above-mentioned logical operations and multi-party secure computing to jointly execute the prediction process of the model.
[0091] When the business prediction model is a large language model, the first participant A can be the model party, and the second participant B can be the data party. The data party uses MPC technology to combine the text to be queried in a dense form with the model parameters of the model party according to the logic of the linear activation function, thereby obtaining the inference result for the text to be queried through the large language model of the model party.
[0092] The execution time of the above step S210 and step S220 may be separated by a long time. Step S210 may be executed in advance, and step S220 may be executed when needed.
[0093] When the business prediction model is a trained model, the prediction result of the model can be obtained when the prediction process of the business prediction model is jointly executed.
[0094] When the business prediction model is an untrained model, the first participant A and the second participant B can be used to jointly train the business prediction model. The prediction process of the business prediction model jointly executed by the first participant A and the second participant B can be understood as the forward calculation process in model training. After executing the prediction process, the first participant A and the second participant B can also determine the prediction loss based on the prediction result obtained by the prediction process, and update the business prediction model based on the prediction loss. The above process can be implemented using existing technologies, and the detailed process will not be repeated in this specification.
[0095] The specific implementation of the function conversion process in step S210 is described in detail below.
[0096] In step S210, the step of converting all nonlinear activation functions in the business prediction model into corresponding linear activation functions can be implemented by following steps 1 and 2.
[0097] Step 1: for any nonlinear activation function, alternately search for the endpoints and Taylor expansion points of several segments so that the difference between the linear function and the nonlinear activation function in any segment is less than a preset threshold;
[0098] Step 2: Determine the linear activation function of the nonlinear activation function based on the obtained several segments and the corresponding linear functions.
[0099] Figure 3 A schematic diagram of converting a nonlinear activation function into a piecewise linear activation function is provided in an embodiment. The nonlinear activation function takes the Sigmoid function as an example, and its function form is f(x)=(1+e -x ) -1 The function value of this function is between [0,1]. When the input data x is greater than x0, the absolute value of the difference between the function output value and 1 is less than the preset threshold. When the input data x is less than -x0, the absolute value of the difference between the function output value and 0 is less than the preset threshold.
[0100] If the nonlinear activation function f1 has a linear part and a nonlinear part, then only the nonlinear part can be transformed. For example, Figure 3In the function shown, the two ends of the Sigmoid function approach 0 and 1, and the middle part is the nonlinear part. The middle part [-x0, x0] can be called the preset interval of the input data.
[0101] When step 1 is executed, if the nonlinear activation function f1 is nonlinear within a preset interval, and the nonlinear activation function approaches a constant value in other intervals outside the preset interval, then the endpoints and Taylor expansion points of several segments can be searched alternately within the preset interval. When step 2 is executed, the obtained several segments and corresponding linear functions, as well as other intervals and corresponding constants, can be determined as the linear activation function f1′ of the nonlinear activation function f1. The preset interval can be determined in advance based on the function properties of the nonlinear activation function.
[0102] For example, for the Sigmoid function, the endpoints of several segments and the Taylor expansion point a can be searched alternately in the interval [-x0, x0] to obtain multiple segments and corresponding linear functions, and these multiple segments and corresponding linear functions, as well as the function taking 1 when greater than x0 and taking 0 when less than -x0, are determined as the segmented linear activation function f1′.
[0103] The implementation process of alternately searching for the endpoints of several segments and the Taylor expansion point a is described in detail below.
[0104] A segment contains two endpoints, a segment contains a Taylor expansion point, the segment corresponds to the Taylor expansion point, and the Taylor expansion point a is located in the segment. When the Taylor expansion point a is determined, the Taylor expansion of the nonlinear activation function f1 at the Taylor expansion point a can be obtained, and the first preset number of items in the Taylor expansion can be used as the linear function of the segment.
[0105] Initially, a preset point can be used as the Taylor expansion point. The preset point can be, for example, a=0, that is, the initial Taylor expansion point can be point 0. The initial Taylor expansion point can also be other selected values, such as 1 or -1.
[0106] When the Taylor expansion point a is known, the endpoint of the segment where the Taylor expansion point a is located can be searched so that: in the data interval between the Taylor expansion point a and the endpoint, the difference between the first linear function and the nonlinear activation function f1 is less than a preset threshold.
[0107] The first linear function is obtained by performing Taylor expansion on the nonlinear activation function f1 at the Taylor expansion point a. For example, the first linear function can be in the following form:
[0108] f(x)=f(a)+f'(a)(xa)+(1 / 2!)f”(a)(xa) 2 (2)
[0109] Among them, the first linear function takes the first three terms of Taylor expansion, that is, it only contains terms below the square of the independent variable.
[0110] When the two endpoints of the segment are determined, the coverage of the segment is also determined. During the search, the Taylor expansion point a is used as the starting point, the value of the endpoint x is determined one by one, and the function values of the first linear function and the nonlinear activation function f1 at each value point are calculated. When the difference between the two function values is not less than the preset threshold, the previous value point of the value point is determined as the value of the endpoint.
[0111] For example, Figure 3 As shown, when the initial Taylor expansion point is 0, the value of the endpoint x can be determined successively with a preset step size within a range greater than 0 and less than 0. For example, 0.5 can be used as the preset step size, and values such as 0.5, 1, 1.5, 2, and values such as -0.5, -1, -1.5, -2 can be selected as the value of the endpoint x.
[0112] Substituting the value of x into the first linear function and the nonlinear activation function f1, the first function value and the second function value can be obtained respectively, and the absolute value of the difference between the two function values is calculated as the difference between the two function values. The difference is compared with the preset threshold. If the difference is less than the preset threshold, it means that the value of x is within the coverage range of the first linear function. If the difference is greater than or equal to the preset threshold, it means that the value of x exceeds the coverage range of the first linear function. At this time, the previous value of the value of x can be determined as the endpoint of the segment where the first linear function is located.
[0113] Sigmoid function f(x)=(1+e -x ) -1 Take the example of f(x) = (1 + e) as an example, and perform Taylor expansion on it at a = 0. The Taylor expansion is shown in formula (2). When x is 1, x = 1 can be substituted into formula (2) to obtain the first function value. Substitute into f(x) = (1 + e) -x ) -1 The second function value is obtained. Searching to the left and right sides of the Taylor expansion point 0 respectively can obtain two endpoints, which determine the segment where the Taylor expansion point 0 is located.
[0114] When the endpoint of a segment is known, a Taylor expansion point within the segment is searched so that: within the data interval between the endpoint and the Taylor expansion point, the difference between the second linear function and the nonlinear activation function f1 is less than a preset threshold.
[0115] The second linear function is obtained by performing Taylor expansion on the nonlinear activation function f1 at the above Taylor expansion point. The form of the second linear function is also similar to formula (2).
[0116] Since the endpoints of adjacent segments overlap, once a segment is determined, the endpoint of the segment can be used as one of the two endpoints of the segment to be determined, and the other endpoint of the segment to be determined can be searched. Figure 3 As described above, when it is determined that the segment 1 where the Taylor expansion point 0 is located is in the coverage range of [-1,1], 1 can be used as the left endpoint of the segment 2 on the right side of the segment 1, and -1 can be used as the right endpoint of the segment 3 on the left side of the segment, and the Taylor expansion points in the segments 2 and 3 can be further determined. Figure 3 On the x-axis, circles represent the endpoints of the segments, and triangles represent the Taylor expansion points in the segments.
[0117] When searching for Taylor expansion points, the endpoint x of the known segment is used as the starting point, the value of the Taylor expansion point a is determined one by one, and the function values of the corresponding second linear function and the nonlinear activation function f1 at the endpoint x are calculated. Among them, the endpoint x of the segment obtained is the known endpoint of the adjacent unknown segment. When the difference between the two function values is not less than the preset threshold, the value of the previous Taylor expansion point is determined as the value of the Taylor expansion point in the segment.
[0118] When searching for Taylor expansion points, for the second linear function shown in formula (2), the value of x is known and the unknown parameter is a. When taking a value, it can be taken in a direction greater than or less than the value of x.
[0119] For example, in Figure 3 In the example, for the segment 2 to be determined, the left endpoint of the segment 2 is x=1, the right endpoint is unknown, and the Taylor expansion point therein is unknown. When searching for the Taylor expansion point a in the segment 2, the value of the Taylor expansion point a can be determined successively in the direction where x is greater than 1 with a preset step size. For example, 0.2 can be used as the preset step size, and values such as 1.2, 1.4, and 1.6 can be selected as the value of the Taylor expansion point a.
[0120] Substituting the above value of a and the known endpoint x=1 into the second linear function and the nonlinear activation function f1, respectively, the first function value and the second function value can be obtained respectively, and the absolute value of the difference between the two function values is calculated as the difference between the two function values. The difference is compared with the preset threshold. If the difference is less than the preset threshold, it means that the value of a has not reached the Taylor expansion point required in the segment 2 to be determined. If the difference is greater than or equal to the preset threshold, it means that the value of a has exceeded the Taylor expansion point required in segment 2. At this time, the previous value of a can be determined as the value of the Taylor expansion point a of the segment where the second linear function is located.
[0121] like Figure 3As shown by the solid arrows and dotted arrows in the figure, within the value range of the independent variable x of the nonlinear activation function f1, by alternately searching the endpoints of the segments and the Taylor expansion points a, multiple segments and corresponding Taylor expansion points a can be obtained. Based on the Taylor expansion points, the nonlinear activation function f1 is expanded to obtain the corresponding linear function.
[0122] When the coverage of the segments obtained through the alternating search covers the entire preset interval, the search can be stopped.
[0123] In this embodiment, alternately searching for the endpoints and Taylor expansion points of several segments is actually a process of finding multiple segments and linear functions of the segments. This embodiment can convert the nonlinear activation function into a linear activation function in the form of a piecewise polynomial, so as to meet the computational requirements of multi-party secure computing. In addition, this embodiment can approximate the activation function according to any given precision. It only needs to set the preset threshold in the search process according to the desired approximate precision, and the approximate function that meets the given precision can be automatically searched through the program. The linear activation function generated in this way can be as close to the original nonlinear activation function as possible, thereby ensuring the accuracy when multiple parties jointly perform multi-party secure computing.
[0124] At the same time, the linear activation function generated by this embodiment does not need to be manually designed or given based on experience, and has high scalability. Compared with the solution of using a high-power Taylor expansion to replace the nonlinear activation function, this embodiment uses multiple segmented low-power linear functions to replace the nonlinear activation function, which can greatly reduce the amount of calculation of multi-party secure computing, thereby improving the overall processing efficiency.
[0125] Based on the above Figure 2 The embodiment shown can be obtained Figure 4 The following is an embodiment of the invention. Figure 4 The examples are described below.
[0126] Figure 4 Another flowchart of the privacy-preserving multi-party joint model prediction method provided in the embodiment. The method is executed by any first participant A and includes the following steps.
[0127] Step S410, determining all linear activation functions included in the business prediction model.
[0128] Among them, all nonlinear activation functions in the business prediction model are converted into corresponding linear activation functions. The linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions. The linear function is obtained by Taylor expansion of the nonlinear activation function at the Taylor expansion point in the corresponding segment. In the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold.
[0129] Step S420: According to the logic operation indicated by the linear activation function, based on multi-party secure computing, data is exchanged with the second participant B to jointly execute the prediction process of the business prediction model. Multi-party secure computing is used to perform data processing based on the linear activation function.
[0130] In this embodiment, the first participant A is used as the execution subject, and the above steps are executed through the data interaction process with the second participant B. In step S410, the step of determining all linear activation functions included in the business prediction model may include obtaining all linear activation functions included in the business prediction model, for example, which can be obtained from a computing device. The computing device executes the step of converting the nonlinear activation function in the business prediction model into a corresponding linear activation function. When the first participant A is the computing device, the first participant A can obtain the business prediction model after converting the nonlinear activation function into the corresponding linear activation function in advance.
[0131] Figure 4 The illustrated embodiment is based on Figure 2 The related descriptions obtained from the embodiments shown can be referenced to each other, and the specific descriptions will not be repeated here.
[0132] In this specification, the word "first" in terms such as the first party, the first linear function, etc., and the corresponding "second" (if any) in the text, etc., are merely for the convenience of distinction and description and do not have any limiting meaning.
[0133] In this specification, the computing device, the first participant, and the second participant can be implemented by any device, equipment, platform, device cluster, etc. with computing and processing capabilities.
[0134] The foregoing describes certain embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in an order different from that in the embodiments, and the desired results may still be achieved. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0135] Figure 5 A schematic block diagram of a privacy-preserving multi-party joint model prediction system provided in an embodiment. The system includes: a computing device 510, a first participant 520 and a second participant 530.
[0136] The computing device 510 is used to convert all nonlinear activation functions in the business prediction model into corresponding linear activation functions; wherein the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold;
[0137] The first participant 520 and the second participant 530 are used to perform data interaction based on multi-party secure computing and jointly execute the prediction process of the business prediction model according to the logical operation indicated by the linear activation function included in the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
[0138] In one implementation, the computing device 510 is specifically configured to:
[0139] For any nonlinear activation function, alternately search for endpoints and Taylor expansion points of a plurality of segments so that the difference between the linear function in any segment and the nonlinear activation function is less than the preset threshold;
[0140] Based on the obtained plurality of segments and the corresponding linear functions, a linear activation function of the nonlinear activation function is determined.
[0141] In one embodiment, the computing device 510, when alternately searching for endpoints and Taylor expansion points of a plurality of segments, includes:
[0142] Initially, the preset point is used as the Taylor expansion point.
[0143] In one embodiment, the computing device 510, when alternately searching for endpoints and Taylor expansion points of a plurality of segments, includes:
[0144] In a preset interval, the endpoints and Taylor expansion points of a plurality of segments are searched alternately; in other intervals outside the preset interval, the nonlinear activation function approaches a constant value;
[0145] The computing device 510, when determining the linear activation function of the nonlinear activation function, includes:
[0146] The obtained multiple segments and the corresponding linear functions, as well as the other intervals and the corresponding constant values, are determined as the linear activation function of the nonlinear activation function.
[0147] In one embodiment, the computing device 510, when alternately searching for endpoints and Taylor expansion points of a plurality of segments, includes:
[0148] When a Taylor expansion point is known, searching for the endpoint of the segment where the Taylor expansion point is located, so that: within the data interval between the Taylor expansion point and the endpoint, the difference between the first linear function and the nonlinear activation function is less than the preset threshold; the first linear function is obtained by Taylor expansion of the nonlinear activation function at the Taylor expansion point;
[0149] When the endpoint of a segment is known, a Taylor expansion point within the segment is searched so that: in the data interval between the endpoint and the Taylor expansion point, the difference between the second linear function and the nonlinear activation function is less than the preset threshold; and the second linear function is obtained by Taylor expanding the nonlinear activation function at the Taylor expansion point.
[0150] In one implementation, the computing device 510, when searching for the endpoint of the segment where the Taylor expansion point is located, includes:
[0151] Taking the Taylor expansion point as the starting point, the values of the endpoints are determined one by one;
[0152] Calculate the function values of the first linear function and the nonlinear activation function at each value point respectively;
[0153] When the difference between the two function values is not less than the preset threshold, the previous value point of the value point is determined as the value of the endpoint.
[0154] In one implementation, the computing device 510, when searching for a Taylor expansion point in the segment, includes:
[0155] Taking the endpoint as the starting point, the value of the Taylor expansion point is determined successively;
[0156] Calculate the function values of the corresponding second linear function and the nonlinear activation function at the endpoint respectively;
[0157] When the difference between the two function values is not less than the preset threshold, the value of the previous Taylor expansion point is determined as the value of the Taylor expansion point in the segment.
[0158] In one embodiment, the linear function takes a preset number of terms in the corresponding Taylor expansion.
[0159] The above system embodiment and Figure 2 The system embodiment is obtained based on the corresponding method embodiment and has the same technical effect as the corresponding method embodiment. The specific description can be referred to the description of the method embodiment part, which will not be repeated here.
[0160] Figure 6A schematic block diagram of a privacy-preserving multi-party joint model prediction device provided in an embodiment. Figure 4 The device 600 is deployed in the first participant, and the device 600 includes:
[0161] The function determination module 610 is configured to determine all linear activation functions included in the business prediction model; wherein all nonlinear activation functions in the business prediction model are converted into corresponding linear activation functions; the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold;
[0162] The joint computing module 620 is configured to perform data interaction with the second participant based on multi-party secure computing in accordance with the logical operation indicated by the linear activation function, and jointly execute the prediction process of the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
[0163] In one implementation, the function determination module 610 includes: a search submodule 11 and a determination submodule 12;
[0164] A search submodule 11 is configured to alternately search for endpoints and Taylor expansion points of a plurality of segments for any nonlinear activation function, so that the difference between the linear function in any segment and the nonlinear activation function is less than the preset threshold;
[0165] The determination submodule 12 is configured to determine a linear activation function of the nonlinear activation function based on the obtained plurality of segments and corresponding linear functions.
[0166] In one implementation, the search submodule 11 is specifically configured to include:
[0167] Initially, the preset point is used as the Taylor expansion point.
[0168] In one implementation, the search submodule 11 is specifically configured to include:
[0169] In a preset interval, the endpoints and Taylor expansion points of a plurality of segments are searched alternately; in other intervals outside the preset interval, the nonlinear activation function approaches a constant value;
[0170] The specific configuration of the determination submodule 12 includes:
[0171] The obtained plurality of segments and the corresponding linear functions, as well as the other intervals and the corresponding constant values, are determined as the linear activation function of the nonlinear activation function.
[0172] In one implementation, the search submodule 11 includes:
[0173] The first search unit 11-1 is configured to search for an endpoint of a segment where a Taylor expansion point is located when a Taylor expansion point is known, so that: within a data interval between the Taylor expansion point and the endpoint, a difference between the first linear function and the nonlinear activation function is less than a preset threshold; and the first linear function is obtained by performing Taylor expansion on the nonlinear activation function at the Taylor expansion point;
[0174] The second search unit 11-2 is configured to search for a Taylor expansion point within the segment when the endpoint of the segment is known, so that: in the data interval between the endpoint and the Taylor expansion point, the difference between the second linear function and the nonlinear activation function is less than the preset threshold; and the second linear function is obtained by Taylor expansion of the nonlinear activation function at the Taylor expansion point.
[0175] In one implementation, the first search unit 11-1 is specifically configured to include:
[0176] Taking the Taylor expansion point as the starting point, the values of the endpoints are determined one by one;
[0177] Calculate the function values of the first linear function and the nonlinear activation function at each value point respectively;
[0178] When the difference between the two function values is not less than the preset threshold, the previous value point of the value point is determined as the value of the endpoint.
[0179] In one implementation, the second search unit 11-2 is specifically configured to include:
[0180] Taking the endpoint as the starting point, the value of the Taylor expansion point is determined successively;
[0181] Calculate the function values of the corresponding second linear function and the nonlinear activation function at the endpoint respectively;
[0182] When the difference between the two function values is not less than the preset threshold, the value of the previous Taylor expansion point is determined as the value of the Taylor expansion point in the segment.
[0183] In one implementation, the first participant is a model owner, and the second participant is a data owner.
[0184] The above device embodiments correspond to the method embodiments. For specific descriptions, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments are obtained based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments. For specific descriptions, please refer to the corresponding method embodiments.
[0185] The present specification also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed in a computer, the computer is caused to execute Figures 1 to 4 Any of the methods described above.
[0186] The embodiment of the present specification also provides a computing device, including a memory and a processor, wherein the memory stores an executable code, and when the processor executes the executable code, Figures 1 to 4 Any of the methods described above.
[0187] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the storage medium and computing device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0188] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present invention may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0189] The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the embodiments of the present invention in detail. It should be understood that the above description is only a specific implementation method of the embodiments of the present invention and is not intended to limit the scope of protection of the present invention. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A privacy-preserving multi-party joint model prediction method, the method include: A computing device converts all nonlinear activation functions in a business prediction model into corresponding linear activation functions; wherein the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold; The first participant and the second participant perform data interaction based on multi-party secure computing and jointly execute the prediction process of the business prediction model in accordance with the logical operation indicated by the linear activation function contained in the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
2. The method according to claim 1, wherein the step of converting all nonlinear activation functions in the business prediction model into corresponding linear activation functions, include: For any nonlinear activation function, alternately search for endpoints and Taylor expansion points of a plurality of segments so that the difference between the linear function in any segment and the nonlinear activation function is less than the preset threshold; Based on the obtained plurality of segments and the corresponding linear functions, a linear activation function of the nonlinear activation function is determined.
3. The method according to claim 2, wherein the step of alternately searching for the endpoints and Taylor expansion points of a plurality of segments, include: Initially, the preset point is used as the Taylor expansion point.
4. The method according to claim 2, wherein the step of alternately searching for the endpoints and Taylor expansion points of a plurality of segments, include: In a preset interval, alternately search for endpoints and Taylor expansion points of several segments; In other intervals other than the preset interval, the nonlinear activation function approaches a constant value; The step of determining the linear activation function of the non-linear activation function comprises: The obtained plurality of segments and the corresponding linear functions, as well as the other intervals and the corresponding constant values, are determined as the linear activation function of the nonlinear activation function.
5. The method according to claim 2, wherein the step of alternately searching for the endpoints and Taylor expansion points of a plurality of segments, include: When a Taylor expansion point is known, searching for an endpoint of the segment where the Taylor expansion point is located, so that: within a data interval between the Taylor expansion point and the endpoint, a difference between the first linear function and the nonlinear activation function is less than the preset threshold; The first linear function is obtained by performing Taylor expansion on the nonlinear activation function at the Taylor expansion point; When the endpoint of a segment is known, searching for a Taylor expansion point in the segment so that: within a data interval between the endpoint and the Taylor expansion point, the difference between the second linear function and the nonlinear activation function is less than the preset threshold; The second linear function is obtained by performing Taylor expansion on the nonlinear activation function at the Taylor expansion point.
6. The method according to claim 5, wherein the step of searching for the endpoint of the segment where the Taylor expansion point is located, include: Taking the Taylor expansion point as the starting point, the values of the endpoints are determined one by one; Calculate the function values of the first linear function and the nonlinear activation function at each value point respectively; When the difference between the two function values is not less than the preset threshold, the previous value point of the value point is determined as the value of the endpoint.
7. The method according to claim 5, wherein the step of searching for Taylor expansion points within the segment is: include: Taking the endpoint as the starting point, the value of the Taylor expansion point is determined successively; Calculate the function values of the corresponding second linear function and the nonlinear activation function at the endpoint respectively; When the difference between the two function values is not less than the preset threshold, the value of the previous Taylor expansion point is determined as the value of the Taylor expansion point in the segment.
8. According to the method of claim 1, the linear function takes a preset number of terms in the corresponding Taylor expansion.
9. A privacy-preserving multi-party joint model prediction method, performed by a first participant, include: Determine all linear activation functions included in the business prediction model; wherein all nonlinear activation functions in the business prediction model are converted into corresponding linear activation functions; the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold; According to the logical operation indicated by the linear activation function, based on multi-party secure computing, data interaction is performed with the second participant to jointly execute the prediction process of the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
10. A privacy-preserving multi-party joint model prediction system, the system include: A computing device, used to convert all nonlinear activation functions in a business prediction model into corresponding linear activation functions; wherein the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold; The first participant and the second participant are used to perform data interaction based on multi-party secure computing and jointly execute the prediction process of the business prediction model according to the logical operation indicated by the linear activation function contained in the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
11. A privacy-preserving multi-party joint model prediction device, deployed in a first participant, include: A function determination module is configured to determine all linear activation functions included in the business prediction model; wherein all nonlinear activation functions in the business prediction model are converted into corresponding linear activation functions; the linear activation function converted from any nonlinear activation function includes: a plurality of segmented linear functions; the linear function is obtained by Taylor expansion of the nonlinear activation function at a Taylor expansion point in a corresponding segment, and within the segment, the difference between the linear function and the nonlinear activation function is less than a preset threshold; The joint computing module is configured to perform data interaction with the second participant based on multi-party secure computing in accordance with the logical operation indicated by the linear activation function, and jointly execute the prediction process of the business prediction model; the multi-party secure computing is used to perform data processing based on the linear activation function.
12. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 9.
13. A computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 9 is implemented.
