Object processing method, device and equipment

By allocating the total number of target objects in batches according to the object allocation duration and object attenuation in federated learning, the problem of poor object allocation flexibility is solved and more flexible and efficient object allocation is achieved.

CN114118446BActive Publication Date: 2024-08-23CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111467076.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2024-08-23
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

In federated learning, the flexibility of object allocation is poor, resulting in the inability to effectively flexibly allocate according to the contribution of participants.

Method used

The flexibility of object allocation is improved by determining the total amount of target objects to be allocated to the first party and allocating them in batches according to the duration of object allocation and the amount of object decay.

Benefits of technology

It realizes the flexible allocation of objects according to the contribution of participants, and improves the flexibility and efficiency of object allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114118446B
    Figure CN114118446B
Patent Text Reader

Abstract

The embodiment of the present application provides an object processing method, device and equipment. The method includes: determining the total amount of target objects to be allocated to the first participant, the first participant is a participant in federated learning; obtaining the object allocation duration and object attenuation in a preset database, the object allocation duration includes multiple unit durations, and the object attenuation is the attenuation ratio of the number of objects allocated to the first participant in two adjacent unit durations; according to the total amount of target objects, the object allocation duration and the object attenuation, determining multiple object allocation information, the object allocation information includes the number of objects, the object status and the object effective period; sending multiple object allocation information to the device of the first participant. The flexibility of object allocation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to an object processing method, device and equipment. Background Art

[0002] In most industries, data cannot be simply integrated due to its privacy and security, and data exists in the form of isolated islands. In order to solve the problem of data islands, a solution called federated learning is proposed.

[0003] In the related art, there are usually multiple participants in federated learning, and objects for incentives can be allocated to the participants according to their contributions to federated learning. However, after the objects allocated to the participants are determined, the objects are usually allocated to the participants at one time, resulting in poor flexibility in object allocation. Summary of the invention

[0004] Embodiments of the present application provide an object processing method, apparatus, and device to improve the flexibility of object allocation.

[0005] In a first aspect, an embodiment of the present application provides an object processing method, including:

[0006] Determining a total amount of target objects to be allocated to a first party, where the first party is a party of federated learning;

[0007] Acquire the object allocation duration and the object attenuation in a preset database, wherein the object allocation duration includes a plurality of unit durations, and the object attenuation is the attenuation ratio of the number of objects allocated to the first participant in two adjacent unit durations;

[0008] Determine a plurality of object allocation information according to the total amount of the target objects, the duration of the object allocation and the object attenuation, wherein the object allocation information includes the number of objects, the object status and the object effective period;

[0009] In a possible implementation, determining the total amount of target objects to be allocated to the first participant includes:

[0010] Sending an object confirmation request to devices of multiple second participants, wherein the object confirmation request includes an identifier of the first participant and the total amount of the first object, and the second participant is a participant of the federated learning;

[0011] receiving a plurality of object confirmation responses sent by devices of the plurality of second participants;

[0012] The total amount of the target objects is determined according to the multiple object confirmation responses.

[0013] In a possible implementation, determining the total amount of the target objects according to the multiple object confirmation responses includes:

[0014] determining a first object confirmation response from among the plurality of object confirmation responses, the first object confirmation response being used to indicate an object that agrees to allocate the first object total amount to the first participant;

[0015] If the number of the first object confirmation responses is greater than or equal to a preset threshold, the first object total amount is determined as the target object total amount.

[0016] In a possible implementation, multiple object allocation information is determined according to the total amount of target objects, the duration of the object allocation, and the object attenuation, including:

[0017] Determine, according to the object allocation duration and the unit duration, the information quantity N of the object allocation information, where N is an integer greater than 1;

[0018] According to the total number of target objects, N and the object attenuation, N object allocation information is determined.

[0019] In a possible implementation manner, determining N object allocation information according to the total number of target objects, N, and the object attenuation includes:

[0020] Determine the number of objects included in the first object allocation information according to the total number of target objects, N and the object attenuation;

[0021] Determine the number of objects in N-1 pieces of object allocation information according to the object attenuation and the number of objects included in the first piece of object allocation information, where N-1 is other pieces of object allocation information in the N pieces of object allocation information except the first piece of object allocation information;

[0022] Determine that the object status in the first object allocation information is an available status, and determine that the object status in the N-1 object allocation information is an unavailable status;

[0023] The effective time period corresponding to each object allocation information is determined according to the object allocation duration and the unit duration.

[0024] In a possible implementation manner, determining the effective time period corresponding to each object allocation information according to the object allocation duration and the unit duration includes:

[0025] Determine that the effective period corresponding to the i-th object allocation information is a period after the i-th moment, where the i-th moment is a moment that has elapsed i-1 units of time from the current moment;

[0026] Wherein, i is an integer greater than or equal to 1 and less than or equal to N.

[0027] In a possible implementation, the method further includes:

[0028] The target object quantity objects and the object allocation information are sent to a third-party device, so that the third-party device stores the target object quantity objects and allocates objects to the first participant according to the object allocation information.

[0029] In a second aspect, an embodiment of the present application provides an object processing device, including: a first determination module, an acquisition module, a second determination module and a sending module, wherein:

[0030] The first determination module is used to determine the total amount of target objects to be allocated to the first participant, where the first participant is a participant in federated learning;

[0031] The acquisition module is used to acquire the object allocation duration and the object attenuation from a preset database, wherein the object allocation duration includes a plurality of unit durations, and the object attenuation is the attenuation ratio of the number of objects allocated to the first participant in two adjacent unit durations;

[0032] The second determination module is used to determine a plurality of object allocation information according to the total amount of the target objects, the duration of the object allocation and the object attenuation, wherein the object allocation information includes the number of objects, the object status and the object effective period;

[0033] The sending module is used to send the multiple object allocation information to the device of the first participant.

[0034] In a possible implementation manner, the first determining module is configured to:

[0035] Sending an object confirmation request to devices of multiple second participants, wherein the object confirmation request includes an identifier of the first participant and the total amount of the first object, and the second participant is a participant of the federated learning;

[0036] receiving a plurality of object confirmation responses sent by devices of the plurality of second participants;

[0037] The total amount of the target objects is determined based on the multiple object confirmation responses.

[0038] In a possible implementation manner, the first determining module is configured to:

[0039] determining a first object confirmation response from among the plurality of object confirmation responses, the first object confirmation response being used to indicate an object that agrees to allocate the first object total amount to the first participant;

[0040] If the number of the first object confirmation responses is greater than or equal to a preset threshold, the first object total amount is determined as the target object total amount.

[0041] In a possible implementation manner, the second determining module is used to:

[0042] Determine, according to the object allocation duration and the unit duration, the information quantity N of the object allocation information, where N is an integer greater than 1;

[0043] According to the total number of target objects, N and the object attenuation, N object allocation information is determined.

[0044] In a possible implementation manner, the second determining module is used to:

[0045] Determine the number of objects included in the first object allocation information according to the total number of target objects, N and the object attenuation;

[0046] Determine the number of objects in N-1 pieces of object allocation information according to the object attenuation and the number of objects included in the first piece of object allocation information, where N-1 is other pieces of object allocation information in the N pieces of object allocation information except the first piece of object allocation information;

[0047] Determine that the object status in the first object allocation information is an available status, and determine that the object status in the N-1 object allocation information is an unavailable status;

[0048] The effective time period corresponding to each object allocation information is determined according to the object allocation duration and the unit duration.

[0049] In a possible implementation manner, the second determining module is used to:

[0050] Determine that the effective period corresponding to the i-th object allocation information is a period after the i-th moment, where the i-th moment is a moment that has elapsed i-1 units of time from the current moment;

[0051] Wherein, i is an integer greater than or equal to 1 and less than or equal to N.

[0052] In a possible implementation manner, the sending module is used to:

[0053] The target object quantity objects and the object allocation information are sent to a third-party device, so that the third-party device stores the target object quantity objects and allocates objects to the first participant according to the object allocation information.

[0054] In a third aspect, an embodiment of the present application provides an object processing device, including: a processor and a memory;

[0055] The memory stores computer-executable instructions;

[0056] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the object processing method described in any one of the first aspects.

[0057] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the object processing method described in any one of the first aspects.

[0058] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the object processing method shown in any one of the first aspects.

[0059] An object processing method, apparatus and device provided in an embodiment of the present application include an object processing device that can determine the total amount of target objects allocated to the first participant according to the contribution of the first participant, and send an object confirmation request to the device of the second participant. The object processing device can receive an object confirmation response sent by the device of the second participant, and determine the first object response and the total amount of target objects according to the object confirmation response, and send the number of objects to the device of the first participant in batches according to the object allocation duration and the object attenuation, until the total amount of target objects is allocated, thereby improving the flexibility of object allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0061] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0062] Figure 2 A flowchart of an object processing method provided in an embodiment of the present application;

[0063] Figure 3 A flowchart of another object processing method provided in an embodiment of the present application;

[0064] Figure 4 A schematic diagram of the structure of an object processing device provided in an embodiment of the present application;

[0065] Figure 5 A structural schematic diagram of an object processing device is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0066] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0067] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0068] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 , including multiple participant devices 101 and an object processing device 102. The participant device 101 is a device of a participant in federated learning. The participant device 101 can use local data to train the model and send the trained model parameters to the object processing device 102. The object processing device 102 can receive the model parameters sent by multiple participant devices 101, aggregate the model parameters, and determine the total amount of target objects and object allocation information to be sent to each participant device 101 according to the contribution of each participant, so as to allocate objects to the object participants according to the object allocation information.

[0069] In the related art, there are usually multiple participants in federated learning, and the participants can be assigned objects for incentives according to their contributions to federated learning. However, after the objects assigned to the participants are determined, the objects are usually assigned to the participants at one time, resulting in poor flexibility in object allocation.

[0070] In an embodiment of the present application, the object processing device can determine the total amount of target objects to be allocated to each participant based on the contribution of each participant, and allocate the total amount of target objects to the first participant in batches based on the object allocation duration and the object attenuation, thereby improving the flexibility of object allocation.

[0071] The following is a detailed description of the technical solution shown in the present application through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be repeatedly described in different embodiments.

[0072] Figure 2 This is a flowchart of an object processing method provided in an embodiment of the present application. Figure 2 , the method may include:

[0073] S201. An object processing device determines a total amount of target objects to be allocated to a first participant, where the first participant is a participant in federated learning.

[0074] The execution subject of the embodiment of the present application may be an object processing device, or an object processing apparatus provided in the object processing device. The object processing apparatus may be implemented by software, or by a combination of software and hardware. The object processing apparatus may be a processor in the object processing device. For ease of understanding, the following description is made by taking the execution subject as an object processing device as an example.

[0075] The object processing device refers to a data processing device, which can be a data processing device of any participant or a data processing device independent of each participant. For example, the object processing device can be a data server. If there are 10 participants participating in federated learning, the object processing device can be the data server of participant 1 or a data server independent of the 10 participants.

[0076] The first participant refers to any participant in federated learning. For example, if there are 10 different banks participating in federated learning, the first participant can be Bank 1.

[0077] The total amount of target objects refers to the amount of rewards allocated to the first participant. The object processing device may determine the total amount of target objects for the first participant based on the contribution of the first participant. For example, the total amount of target objects may be points, benefits, etc. established in federated learning, and the object processing device may reward 90 million points to the first participant based on the contribution of the first participant.

[0078] The target total amount can be determined in the following manner: sending an object confirmation request to devices of multiple second participants, the object confirmation request including the identifier of the first participant and the total amount of the first object, the second participants being participants in federated learning; receiving multiple object confirmation responses sent by devices of multiple second participants; and determining the total amount of target objects based on the multiple object confirmation responses.

[0079] The second participant refers to the other participants in federated learning except the first participant. For example, if there are 10 different banks participating in federated learning, the first participant can be Bank 1, and the other 9 banks are all second participants.

[0080] An object confirmation request is a confirmation request sent by an object processing device to a device of a second participant. The object confirmation request is used to confirm the amount of reward allocated to the first participant. The object confirmation request may include the identifier of the first participant and the total amount of the first object. For example, if there are 10 banks participating in federated learning, the first participant may be Bank 1, and the total amount of the first object may be 90 million reward points. The object processing device may send an object confirmation request to the remaining 9 banks, and the object confirmation request may be "Bank 1 - 90 million reward points".

[0081] The object confirmation response is a response message sent by the device of the second participant to the object processing device. The object confirmation response is used to indicate whether the amount of reward allocated to the first participant is agreed. The object confirmation response may include information such as whether it is agreed, the identifier of the first participant, and the total amount of the first object. For example, the object confirmation response may be "Agree-Bank 1-Reward Points 90 million", or it may be "Disagree-Bank 1-Reward Points 90 million".

[0082] The object processing device may send object confirmation requests to the devices of the multiple second participants respectively, receive object confirmation responses sent by the devices of the multiple second participants, and determine the total amount of target objects to be allocated to the first participant based on the multiple object confirmation responses.

[0083] The total amount of target objects can be determined based on multiple object confirmation responses in the following manner: determine a first object confirmation response among multiple object confirmation responses, the first object confirmation response being used to indicate an object that agrees to allocate the first object total amount to the first participant; if the number of first object confirmation responses is greater than or equal to a preset threshold, determine the first object total amount as the target object total amount.

[0084] The first part of the object confirmation responses among the multiple object confirmation responses is used to indicate the objects that agree to allocate the first object total amount to the first participant, and the second part of the object confirmation responses among the multiple object confirmation responses is used to indicate the objects that do not agree to allocate the first object total amount to the first participant. The first part of the object confirmation responses can be determined as the first object confirmation response.

[0085] For example, if there are 10 banks participating in federated learning, Bank 1 is the first participant, and the remaining 9 banks are the second participants. The object processing device receives object confirmation responses sent by 9 banks, of which 7 banks send object confirmation responses of "Agree-Bank 1-Reward Points 90 million", which is the first part of the object confirmation response; 2 banks send object confirmation responses of "Disagree-Bank 1-Reward Points 90 million", which is the second part of the object confirmation response. The first part of the object confirmation response can be determined as the first object confirmation response, and the first object confirmation response is determined to be "Agree-Bank 1-Reward Points 90 million", and the total amount of the first object can be determined to be 90 million.

[0086] The preset threshold refers to the minimum number of confirmation responses of the first object. For example, if there are 10 banks participating in federated learning, Bank 1 is the first participant, and the remaining 9 banks are second participants. The preset threshold can be 2 / 3 of the number of second participants, and the preset threshold can be 6, indicating that at least 6 second participants in the federated learning send first object confirmation responses to the object processing device, and the total amount of the first object can be determined as the total amount of the target object.

[0087] The object processing device can determine the total amount of first objects allocated to the first participant based on multiple object confirmation responses, and when the number of second participants sending first object confirmation responses is greater than or equal to a preset threshold, the total amount of first objects is determined as the target object total amount.

[0088] For example, if there are 10 banks participating in federated learning, Bank 1 is the first participant, and the remaining 9 banks are the second participants, and the preset threshold is 6. The object processing device receives object confirmation responses sent by 9 banks, of which 7 banks send object confirmation responses of "Agree-Bank 1-Reward Points 90 million", and 2 banks send object confirmation responses of "Disagree-Bank 1-Reward Points 90 million". The object processing device can determine that the first object confirmation response is "Agree-Bank 1-Reward Points 90 million", and the number of first object confirmation responses is 7, which is greater than the preset threshold, then it can be determined that the total amount of the first object is 90 million, and 90 million is confirmed as the total amount of the target object.

[0089] S202: The object processing device obtains the object allocation duration and the object attenuation from a preset database.

[0090] The preset database may be a database existing in the object processing device or a database of a server independent of the object processing device. The preset database may store information such as the duration of object allocation and object attenuation.

[0091] The object allocation duration refers to the time it takes for the object processing device to allocate the total amount of target objects. The object allocation duration may include multiple unit durations. For example, the object processing device may allocate the total amount of target objects (90 million) for 12 years, where the unit duration is months. The object allocation duration is 12 years, which includes 144 months.

[0092] The object decay is the decay ratio of the number of objects allocated to the first participant in two adjacent unit time periods. For example, if the object decay is a monthly decay value of 1.6%, that is, the objects allocated each month decay at a rate of 1.6%, and the number of objects allocated to the first participant in the first month is 15.96 million, then the number of objects allocated to the first participant in the second month is 1596*(1-1.6%)≈15.71 million.

[0093] The object processing device may obtain from a preset database the object allocation duration and the object attenuation when allocating the object to the first participant.

[0094] S203: The object processing device determines a plurality of object allocation information according to the total amount of target objects, the duration of object allocation and the amount of object attenuation, wherein the object allocation information includes the number of objects, the object status and the effective period of the object.

[0095] The multiple object allocation information can be determined in the following manner: according to the object allocation duration and unit duration, the number of information N of the object allocation information is determined, where N is an integer greater than 1; according to the total number of target objects, N and the object attenuation, the N object allocation information is determined.

[0096] The object processing device can determine the information quantity N of the object allocation information according to the object allocation duration and the unit duration. For example, if the object allocation duration is 12 years and the unit duration is months, the object allocation duration of 12 years includes 144 months, and allocation is required every month, then the information quantity of the object allocation information can be determined to be 144.

[0097] The N object allocation information can be determined in the following manner: determine the number of objects included in the first object allocation information based on the total amount of target objects, N and the object attenuation; determine the number of objects in N-1 object allocation information based on the object attenuation and the number of objects included in the first object allocation information, where N-1 is the other object allocation information in the N object allocation information except the first object allocation information; determine that the object status in the first object allocation information is an available status, and determine that the object status in the N-1 object allocation information is an unavailable status; determine the effective period corresponding to each object allocation information based on the object allocation duration and unit duration.

[0098] Specifically, the number of objects included in the first object allocation information can be determined by calculation using the formula: Total number of target objects M total , the number of information N of object allocation information, the object attenuation r, then by solving the following formula (1), the number of objects M in the first object allocation information can be obtained: first .

[0099]

[0100] For example, if the total amount of target objects is 90 million points, the duration of object allocation is 12 years, the number of information N of object allocation information is 144, and the monthly decay is 1.6%, the parameters are substituted into formula (1) to obtain:

[0101]

[0102] Through solution, it is found that the number of objects included in the first object allocation information is: 15.96 million.

[0103] The object processing device may determine the number of objects in N-1 object allocation information according to the object attenuation and the number of objects included in the first object allocation information, where N-1 is other object allocation information in the N object allocation information except the first object allocation information.

[0104] Specifically, the number of objects included in the nth object allocation information can be determined by calculation using the formula: total , the number of information N of object allocation information, the object attenuation r, the number of objects in the first object allocation information M first , then by solving the following formula (2), we can get the number of objects M in the nth object allocation information: n .

[0105] M n =M first *(1-r) n-1 .............................Formula (2)

[0106] For example, if the total amount of target objects is 90 million points, the duration of object allocation is 12 years, the number of information N of object allocation information is 144, the monthly decay is 1.6%, and the number of objects in the first object allocation information is 15.96 million, the number of objects in the other 143 object allocation information can be determined. Substituting the parameters into formula (2) yields:

[0107] M n =1596*(1-1.6%) n-1

[0108] The number of objects in each object allocation information can be obtained by calculation, as shown in Table 1:

[0109] Table 1

[0110] Object allocation information Number of objects Object Status Object effective period No.1 15.96 million Available After the first month No. 2 15.71 million Unavailable After 2 months No. 3 15.46 million Unavailable After 3 months … … … … No.144 1.6 million Unavailable After 144th month

[0111] The object processing device may determine that the object status in the first object allocation information is an available state, and determine that the object status in N-1 object allocation information is an unavailable state. For example, the object processing device may determine that the object status in the first object allocation information is an available state, and the object status in the remaining 143 object allocation information is an unavailable state.

[0112] The object processing device may determine the effective period corresponding to each object allocation information according to the object allocation duration and the unit duration. For example, if the unit duration is a month, the object processing device may calculate the effective period corresponding to each object allocation information on a monthly basis.

[0113] The object processing device may update the object state according to the effective period in the object allocation information. When the nth object allocation information becomes effective according to the effective period, the corresponding object state is updated to an available state according to the effective period.

[0114] The object processing device determines that the effective period corresponding to the i-th object allocation information is the period after the i-th moment, where the i-th moment is the moment that has experienced i-1 unit time lengths from the current moment; wherein i is an integer greater than or equal to 1 and less than or equal to N.

[0115] For example, if the unit time is a month, the object processing device determines the effective period corresponding to the second object allocation information, and the effective period is the period after the second month, which is 1 month from the current moment. The object processing device can determine that the effective period of the first object information is the period after 2021 / 10 / 1, the current moment is 2021 / 10 / 1, and the period after 2021 / 10 / 1 is called the period after the first month. Then it can be confirmed that the effective period of the second object allocation information is the period after the second month, that is, the effective period is from the current moment 2021 / 10 / 1, and the period after 2021 / 11 / 1 is 1 month, and the corresponding object status is updated from 2021 / 11 / 1 to the available status; the effective period and object status of each object allocation information can be confirmed in turn, ..., until it is confirmed that the effective period of the 144th object allocation information is the period after 2033 / 10 / 1, and the corresponding object status is updated from 2033 / 10 / 1 to the available status, etc.

[0116] S204: The object processing device sends a plurality of object allocation information to the device of the first participant.

[0117] After the object processing device determines the allocation information of each object, it can send the target object number objects and the object allocation information to the third-party device, so that the third-party device stores the target object number objects and allocates the objects to the first participant according to the object allocation information. For example, the object processing device can send 15.96 million points and the first object allocation information to the third-party device, which is "object number (15.96 million)-object status (available)-object effective period (after the first month)".

[0118] The object processing device may send all the allocation information to the third-party device. For example, the object processing device may send 144 pieces of object allocation information and the corresponding number of target objects to the third-party device.

[0119] The third-party device is a device that can store data. For example, the third-party device can be a database server.

[0120] The third-party device receives each object allocation information sent by the object processing device, and can store each object allocation information, and allocate objects to the first participant according to the effective period in the object allocation information for use by the first participant. For example, the third-party device can store 15.96 million points and the first object allocation information, which is "object quantity (15.96 million)-object status (available)-object effective period (after the first month)". If the allocation of the total amount of target objects lasts for 12 years and allocation is required every month, the target object quantity is 144. The object processing device can send 144 object quantities and object allocation information to the third-party device, and the third-party device can store 144 object allocation information and the corresponding target object quantity objects, and allocate objects to the first participant according to the effective period in the object allocation information for use by the first participant.

[0121] In an embodiment of the present application, the object processing device can determine the total amount of target objects to be allocated to the first participant according to the contribution of the first participant, and send an object confirmation request to the device of the second participant. The object processing device can receive the object confirmation response sent by the device of the second participant, and determine the first object confirmation response and the total amount of target objects according to the object confirmation response, and send the total amount of target objects to the device of the first participant in batches according to the object allocation duration and the object attenuation, thereby improving the flexibility of object allocation.

[0122] exist Figure 2 Based on the embodiment shown below, combined with Figure 3 , the above object processing method is further described in detail. Figure 3 This is a flowchart of another object processing method provided in an embodiment of the present application. Figure 3 , the method may include:

[0123] S301: An object processing device sends multiple object confirmation requests to devices of multiple second participants.

[0124] The object processing device may send multiple object confirmation requests to the device of the second participant via a wireless network. The object confirmation request may include the identifier of the first participant and the total amount of the first object. For example, the object confirmation request may be "Bank 1 - 90 million bonus points".

[0125] S302: The device of the second participant sends multiple object confirmation responses to the object processing device.

[0126] After receiving the object confirmation request, the devices of the multiple second participants may send an object confirmation response to the object processing device via the wireless network. The object confirmation response may include information such as whether to agree, the identification of the first participant, and the total amount of the first object. For example, the object confirmation response may be "Agree-Bank 1-Reward Points 90 million", or it may be "Disagree-Bank 1-Reward Points 90 million".

[0127] S303: Determine a first object confirmation response among multiple object confirmation responses.

[0128] The first object confirmation response refers to response information agreeing to allocate the total amount of the first object to the first participant.

[0129] The object processing device may determine the first object confirmation response according to a plurality of object confirmation responses sent by devices of a plurality of second participants.

[0130] For example, if there are 10 banks participating in federated learning, the object confirmation responses sent by the devices of multiple second participants may include agree-Bank 1-90 million reward points and disagree-Bank 1-90 million reward points, then the first object confirmation response can be determined as "Agree-Bank 1-90 million reward points".

[0131] S304: The object processing device determines whether the number of first object confirmation responses is greater than or equal to a preset threshold.

[0132] If not, the object confirmation request is updated and S301 is executed;

[0133] If yes, execute S305.

[0134] The preset threshold is the preset threshold refers to the minimum number of first object confirmation responses, which is used to indicate the minimum number of second parties that agree to the object confirmation request.

[0135] If the number of confirmed responses for the first object confirmation is less than the preset threshold, it means that the number of second participants who agree to the object confirmation request is less than the preset threshold, then S301 is executed, and the object processing device can resend the updated object confirmation request to the device of the second participant. The total amount of target objects in the object confirmation request can be reduced by a preset value to obtain an updated object confirmation request. If the number of confirmed responses for the first object confirmation is greater than or equal to the preset threshold, it means that the number of second participants who agree to the object confirmation request is greater than or equal to the preset threshold, then S305 is executed.

[0136] The preset value refers to a fixed value used to update the target total amount. For example, the preset value can be 10 million. If the target total amount is 90 million, the target total amount is updated to 80 million after subtracting the preset value.

[0137] For example, if there are 10 banks participating in federated learning, then Bank 1 is the first participant, and the remaining 9 banks are all second participants. The object request information is "Bank 1-Reward Points 90 million", the preset value is 10 million, and the preset threshold can be 2 / 3 of the number of second participants. The preset threshold can be 6, indicating that at least 6 second participants must agree to the object confirmation request in the federated learning. If the number of first object confirmation responses is 2, which is less than the preset threshold 6, it means that only 2 second participants agree to the object confirmation request, and the object confirmation request is not passed. Then, the total amount of target objects (90 million) is subtracted from the preset value (10 million), and the updated total amount of target objects is 80 million. It is determined that the updated object request information is "Bank 1-Reward Points 80 million", and the object processing device can send the updated object request information to the devices of multiple second participants, and execute S301 again. If the number of first object confirmation responses is 7, which is greater than the preset threshold 6, it means that 7 second participants agree to the object confirmation request, and if the object confirmation request is passed, execute S305.

[0138] S305: The object processing device determines the total amount of the first objects as the total amount of the target objects.

[0139] If the number of the first object confirmation responses is greater than the preset threshold, the first object total amount is determined as the target object total amount. For example, if the first object confirmation response is "Bank 1 - Reward Points 90 million", where the first object total amount is 90 million, then the target object total amount can be determined to be 90 million.

[0140] S306: The object processing device obtains the object allocation duration and the object attenuation from a preset database.

[0141] The object processing device can obtain the corresponding object allocation duration and object attenuation in a preset database according to the identifier of the participant.

[0142] The identifier of a participant is used to refer to a unique participant. For example, the identifier of a participant may be the name, account number, etc. of the participant.

[0143] For example, the object processing device may obtain from the preset database that the object allocation duration is 12 years and the object attenuation is 1.6% based on the participant 1.

[0144] S307: The object processing device determines multiple object allocation information according to the total number of target objects, the duration of object allocation, and the object attenuation.

[0145] The object processing device can determine the number of objects included in the first object allocation information based on the total number of target objects, the number of object information N, the duration of object allocation and the object attenuation; and determine N-1 object allocation information in sequence based on the object attenuation and the number of objects included in the first object allocation information, including the corresponding number of objects, object attenuation, effective period, object status, etc.

[0146] For example, if the total number of target objects is 90 million, the object decay is 1.6%, the object allocation duration is 12 years, and the allocation is performed monthly, then the number of information N = 144. It can be calculated that the number of objects in the first month is 15.96 million, and the number of objects in the second month is 15.71 million, the number of objects in the third month is 15.46 million, and so on.

[0147] The object processing device may determine that the object status in the first object allocation information is an available status, and determine that the object status in N-1 object allocation information is an unavailable status. For example, if there are 144 object allocation information, the object processing device may determine that the object status in the first object allocation information is an available status, and the object status in the remaining 143 object allocation information is an unavailable status.

[0148] The object processing device may determine the effective period corresponding to each object allocation information according to the object allocation duration and the unit duration. For example, if the unit duration is a month, the object processing device may calculate the effective period corresponding to each object allocation information on a monthly basis.

[0149] S308: The object processing device determines the effective period corresponding to each object allocation information.

[0150] The object processing device can determine that the effective period corresponding to the i-th object allocation information is the period after the i-th moment, where the i-th moment is the moment that has experienced i-1 unit time lengths from the current moment; where i is an integer greater than or equal to 1 and less than or equal to N.

[0151] When the effective period of the object allocation information takes effect according to the time, the corresponding object status is updated to the available status.

[0152] For example, if the unit time is a month, the object processing device determines the effective period corresponding to the second object allocation information, and the effective period is the period after the second month, which is 1 month from the current moment. The object processing device can determine that the effective period of the first object information is the period after 2021 / 10 / 1, the current moment is 2021 / 10 / 1, and the period after 2021 / 10 / 1 is called the period after the first month. Then it can be confirmed that the effective period of the second object allocation information is the period after the second month, that is, the effective period is from the current moment 2021 / 10 / 1, and the period after 2021 / 11 / 1 is 1 month, and the object status of the first object information is updated from 2021 / 11 / 1 to the available state; the effective period of each object allocation information can be confirmed in turn, ..., until it is confirmed that the effective period of the 144th object allocation information is the period after 2033 / 10 / 1, and the object status of the first object information is updated from 2033 / 10 / 1 to the available state.

[0153] S309: The object processing device sends multiple object allocation information to the third-party device.

[0154] After the object processing device determines the allocation information of each object, it can send the target object quantity objects and the object allocation information to the third-party device through the wireless network, so that the third-party device can store the target object quantity objects. For example, the object processing device can send the first object allocation information "object attenuation (1.6%)-object effective period (after the first month)-object status (available)" and the corresponding object quantity is 15.96 million to the third-party device. If the allocation of the total amount of target objects lasts for 12 years and allocation is required every month, the target object quantity is 144. The object processing device can send 144 object allocation information and the corresponding target object quantity objects to the third-party device.

[0155] S310: The third-party device sends object allocation information to the first party's device.

[0156] The third-party device receives each object allocation information sent by the object processing device, and can store each object allocation information, and allocate objects to the first participant according to the effective period in the object allocation information for use by the first participant. For example, the third-party device can store 15.96 million points and the first object allocation information, which is "number of objects (15.96 million)-object status (available)-object effective period (after the first month)". If the allocation of the total amount of target objects lasts for 12 years and allocation is required every month, the third-party device can store 144 object allocation information and the corresponding number of target objects sent by the object processing device, and allocate objects to the first participant according to the effective period in the object allocation information for use by the first participant.

[0157] In an embodiment of the present application, the object processing device can determine the total amount of target objects allocated to the first participant according to the contribution of the first participant, and send an object confirmation request to the device of the second participant. The object processing device can receive the object confirmation response sent by the device of the second participant, and determine the first object response and the total amount of target objects according to the object confirmation response, and send the number of objects to the device of the first participant in batches according to the object allocation duration and the object attenuation, until the total amount of target objects is allocated, thereby improving the flexibility of object allocation.

[0158] Figure 4 For a structural diagram of an object processing device provided in an embodiment of the present application, see Figure 4 The object processing device 10 may include: a first determining module 11, an acquiring module 12, a second determining module 13 and a sending module 14, wherein:

[0159] The first determination module is used to determine the total amount of target objects to be allocated to the first participant, where the first participant is a participant in federated learning;

[0160] The acquisition module is used to acquire the object allocation duration and the object attenuation from a preset database, wherein the object allocation duration includes a plurality of unit durations, and the object attenuation is the attenuation ratio of the number of objects allocated to the first participant in two adjacent unit durations;

[0161] The second determination module is used to determine a plurality of object allocation information according to the total amount of the target objects, the duration of the object allocation and the object attenuation, wherein the object allocation information includes the number of objects, the object status and the object effective period;

[0162] The sending module is used to send the multiple object allocation information to the device of the first participant.

[0163] The object processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0164] In a possible implementation manner, the first determining module 11 is specifically configured to:

[0165] Sending an object confirmation request to devices of multiple second participants, wherein the object confirmation request includes an identifier of the first participant and the total amount of the first object, and the second participant is a participant of the federated learning;

[0166] receiving a plurality of object confirmation responses sent by devices of the plurality of second participants;

[0167] The total amount of the target objects is determined based on the multiple object confirmation responses.

[0168] In a possible implementation manner, the first determining module 11 is specifically configured to:

[0169] determining a first object confirmation response from among the plurality of object confirmation responses, the first object confirmation response being used to indicate an object that agrees to allocate the first object total amount to the first participant;

[0170] If the number of the first object confirmation responses is greater than or equal to a preset threshold, the first object total amount is determined as the target object total amount.

[0171] In a possible implementation manner, the second determining module 13 is specifically configured to:

[0172] Determine, according to the object allocation duration and the unit duration, the information quantity N of the object allocation information, where N is an integer greater than 1;

[0173] According to the total number of target objects, N and the object attenuation, N object allocation information is determined.

[0174] In a possible implementation manner, the second determining module 13 is specifically configured to:

[0175] Determine the number of objects included in the first object allocation information according to the total number of target objects, N and the object attenuation;

[0176] Determine the number of objects in N-1 pieces of object allocation information according to the object attenuation and the number of objects included in the first piece of object allocation information, where N-1 is other pieces of object allocation information in the N pieces of object allocation information except the first piece of object allocation information;

[0177] Determine that the object status in the first object allocation information is an available status, and determine that the object status in the N-1 object allocation information is an unavailable status;

[0178] The effective time period corresponding to each object allocation information is determined according to the object allocation duration and the unit duration.

[0179] In a possible implementation manner, the second determining module 13 is specifically configured to:

[0180] Determine that the effective period corresponding to the i-th object allocation information is a period after the i-th moment, where the i-th moment is a moment that has elapsed i-1 units of time from the current moment;

[0181] Wherein, i is an integer greater than or equal to 1 and less than or equal to N.

[0182] In a possible implementation manner, the sending module 14 is specifically configured to:

[0183] The target object quantity objects and the object allocation information are sent to a third-party device, so that the third-party device stores the target object quantity objects and allocates objects to the first participant according to the object allocation information.

[0184] The object processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0185] This application embodiment provides a schematic diagram of the structure of an object processing device. Figure 5 The object processing device 20 may include a processor 21 and a memory 22. Exemplarily, the processor 21 and the memory 22 are interconnected via a bus 23.

[0186] The memory 22 stores computer-executable instructions;

[0187] The processor 21 executes the computer-executable instructions stored in the memory 22, so that the processor 21 executes the object processing method shown in the above method embodiment.

[0188] All or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.

[0189] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the object processing method described in the above method embodiment.

[0190] The embodiment of the present application may also provide a computer program product, including a computer program, which, when executed by a processor, can implement the object processing method shown in the above method embodiment.

[0191] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0192] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0193] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0194] In the present application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". The terms "first", "second", etc. in the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In the present application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

Claims

1. An object processing method, characterized in that: include: Determining a total amount of target objects to be allocated to a first party, where the first party is a party of federated learning; Acquire the object allocation duration and the object attenuation in a preset database, wherein the object allocation duration includes a plurality of unit durations, and the object attenuation is the attenuation ratio of the number of objects allocated to the first participant in two adjacent unit durations; Determine a plurality of object allocation information according to the total amount of the target objects, the duration of the object allocation and the object attenuation, wherein the object allocation information includes the number of objects, the object status and the object effective period; Sending the plurality of object allocation information to a device of the first participant; The determining of a plurality of object allocation information according to the total amount of the target objects, the duration of the object allocation and the object attenuation includes: Determine, according to the object allocation duration and the unit duration, the information quantity N of the object allocation information, where N is an integer greater than 1; Determine the number of objects included in the first object allocation information according to the total number of target objects, N and the object attenuation; Determine the number of objects in N-1 pieces of object allocation information according to the object attenuation and the number of objects included in the first piece of object allocation information, where N-1 is other pieces of object allocation information in the N pieces of object allocation information except the first piece of object allocation information; Determine that the object status in the first object allocation information is an available status, and determine that the object status in the N-1 object allocation information is an unavailable status; The effective time period corresponding to each object allocation information is determined according to the object allocation duration and the unit duration.

2. The method according to claim 1, characterized in that Determine the total amount of target objects to be allocated to the first party, including: Sending an object confirmation request to devices of multiple second participants, wherein the object confirmation request includes an identifier of the first participant and the total amount of the first object, and the second participant is a participant of the federated learning; receiving a plurality of object confirmation responses sent by devices of the plurality of second participants; The total amount of the target objects is determined based on the multiple object confirmation responses.

3. The method according to claim 2, characterized in that Determining the total amount of the target objects according to the plurality of object confirmation responses includes: determining a first object confirmation response from among the plurality of object confirmation responses, the first object confirmation response being used to indicate an object that agrees to allocate the first object total amount to the first participant; If the number of the first object confirmation responses is greater than or equal to a preset threshold, the first object total amount is determined as the target object total amount.

4. The method according to claim 1, characterized in that: Determining the effective time period corresponding to each object allocation information according to the object allocation duration and the unit duration includes: Determine that the effective period corresponding to the i-th object allocation information is a period after the i-th moment, where the i-th moment is a moment that has elapsed i-1 units of time from the current moment; Wherein, i is an integer greater than or equal to 1 and less than or equal to N.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The target object quantity objects and the object allocation information are sent to a third-party device, so that the third-party device stores the target object quantity objects and allocates objects to the first participant according to the object allocation information.

6. An object processing device, characterized in that: include: A first determining module, an acquiring module, a second determining module and a sending module, wherein: The first determination module is used to determine the total amount of target objects to be allocated to the first participant, where the first participant is a participant in federated learning; The acquisition module is used to acquire the object allocation duration and the object attenuation from a preset database, wherein the object allocation duration includes a plurality of unit durations, and the object attenuation is the attenuation ratio of the number of objects allocated to the first participant in two adjacent unit durations; The second determination module is used to determine a plurality of object allocation information according to the total amount of the target objects, the duration of the object allocation and the object attenuation, wherein the object allocation information includes the number of objects, the object status and the object effective period; The sending module is used to send the plurality of object allocation information to the device of the first participant; The second determination module is specifically used to determine the information quantity N of the object allocation information according to the object allocation duration and the unit duration, where N is an integer greater than 1; determine the number of objects included in the first object allocation information according to the total number of target objects, N and the object attenuation; determine the number of objects in N-1 object allocation information according to the object attenuation and the number of objects included in the first object allocation information, where N-1 is the other object allocation information in the N object allocation information except the first object allocation information; determine that the object status in the first object allocation information is an available status, and determine that the object status in the N-1 object allocation information is an unavailable status; determine the effective time period corresponding to each object allocation information according to the object allocation duration and the unit duration.

7. An object processing device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the object processing method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the object processing method according to any one of claims 1 to 5 when executed by a processor.

9. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the object processing method according to any one of claims 1 to 5.