WO2021174934A1 - Federated model parameter determination method, apparatus and device, and computer storage medium - Google Patents

Federated model parameter determination method, apparatus and device, and computer storage medium Download PDF

Info

Publication number
WO2021174934A1
WO2021174934A1 PCT/CN2020/134668 CN2020134668W WO2021174934A1 WO 2021174934 A1 WO2021174934 A1 WO 2021174934A1 CN 2020134668 W CN2020134668 W CN 2020134668W WO 2021174934 A1 WO2021174934 A1 WO 2021174934A1
Authority
WO
WIPO (PCT)
Prior art keywords
federated
parameter
model
models
multiple sets
Prior art date
Application number
PCT/CN2020/134668
Other languages
French (fr)
Chinese (zh)
Inventor
鞠策
高大山
魏锡光
Original Assignee
深圳前海微众银行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2021174934A1 publication Critical patent/WO2021174934A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Definitions

  • This application relates to the technical field of financial technology (Fintech), and in particular to a method, device, equipment, and computer storage medium for determining federal model parameters.
  • the parameters of the current federation model are usually obtained by training data collected by various sensors, but the built-in parameters of different sensors are different, resulting in different batches of data used for federation model training; after training, the model parameters of the federation model are obtained. Later, the use of the trained federated model for prediction has poor adaptability; in some scenarios, the prediction accuracy rate is high, while in other scenarios, the prediction accuracy rate is low, and the expected prediction effect cannot be achieved.
  • the main purpose of this application is to provide a method, device, equipment, and computer storage medium for determining the parameters of a federated model.
  • Technical problem of poor compatibility is to provide a method, device, equipment, and computer storage medium for determining the parameters of a federated model.
  • the present application provides a method for determining parameters of a federation model.
  • the method for determining parameters of a federation model includes the following steps:
  • the first target parameter encoding group corresponding to the convergent federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined , Determined as the federated model parameter.
  • the step of selecting multiple sets of second parameter codes from multiple sets of the first parameter codes to perform cross-mutation processing based on the accuracy rates of the multiple federated models to obtain multiple sets of third parameter codes include:
  • Cross-mutation processing is performed on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
  • the step of performing cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes includes:
  • crossover bits cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes
  • the step of performing mutation processing on multiple sets of the second parameter codes to be mutated, and generating multiple sets of third parameter codes includes:
  • Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
  • the method before the step of if the federated model whose accuracy rate meets the preset condition among the plurality of federated models does not converge, the method further includes:
  • the federated model with the target accuracy rate is determined as the federated model whose accuracy rate meets the preset condition among the plurality of federated models.
  • the method further includes:
  • the step of determining the accuracy of multiple federated models includes:
  • the reference results corresponding to the preset test data are respectively compared with each of the test results to generate accuracy rates of multiple federated models.
  • the method further includes: if it is determined that the accuracy rate of the federated models meets the preset condition If the conditional federated model does not converge, the federated learning is re-executed on the target model to generate new multiple federated models whose accuracy rate meets the preset condition to determine whether to converge.
  • the crossover mutation processing is implemented by a genetic algorithm, where the genetic algorithm includes selection, crossover, and mutation.
  • the preset number of crossing items includes: crossing two sets of second parameter codes and crossing three sets of third parameter codes; the preset number of crossing bits includes: setting the number of crossing bits as Five-five crosses, four-six crosses.
  • the step of mutating each of the multiple sets of the second parameter codes to be mutated to be mutated respectively, and the step of generating multiple sets of third parameter codes includes: preset mutation positions for mutation, wherein The mutation position represents the position of the mutation code, and the position includes multiple positions and single-out positions.
  • the present application further provides a federated model parameter determining device, the federated model parameter determining device including:
  • the acquiring module is used to acquire multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
  • An execution module configured to execute a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
  • the selection module is configured to select multiple groups from multiple sets of the first parameter codes based on the accuracy rates of the multiple federation models if the federation models whose accuracy rates meet the preset conditions among the multiple federation models do not converge Perform cross-mutation processing on the second parameter encoding to obtain multiple sets of third parameter encodings, and then perform a federated learning process on the target model based on the multiple sets of third parameter encodings; and
  • the determining module is used for determining the first target parameter encoding group corresponding to the convergent federated model if the federal model whose accuracy rate meets the preset condition among the plurality of federal models converges, and corresponding the first target parameter encoding group
  • the first target parameter of is determined as the federated model parameter.
  • the selection module further includes:
  • a comparison unit configured to compare the accuracy rates of the multiple federation models with a preset threshold, and determine a target accuracy rate of the accuracy rates of the multiple federation models that is greater than the preset threshold;
  • a screening unit configured to screen multiple sets of the first parameter codes according to the target accuracy rates to obtain multiple sets of second parameter codes
  • the processing unit is configured to perform cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
  • processing unit is further configured to:
  • crossover bits cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes
  • processing unit is further configured to:
  • Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
  • the federal model parameter determination device further includes:
  • the comparison module is used to compare the accuracy rates of multiple federated models and determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models;
  • the determining module is further configured to determine the federation model with the target accuracy rate as a federation model whose accuracy rate meets a preset condition among the plurality of federation models.
  • the federal model parameter determination device further includes:
  • the judging module is used for judging whether the federated model whose accuracy rate meets the preset condition among the multiple federated models has converged.
  • the execution module further includes:
  • An obtaining unit configured to obtain test results generated by processing preset test data on a plurality of federated models in the federated learning process
  • the generating unit is configured to compare the reference results corresponding to the preset test data with each of the test results to generate the accuracy rates of multiple federated models.
  • the present application also provides a federated model parameter determining device.
  • the federated model parameter determining device includes a memory, a processor, and is stored on the memory and can be stored on the processor.
  • a running federation model parameter determination program which implements the steps of the federation model parameter determination method described above when the federation model parameter determination program is executed by the processor.
  • the present application also provides a computer storage medium, the computer storage medium stores a federated model parameter determination program, and the federated model parameter determination program is executed by a processor to achieve the above The steps of the method for determining the parameters of the federated model described above.
  • the method for determining the parameters of the federated model of the present application firstly performs random coding combinations on the acquired multiple parameters of the target model to generate multiple sets of first parameter codes, and respectively execute the federated learning process on the target model based on the multiple sets of first parameter codes.
  • multiple sets of second parameter encodings are selected for cross-mutation processing to obtain multiple sets of third parameter encodings, and based on the multiple sets of third parameter encodings, continue the federated learning process for the target model; if multiple federated models are determined If the federated model whose medium accuracy meets the preset condition converges, the first target parameter encoding group corresponding to the converged federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined as the federated model parameter.
  • the accuracy of multiple federated models characterizes the accuracy of the data processing of the federated model with the corresponding parameters of each group of first parameter encoding; the higher the accuracy, the higher the degree of applicability of the parameters; thus, the accuracy of each parameter Combine the convergent federated model with the rate to determine the federated model parameters.
  • multiple sets of second parameter codes are selected from multiple sets of first parameter codes to perform cross-mutation processing to obtain the third parameter code for continuing training, which avoids the difference between each batch
  • the model parameters are trained using flexible training data, which leads to the problem of poor adaptability of the federated model, which improves the accuracy of the federated model's prediction for different scenarios.
  • FIG. 1 is a schematic diagram of the structure of the device hardware operating environment involved in the embodiment of the device for determining the parameters of the federation model of the application;
  • FIG. 2 is a schematic flowchart of the first embodiment of the method for determining the parameters of the federation model of this application;
  • Fig. 3 is a schematic diagram of functional modules of a preferred embodiment of a device for determining parameters of a federated model of this application.
  • FIG. 1 is a schematic structural diagram of a device hardware operating environment involved in an embodiment of a device for determining a device for determining parameters of a federated model of this application.
  • the federation model parameter determination device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • the hardware structure of the device for determining the parameters of the federation model shown in FIG. 1 does not constitute a limitation on the device for determining the parameters of the federation model. Components, or different component arrangements.
  • a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a federation model parameter determination program.
  • the operating system is a program that manages and controls the federation model parameter determination equipment and software resources, and supports the operation of the network communication module, user interface module, federation model parameter determination program, and other programs or software;
  • the network communication module is used to manage and control the network Interface 1004:
  • the user interface module is used to manage and control the user interface 1003.
  • the network interface 1004 is mainly used to connect to the back-end server and communicate with the back-end server; the user interface 1003 is mainly used to connect to the client (user side) and communicate with the client.
  • the processor 1001 can call the federation model parameter determination program stored in the memory 1005, and perform the following operations:
  • the first target parameter encoding group corresponding to the convergent federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined , Determined as the federated model parameter.
  • the step of selecting multiple sets of second parameter codes from multiple sets of the first parameter codes to perform cross-mutation processing based on the accuracy rates of the multiple federated models to obtain multiple sets of third parameter codes include:
  • Cross-mutation processing is performed on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
  • the step of performing cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes includes:
  • crossover bits cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes
  • the step of performing mutation processing on multiple sets of the second parameter codes to be mutated, and generating multiple sets of third parameter codes includes:
  • Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
  • the processor 1001 may call the federated model parameter determination program stored in the memory 1005, and execute the following operate:
  • the federated model with the target accuracy rate is determined as the federated model whose accuracy rate meets the preset condition among the plurality of federated models.
  • the processor 1001 may call the federation model stored in the memory 1005 The federation model parameter determination procedure, and performs the following operations:
  • the step of determining the accuracy of multiple federated models includes:
  • the reference results corresponding to the preset test data are respectively compared with each of the test results to generate accuracy rates of multiple federated models.
  • the specific implementation of the device for determining the parameters of the federation model of the present application is basically the same as the following embodiments of the method for determining the federation model parameters, and will not be repeated here.
  • This application also provides a method for determining the parameters of the federation model.
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for determining a federal model parameter of this application.
  • the embodiment of the application provides an embodiment of the method for determining the parameters of the federation model. It should be noted that although the logical sequence is shown in the flowchart, in some cases, the sequence shown may be executed in a different order than here. Or the steps described. Specifically, the method for determining federation model parameters in this embodiment includes:
  • Step S10 Obtain multiple parameters of the target model, and perform random coding combination processing on the multiple parameters to obtain multiple sets of first parameter codes.
  • the method for determining the parameters of the federation model in this embodiment is applied to the server, and is suitable for determining the optimal model parameters of the federation model through the server.
  • the federation model can be a horizontal federation model or a vertical federation model. This embodiment is preferably described as a horizontal federation model.
  • the horizontal federation model is a joint model constructed based on horizontal federated learning.
  • the horizontal federated learning is based on two data sets. When the user features overlap more and the user overlaps less, the data set is divided into horizontal (user dimension), and the part of the data with the same user characteristics but not the same user is taken out for training.
  • the server generates multiple sets of parameters as the model parameters of the horizontal federation model, and the horizontal federation model is trained on the basis of the multiple sets of model parameters in the way of horizontal federation learning, and multiple training results are obtained.
  • the target training result with the best convergence characteristics is found from the multiple training results, and the model parameter that generates the target training result is the optimal model parameter suitable for the horizontal federated model.
  • the untrained federated model is used as the target model.
  • the server Before the server generates multiple sets of model parameters for training the target model, it first sets multiple adjustable parameters for the target model.
  • the parameters include, but are not limited to, the number of neurons in the neural network algorithm, the number of layers of the neural network, the window size, and the number of features. After that, the length l of each parameter is given, so that the adjustable range of each parameter is within [0,], and each parameter is acquired and encoded, and the binary code of each parameter is generated. Furthermore, according to the parameters, the binary codes of the parameters are randomly combined into multiple groups of first parameter codes with the same length and the same meaning for the target model to perform the federated learning process.
  • each group of first parameter encoding includes the encoding of each parameter, but the encoding of each parameter takes a different value within the adjustable range, so that the value of multiple sets of first parameter encoding is different;
  • the first parameter codes with the same group length, the same meaning, and different values.
  • Step S20 Perform a federated learning process on the target model respectively based on the multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
  • the target model executes a federated learning process based on each group of first parameter codes, and processes the training samples used for training to obtain multiple federated models, the number of federated models and the number of groups of first parameter codes Unanimous.
  • preset test data for testing are set in advance, and the preset test data are respectively transmitted to multiple federated models, processed by multiple federated models, and the accuracy of multiple federated models is determined.
  • the step of determining the accuracy of multiple federated models includes:
  • Step S21 Obtain test results generated by processing preset test data for multiple federated models in the federated learning process
  • step S22 the reference results corresponding to the preset test data are respectively compared with each of the test results to generate accuracy rates of multiple federated models.
  • each federated model uses the parameter corresponding to the first parameter code as its own network parameter during the federated learning process, runs with its own network parameter, and performs test processing on the preset test data to generate a test result.
  • the server obtains the test results of each federation model, retrieves the reference results corresponding to the preset test data, compares the test results with each test result, and generates a characterization that each test result is consistent with the reference result.
  • the numerical value of the degree of sexuality are the accuracy of each federation model running with the network parameters corresponding to each first parameter code, and the processing results generated by processing the preset test data, that is, the accuracy of multiple federation models. The higher the accuracy rate, the higher the accuracy of the federated model's processing of the preset test data. On the contrary, the lower the accuracy of the federated model's processing of the preset test data.
  • Step S30 if the federation models whose accuracy rates meet the preset conditions among the multiple federation models do not converge, then based on the accuracy rates of the multiple federation models, select multiple sets of second parameter codes from multiple sets of the first parameter codes. Perform cross-mutation processing on the parameter encoding to obtain multiple sets of third parameter encodings, and then perform a federated learning process on the target model based on the multiple sets of third parameter encodings;
  • the accuracy rate is one of the basis for determining the optimal federated model parameters of the federation model, and the processing accuracy of the federated model represented by different accuracy rates is different.
  • the accuracy of the federated model can be determined.
  • the low federation model is eliminated. Specifically, if the federated model whose accuracy rate meets the preset condition among multiple federated models does not converge before the step, it also includes:
  • Step a Comparing the accuracy rates of the multiple federation models to determine the target accuracy rate with the largest value among the accuracy rates of the multiple federation models;
  • Step b Determine the federated model with the target accuracy rate as a federated model whose accuracy rate meets a preset condition among the plurality of federated models.
  • Step c Judge whether the federated model whose accuracy rate meets the preset condition among the plurality of federated models has converged.
  • a preset condition for removal is set, such as a numerical value condition or a maximum value condition; when the accuracy of the federation model satisfies the numerical value condition or the maximum value condition, the federated model is used to determine Federated model parameters, otherwise the federated model will not be used to determine the federated model parameters.
  • the preset condition for excluding the federated model with low accuracy is set as the maximum value condition.
  • the convergence characterization federation model processes the preset test data with the parameters corresponding to the first parameter encoding, and the test results obtained have the highest accuracy rate; or even if it does not have the highest accuracy rate every time, most of the times It is the highest accuracy rate, and there is little difference between the accuracy rate and the highest accuracy rate of other times. Therefore, the accuracy of the test results of the previous federated model processing preset test data can be used to determine whether the federated model converges.
  • the federated learning is performed on the target model again to generate a new multiple federated model judgement whose accuracy rate meets the preset condition Whether to converge.
  • the federated model for convergence judgment is based on the premise that the accuracy rate meets the preset conditions, in order to ensure that the accuracy of each federated model meets the preset conditions, it is set to encode multiple sets of first parameters based on the accuracy of each federated model
  • the screening mechanism is to screen out the second parameter code with relatively high characterization accuracy.
  • the server performs cross-mutation processing on the second parameter encoding, and the cross-mutation processing in this embodiment is preferably implemented based on genetic algorithms.
  • Genetic Algorithm Genetic Algorithm is a method of solving optimization problems through search. It first randomly generates a certain amount of population, and then the algorithm includes: Selection, Crossover and Mutation. The selection is the process of defining individual fitness, evaluating the fitness of each individual and selecting the higher fitness as the next round of population members; crossover is the process of encoding the chromosomes of the members of the population, and crossing the chromosome codes of the two or two groups of members The process of mutation; mutation is the process of mutating the chromosome code after crossover with a certain probability.
  • the process of randomly generating multiple sets of first parameter codes is a process of randomly generating a certain amount of population in the genetic algorithm and encoding the chromosomes of the members of the population.
  • the federated model is used to process the preset test data, and the accuracy of the generated processing results is used as the fitness in the genetic algorithm.
  • the process of screening multiple sets of first parameter codes based on the accuracy is the selection process of the genetic algorithm.
  • the selected multiple sets of second parameter codes are processed to obtain multiple sets of third parameter codes, and based on the multiple sets of third reference codes, the federated learning process is performed again on the target model. Until the federated model whose accuracy rate meets the preset conditions among multiple federated models converges, the optimal federated model parameters of the federated model are determined.
  • Step S40 If the federated models whose accuracy meets the preset conditions among the plurality of federated models converge, determine the first target parameter encoding group corresponding to the converged federated model, and combine the first target parameter encoding group corresponding to the first target parameter encoding group.
  • a target parameter is determined as the federated model parameter.
  • the federated model processes the preset test data with the parameters corresponding to the first parameter encoding, and the resulting test The result has a higher accuracy rate.
  • the first parameter encoding group in the convergent federated model is obtained as the first target parameter encoding group, and the first target parameter corresponding to the first target parameter encoding is found according to the conversion relationship between the encoding and the parameter; or directly
  • the first target parameter encoding is inversely encoded to generate a first target parameter corresponding to the first target parameter encoding.
  • the first target parameter is determined as the federated model parameter of the federated model, and the federated model runs with the first target parameter, and the processing result obtained by processing the data has high accuracy.
  • the method for determining the parameters of the federated model of the present application firstly performs random coding combinations on the acquired multiple parameters of the target model to generate multiple sets of first parameter codes, and respectively execute the federated learning process on the target model based on the multiple sets of first parameter codes.
  • multiple sets of second parameter encodings are selected for cross-mutation processing to obtain multiple sets of third parameter encodings, and based on the multiple sets of third parameter encodings, continue the federated learning process for the target model; if multiple federated models are determined If the federated model whose medium accuracy meets the preset condition converges, the first target parameter encoding group corresponding to the converged federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined as the federated model parameter.
  • the accuracy of multiple federated models characterizes the accuracy of the data processing of the federated model with the corresponding parameters of each group of first parameter encoding; the higher the accuracy, the higher the degree of applicability of the parameters; thus, the accuracy of each parameter Combine the convergent federated model with the rate to determine the federated model parameters.
  • multiple sets of second parameter codes are selected from multiple sets of first parameter codes for cross-mutation processing to obtain the third parameter code for continuing training, which avoids the difference between each batch
  • the model parameters are trained using flexible training data, which leads to the problem of poor adaptability of the federated model, which improves the accuracy of the federated model's prediction for different scenarios.
  • a second embodiment of the method for determining federal model parameters of the present application is proposed.
  • the difference between the second embodiment of the federated model parameter determination method and the first embodiment of the federated model parameter determination method is that the accuracy of the federated model is based on multiple sets of the first parameter encoding.
  • the steps of selecting multiple sets of second parameter codes for cross-mutation processing, and obtaining multiple sets of third parameter codes include:
  • Step S31 comparing the accuracy rates of the multiple federated models with a preset threshold, and determine a target accuracy rate of the accuracy rates of the multiple federated models that is greater than the preset threshold;
  • Step S32 screening multiple sets of the first parameter codes according to each target accuracy rate to obtain multiple sets of second parameter codes
  • Step S33 Perform cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
  • preset thresholds representing the accuracy rate are preset, and each accuracy rate is compared with the preset thresholds to find Among them, the target accuracy rate is greater than the preset threshold.
  • Each accuracy rate is generated by the federated model according to each first parameter code.
  • the multiple sets of first parameter codes are screened and searched, and the first parameter code that generates each target accuracy rate is found. Encode as the second parameter.
  • cross-mutation processing is performed on multiple sets of second parameter codes to obtain multiple sets of third parameter codes for re-executing the federated learning process on the target model.
  • performing cross mutation processing on multiple sets of second parameter codes to obtain multiple sets of third parameter codes includes:
  • Step S311 randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross-terms;
  • Step S312 according to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes;
  • Step S313 Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
  • a preset number of cross items is set in advance according to requirements to represent the number of groups for performing crossover on the second parameter encoding, for example, two sets of second parameter codes are crossed, or three sets of third parameter codes are crossed. Perform crossover and so on.
  • two sets of second parameter codes are used for crossover, that is, two by two crossovers.
  • multiple sets of second parameter codes are randomly divided according to the preset number of crossover groups, and each two groups of second parameter codes are divided into a data group type, and the second parameter codes in each data group type are individually coded Make a cross.
  • a preset number of crossover bits is set in advance according to requirements to characterize the number of data bits used for crossover in each set of second parameter codes.
  • Each group of the second parameter codes of each group extracts one-half of the codes for crossover to form a new parameter code; or sets the number of crossover bits to four or six crosses, that is, from a group of second parameter codes in the data group class Two-fifths of the code is extracted from the second parameter code, and three-fifths of the code is extracted from another group of second parameter codes, and the two are crossed to form a new parameter code.
  • the preset crossover number a reading operation is performed on each set of second parameter codes in each data group;
  • the cross-digit number embodies part of the parameter codes with the same number of codes, and the position of the read part of the parameter codes in the second parameter codes is not limited, that is, the second parameter codes are read randomly.
  • the read parameter codes are combined, and the position of the combination is not limited; that is, the read parameter codes are randomly combined to generate the second parameter code to be mutated in the data group type.
  • the second parameter codes in each data group category are all crossed, and after the multiple sets of to-be-mutated second parameter codes corresponding to each data group category are obtained, the multiple sets of to-be-mutated second parameter codes are subjected to mutation processing, and through the mutation
  • the processing generates multiple sets of third parameter codes.
  • performing mutation processing on multiple sets of second parameter codes to be mutated, and the step of generating multiple sets of third parameter codes includes:
  • Step S3131 randomly selecting the parameter codes to be mutated in each of the second parameter coding groups to be mutated according to the preset mutation ratio;
  • Step S3132 mutate each parameter code to be mutated in the multiple sets of second parameter codes to be mutated to generate multiple sets of third parameter codes.
  • this embodiment performs mutation processing on the second parameter code to be mutated based on the mutation process in the genetic algorithm, so as to generate other non-regularities through mutation.
  • Featured parameter coding for federated training Specifically, preset mutation ratios, such as 20%, 30%, etc., are set according to requirements in advance to represent the demand for encoding the number of mutations in the second parameter to be mutated. According to the preset mutation ratio, each group of to-be-encoded second parameter codes is randomly screened to obtain the number of to-be-mutated parameter codes in each of the to-be-mutated second parameter encoding groups that is consistent with the number represented by the mutation ratio.
  • the code of the parameter to be mutated in each group of second parameter codes to be mutated is mutated, and the respective unmutated codes in each group of the second parameter to be mutated are generated together as the third parameter code.
  • mutation may also be performed by pre-setting mutation positions, and the mutation position represents the position where the mutation code is located, so as to realize the mutation of the code at the fixed position. It can be multiple positions or single-out positions, such as the 3rd and 5th positions of the code, or the 2nd and 3rd positions. According to the preset mutation positions, the codes of the parameters to be mutated in the coding groups of the second parameter to be mutated are screened out for mutation, and multiple sets of third parameter samples are obtained.
  • the multiple sets of second parameter codes are subjected to cross-mutation processing to generate multiple sets of third parameter codes used in the federated learning process to avoid
  • the problem of poor adaptability caused by federated learning training based on the training data collected by each sensor ensures the accuracy of the federated model's prediction for different scenarios.
  • the application also provides a device for determining the parameters of the federation model.
  • Fig. 3 is a schematic diagram of the functional modules of the first embodiment of the device for determining the parameters of the federation model of this application.
  • the device for determining the parameters of the federation model includes:
  • the generating module 10 is used to obtain a module, which is used to obtain multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
  • the execution module 20 is configured to execute a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
  • the selecting module 30 is configured to select multiple sets of the first parameter codes based on the accuracy rates of the multiple federation models if the federation models whose accuracy rates meet the preset conditions among the multiple federation models do not converge. Perform cross-mutation processing on the set of second parameter codes to obtain multiple sets of third parameter codes, and then perform a federated learning process on the target model based on the multiple sets of third parameter codes;
  • the determining module 40 is configured to determine the first target parameter encoding group corresponding to the convergent federated model if the federal model whose accuracy rate meets the preset condition among the plurality of federated models converges, and combine the first target parameter encoding group The corresponding first target parameter is determined as the federated model parameter.
  • the selection module 30 further includes:
  • a comparison unit configured to compare the accuracy rates of the multiple federation models with a preset threshold, and determine a target accuracy rate of the accuracy rates of the multiple federation models that is greater than the preset threshold;
  • a screening unit configured to screen multiple sets of the first parameter codes according to each target accuracy rate to obtain multiple sets of second parameter codes
  • the processing unit is configured to perform cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
  • processing unit is further configured to:
  • crossover bits cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes
  • processing unit is further configured to:
  • Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
  • the federal model parameter determination device further includes:
  • the comparison module is used to compare the accuracy rates of multiple federated models and determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models;
  • the determining module is further configured to determine the federation model with the target accuracy rate as a federation model whose accuracy rate meets a preset condition among the plurality of federation models.
  • the federal model parameter determination device further includes:
  • the judging module is used for judging whether the federated model whose accuracy rate meets the preset condition among the multiple federated models has converged.
  • the execution module 20 further includes:
  • An obtaining unit configured to obtain test results generated by processing preset test data on a plurality of federated models in a federated learning process
  • the generating unit is configured to compare the reference results corresponding to the preset test data with each of the test results to generate the accuracy rates of multiple federated models.
  • the specific implementation of the federal model parameter determination device of the present application is basically the same as each embodiment of the aforementioned federal model parameter determination method, and will not be repeated here.
  • the embodiment of the present application also proposes a computer storage medium.
  • the computer storage medium stores a federation model parameter determination program, and the federation model parameter determination program is executed by the processor to realize the steps of the federation model parameter determination method as described above.
  • the computer storage medium of the present application may be a computer-readable storage computer storage medium, and its specific implementation is basically the same as each embodiment of the above-mentioned federated model parameter determination method, and will not be repeated here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Artificial Intelligence (AREA)
  • Image Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A federated model parameter determination method, apparatus and device, and a computer storage medium. Said method comprises: acquiring multiple parameters of a target model, and performing random encoding and combination processing on the multiple parameters to obtain multiple groups of first parameter codes; respectively performing a federated learning process on the target model to obtain multiple federated models, and determining the accuracy rates of the multiple federated models; if among the multiple federated models, a federated model of which the accuracy rate meets a preset condition does not converge, on the basis of the accuracy rates of the multiple federated models, selecting multiple groups of second parameter codes from the multiple groups of first parameter codes for crossover and mutation processing to obtain multiple groups of third parameter codes, and then performing a federated learning process on the target model; and if among the multiple federated models, a federated model of which the accuracy rate meets the preset condition converges, determining a first target parameter encoding group corresponding to the converged federated model, and determining first target parameters corresponding to the first target parameter encoding group as federated model parameters.

Description

联邦模型参数确定方法、装置、设备及计算机存储介质Method, device, equipment and computer storage medium for determining parameters of federation model
本申请要求:2020年03月06日申请的、申请号为202010155526.2、名称为“联邦模型参数确定方法、装置、设备及存储介质”的中国专利申请的优先权,在此将其引入作为参考。This application requires: the priority of the Chinese patent application filed on March 6, 2020, with the application number 202010155526.2, and the name "Federal model parameter determination method, device, equipment and storage medium", which is hereby incorporated by reference.
技术领域Technical field
本申请申请涉及金融科技(Fintech)技术领域,尤其涉及一种联邦模型参数确定方法、装置、设备及计算机存储介质。This application relates to the technical field of financial technology (Fintech), and in particular to a method, device, equipment, and computer storage medium for determining federal model parameters.
背景技术Background technique
随着金融科技(Fintech),尤其是互联网科技金融的不断发展,越来越多的技术(如人工智能、大数据分析、云存储等)应用在金融领域,但金融领域也对各类技术提出了更高的要求,如要求更为准确的生成联邦模型的参数,以提高联邦模型预测的准确性。With the continuous development of financial technology (Fintech), especially Internet technology finance, more and more technologies (such as artificial intelligence, big data analysis, cloud storage, etc.) are applied in the financial field, but the financial field also proposes various technologies Higher requirements, such as requiring more accurate generation of the parameters of the federated model, in order to improve the accuracy of the federated model's prediction.
当前联邦模型的参数通常经各方传感器采集的数据训练得到,但不同传感器的内置参数具有差异性,导致了用于联邦模型训练的不同批次的数据不同;在经训练得到联邦模型的模型参数后,使用经训练的联邦模型进行预测的适配性较差;在一些场景的预测准确率高,而在另一些场景的预测准确率较低,不能达到预期的预测效果。The parameters of the current federation model are usually obtained by training data collected by various sensors, but the built-in parameters of different sensors are different, resulting in different batches of data used for federation model training; after training, the model parameters of the federation model are obtained. Later, the use of the trained federated model for prediction has poor adaptability; in some scenarios, the prediction accuracy rate is high, while in other scenarios, the prediction accuracy rate is low, and the expected prediction effect cannot be achieved.
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist the understanding of the technical solution of the application, and does not mean that the above content is recognized as prior art.
技术解决方案Technical solutions
本申请的主要目的在于提供一种联邦模型参数确定方法、装置、设备及计算机存储介质,旨在解决现有技术中因模型参数由每批次具有差异性的训练数据生成,而导致联邦模型适配性差的技术问题。The main purpose of this application is to provide a method, device, equipment, and computer storage medium for determining the parameters of a federated model. Technical problem of poor compatibility.
为实现上述目的,本申请提供一种联邦模型参数确定方法,所述联邦模型参数确定方法包括以下步骤:In order to achieve the above-mentioned purpose, the present application provides a method for determining parameters of a federation model. The method for determining parameters of a federation model includes the following steps:
获取目标模型的多个参数,并对所述多个参数进行随机编码组合处理,得到多组第一参数编码;Acquire multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
基于多组所述第一参数编码分别对所述目标模型执行联邦学习过程,得到多个联邦模型,并确定多个所述联邦模型的准确率;Performing a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组所述第三参数编码,再对所述目标模型执行联邦学习过程;以及If the federated model whose accuracy meets the preset condition among the multiple federated models does not converge, then based on the accuracy of the multiple federated models, select multiple sets of second parameter encoding from multiple sets of the first parameter encoding. Cross mutation processing to obtain multiple sets of third parameter codes, and based on multiple sets of third parameter codes, perform a federated learning process on the target model; and
若多个所述联邦模型中准确率符合预设条件的联邦模型收敛,则确定收敛的联邦模型对应的第一目标参数编码组,并将所述第一目标参数编码组对应的第一目标参数,确定为联邦模型参数。If the federated model whose accuracy meets the preset condition among the plurality of federated models converges, the first target parameter encoding group corresponding to the convergent federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined , Determined as the federated model parameter.
在一实施例中,所述基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:In one embodiment, the step of selecting multiple sets of second parameter codes from multiple sets of the first parameter codes to perform cross-mutation processing based on the accuracy rates of the multiple federated models to obtain multiple sets of third parameter codes include:
将多个所述联邦模型的准确率和预设阈值对比,确定多个所述联邦模型的准确率中大于所述预设阈值的目标准确率;Comparing the accuracy rates of the multiple federated models with a preset threshold to determine a target accuracy rate of the accuracy rates of the multiple federated models that is greater than the preset threshold;
根据各所述目标准确率,对多组所述第一参数编码进行筛选,得到多组第二参数编码;以及Screening multiple sets of the first parameter codes according to each of the target accuracy rates to obtain multiple sets of second parameter codes; and
对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码。Cross-mutation processing is performed on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
在一实施例中,所述对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:In an embodiment, the step of performing cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes includes:
根据预设交叉项数,将多组所述第二参数编码随机划分为多个数据组类;Randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross items;
根据预设交叉位数,对每一所述数据组类中的各第二参数编码组进行交叉,生成多组待变异第二参数编码;以及According to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes; and
对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码。Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
在一实施例中,所述对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码的步骤包括:In an embodiment, the step of performing mutation processing on multiple sets of the second parameter codes to be mutated, and generating multiple sets of third parameter codes includes:
根据预设变异比例,随机筛选出每一所述待变异第二参数编码组中的待变异参数编码;以及According to the preset mutation ratio, randomly select the parameter codes to be mutated in each of the second parameter codes to be mutated; and
对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码。Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
在一实施例中,所述若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛的步骤之前,所述方法还包括:In an embodiment, before the step of if the federated model whose accuracy rate meets the preset condition among the plurality of federated models does not converge, the method further includes:
对比多个所述联邦模型的准确率,确定多个所述联邦模型的准确率中数值最大的目标准确率;以及Comparing the accuracy rates of the multiple federated models to determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models; and
将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型。The federated model with the target accuracy rate is determined as the federated model whose accuracy rate meets the preset condition among the plurality of federated models.
在一实施例中,所述将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型的步骤之后,所述方法还包括:In an embodiment, after the step of determining the federated model with the target accuracy rate as the federated model whose accuracy rate meets a preset condition among the plurality of federated models, the method further includes:
判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛。It is determined whether the federated model whose accuracy rate meets the preset condition among the plurality of federated models has converged.
在一实施例中,所述确定多个所述联邦模型的准确率的步骤包括:In an embodiment, the step of determining the accuracy of multiple federated models includes:
获取多个所述联邦模型在联邦学习过程中分别对预设测试数据处理所生成的测试结果;以及Acquiring test results generated by processing preset test data in a plurality of federated models in the federated learning process; and
将与预设测试数据对应的参考结果分别与各所述测试结果对比,生成多个所述联邦模型的准确率。The reference results corresponding to the preset test data are respectively compared with each of the test results to generate accuracy rates of multiple federated models.
在一实施例中,所述在判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛的步骤之后,还包括:若经判定多个联邦模型中准确率符合所述预设条件的联邦模型不收敛,重新对所述目标模型执行联邦学习,生成新的准确率满足所述预设条件的多个联邦模型判定是否收敛。In an embodiment, after the step of judging whether the federated model whose accuracy rate meets the preset condition among the plurality of federated models has converged, the method further includes: if it is determined that the accuracy rate of the federated models meets the preset condition If the conditional federated model does not converge, the federated learning is re-executed on the target model to generate new multiple federated models whose accuracy rate meets the preset condition to determine whether to converge.
在一实施例中,所述交叉变异处理通过遗传算法实现,其中,所述遗传算法包括:选择、交叉和变异。In an embodiment, the crossover mutation processing is implemented by a genetic algorithm, where the genetic algorithm includes selection, crossover, and mutation.
在一实施例中,所述预设交叉项数包括:将两组第二参数编码进行交叉以及将三组第三参数编码进行交叉;所述预设交叉位数包括:设定交叉位数为五五交叉,四六交叉。In one embodiment, the preset number of crossing items includes: crossing two sets of second parameter codes and crossing three sets of third parameter codes; the preset number of crossing bits includes: setting the number of crossing bits as Five-five crosses, four-six crosses.
在一实施例中,所述对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码的步骤包括:预先设定变异位置进行变异,其中所述变异位置表征变异编码所在的位置,所述所在的位置包括多处位置和单出位置。In an embodiment, the step of mutating each of the multiple sets of the second parameter codes to be mutated to be mutated respectively, and the step of generating multiple sets of third parameter codes includes: preset mutation positions for mutation, wherein The mutation position represents the position of the mutation code, and the position includes multiple positions and single-out positions.
在一实施例中,为实现上述目的,本申请还提供一种联邦模型参数确定装置,所述联邦模型参数确定装置包括:In an embodiment, in order to achieve the foregoing objective, the present application further provides a federated model parameter determining device, the federated model parameter determining device including:
获取模块,用于获取目标模型的多个参数,并对所述多个参数进行随机编码组合处理,得到多组第一参数编码;The acquiring module is used to acquire multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
执行模块,用于基于多组所述第一参数编码分别对所述目标模型执行联邦学习过程,得到多个联邦模型,并确定多个所述联邦模型的准确率;An execution module, configured to execute a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
选取模块,用于若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组所述第三参数编码,再对所述目标模型执行联邦学习过程;以及The selection module is configured to select multiple groups from multiple sets of the first parameter codes based on the accuracy rates of the multiple federation models if the federation models whose accuracy rates meet the preset conditions among the multiple federation models do not converge Perform cross-mutation processing on the second parameter encoding to obtain multiple sets of third parameter encodings, and then perform a federated learning process on the target model based on the multiple sets of third parameter encodings; and
确定模块,用于若多个所述联邦模型中准确率符合预设条件的联邦模型收敛,则确定收敛的联邦模型对应的第一目标参数编码组,并将所述第一目标参数编码组对应的第一目标参数,确定为联邦模型参数。The determining module is used for determining the first target parameter encoding group corresponding to the convergent federated model if the federal model whose accuracy rate meets the preset condition among the plurality of federal models converges, and corresponding the first target parameter encoding group The first target parameter of is determined as the federated model parameter.
在一实施例中,所述选取模块还包括:In an embodiment, the selection module further includes:
对比单元,用于将多个所述联邦模型的准确率和预设阈值对比,确定多个所述联邦模型的准确率中大于所述预设阈值的目标准确率;A comparison unit, configured to compare the accuracy rates of the multiple federation models with a preset threshold, and determine a target accuracy rate of the accuracy rates of the multiple federation models that is greater than the preset threshold;
筛选单元,用于根据各所述目标准确率,对多组所述第一参数编码进行筛选,得到多组第二参数编码;以及A screening unit, configured to screen multiple sets of the first parameter codes according to the target accuracy rates to obtain multiple sets of second parameter codes; and
处理单元,用于对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码。The processing unit is configured to perform cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
在一实施例中,所述处理单元还用于:In an embodiment, the processing unit is further configured to:
根据预设交叉项数,将多组所述第二参数编码随机划分为多个数据组类;Randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross items;
根据预设交叉位数,对每一所述数据组类中的各第二参数编码组进行交叉,生成多组待变异第二参数编码;以及According to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes; and
对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码。Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
在一实施例中,所述处理单元还用于:In an embodiment, the processing unit is further configured to:
根据预设变异比例,随机筛选出每一所述待变异第二参数编码组中的待变异参数编码;以及According to the preset mutation ratio, randomly select the parameter codes to be mutated in each of the second parameter codes to be mutated; and
对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码。Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
在一实施例中,所述联邦模型参数确定装置还包括:In an embodiment, the federal model parameter determination device further includes:
对比模块,用于对比多个所述联邦模型的准确率,确定多个所述联邦模型的准确率中数值最大的目标准确率;以及The comparison module is used to compare the accuracy rates of multiple federated models and determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models; and
所述确定模块还用于将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型。The determining module is further configured to determine the federation model with the target accuracy rate as a federation model whose accuracy rate meets a preset condition among the plurality of federation models.
在一实施例中,所述联邦模型参数确定装置还包括:In an embodiment, the federal model parameter determination device further includes:
判断模块,用于判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛。The judging module is used for judging whether the federated model whose accuracy rate meets the preset condition among the multiple federated models has converged.
在一实施例中,所述执行模块还包括:In an embodiment, the execution module further includes:
获取单元,用于获取多个所述联邦模型在联邦学习过程中分别对预设测试数据处理所生成的测试结果;以及An obtaining unit, configured to obtain test results generated by processing preset test data on a plurality of federated models in the federated learning process; and
生成单元,用于将与预设测试数据对应的参考结果分别与各所述测试结果对比,生成多个所述联邦模型的准确率。The generating unit is configured to compare the reference results corresponding to the preset test data with each of the test results to generate the accuracy rates of multiple federated models.
在一实施例中,为实现上述目的,本申请还提供一种联邦模型参数确定设备,所述联邦模型参数确定设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的联邦模型参数确定程序,所述联邦模型参数确定程序被所述处理器执行时实现如上述所述的联邦模型参数确定方法的步骤。In an embodiment, in order to achieve the above object, the present application also provides a federated model parameter determining device. The federated model parameter determining device includes a memory, a processor, and is stored on the memory and can be stored on the processor. A running federation model parameter determination program, which implements the steps of the federation model parameter determination method described above when the federation model parameter determination program is executed by the processor.
在一实施例中,为实现上述目的,本申请还提供一种计算机存储介质,所述计算机存储介质上存储有联邦模型参数确定程序,所述联邦模型参数确定程序被处理器执行时实现如上所述的联邦模型参数确定方法的步骤。In an embodiment, in order to achieve the above object, the present application also provides a computer storage medium, the computer storage medium stores a federated model parameter determination program, and the federated model parameter determination program is executed by a processor to achieve the above The steps of the method for determining the parameters of the federated model described above.
本申请的联邦模型参数确定方法,先对获取的目标模型的多个参数进行随便编码组合,生成多组第一参数编码,并基于该多组第一参数编码分别对目标模型执行联邦学习过程,得到多个联邦模型,确定多个联邦模型的准确率;此后,若经判定多个联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个联邦模型的准确率,从多组第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组第三参数编码,对目标模型继续执行联邦学习过程;若经判定多个联邦模型中准确率符合预设条件的联邦模型收敛,则确定与该收敛的联邦模型对应的第一目标参数编码组,并将该第一目标参数编码组对应的第一目标参数确定为联邦模型参数。多个联邦模型的准确率表征了联邦模型分别以各组第一参数编码对应参数进行数据处理,所生成处理结果的准确程度;准确率越高,参数的适用程度越高;从而可依据各准确率结合收敛的联邦模型,来确定联邦模型参数。在确定联邦模型参数的过程中,通过从多组第一参数编码中选取出多组第二参数编码进行交叉变异处理,得到用于继续训练的第三参数编码,避免了由每批次具有差异性的训练数据来训练得到模型参数,而导致联邦模型适配性差的问题,提高了联邦模型针对不同场景预测的准确性。The method for determining the parameters of the federated model of the present application firstly performs random coding combinations on the acquired multiple parameters of the target model to generate multiple sets of first parameter codes, and respectively execute the federated learning process on the target model based on the multiple sets of first parameter codes. Obtain multiple federated models, and determine the accuracy of multiple federated models; after that, if the federated model whose accuracy is determined to meet the preset conditions among multiple federated models does not converge, then based on the accuracy of multiple federated models, the accuracy of multiple federated models is determined. In the first parameter encoding, multiple sets of second parameter encodings are selected for cross-mutation processing to obtain multiple sets of third parameter encodings, and based on the multiple sets of third parameter encodings, continue the federated learning process for the target model; if multiple federated models are determined If the federated model whose medium accuracy meets the preset condition converges, the first target parameter encoding group corresponding to the converged federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined as the federated model parameter. The accuracy of multiple federated models characterizes the accuracy of the data processing of the federated model with the corresponding parameters of each group of first parameter encoding; the higher the accuracy, the higher the degree of applicability of the parameters; thus, the accuracy of each parameter Combine the convergent federated model with the rate to determine the federated model parameters. In the process of determining the parameters of the federation model, multiple sets of second parameter codes are selected from multiple sets of first parameter codes to perform cross-mutation processing to obtain the third parameter code for continuing training, which avoids the difference between each batch The model parameters are trained using flexible training data, which leads to the problem of poor adaptability of the federated model, which improves the accuracy of the federated model's prediction for different scenarios.
附图说明Description of the drawings
图1为本申请联邦模型参数确定设备实施例方案涉及的设备硬件运行环境的结构示意图;FIG. 1 is a schematic diagram of the structure of the device hardware operating environment involved in the embodiment of the device for determining the parameters of the federation model of the application;
图2为本申请联邦模型参数确定方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the method for determining the parameters of the federation model of this application;
图3为本申请联邦模型参数确定装置较佳实施例的功能模块示意图。Fig. 3 is a schematic diagram of functional modules of a preferred embodiment of a device for determining parameters of a federated model of this application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本发明的实施方式Embodiments of the present invention
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the application, and are not used to limit the application.
本申请提供一种联邦模型参数确定设备,参照图1,图1为本申请联邦模型参数确定设备实施例方案涉及的设备硬件运行环境的结构示意图。This application provides a device for determining parameters of a federated model. Referring to FIG. 1, FIG. 1 is a schematic structural diagram of a device hardware operating environment involved in an embodiment of a device for determining a device for determining parameters of a federated model of this application.
如图1所示,该联邦模型参数确定设备可以包括:处理器1001,例如CPU,通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储设备。As shown in FIG. 1, the federation model parameter determination device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a magnetic disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
本领域技术人员可以理解,图1中示出的联邦模型参数确定设备的硬件结构并不构成对联邦模型参数确定设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the hardware structure of the device for determining the parameters of the federation model shown in FIG. 1 does not constitute a limitation on the device for determining the parameters of the federation model. Components, or different component arrangements.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及联邦模型参数确定程序。其中,操作系统是管理和控制联邦模型参数确定设备与软件资源的程序,支持网络通信模块、用户接口模块、联邦模型参数确定程序以及其他程序或软件的运行;网络通信模块用于管理和控制网络接口1004;用户接口模块用于管理和控制用户接口1003。As shown in Fig. 1, a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a federation model parameter determination program. Among them, the operating system is a program that manages and controls the federation model parameter determination equipment and software resources, and supports the operation of the network communication module, user interface module, federation model parameter determination program, and other programs or software; the network communication module is used to manage and control the network Interface 1004: The user interface module is used to manage and control the user interface 1003.
在图1所示的联邦模型参数确定设备硬件结构中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;处理器1001可以调用存储器1005中存储的联邦模型参数确定程序,并执行以下操作:In the hardware structure of the device for determining the parameters of the federation model shown in Figure 1, the network interface 1004 is mainly used to connect to the back-end server and communicate with the back-end server; the user interface 1003 is mainly used to connect to the client (user side) and communicate with the client. Data communication: The processor 1001 can call the federation model parameter determination program stored in the memory 1005, and perform the following operations:
获取目标模型的多个参数,并对所述多个参数进行随机编码组合处理,得到多组第一参数编码;Acquire multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
基于多组所述第一参数编码分别对所述目标模型执行联邦学习过程,得到多个联邦模型,并确定多个所述联邦模型的准确率;Performing a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组所述第三参数编码,再对所述目标模型执行联邦学习过程;If the federated model whose accuracy meets the preset condition among the multiple federated models does not converge, then based on the accuracy of the multiple federated models, select multiple sets of second parameter encoding from multiple sets of the first parameter encoding. Cross mutation processing to obtain multiple sets of third parameter codes, and based on multiple sets of third parameter codes, perform a federated learning process on the target model;
若多个所述联邦模型中准确率符合预设条件的联邦模型收敛,则确定收敛的联邦模型对应的第一目标参数编码组,并将所述第一目标参数编码组对应的第一目标参数,确定为联邦模型参数。If the federated model whose accuracy meets the preset condition among the plurality of federated models converges, the first target parameter encoding group corresponding to the convergent federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined , Determined as the federated model parameter.
在一实施例中,所述基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:In one embodiment, the step of selecting multiple sets of second parameter codes from multiple sets of the first parameter codes to perform cross-mutation processing based on the accuracy rates of the multiple federated models to obtain multiple sets of third parameter codes include:
将多个所述联邦模型的准确率和预设阈值对比,确定多个所述联邦模型的准确率中大于所述预设阈值的目标准确率;Comparing the accuracy rates of the multiple federated models with a preset threshold to determine a target accuracy rate of the accuracy rates of the multiple federated models that is greater than the preset threshold;
根据各所述目标准确率,对多组所述第一参数编码进行筛选,得到多组第二参数编码;Screening multiple sets of the first parameter codes according to each target accuracy rate to obtain multiple sets of second parameter codes;
对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码。Cross-mutation processing is performed on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
在一实施例中,所述对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:In an embodiment, the step of performing cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes includes:
根据预设交叉项数,将多组所述第二参数编码随机划分为多个数据组类;Randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross items;
根据预设交叉位数,对每一所述数据组类中的各第二参数编码组进行交叉,生成多组待变异第二参数编码;According to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes;
对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码。Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
在一实施例中,所述对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码的步骤包括:In an embodiment, the step of performing mutation processing on multiple sets of the second parameter codes to be mutated, and generating multiple sets of third parameter codes includes:
根据预设变异比例,随机筛选出每一所述待变异第二参数编码组中的待变异参数编码;According to the preset mutation ratio, randomly select the to-be-mutated parameter codes in each of the to-be-mutated second parameter coding groups;
对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码。Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
在一实施例中,所述若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛的步骤之前,处理器1001可以调用存储器1005中存储的联邦模型参数确定程序,并执行以下操作:In an embodiment, before the step of if the federated model whose accuracy rate meets the preset condition in the plurality of federated models does not converge, the processor 1001 may call the federated model parameter determination program stored in the memory 1005, and execute the following operate:
对比多个所述联邦模型的准确率,确定多个所述联邦模型的准确率中数值最大的目标准确率;Comparing the accuracy rates of the multiple federated models to determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models;
将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型。The federated model with the target accuracy rate is determined as the federated model whose accuracy rate meets the preset condition among the plurality of federated models.
在一实施例中,所述将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型的步骤之后,处理器1001可以调用存储器1005中存储的联邦模型参数确定程序,并执行以下操作:In one embodiment, after the step of determining the federation model with the target accuracy rate as the federation model with the accuracy rate meeting preset conditions among the plurality of federation models, the processor 1001 may call the federation model stored in the memory 1005 The federation model parameter determination procedure, and performs the following operations:
判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛。It is determined whether the federated model whose accuracy rate meets the preset condition among the plurality of federated models has converged.
在一实施例中,所述确定多个所述联邦模型的准确率的步骤包括:In an embodiment, the step of determining the accuracy of multiple federated models includes:
获取多个所述联邦模型在联邦学习过程中分别对预设测试数据处理所生成的测试结果;Acquiring test results generated by processing preset test data for multiple federated models in the federated learning process;
将与预设测试数据对应的参考结果分别与各所述测试结果对比,生成多个所述联邦模型的准确率。The reference results corresponding to the preset test data are respectively compared with each of the test results to generate accuracy rates of multiple federated models.
本申请联邦模型参数确定设备的具体实施方式与下述联邦模型参数确定方法各实施例基本相同,在此不再赘述。The specific implementation of the device for determining the parameters of the federation model of the present application is basically the same as the following embodiments of the method for determining the federation model parameters, and will not be repeated here.
本申请还提供一种联邦模型参数确定方法。This application also provides a method for determining the parameters of the federation model.
参照图2,图2为本申请联邦模型参数确定方法第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a method for determining a federal model parameter of this application.
本申请实施例提供了联邦模型参数确定方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。具体地,本实施例中的联邦模型参数确定方法包括:The embodiment of the application provides an embodiment of the method for determining the parameters of the federation model. It should be noted that although the logical sequence is shown in the flowchart, in some cases, the sequence shown may be executed in a different order than here. Or the steps described. Specifically, the method for determining federation model parameters in this embodiment includes:
步骤S10,获取目标模型的多个参数,并对所述多个参数进行随机编码组合处理,得到多组第一参数编码。Step S10: Obtain multiple parameters of the target model, and perform random coding combination processing on the multiple parameters to obtain multiple sets of first parameter codes.
本实施例中的联邦模型参数确定方法应用于服务器,适用于通过服务器来确定联邦模型的最优模型参数。其中联邦模型可以是横向联邦模型,也可以是纵向联邦模型,本实施例优选以横向联邦模型加以说明,横向联邦模型是基于横向联邦学习构建的联合模型,横向联邦学习是在两个数据集的用户特征重叠较多,而用户重叠较少的情况下,把数据集按照横向(即用户维度)切分,并取出双方用户特征相同而用户不完全相同的部分数据进行训练的方法。服务器生成多组参数作为横向联邦模型的模型参数,横向联邦模型则分别在多组模型参数的基础上,以横向联邦学习的方式进行训练,得到多个训练结果。从多个训练结果中查找收敛特性最好的目标训练结果,生成该目标训练结果的模型参数即为适用于横向联邦模型的最优模型参数。The method for determining the parameters of the federation model in this embodiment is applied to the server, and is suitable for determining the optimal model parameters of the federation model through the server. The federation model can be a horizontal federation model or a vertical federation model. This embodiment is preferably described as a horizontal federation model. The horizontal federation model is a joint model constructed based on horizontal federated learning. The horizontal federated learning is based on two data sets. When the user features overlap more and the user overlaps less, the data set is divided into horizontal (user dimension), and the part of the data with the same user characteristics but not the same user is taken out for training. The server generates multiple sets of parameters as the model parameters of the horizontal federation model, and the horizontal federation model is trained on the basis of the multiple sets of model parameters in the way of horizontal federation learning, and multiple training results are obtained. The target training result with the best convergence characteristics is found from the multiple training results, and the model parameter that generates the target training result is the optimal model parameter suitable for the horizontal federated model.
在一实施例中,将未经训练处理的联邦模型作为目标模型,服务器在生成多组模型参数供目标模型训练之前,先为目标模型设定多个可调的参数,该多个可调的参数包括但不限于神经网络算法中的神经元个数、神经网络的层数、窗口大小以及特征个数。此后,给定每个参数的长度l,使得每个参数的可调范围在[0,]内,对各个参数获取并进行编码,生成为各参数的二进制编码。进而依据各参数,将各参数的二进制编码随机组合成多组长度相当、含义相同的第一参数编码,以供目标模型执行联邦学习过程。需要说明的是,每组第一参数编码中均包含有各个参数的编码,只是各个参数的编码取可调范围内的不同值,使得多组第一参数编码之间的取值不同;即多组长度相同、含义相同、数值不同的第一参数编码。In one embodiment, the untrained federated model is used as the target model. Before the server generates multiple sets of model parameters for training the target model, it first sets multiple adjustable parameters for the target model. The parameters include, but are not limited to, the number of neurons in the neural network algorithm, the number of layers of the neural network, the window size, and the number of features. After that, the length l of each parameter is given, so that the adjustable range of each parameter is within [0,], and each parameter is acquired and encoded, and the binary code of each parameter is generated. Furthermore, according to the parameters, the binary codes of the parameters are randomly combined into multiple groups of first parameter codes with the same length and the same meaning for the target model to perform the federated learning process. It should be noted that each group of first parameter encoding includes the encoding of each parameter, but the encoding of each parameter takes a different value within the adjustable range, so that the value of multiple sets of first parameter encoding is different; The first parameter codes with the same group length, the same meaning, and different values.
步骤S20,基于多组所述第一参数编码分别对所述目标模型执行联邦学习过程,得到多个联邦模型,并确定多个所述联邦模型的准确率;Step S20: Perform a federated learning process on the target model respectively based on the multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
更在一实施例中,目标模型分别基于各组第一参数编码执行联邦学习过程,对用于训练的训练样本进行处理,得到多个联邦模型,联邦模型的数量与第一参数编码的组数一致。此外,预先设置有用于测试的预设测试数据,将预设测试数据分别传输到多个联邦模型中,由多个联邦模型处理,并确定多个联邦模型的准确率,通过准确率来表征多个联邦模型对预设测试数据处理的准确程度。具体地,确定多个所述联邦模型的准确率的步骤包括:In another embodiment, the target model executes a federated learning process based on each group of first parameter codes, and processes the training samples used for training to obtain multiple federated models, the number of federated models and the number of groups of first parameter codes Unanimous. In addition, preset test data for testing are set in advance, and the preset test data are respectively transmitted to multiple federated models, processed by multiple federated models, and the accuracy of multiple federated models is determined. The accuracy of a federated model for the processing of preset test data. Specifically, the step of determining the accuracy of multiple federated models includes:
步骤S21,获取多个所述联邦模型在联邦学习过程中分别对预设测试数据处理所生成的测试结果;Step S21: Obtain test results generated by processing preset test data for multiple federated models in the federated learning process;
步骤S22,将与预设测试数据对应的参考结果分别与各所述测试结果对比,生成多个所述联邦模型的准确率。In step S22, the reference results corresponding to the preset test data are respectively compared with each of the test results to generate accuracy rates of multiple federated models.
在一实施例中,每个联邦模型在联邦学习过程中将第一参数编码所对应的参数作为其自身的网络参数,分别以各自的网络参数运行,对预设测试数据进行测试处理,生成测试结果。服务器对该每个联邦模型的测试结果进行获取,并调取与预设测试数据对应的参考结果,将测试结果分别和各项测试结果对比,生成表征各项测试结果分别与参考结果之间一致性程度高低的数值。该各项数值为每个联邦模型分别以与各第一参数编码对应的网络参数运行,对预设测试数据处理所生成处理结果的准确程度,即多个联邦模型的准确率。其中准确率越高,表征联邦模型对预设测试数据处理的准确程度越高,反之则说明联邦模型对预设测试数据处理的准确程度越低。In one embodiment, each federated model uses the parameter corresponding to the first parameter code as its own network parameter during the federated learning process, runs with its own network parameter, and performs test processing on the preset test data to generate a test result. The server obtains the test results of each federation model, retrieves the reference results corresponding to the preset test data, compares the test results with each test result, and generates a characterization that each test result is consistent with the reference result. The numerical value of the degree of sexuality. The various values are the accuracy of each federation model running with the network parameters corresponding to each first parameter code, and the processing results generated by processing the preset test data, that is, the accuracy of multiple federation models. The higher the accuracy rate, the higher the accuracy of the federated model's processing of the preset test data. On the contrary, the lower the accuracy of the federated model's processing of the preset test data.
步骤S30,若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组所述第三参数编码,再对所述目标模型执行联邦学习过程;Step S30, if the federation models whose accuracy rates meet the preset conditions among the multiple federation models do not converge, then based on the accuracy rates of the multiple federation models, select multiple sets of second parameter codes from multiple sets of the first parameter codes. Perform cross-mutation processing on the parameter encoding to obtain multiple sets of third parameter encodings, and then perform a federated learning process on the target model based on the multiple sets of third parameter encodings;
在一实施例中,准确率是确定联邦模型的最优联邦模型参数的依据之一,而不同准确率表征的联邦模型的处理准确程度不同,为了确定最优联邦模型参数,可对于其中准确程度低的联邦模型进行剔除。具体地,若多个联邦模型中准确率符合预设条件的联邦模型不收敛的步骤之前,还包括:In one embodiment, the accuracy rate is one of the basis for determining the optimal federated model parameters of the federation model, and the processing accuracy of the federated model represented by different accuracy rates is different. In order to determine the optimal federated model parameters, the accuracy of the federated model can be determined. The low federation model is eliminated. Specifically, if the federated model whose accuracy rate meets the preset condition among multiple federated models does not converge before the step, it also includes:
步骤a,对比多个所述联邦模型的准确率,确定多个所述联邦模型的准确率中数值最大的目标准确率;Step a: Comparing the accuracy rates of the multiple federation models to determine the target accuracy rate with the largest value among the accuracy rates of the multiple federation models;
步骤b,将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型。Step b: Determine the federated model with the target accuracy rate as a federated model whose accuracy rate meets a preset condition among the plurality of federated models.
步骤c,判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛。Step c: Judge whether the federated model whose accuracy rate meets the preset condition among the plurality of federated models has converged.
在一实施例中,设定用于剔除的预设条件,如数值大小条件或者最大值条件;当联邦模型的准确率大小满足该数值大小条件或者最大值条件,则将该联邦模型用于确定联邦模型参数,否则将联邦模型剔除不用于确定联邦模型参数。本实施例将用于剔除准确程度低的联邦模型的预设条件设定为最大值条件。在目标模型执行联邦学习过程得到多个联邦模型,并确定多个联邦模型的准确率之后,将每个联邦模型的准确率进行对比,确定多个联邦模型的准确率中数值最大的目标准确率。进而查找具有该目标准确率的联邦模型,并将其确定为多个联邦模型中准确率符合预设条件的联邦模型,以此实现其他联邦模型的剔除。In one embodiment, a preset condition for removal is set, such as a numerical value condition or a maximum value condition; when the accuracy of the federation model satisfies the numerical value condition or the maximum value condition, the federated model is used to determine Federated model parameters, otherwise the federated model will not be used to determine the federated model parameters. In this embodiment, the preset condition for excluding the federated model with low accuracy is set as the maximum value condition. After the target model executes the federation learning process to obtain multiple federated models, and the accuracy of the federated models is determined, compare the accuracy of each federated model to determine the target accuracy with the largest value among the accuracy of multiple federated models . Then find the federated model with the target accuracy rate, and determine it as the federated model whose accuracy rate meets the preset conditions among multiple federated models, so as to realize the elimination of other federated models.
在一实施例中,判断经剔除操作剩余的联邦模型,即多个联邦模型中准确率符合预设条件的联邦模型是否收敛。其中收敛表征联邦模型以第一参数编码对应的参数对预设测试数据进行处理,所得到的测试结果均具有最高的准确率;或者即便不是每次都具有最高的准确率,但大部分次数都是最高准确率,且其他次的准确率与最高准确率之间的数值差别不大。从而通过此前联邦模型处理预设测试数据的测试结果准确率,可判定联邦模型是否收敛。In one embodiment, it is determined whether the federal model remaining after the elimination operation, that is, the federal model whose accuracy meets the preset condition among the multiple federal models, is converged. Among them, the convergence characterization federation model processes the preset test data with the parameters corresponding to the first parameter encoding, and the test results obtained have the highest accuracy rate; or even if it does not have the highest accuracy rate every time, most of the times It is the highest accuracy rate, and there is little difference between the accuracy rate and the highest accuracy rate of other times. Therefore, the accuracy of the test results of the previous federated model processing preset test data can be used to determine whether the federated model converges.
在一实施例中,若经判定多个联邦模型中准确率符合预设条件的联邦模型不收敛,则重新对目标模型执行联邦学习,生成新的准确率满足预设条件的多个联邦模型判定是否收敛。具体地,因进行收敛判断的联邦模型以准确率符合预设条件为前提,为了确保各联邦模型的准确率符合预设条件,设置有依据各联邦模型的准确率,对多组第一参数编码筛选的机制,从其中筛选出表征准确率相对较高的第二参数编码。In one embodiment, if it is determined that the federated model whose accuracy rate meets the preset condition among the multiple federated models does not converge, then the federated learning is performed on the target model again to generate a new multiple federated model judgement whose accuracy rate meets the preset condition Whether to converge. Specifically, because the federated model for convergence judgment is based on the premise that the accuracy rate meets the preset conditions, in order to ensure that the accuracy of each federated model meets the preset conditions, it is set to encode multiple sets of first parameters based on the accuracy of each federated model The screening mechanism is to screen out the second parameter code with relatively high characterization accuracy.
在一实施例中,服务器对第二参数编码进行交叉变异处理,且本实施例中的交叉变异处理优选以遗传算法为基础实现。遗传算法(Genetic Algorithm)是通过搜索解决优化问题的方法,其先随机生成一定量的种群,然后算法包括:选择(Selection)、交叉(Crossover)和变异(Mutation)。其中选择为定义个体适应度,评价每个个体的适应度并选择适应度较高的作为下一轮种群成员的过程;交叉为将种群成员的染色体进行编码,将两两种群成员的染色体编码交叉的过程;突变为将交叉后的染色体编码以一定概率变异的过程。本实施例中上述随机生成多组第一参数编码的过程即为遗传算法中随机生成一定量种群并对种群成员的染色体编码的过程。将联邦模型对预设测试数据进行处理,所生成处理结果的准确率作为遗传算法中的适应度,根据准确率对多组第一参数编码进行筛选的过程即为遗传算法的选择过程。此后,通过遗传算法中的交叉和变异对经选择的多组第二参数编码进行处理,得到多组第三参数编码,并依据多组第三参诉编码,对目标模型再次执行联邦学习过程,直到多个联邦模型中准确率符合预设条件的联邦模型收敛,确定出联邦模型最优的联邦模型参数。In an embodiment, the server performs cross-mutation processing on the second parameter encoding, and the cross-mutation processing in this embodiment is preferably implemented based on genetic algorithms. Genetic Algorithm (Genetic Algorithm) is a method of solving optimization problems through search. It first randomly generates a certain amount of population, and then the algorithm includes: Selection, Crossover and Mutation. The selection is the process of defining individual fitness, evaluating the fitness of each individual and selecting the higher fitness as the next round of population members; crossover is the process of encoding the chromosomes of the members of the population, and crossing the chromosome codes of the two or two groups of members The process of mutation; mutation is the process of mutating the chromosome code after crossover with a certain probability. In this embodiment, the process of randomly generating multiple sets of first parameter codes is a process of randomly generating a certain amount of population in the genetic algorithm and encoding the chromosomes of the members of the population. The federated model is used to process the preset test data, and the accuracy of the generated processing results is used as the fitness in the genetic algorithm. The process of screening multiple sets of first parameter codes based on the accuracy is the selection process of the genetic algorithm. After that, through the crossover and mutation in the genetic algorithm, the selected multiple sets of second parameter codes are processed to obtain multiple sets of third parameter codes, and based on the multiple sets of third reference codes, the federated learning process is performed again on the target model. Until the federated model whose accuracy rate meets the preset conditions among multiple federated models converges, the optimal federated model parameters of the federated model are determined.
步骤S40,若多个所述联邦模型中准确率符合预设条件的联邦模型收敛,则确定收敛的联邦模型对应的第一目标参数编码组,并将所述第一目标参数编码组对应的第一目标参数,确定为联邦模型参数。Step S40: If the federated models whose accuracy meets the preset conditions among the plurality of federated models converge, determine the first target parameter encoding group corresponding to the converged federated model, and combine the first target parameter encoding group corresponding to the first target parameter encoding group. A target parameter is determined as the federated model parameter.
在一实施例中,若经判定多个联邦模型中准确率符合预设条件的联邦模型收敛,则说明该联邦模型以第一参数编码对应的参数对预设测试数据进行处理,所得到的测试结果具有较高准确率。从而获取该收敛的联邦模型中的第一参数编码组作为第一目标参数编码组,并依据编码与参数之间的转换关系,查找与第一目标参数编码对应的第一目标参数;或者直接对第一目标参数编码进行逆编码,生成与第一目标参数编码对应的第一目标参数。将该第一目标参数确定为联邦模型的联邦模型参数,联邦模型以该第一目标参数运行,对数据进行处理所得到的处理结果具有较高的准确性。In one embodiment, if it is determined that the federated model whose accuracy rate meets the preset condition among the multiple federated models has converged, it means that the federated model processes the preset test data with the parameters corresponding to the first parameter encoding, and the resulting test The result has a higher accuracy rate. In this way, the first parameter encoding group in the convergent federated model is obtained as the first target parameter encoding group, and the first target parameter corresponding to the first target parameter encoding is found according to the conversion relationship between the encoding and the parameter; or directly The first target parameter encoding is inversely encoded to generate a first target parameter corresponding to the first target parameter encoding. The first target parameter is determined as the federated model parameter of the federated model, and the federated model runs with the first target parameter, and the processing result obtained by processing the data has high accuracy.
本申请的联邦模型参数确定方法,先对获取的目标模型的多个参数进行随便编码组合,生成多组第一参数编码,并基于该多组第一参数编码分别对目标模型执行联邦学习过程,得到多个联邦模型,确定多个联邦模型的准确率;此后,若经判定多个联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个联邦模型的准确率,从多组第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组第三参数编码,对目标模型继续执行联邦学习过程;若经判定多个联邦模型中准确率符合预设条件的联邦模型收敛,则确定与该收敛的联邦模型对应的第一目标参数编码组,并将该第一目标参数编码组对应的第一目标参数确定为联邦模型参数。多个联邦模型的准确率表征了联邦模型分别以各组第一参数编码对应参数进行数据处理,所生成处理结果的准确程度;准确率越高,参数的适用程度越高;从而可依据各准确率结合收敛的联邦模型,来确定联邦模型参数。在确定联邦模型参数的过程中,通过从多组第一参数编码中选取出多组第二参数编码进行交叉变异处理,得到用于继续训练的第三参数编码,避免了由每批次具有差异性的训练数据来训练得到模型参数,而导致联邦模型适配性差的问题,提高了联邦模型针对不同场景预测的准确性。The method for determining the parameters of the federated model of the present application firstly performs random coding combinations on the acquired multiple parameters of the target model to generate multiple sets of first parameter codes, and respectively execute the federated learning process on the target model based on the multiple sets of first parameter codes. Obtain multiple federated models, and determine the accuracy of multiple federated models; after that, if the federated model whose accuracy is determined to meet the preset conditions among multiple federated models does not converge, then based on the accuracy of multiple federated models, the accuracy of multiple federated models is determined. In the first parameter encoding, multiple sets of second parameter encodings are selected for cross-mutation processing to obtain multiple sets of third parameter encodings, and based on the multiple sets of third parameter encodings, continue the federated learning process for the target model; if multiple federated models are determined If the federated model whose medium accuracy meets the preset condition converges, the first target parameter encoding group corresponding to the converged federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined as the federated model parameter. The accuracy of multiple federated models characterizes the accuracy of the data processing of the federated model with the corresponding parameters of each group of first parameter encoding; the higher the accuracy, the higher the degree of applicability of the parameters; thus, the accuracy of each parameter Combine the convergent federated model with the rate to determine the federated model parameters. In the process of determining the parameters of the federation model, multiple sets of second parameter codes are selected from multiple sets of first parameter codes for cross-mutation processing to obtain the third parameter code for continuing training, which avoids the difference between each batch The model parameters are trained using flexible training data, which leads to the problem of poor adaptability of the federated model, which improves the accuracy of the federated model's prediction for different scenarios.
在一实施例中,基于本申请联邦模型参数确定方法的第一实施例,提出本申请联邦模型参数确定方法第二实施例。In one embodiment, based on the first embodiment of the method for determining federal model parameters of the present application, a second embodiment of the method for determining federal model parameters of the present application is proposed.
所述联邦模型参数确定方法第二实施例与所述联邦模型参数确定方法第一实施例的区别在于,所述基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:The difference between the second embodiment of the federated model parameter determination method and the first embodiment of the federated model parameter determination method is that the accuracy of the federated model is based on multiple sets of the first parameter encoding. The steps of selecting multiple sets of second parameter codes for cross-mutation processing, and obtaining multiple sets of third parameter codes include:
步骤S31,将多个所述联邦模型的准确率和预设阈值对比,确定多个所述联邦模型的准确率中大于所述预设阈值的目标准确率;Step S31, comparing the accuracy rates of the multiple federated models with a preset threshold, and determine a target accuracy rate of the accuracy rates of the multiple federated models that is greater than the preset threshold;
步骤S32,根据各所述目标准确率,对多组所述第一参数编码进行筛选,得到多组第二参数编码;Step S32, screening multiple sets of the first parameter codes according to each target accuracy rate to obtain multiple sets of second parameter codes;
步骤S33,对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码。Step S33: Perform cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
在本实施例中,为了依据各联邦模型的准确率,对多组第一参数编码筛选,预先设置有表征准确率高低的预设阈值,将各项准确率分别和该预设阈值对比,查找其中大于预设阈值的目标准确率。各项准确率由联邦模型依据各第一参数编码生成,在确定各项目标准确率后,对多组第一参数编码中进行筛选查找操作,查找出其中生成各目标准确率的第一参数编码作为第二参数编码。此后,对多组第二参数编码进行交叉变异处理,得到用于对目标模型重新执行联邦学习过程的多组第三参数编码。具体地,对多组第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:In this embodiment, in order to screen multiple sets of first parameter codes according to the accuracy rate of each federation model, preset thresholds representing the accuracy rate are preset, and each accuracy rate is compared with the preset thresholds to find Among them, the target accuracy rate is greater than the preset threshold. Each accuracy rate is generated by the federated model according to each first parameter code. After the accuracy rate of each target is determined, the multiple sets of first parameter codes are screened and searched, and the first parameter code that generates each target accuracy rate is found. Encode as the second parameter. After that, cross-mutation processing is performed on multiple sets of second parameter codes to obtain multiple sets of third parameter codes for re-executing the federated learning process on the target model. Specifically, performing cross mutation processing on multiple sets of second parameter codes to obtain multiple sets of third parameter codes includes:
步骤S311,根据预设交叉项数,将多组所述第二参数编码随机划分为多个数据组类;Step S311: randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross-terms;
步骤S312,根据预设交叉位数,对每一所述数据组类中的各第二参数编码组进行交叉,生成多组待变异第二参数编码;Step S312, according to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes;
步骤S313,对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码。Step S313: Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
在一实施例中,预先依据需求设置有预设交叉项数,以表征了对第二参数编码进行交叉的组数,如将两组第二参数编码进行交叉,或者将三组第三参数编码进行交叉等。本实施例优选以两组第二参数编码进行交叉,即两两交叉。交叉过程中,将多组第二参数编码按照预设交叉组数进行随机划分,每两组第二参数编码经划分形成为一个数据组类,针对每个数据组类中的第二参数编码单独进行交叉。In one embodiment, a preset number of cross items is set in advance according to requirements to represent the number of groups for performing crossover on the second parameter encoding, for example, two sets of second parameter codes are crossed, or three sets of third parameter codes are crossed. Perform crossover and so on. In this embodiment, preferably, two sets of second parameter codes are used for crossover, that is, two by two crossovers. During the crossover process, multiple sets of second parameter codes are randomly divided according to the preset number of crossover groups, and each two groups of second parameter codes are divided into a data group type, and the second parameter codes in each data group type are individually coded Make a cross.
在一实施例中,预先依据需求设定有预设交叉位数,以表征每组第二参数编码中用于交叉的数据位数,如设定交叉位数为五五交叉,即从数据组类的各组第二参数编码中均抽取二分之一的编码进行交叉,形成新的参数编码;或者设定交叉位数为四六交叉,即从数据组类中的一组第二参数编码中抽取五分之二的编码,并从另一组第二参数编码中抽取五分之三的编码,将两者进行交叉,形成新的参数编码。本实施例优选以五五交叉的预设交叉位数进行交叉,依据该预设交叉位数,对每一数据组类中的各组第二参数编码进行读取操作;读取其中与预设交叉位数所体现编码数量一致的部分参数编码,且所读取的部分参数编码在第二参数编码中的位置不限,即对第二参数编码进行随机读取。此后对读取的各部分参数编码进行组合,组合的位置也不限;即对读取的各部分参数编码进行随机组合,生成为数据组类的待变异第二参数编码。在每一数据组类中的第二参数编码均进行交叉,得到与各数据组类对应的多组待变异第二参数编码后,则对多组待变异第二参数编码进行变异处理,通过变异处理生成多组第三参数编码。具体地,对多组待变异第二参数编码进行变异处理,生成多组第三参数编码的步骤包括:In one embodiment, a preset number of crossover bits is set in advance according to requirements to characterize the number of data bits used for crossover in each set of second parameter codes. Each group of the second parameter codes of each group extracts one-half of the codes for crossover to form a new parameter code; or sets the number of crossover bits to four or six crosses, that is, from a group of second parameter codes in the data group class Two-fifths of the code is extracted from the second parameter code, and three-fifths of the code is extracted from another group of second parameter codes, and the two are crossed to form a new parameter code. In this embodiment, it is preferable to perform crossover with a preset crossover number of five to five crosses. According to the preset crossover number, a reading operation is performed on each set of second parameter codes in each data group; The cross-digit number embodies part of the parameter codes with the same number of codes, and the position of the read part of the parameter codes in the second parameter codes is not limited, that is, the second parameter codes are read randomly. After that, the read parameter codes are combined, and the position of the combination is not limited; that is, the read parameter codes are randomly combined to generate the second parameter code to be mutated in the data group type. The second parameter codes in each data group category are all crossed, and after the multiple sets of to-be-mutated second parameter codes corresponding to each data group category are obtained, the multiple sets of to-be-mutated second parameter codes are subjected to mutation processing, and through the mutation The processing generates multiple sets of third parameter codes. Specifically, performing mutation processing on multiple sets of second parameter codes to be mutated, and the step of generating multiple sets of third parameter codes includes:
步骤S3131,根据预设变异比例,随机筛选出每一所述待变异第二参数编码组中的待变异参数编码;Step S3131, randomly selecting the parameter codes to be mutated in each of the second parameter coding groups to be mutated according to the preset mutation ratio;
步骤S3132,对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码。Step S3132: mutate each parameter code to be mutated in the multiple sets of second parameter codes to be mutated to generate multiple sets of third parameter codes.
在一实施例中,为了使得用于联邦模型训练的样本数据更为丰富准确,本实施例基于遗传算法中的变异过程对待变异第二参数编码进行变异处理,以通过变异来生成其他不具有规律性的参数编码进行联邦训练。具体地,预先依据需求设置有预设变异比例,如变异20%、30%等,以表征对待变异第二参数编码变异数量的需求。依据该预设变异比例,对各组待编码第二参数编码分别进行随机筛选,得到每一待变异第二参数编码组中和变异比例所表征数量一致的待变异参数编码。In one embodiment, in order to make the sample data used for federated model training more abundant and accurate, this embodiment performs mutation processing on the second parameter code to be mutated based on the mutation process in the genetic algorithm, so as to generate other non-regularities through mutation. Featured parameter coding for federated training. Specifically, preset mutation ratios, such as 20%, 30%, etc., are set according to requirements in advance to represent the demand for encoding the number of mutations in the second parameter to be mutated. According to the preset mutation ratio, each group of to-be-encoded second parameter codes is randomly screened to obtain the number of to-be-mutated parameter codes in each of the to-be-mutated second parameter encoding groups that is consistent with the number represented by the mutation ratio.
更在一实施例中,对每组待变异第二参数编码中的待变异参数编码进行变异,和每一待变异第二参数编组中各自未经变异的编码一并生成为第三参数编码。以供目标模型基于多组第三参数编码执行联邦学习过程,确定联邦模型参数。需要说明的是,本实施例也可以通过预先设定变异位置进行变异,该变异位置表征变异编码所在的位置,以实现针对固定位置的编码进行变异。可以是多处位置也可以是单出位置,如编码的第3位、第5位,或者第2位和第3位等。根据预设变异位置筛选出各待变异第二参数编码组中的待变异参数编码进行变异,得到多组第三参数样本。In another embodiment, the code of the parameter to be mutated in each group of second parameter codes to be mutated is mutated, and the respective unmutated codes in each group of the second parameter to be mutated are generated together as the third parameter code. For the target model to perform a federated learning process based on multiple sets of third parameter codes to determine the federated model parameters. It should be noted that, in this embodiment, mutation may also be performed by pre-setting mutation positions, and the mutation position represents the position where the mutation code is located, so as to realize the mutation of the code at the fixed position. It can be multiple positions or single-out positions, such as the 3rd and 5th positions of the code, or the 2nd and 3rd positions. According to the preset mutation positions, the codes of the parameters to be mutated in the coding groups of the second parameter to be mutated are screened out for mutation, and multiple sets of third parameter samples are obtained.
本实施例在从多组第一参数编码筛选出多组第二参数编码后,通过对多组第二参数编码进行交叉变异处理,来生成用于联邦学习过程的多组第三参数编码,避免了联邦学习依据各传感器采集的训练数据进行训练,所导致的适配性差的问题,确保了联邦模型针对不同场景预测的准确性。In this embodiment, after multiple sets of second parameter codes are selected from multiple sets of first parameter codes, the multiple sets of second parameter codes are subjected to cross-mutation processing to generate multiple sets of third parameter codes used in the federated learning process to avoid The problem of poor adaptability caused by federated learning training based on the training data collected by each sensor ensures the accuracy of the federated model's prediction for different scenarios.
本申请还提供一种联邦模型参数确定装置。The application also provides a device for determining the parameters of the federation model.
参照图3,图3为本申请联邦模型参数确定装置第一实施例的功能模块示意图。所述联邦模型参数确定装置包括:Referring to Fig. 3, Fig. 3 is a schematic diagram of the functional modules of the first embodiment of the device for determining the parameters of the federation model of this application. The device for determining the parameters of the federation model includes:
生成模块10,用于获取模块,用于获取目标模型的多个参数,并对所述多个参数进行随机编码组合处理,得到多组第一参数编码;The generating module 10 is used to obtain a module, which is used to obtain multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
执行模块20,用于基于多组所述第一参数编码分别对所述目标模型执行联邦学习过程,得到多个联邦模型,并确定多个所述联邦模型的准确率;The execution module 20 is configured to execute a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
选取模块30,用于若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组所述第三参数编码,再对所述目标模型执行联邦学习过程;The selecting module 30 is configured to select multiple sets of the first parameter codes based on the accuracy rates of the multiple federation models if the federation models whose accuracy rates meet the preset conditions among the multiple federation models do not converge. Perform cross-mutation processing on the set of second parameter codes to obtain multiple sets of third parameter codes, and then perform a federated learning process on the target model based on the multiple sets of third parameter codes;
确定模块40,用于若多个所述联邦模型中准确率符合预设条件的联邦模型收敛,则确定收敛的联邦模型对应的第一目标参数编码组,并将所述第一目标参数编码组对应的第一目标参数,确定为联邦模型参数。The determining module 40 is configured to determine the first target parameter encoding group corresponding to the convergent federated model if the federal model whose accuracy rate meets the preset condition among the plurality of federated models converges, and combine the first target parameter encoding group The corresponding first target parameter is determined as the federated model parameter.
在一实施例中,所述选取模块30还包括:In an embodiment, the selection module 30 further includes:
对比单元,用于将多个所述联邦模型的准确率和预设阈值对比,确定多个所述联邦模型的准确率中大于所述预设阈值的目标准确率;A comparison unit, configured to compare the accuracy rates of the multiple federation models with a preset threshold, and determine a target accuracy rate of the accuracy rates of the multiple federation models that is greater than the preset threshold;
筛选单元,用于根据各所述目标准确率,对多组所述第一参数编码进行筛选,得到多组第二参数编码;A screening unit, configured to screen multiple sets of the first parameter codes according to each target accuracy rate to obtain multiple sets of second parameter codes;
处理单元,用于对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码。The processing unit is configured to perform cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
在一实施例中,所述处理单元还用于:In an embodiment, the processing unit is further configured to:
根据预设交叉项数,将多组所述第二参数编码随机划分为多个数据组类;Randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross items;
根据预设交叉位数,对每一所述数据组类中的各第二参数编码组进行交叉,生成多组待变异第二参数编码;According to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes;
对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码。Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
在一实施例中,所述处理单元还用于:In an embodiment, the processing unit is further configured to:
根据预设变异比例,随机筛选出每一所述待变异第二参数编码组中的待变异参数编码;According to the preset mutation ratio, randomly select the to-be-mutated parameter codes in each of the to-be-mutated second parameter coding groups;
对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码。Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
在一实施例中,所述联邦模型参数确定装置还包括:In an embodiment, the federal model parameter determination device further includes:
对比模块,用于对比多个所述联邦模型的准确率,确定多个所述联邦模型的准确率中数值最大的目标准确率;The comparison module is used to compare the accuracy rates of multiple federated models and determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models;
所述确定模块还用于将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型。The determining module is further configured to determine the federation model with the target accuracy rate as a federation model whose accuracy rate meets a preset condition among the plurality of federation models.
在一实施例中,所述联邦模型参数确定装置还包括:In an embodiment, the federal model parameter determination device further includes:
判断模块,用于判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛。The judging module is used for judging whether the federated model whose accuracy rate meets the preset condition among the multiple federated models has converged.
在一实施例中,所述执行模块20还包括:In an embodiment, the execution module 20 further includes:
获取单元,用于获取多个所述联邦模型在联邦学习过程中分别对预设测试数据处理所生成的测试结果;An obtaining unit, configured to obtain test results generated by processing preset test data on a plurality of federated models in a federated learning process;
生成单元,用于将与预设测试数据对应的参考结果分别与各所述测试结果对比,生成多个所述联邦模型的准确率。The generating unit is configured to compare the reference results corresponding to the preset test data with each of the test results to generate the accuracy rates of multiple federated models.
本申请联邦模型参数确定装置具体实施方式与上述联邦模型参数确定方法各实施例基本相同,在此不再赘述。The specific implementation of the federal model parameter determination device of the present application is basically the same as each embodiment of the aforementioned federal model parameter determination method, and will not be repeated here.
此外,本申请实施例还提出一种计算机存储介质。In addition, the embodiment of the present application also proposes a computer storage medium.
计算机存储介质上存储有联邦模型参数确定程序,联邦模型参数确定程序被处理器执行时实现如上所述的联邦模型参数确定方法的步骤。The computer storage medium stores a federation model parameter determination program, and the federation model parameter determination program is executed by the processor to realize the steps of the federation model parameter determination method as described above.
本申请计算机存储介质可以是计算机可读存储计算机存储介质,其具体实施方式与上述联邦模型参数确定方法各实施例基本相同,在此不再赘述。The computer storage medium of the present application may be a computer-readable storage computer storage medium, and its specific implementation is basically the same as each embodiment of the above-mentioned federated model parameter determination method, and will not be repeated here.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,这些均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can be made, any equivalent structure or equivalent process transformation made by using the content of the description and drawings of this application, or It is directly or indirectly used in other related technical fields, and these all fall within the protection of this application.

Claims (20)

  1. 一种联邦模型参数确定方法,其中,所述联邦模型参数确定包括以下步骤:A method for determining the parameters of a federation model, wherein the determination of the parameters of the federation model includes the following steps:
    获取目标模型的多个参数,并对所述多个参数进行随机编码组合处理,得到多组第一参数编码;Acquire multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
    基于多组所述第一参数编码分别对所述目标模型执行联邦学习过程,得到多个联邦模型,并确定多个所述联邦模型的准确率;Performing a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
    若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组所述第三参数编码,再对所述目标模型执行联邦学习过程;If the federated model whose accuracy meets the preset condition among the multiple federated models does not converge, then based on the accuracy of the multiple federated models, select multiple sets of second parameter encoding from multiple sets of the first parameter encoding. Cross mutation processing to obtain multiple sets of third parameter codes, and based on multiple sets of third parameter codes, perform a federated learning process on the target model;
    若多个所述联邦模型中准确率符合预设条件的联邦模型收敛,则确定收敛的联邦模型对应的第一目标参数编码组,并将所述第一目标参数编码组对应的第一目标参数,确定为联邦模型参数。If the federated model whose accuracy meets the preset condition among the plurality of federated models converges, the first target parameter encoding group corresponding to the convergent federated model is determined, and the first target parameter corresponding to the first target parameter encoding group is determined , Determined as the federated model parameter.
  2. 如权利要求1所述的联邦模型参数确定方法,其中,所述基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:The method for determining the parameters of a federation model according to claim 1, wherein said selecting a plurality of sets of second parameter codes from a plurality of sets of said first parameter codes for cross mutation processing based on the accuracy rates of a plurality of said federation models, The steps of obtaining multiple sets of third parameter codes include:
    将多个所述联邦模型的准确率和预设阈值对比,确定多个所述联邦模型的准确率中大于所述预设阈值的目标准确率;Comparing the accuracy rates of the multiple federated models with a preset threshold to determine a target accuracy rate of the accuracy rates of the multiple federated models that is greater than the preset threshold;
    根据各所述目标准确率,对多组所述第一参数编码进行筛选,得到多组第二参数编码;Screening multiple sets of the first parameter codes according to each target accuracy rate to obtain multiple sets of second parameter codes;
    对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码。Cross-mutation processing is performed on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
  3. 如权利要求2所述的联邦模型参数确定方法,其中,所述对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码的步骤包括:The method for determining the parameters of a federation model according to claim 2, wherein the step of performing cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes comprises:
    根据预设交叉项数,将多组所述第二参数编码随机划分为多个数据组类;Randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross items;
    根据预设交叉位数,对每一所述数据组类中的各第二参数编码组进行交叉,生成多组待变异第二参数编码;以及According to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes; and
    对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码。Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
  4. 如权利要求3所述的联邦模型参数确定方法,其中,所述对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码的步骤包括:The method for determining the parameters of a federation model according to claim 3, wherein the step of performing mutation processing on multiple sets of the second parameter codes to be mutated, and generating multiple sets of third parameter codes comprises:
    根据预设变异比例,随机筛选出每一所述待变异第二参数编码组中的待变异参数编码;以及According to the preset mutation ratio, randomly select the parameter codes to be mutated in each of the second parameter codes to be mutated; and
    对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码。Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
  5. 如权利要求1所述的联邦模型参数确定方法,其中,所述若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛的步骤之前,所述方法还包括:The method for determining the parameters of a federation model according to claim 1, wherein, before the step of if the federation model whose accuracy rate meets the preset condition among the plurality of federation models does not converge, the method further comprises:
    对比多个所述联邦模型的准确率,确定多个所述联邦模型的准确率中数值最大的目标准确率;Comparing the accuracy rates of the multiple federated models to determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models;
    将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型。The federated model with the target accuracy rate is determined as the federated model whose accuracy rate meets the preset condition among the plurality of federated models.
  6. 如权利要求5所述的联邦模型参数确定方法,其中,所述将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型的步骤之后,所述方法还包括:The method for determining the parameters of a federation model according to claim 5, wherein after the step of determining the federation model with the target accuracy rate as the federation model with the accuracy rate meeting a preset condition among the plurality of federation models, The method also includes:
    判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛。It is determined whether the federated model whose accuracy rate meets the preset condition among the plurality of federated models has converged.
  7. 如权利要求1-6任一项所述的联邦模型参数确定方法,其中,所述确定多个所述联邦模型的准确率的步骤包括:The method for determining the parameters of a federation model according to any one of claims 1 to 6, wherein the step of determining the accuracy of a plurality of federation models comprises:
    获取多个所述联邦模型在联邦学习过程中分别对预设测试数据处理所生成的测试结果;Acquiring test results generated by processing preset test data for multiple federated models in the federated learning process;
    将与预设测试数据对应的参考结果分别与各所述测试结果对比,生成多个所述联邦模型的准确率。The reference results corresponding to the preset test data are respectively compared with each of the test results to generate accuracy rates of multiple federated models.
  8. 如权利要求6所述的联邦模型参数确定方法,其中,所述在判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛的步骤之后,还包括The method for determining the parameters of a federation model according to claim 6, wherein after the step of judging whether the federated model whose accuracy rate meets the preset condition among the plurality of federated models has converged, the method further comprises
    若经判定多个联邦模型中准确率符合所述预设条件的联邦模型不收敛,重新对所述目标模型执行联邦学习,生成新的准确率满足所述预设条件的多个联邦模型判定是否收敛。If it is determined that the federated model whose accuracy rate meets the preset condition among multiple federated models does not converge, re-execute federated learning on the target model to generate a new multiple federated model whose accuracy rate meets the preset condition to determine whether convergence.
  9. 如权利要求1所述的联邦模型参数确定方法,其中,The method for determining the parameters of a federation model according to claim 1, wherein:
    所述交叉变异处理通过遗传算法实现,其中,所述遗传算法包括:选择、交叉和变异。The crossover mutation processing is implemented by genetic algorithm, where the genetic algorithm includes: selection, crossover and mutation.
  10. 如权利要求2所述的联邦模型参数确定方法,其中,The method for determining the parameters of a federation model according to claim 2, wherein:
    所述预设交叉项数包括:将两组第二参数编码进行交叉以及将三组第三参数编码进行交叉;The preset number of cross items includes: cross two sets of second parameter codes and cross three sets of third parameter codes;
    所述预设交叉位数包括:设定交叉位数为五五交叉,四六交叉。The preset number of crossovers includes: setting the number of crossovers to five or five crosses, or four to six crosses.
  11. 如权利要求4所述的联邦模型参数确定方法,其中,所述对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码的步骤包括:The method for determining the parameters of a federation model according to claim 4, wherein the step of mutating each of the multiple sets of the second parameter codes to be mutated separately, and generating multiple sets of third parameter codes comprises:
    预先设定变异位置进行变异,其中所述变异位置表征变异编码所在的位置,所述所在的位置包括多处位置和单出位置。The mutation position is preset for mutation, wherein the mutation position represents the position where the mutation code is located, and the position includes multiple positions and single-out positions.
  12. 一种联邦模型参数确定装置,其中,所述联邦模型参数确定装置包括:A federation model parameter determination device, wherein the federation model parameter determination device includes:
    获取模块,用于获取目标模型的多个参数,并对所述多个参数进行随机编码组合处理,得到多组第一参数编码;The acquiring module is used to acquire multiple parameters of the target model, and perform random coding and combination processing on the multiple parameters to obtain multiple sets of first parameter codes;
    执行模块,用于基于多组所述第一参数编码分别对所述目标模型执行联邦学习过程,得到多个联邦模型,并确定多个所述联邦模型的准确率;An execution module, configured to execute a federated learning process on the target model based on multiple sets of the first parameter codes to obtain multiple federated models, and determine the accuracy of the multiple federated models;
    选取模块,用于若多个所述联邦模型中准确率符合预设条件的联邦模型不收敛,则基于多个所述联邦模型的准确率,从多组所述第一参数编码中选取多组第二参数编码进行交叉变异处理,得到多组第三参数编码,并基于多组所述第三参数编码,再对所述目标模型执行联邦学习过程;以及The selection module is configured to select multiple groups from multiple sets of the first parameter codes based on the accuracy rates of the multiple federation models if the federation models whose accuracy rates meet the preset conditions among the multiple federation models do not converge Perform cross-mutation processing on the second parameter encoding to obtain multiple sets of third parameter encodings, and then perform a federated learning process on the target model based on the multiple sets of third parameter encodings; and
    确定模块,用于若多个所述联邦模型中准确率符合预设条件的联邦模型收敛,则确定收敛的联邦模型对应的第一目标参数编码组,并将所述第一目标参数编码组对应的第一目标参数,确定为联邦模型参数。The determining module is used for determining the first target parameter encoding group corresponding to the convergent federated model if the federal model whose accuracy rate meets the preset condition among the plurality of federal models converges, and corresponding the first target parameter encoding group The first target parameter of is determined as the federated model parameter.
  13. 如权利要求12所述的联邦模型参数确定装置,其中,所述选取模块还包括:The device for determining federal model parameters according to claim 12, wherein the selection module further comprises:
    对比单元,用于将多个所述联邦模型的准确率和预设阈值对比,确定多个所述联邦模型的准确率中大于所述预设阈值的目标准确率;A comparison unit, configured to compare the accuracy rates of the multiple federation models with a preset threshold, and determine a target accuracy rate of the accuracy rates of the multiple federation models that is greater than the preset threshold;
    筛选单元,用于根据各所述目标准确率,对多组所述第一参数编码进行筛选,得到多组第二参数编码;以及A screening unit, configured to screen multiple sets of the first parameter codes according to the target accuracy rates to obtain multiple sets of second parameter codes; and
    处理单元,用于对多组所述第二参数编码进行交叉变异处理,得到多组第三参数编码。The processing unit is configured to perform cross-mutation processing on multiple sets of the second parameter codes to obtain multiple sets of third parameter codes.
  14. 如权利要求13所述的联邦模型参数确定装置,其中,所述处理单元还用于:The device for determining federal model parameters according to claim 13, wherein the processing unit is further configured to:
    根据预设交叉项数,将多组所述第二参数编码随机划分为多个数据组类;Randomly divide the multiple groups of the second parameter codes into multiple data group categories according to the preset number of cross items;
    根据预设交叉位数,对每一所述数据组类中的各第二参数编码组进行交叉,生成多组待变异第二参数编码;以及According to the preset number of crossover bits, cross each of the second parameter encoding groups in each of the data group classes to generate multiple sets of to-be-mutated second parameter codes; and
    对多组所述待变异第二参数编码进行变异处理,生成多组第三参数编码。Perform mutation processing on multiple sets of the second parameter codes to be mutated to generate multiple sets of third parameter codes.
  15. 如权利要求13所述的联邦模型参数确定装置,其中,所述处理单元还用于:The device for determining federal model parameters according to claim 13, wherein the processing unit is further configured to:
    根据预设变异比例,随机筛选出每一所述待变异第二参数编码组中的待变异参数编码;以及According to the preset mutation ratio, randomly select the parameter codes to be mutated in each of the second parameter codes to be mutated; and
    对多组所述待变异第二参数编码中的各待变异参数编码分别进行变异,生成多组第三参数编码。Each of the multiple sets of the second parameter codes to be mutated is respectively mutated to generate multiple sets of third parameter codes.
  16. 如权利要求13所述的联邦模型参数确定装置,其中,所述联邦模型参数确定装置还包括:The federation model parameter determination device according to claim 13, wherein the federation model parameter determination device further comprises:
    对比模块,用于对比多个所述联邦模型的准确率,确定多个所述联邦模型的准确率中数值最大的目标准确率;以及The comparison module is used to compare the accuracy rates of multiple federated models and determine the target accuracy rate with the largest value among the accuracy rates of the multiple federated models; and
    所述确定模块还用于将具有所述目标准确率的联邦模型确定为多个所述联邦模型中准确率符合预设条件的联邦模型。The determining module is further configured to determine the federation model with the target accuracy rate as a federation model whose accuracy rate meets a preset condition among the plurality of federation models.
  17. 如权利要求12所述的联邦模型参数确定装置,其中,所述联邦模型参数确定装置还包括:The federated model parameter determining device according to claim 12, wherein the federated model parameter determining device further comprises:
    判断模块,用于判断多个所述联邦模型中准确率符合预设条件的联邦模型是否收敛。The judging module is used for judging whether the federated model whose accuracy rate meets the preset condition among the multiple federated models has converged.
  18. 如权利要求12所述的联邦模型参数确定装置,其中,所述执行模块还包括:The device for determining federal model parameters according to claim 12, wherein the execution module further comprises:
    获取单元,用于获取多个所述联邦模型在联邦学习过程中分别对预设测试数据处理所生成的测试结果;以及An obtaining unit, configured to obtain test results generated by processing preset test data on a plurality of federated models in the federated learning process; and
    生成单元,用于将与预设测试数据对应的参考结果分别与各所述测试结果对比,生成多个所述联邦模型的准确率。The generating unit is configured to compare the reference results corresponding to the preset test data with each of the test results to generate the accuracy rates of multiple federated models.
  19. 一种联邦模型参数确定设备,其中,所述联邦模型参数确定设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的联邦模型参数确定程序,所述联邦模型参数确定程序被所述处理器执行时实现如权利要求1-11中任一项所述的联邦模型参数确定方法的步骤。A federated model parameter determining device, wherein the federated model parameter determining device includes a memory, a processor, and a federated model parameter determining program stored on the memory and running on the processor, and the federated model parameter When the determining program is executed by the processor, the steps of the method for determining the parameters of the federation model according to any one of claims 1-11 are implemented.
  20. 一种计算机存储介质,其中,所述计算机存储介质上存储有联邦模型参数确定程序,所述联邦模型参数确定程序被处理器执行时实现如权利要求1-11中任一项所述联邦模型参数确定方法步骤。A computer storage medium, wherein a federated model parameter determination program is stored on the computer storage medium, and the federated model parameter determination program is executed by a processor to realize the federated model parameter according to any one of claims 1-11 Determine the method steps.
PCT/CN2020/134668 2020-03-06 2020-12-08 Federated model parameter determination method, apparatus and device, and computer storage medium WO2021174934A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010155526.2A CN111382875A (en) 2020-03-06 2020-03-06 Federal model parameter determination method, device, equipment and storage medium
CN202010155526.2 2020-03-06

Publications (1)

Publication Number Publication Date
WO2021174934A1 true WO2021174934A1 (en) 2021-09-10

Family

ID=71218670

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/134668 WO2021174934A1 (en) 2020-03-06 2020-12-08 Federated model parameter determination method, apparatus and device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN111382875A (en)
WO (1) WO2021174934A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220060235A1 (en) * 2020-08-18 2022-02-24 Qualcomm Incorporated Federated learning for client-specific neural network parameter generation for wireless communication

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382875A (en) * 2020-03-06 2020-07-07 深圳前海微众银行股份有限公司 Federal model parameter determination method, device, equipment and storage medium
CN112990476B (en) * 2021-02-08 2022-04-12 支付宝(杭州)信息技术有限公司 Method, system and device for updating model parameters based on federal learning
CN113052323B (en) * 2021-03-23 2023-05-23 支付宝(杭州)信息技术有限公司 Model training method and device based on federal learning and electronic equipment
CN112862057B (en) * 2021-04-07 2023-11-03 京东科技控股股份有限公司 Modeling method, modeling device, electronic equipment and readable medium
CN113762328B (en) * 2021-06-16 2023-09-26 京东科技控股股份有限公司 Model training method, device, equipment and storage medium based on federal learning

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190146759A1 (en) * 2017-11-15 2019-05-16 Institute For Information Industry Model building server and model building method thereof
CN110286587A (en) * 2019-05-21 2019-09-27 平安银行股份有限公司 Method, server and the computer readable storage medium of implementation model iteration control
CN110580528A (en) * 2019-08-29 2019-12-17 广东浪潮大数据研究有限公司 network model generation method and device
CN111382875A (en) * 2020-03-06 2020-07-07 深圳前海微众银行股份有限公司 Federal model parameter determination method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107045503B (en) * 2016-02-05 2019-03-05 华为技术有限公司 A kind of method and device that feature set determines
CN109189825B (en) * 2018-08-10 2022-03-15 深圳前海微众银行股份有限公司 Federated learning modeling method, server and medium for horizontal data segmentation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190146759A1 (en) * 2017-11-15 2019-05-16 Institute For Information Industry Model building server and model building method thereof
CN110286587A (en) * 2019-05-21 2019-09-27 平安银行股份有限公司 Method, server and the computer readable storage medium of implementation model iteration control
CN110580528A (en) * 2019-08-29 2019-12-17 广东浪潮大数据研究有限公司 network model generation method and device
CN111382875A (en) * 2020-03-06 2020-07-07 深圳前海微众银行股份有限公司 Federal model parameter determination method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220060235A1 (en) * 2020-08-18 2022-02-24 Qualcomm Incorporated Federated learning for client-specific neural network parameter generation for wireless communication
US11909482B2 (en) * 2020-08-18 2024-02-20 Qualcomm Incorporated Federated learning for client-specific neural network parameter generation for wireless communication

Also Published As

Publication number Publication date
CN111382875A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
WO2021174934A1 (en) Federated model parameter determination method, apparatus and device, and computer storage medium
US20210150370A1 (en) Matrix representation of neural networks
CN111292020B (en) Power grid real-time operation risk assessment method and system based on random forest
CN110232373A (en) Face cluster method, apparatus, equipment and storage medium
US20050166096A1 (en) Method and apparatus for generation of validation tests
CN109711707B (en) Comprehensive state evaluation method for ship power device
CN113409898B (en) Molecular structure acquisition method and device, electronic equipment and storage medium
CN115906638A (en) Fault prediction model and method for establishing fire control system and related device
CN113705715B (en) Time sequence classification method based on LSTM and multi-scale FCN
CN113705092B (en) Disease prediction method and device based on machine learning
CN112883284A (en) Online learning system based on network and data analysis and test question recommendation method
CN109977030B (en) Method and device for testing deep random forest program
CN112101438A (en) Left and right eye classification method, device, server and storage medium
WO2024027146A1 (en) Array-type facial beauty prediction method, and device and storage medium
CN109582562B (en) Intelligent software testing and cloud platform construction method based on generation countermeasure network
CN114387524B (en) Image identification method and system for small sample learning based on multilevel second-order representation
CN110659266A (en) Data processing method of model
CN111274480B (en) Feature combination method and device for content recommendation
CN113642226A (en) Training method of fair machine learning model based on multi-objective evolutionary algorithm
CN114692888A (en) System parameter processing method, device, equipment and storage medium
CN115438884A (en) Online learning mode evaluation method, device, equipment and storage medium
CN113420165A (en) Training of two-classification model and classification method and device of multimedia data
CN114003474B (en) User behavior analysis method based on mobile phone log
CN112634268B (en) Video quality evaluation method and device and electronic equipment
CN115796054B (en) Scene discovery and vulnerability analysis method, system, terminal and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20923019

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20923019

Country of ref document: EP

Kind code of ref document: A1