Single-client multi-domain heterogeneous federated learning system and method based on manifold learning

Manifold learning technology is used to process domain heterogeneous data in federated learning. Through the collaborative work of manifold point sets, clustering processing, and attention mechanisms, performance problems in domain heterogeneous scenarios are solved and more efficient model training is achieved. and cross-domain adaptability of global models.

CN118734995APending Publication Date: 2024-10-01XIDIAN UNIV
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410769913.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing federated learning has limited performance when dealing with domain heterogeneous data, especially since each participant adjusts their model to a local optimum, thus deviating from the unified global goal, resulting in poor performance in domain heterogeneous scenarios. .

Method used

Using a single-client multi-domain heterogeneous federated learning system and method based on manifold learning, the client and server work together to determine the manifold point set, cluster the global manifold, update the sub-manifold, and reconstruct the manifold points. , update the global model, and through iterative training until the global model converges, use the attention mechanism to achieve learning between different domains.

Benefits of technology

It improves the adaptability and accuracy of the model in domain heterogeneous scenarios, achieves good federated learning performance between different domains, and improves the cross-domain adaptability and accuracy of the global model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734995A_ABST
    Figure CN118734995A_ABST
Patent Text Reader

Abstract

The invention provides a single-client multi-domain heterogeneous federated learning system and method based on manifold learning, and the method comprises the steps: enabling each client to determine a plurality of manifold point sets corresponding to the types of data in a training set according to a local model and a local data set, and transmitting the manifold point sets and the local model to a server; the server determines global manifolds according to the manifold points of the clients in any category, performs data field division on the global manifolds through clustering processing to obtain sub-manifolds, updates the sub-manifolds based on an attention mechanism to reconstruct manifold points, updates the global model according to the local models, and reconstructs the manifold points according to the local models. Distributing the reconstructed manifold points and the current global model to corresponding clients; and each client determines a total loss function according to the received global model, updates the current local model according to the total loss function, and sends the updated local model to the server, so that each client and the server carry out iterative training until the global model converges, thereby realizing good federal performance in a domain heterogeneous scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a single-client multi-domain heterogeneous federated learning system and method based on manifold learning. Background Art

[0002] Federated learning is an emerging collaborative machine learning paradigm that has gained popularity in various fields, including medical imaging diagnosis, banking transaction risk identification, and autopilot training. The main advantage of federated learning is that it enables the central server to build a highly accurate global model while protecting the confidentiality of client private data. The federated learning process consists of three iterative steps: 1) The client trains local data to generate a separate local model and transmits the model parameters to the central server; 2) The central server aggregates the model parameters according to the predefined aggregation rules and updates the global model; 3) The updated global model is transmitted back to the client for the next round of learning.

[0003] Federated learning excels at processing homogeneous data with consistent distribution, but its performance is limited when processing heterogeneous data that exhibits significant client differences, which causes each participant to adjust their model to a local optimum, thus deviating from the unified global goal. Data heterogeneity can be classified from multiple dimensions, of which the two main categories are label drift and domain heterogeneity. In the current research field, federated learning schemes for data heterogeneity mainly focus on solving the problem of label heterogeneity, while relatively few have addressed domain heterogeneity. Therefore, a method that can solve federated learning in domain heterogeneous scenarios is urgently needed. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present invention provides a single-client multi-domain heterogeneous federated learning system and method based on manifold learning. Specifically, it includes:

[0005] In a first aspect, the present invention provides a single-client multi-domain heterogeneous federated learning system based on manifold learning, the system comprising at least one client and a server;

[0006] Each client is used to determine a plurality of manifold point sets corresponding to the categories of data in the local data set according to the local local model and the local data set, and send the plurality of manifold point sets and the local model to the server;

[0007] The server is used to determine the global manifold of the corresponding category according to the manifold points of each client under any category, and divide the data domain of each global manifold by clustering processing to obtain the sub-manifold corresponding to each category;

[0008] The server is also used to update each submanifold based on the attention mechanism, and reconstruct the manifold points of each client in each category according to the updated submanifolds;

[0009] The server is further used to update the global model according to each local model, and distribute the reconstructed manifold points of each client under each category and the current global model to the corresponding clients;

[0010] Each client is also used to use the received global model as a new local model, determine the total loss function according to the new local model, update the new local model according to the total loss function, and send the updated local model to the server, so that each client and server can perform iterative training until the global model converges.

[0011] In a second aspect, the present invention further provides a single-client multi-domain heterogeneous federated learning method based on manifold learning, which is applied to any single-client multi-domain heterogeneous federated learning system based on manifold learning as provided in the first aspect;

[0012] The method includes:

[0013] Each client determines a plurality of manifold point sets corresponding to the categories of data in the local data set according to the local local model and the local data set;

[0014] Each client sends the corresponding multiple manifold point sets and local models to the server;

[0015] The server determines the global manifold of the corresponding category according to the manifold points of each client under any category, and divides the data domain of each global manifold through clustering processing to obtain the sub-manifold corresponding to each category;

[0016] The server updates each submanifold based on the attention mechanism, and reconstructs the manifold points of each client in each category according to the updated submanifolds;

[0017] The server updates the global model based on each local model;

[0018] The server distributes the reconstructed manifold points of each client in each category and the current global model to the corresponding clients;

[0019] Each client uses the received global model as a new local model, determines the total loss function based on the new local model, and updates the new local model based on the total loss function;

[0020] Each client sends the updated local model to the server, so that each client and server perform iterative training until the global model converges.

[0021] In a third aspect, the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0022] Memory, used to store computer programs;

[0023] The processor is used to implement the method provided in the second aspect when executing the program stored in the memory.

[0024] In a fourth aspect, the present invention provides a program product, which includes computer program instructions, and when the computer program instructions are executed, the method provided in the second aspect can be implemented.

[0025] Beneficial effects of the present invention:

[0026] The present invention provides a single-client multi-domain heterogeneous federated learning system and method based on manifold learning. Specifically, each client determines multiple manifold point sets corresponding to the categories of data in the local data set based on the local local model and the local data set, and sends the multiple manifold point sets and the local model to the server; the server determines the global manifold of the corresponding category based on the manifold points of each client under any category received, and divides the data domain of each global manifold through clustering processing to obtain sub-manifolds corresponding to each category; the server updates each sub-manifold based on the attention mechanism, and reconstructs the manifold points of each client under each category based on the updated sub-manifolds, thereby achieving different Domains learn from each other to improve model performance; further, the server updates the global model according to the local models, and distributes the reconstructed manifold points of each client in each category and the current global model to the corresponding clients; each client uses the received global model as a new local model, determines the total loss function according to the new local model, updates the new local model according to the total loss function, and sends the updated local model to the server, so that each client and server can perform iterative training until the global model converges, so as to improve the adaptability and model accuracy of the global model across different data domains, so that the system has good federation performance in domain heterogeneous scenarios.

[0027] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of the architecture of a single-client multi-domain heterogeneous federated learning system based on manifold learning provided by the present invention;

[0029] Figure 2 A flow chart of a single-client multi-domain heterogeneous federated learning method based on manifold learning provided by the present invention;

[0030] Figure 3a A schematic diagram of a set of experimental results provided by the present invention;

[0031] Figure 3b A schematic diagram of a set of experimental results provided by the present invention;

[0032] Figure 4 Another set of experimental results provided by the present invention is a schematic diagram;

[0033] Figure 5 Another set of schematic diagrams of experimental results provided by the present invention. DETAILED DESCRIPTION

[0034] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.

[0035] During image processing, the sample images obtained may have their own characteristics. For example, some may be grayscale images containing handwritten numbers, some may be color images containing complex and diverse backgrounds, and some may be medical images. We can assume that there is a problem of domain heterogeneity between these data. Domain heterogeneity involves complex differences in data feature space, requiring more detailed feature engineering and complex model adjustments, which makes solving domain heterogeneity problems usually more challenging than label shift problems. Solutions that focus on label shift ignore the problem of domain heterogeneity, resulting in their poor performance in domain heterogeneity scenarios. Existing methods that focus on solving domain heterogeneity include personalized federated learning solutions and federated prototype learning. Personalized federated learning solutions usually do not use a unified global model, but use a distillation-based method to transfer knowledge between clients. This method focuses on personalized models, and the efficiency of transferring knowledge is not as good as that of the unified global model solution, so the overall model performance is not as good as the latter. In addition, some solutions require additional training rounds and public data, which brings additional computing overhead to participants and servers. Solutions based on federated prototype learning overemphasize the preservation of client local domain distribution in the case of domain heterogeneity, but fail to find commonalities from the individuality of data feature distribution, and only consider the case where the local data domain is one, and serious performance degradation occurs when the local data domain is multiple. Therefore, these solutions also have shortcomings.

[0036] To solve the above problems, the present invention provides a single-client multi-domain heterogeneous federated learning system and method based on manifold learning.

[0037] A typical federated learning system consists of a server s and a set of distributed clients. Assume that the number of clients is m, and each client can access its own private training set. Among them, n c =|D c | represents the number of samples. The initial model parameters θ0 are propagated by the server. After the tth iteration of federated learning, the local model parameters of client c are expressed as Client c uses stochastic gradient descent to optimize the loss function, expressed as: After completing each round of training, the client uploads the local model to the server, and the server updates the global model based on each local model, which is expressed as: The server then redistributes the updated global model to each client.

[0038] Figure 1 The schematic diagram of the architecture of a single-client multi-domain heterogeneous federated learning system based on manifold learning provided by the present invention is as follows: Figure 1 As shown, the system includes at least one client 11 and a server 12 .

[0039] Each client 11 is used to determine a plurality of manifold point sets corresponding to the categories of data in the local data set according to the local local model and the local data set, and send the plurality of manifold point sets and the local model to the server 11 .

[0040] Exemplarily, the client is an electronic device such as a mobile phone, a computer, or a tablet computer.

[0041] The server 12 is used to determine the global manifold of the corresponding category according to the manifold points of each client 11 under any category received, and divide the data domain of each global manifold by clustering processing to obtain sub-manifolds corresponding to each category.

[0042] The server 12 is further used to update each sub-manifold based on the attention mechanism, and reconstruct the manifold points of each client 11 in each category according to the updated sub-manifolds.

[0043] The server 12 is further used to update the global model according to each local model, and distribute the reconstructed manifold points of each client 11 in each category and the current global model to the corresponding client 11 .

[0044] Each client 11 is also used to use the received global model as a new local model, determine the total loss function according to the new local model, update the new local model according to the total loss function, and send the updated local model to the server 12, so that each client 11 and server 12 can perform iterative training until the global model converges.

[0045] In a possible implementation manner, for any first client among the at least one client:

[0046] The first client is used to determine a plurality of first manifold points according to a local local model and a local data set.

[0047] When the communication round between the first client and the server reaches a preset round, the first client is also used to obtain multiple second manifold points based on the multiple first manifold points based on the determinant point process algorithm, and divide the multiple second manifold points into multiple manifold point sets according to the category of data in the local data set.

[0048] The first client is also used to send multiple manifold point sets and local models to the server.

[0049] In a possible implementation, the first client is specifically configured to execute:

[0050] A1. The first client obtains the second manifold point and the first intermediate variable based on the determinant point process algorithm according to the first manifold point and the first parameter, which is expressed as:

[0051] Z' temp =DPP(Z,k),

[0052] Z=[u1,u2,...,u i ,...,u n ],

[0053] v=Vol(Z t ' emp ),

[0054]

[0055] Among them, Z' temp represents the sampled manifold point used to calculate the first intermediate variable IEI, DPP() represents the determinant point process, Z represents the manifold point set calculated from all data in the local data set, and u i represents the manifold point calculated from the i-th data in the local data set, k represents the first parameter, v represents the vector composed of the manifold volume of the sampled manifold point used to calculate IEI, Vol() represents the manifold volume calculation function, IEI represents the first intermediate variable, and v max represents the maximum value in v, and n represents the total number of manifold points, i.e. Z' temp The length of the first dimension, det() represents the matrix determinant, I represents the identity matrix, Represents Z' temp The average value of () T Indicates transpose.

[0056] A2, the first client determines whether the first intermediate variable is greater than a preset threshold value, if not, executes A3, if yes, ends the calculation;

[0057] A3. The first client determines whether the first parameter is less than or equal to the total number of elements in the first manifold point after increasing the first parameter by a certain threshold. If so, the result after increasing the first parameter by the certain threshold is used as the new first parameter, and returns to execute A1.

[0058] Optionally, when the communication round between the first client and the server does not reach the preset round, the first client executes the existing FedAvg process.

[0059] By adopting the manifold approximation loss function and the manifold separation loss function, the generalization and category discrimination capabilities of the model can be enhanced respectively.

[0060] In a possible implementation, the server is specifically configured to connect the manifold points of each client under any category received to form a global manifold of the corresponding category, which is expressed as:

[0061]

[0062] in, represents the global manifold corresponding to category l, Represents the manifold point of client c under category l, c represents the index of the client, l represents the index of the data category, C represents the total number of clients, and concat() represents the connection function.

[0063] The server is specifically used to cluster each global manifold respectively by using the FINCH clustering technology to obtain a plurality of sub-manifolds corresponding to different manifold structures corresponding to each category.

[0064] In a possible implementation, for any first submanifold corresponding to any first category in the category, the server is specifically configured to connect all submanifolds except the first submanifold in the submanifolds corresponding to the first category, and update the first submanifold based on the connection result and the first submanifold based on the attention mechanism, which is expressed as:

[0065]

[0066] K = V = concat(T l,s ,s≠s o ),

[0067]

[0068] Among them, ApplyAttention() represents the attention function, Softmax() represents the normalized exponential function, and T l ' ,s represents the sth submanifold corresponding to the updated category l, T l,s represents the sth submanifold corresponding to category l, Indicates the sth o submanifolds, d represents the length of the second dimension of the matrix K, concat() represents the connection function, K T represents the transpose of K.

[0069] By adopting the attention mechanism, different manifolds can learn from each other, allowing the model to learn from different data distributions and improve model quality.

[0070] In a possible implementation, each client is specifically configured to use the received global model as a new local model, determine a cross entropy loss function, a manifold approximation loss function, and a manifold separation loss function according to the new local model, and determine a total loss function according to the cross entropy loss function, the manifold approximation loss function, and the manifold separation loss function. The cross entropy loss function is expressed as:

[0071] L CE ←-∑ i y i log(g(w c ;u i ))

[0072]

[0073] Among them, L CE represents the cross entropy loss function, y i represents the label of the i-th data in the local dataset, i represents the index of the data in the local dataset, g() represents the calculation function of the classifier part of the local model, and w c represents the parameters of the classifier part of the local model, u i represents the manifold point calculated from the i-th data in the local dataset, f() represents the calculation function of the feature extractor part of the local model, represents the parameters of the feature extractor of the local model obtained in the tth round, x i represents the i-th data in the local dataset, t represents the index of the communication round, and e represents the identifier of the feature extractor part of the local model.

[0074] The manifold approximation loss function is expressed as:

[0075]

[0076] Among them, L MA represents the manifold approximation loss, Indicates that before mapping, i The nearest manifold point, j represents the index of the manifold point returned by the server.

[0077] The manifold separation loss function is expressed as:

[0078]

[0079] Among them, L MS represents the manifold separation loss, exp() represents the exponential function with the natural constant e as the base, sim() represents the similarity function, and identifies the similarity between two vectors. Represents the center point of the global manifold corresponding to category l.

[0080] The total loss function is expressed as:

[0081] L=L CE +αL MA +βL MS ,

[0082] Among them, L represents the overall loss function, α represents the participation of manifold approximation loss, and β represents the participation of manifold separation loss.

[0083] Each client is specifically used to update the gradient according to the corresponding total loss function, and update the new local model based on the updated gradient, which is expressed as:

[0084]

[0085] in, represents the local model of the t+1th round corresponding to client c, represents the local model of the tth round corresponding to client c, η represents the learning rate, Represents the gradient of the overall loss function L.

[0086] Optionally, the local dataset includes images of various tones collected by various collection methods.

[0087] The single-client multi-domain heterogeneous federated learning system based on manifold learning provided by the present invention includes at least one client and a server; each client determines multiple manifold point sets corresponding to the category of data in the local data set according to the local local model and the local data set, and sends the multiple manifold point sets and the local model to the server; the server is used to determine the global manifold of the corresponding category according to the manifold points of each client under any category received, and divide the data domain of each global manifold through clustering processing to obtain sub-manifolds corresponding to each category; the server is also used to update each sub-manifold based on the attention mechanism, and reconstruct the manifold points of each client under each category according to the updated sub-manifolds; the server is also used to update the global model according to each local model, and distribute the reconstructed manifold points of each client under each category and the current global model to the corresponding client; each client is also used to use the received global model as a new local model, determine the total loss function according to the new local model, update the new local model according to the total loss function, and send the updated local model to the server, so that each client and server perform iterative training until the global model converges. The system has good federation performance in domain heterogeneous scenarios.

[0088] Figure 2 A flow chart of a single-client multi-domain heterogeneous federated learning method based on manifold learning provided by the present invention is provided. The method is applied to any single-client multi-domain heterogeneous federated learning system based on manifold learning provided in the above embodiments, such as Figure 2 As shown, the method includes:

[0089] S201. Each client determines, based on a local local model and a local data set, a plurality of manifold point sets corresponding to categories of data in the local data set.

[0090] S202. Each client sends the corresponding multiple manifold point sets and local models to the server.

[0091] S203: The server determines the global manifold of the corresponding category according to the received manifold points of each client under any category, and divides the data domain of each global manifold by clustering processing to obtain sub-manifolds corresponding to each category.

[0092] S204: The server updates each sub-manifold based on the attention mechanism, and reconstructs the manifold points of each client in each category according to the updated sub-manifolds.

[0093] S205: The server updates the global model according to the local models.

[0094] S206: The server distributes the reconstructed manifold points of each client in each category and the current global model to the corresponding clients.

[0095] S207. Each client uses the received global model as a new local model, determines a total loss function according to the new local model, and updates the new local model according to the total loss function.

[0096] S208. Each client sends the updated local model to the server respectively, so that each client and the server perform iterative training until the global model converges.

[0097] To further prove the beneficial effects of the present invention, the present invention also provides a set of experimental verification data, as follows:

[0098] The performance of the present invention is evaluated by two standard benchmark datasets, namely Digits and Office31. The Digits dataset contains four different domains, namely MNIST, USPS, SVHN and SYN, all of which cover the digital categories from 0 to 9. Among them, the MNIST and USPS datasets contain grayscale images of handwritten digits; SVHN and SYN contain color images under complex and diverse backgrounds. The Office31 dataset involves three domains: Amazon, Webcam and DSLR, each of which includes 31 categories. The differences between these datasets are mainly reflected in the image acquisition method and the final quality of the image.

[0099] In order to accurately simulate the complex environment of multi-domain joint learning, the data sets held by each client are designed to come from two different domains. When processing the Digits task, six unique domain pairings were constructed from four different domains, and each pairing was assigned to three clients, totaling 18 clients. For the Office31 task, three domains formed three pairings, and each pairing was also assigned to three clients, totaling nine clients. Considering the complexity of the task and the amount of data, each client will randomly select a different amount of data from its corresponding domain for learning. Unless otherwise specified, the default proportion of local data used in the Digits task is 0.5%, and it is set to 30% in the Office31 task. In addition, a specific seed value is set to ensure the consistency and repeatability of the experimental results. In the experiment, ResNet-18 was used as the network model for both the Digits and Office31 tasks.

[0100] To comprehensively evaluate the performance across multiple domains, we introduced the “AVG” metric, a weighted average that takes into account the size differences of the test datasets in each domain. Specifically, in the digital task, the weights are calculated based on the relative sizes of the test sets of MNIST, SYN, SVHN, and USPS, where the AVG score contributions of MNIST, SYN, SVHN, and USPS are 25%, 5%, 65%, and 5%, respectively. Similarly, in the Office31 task, based on the test set sizes of Amazon, Webcam, and DSLR, their contributions to the total AVG metric are approximately 68.4%, 19.4%, and 12.1%, respectively. This evaluation method ensures a balanced and fair comparison across different testing environments. We conducted three experiments and took the average accuracy of the last five rounds of communication as the final evaluation result. The experimental data is shown in Tables 1 and 2. The comparison of the experimental accuracy with the SOTA scheme in the two scenarios is shown in Figure 3, where, Figure 3a Corresponding Digits, Figure 3b Corresponding to Office31, FML is the solution of the present invention. Obviously, FML is better than all the comparison solutions, which is reflected in its test accuracy on the test data set exceeding that of other solutions. The results of the experiment on the influence of hyperparameters on the results are shown in Figure 2. Figure 4 and Figure 5 shown. Figure 4 It can be seen that the scheme works best when the hyperparameter α is 0.15, and the hyperparameter β works best when it is 1.0. Therefore, the default hyperparameters of this scheme are α=0.1 and β=1.0. Figure 5The curves of IEI value and manifold volume v as k value changes are shown. It can be seen that the manifold volume increases with the k value and the growth rate gradually slows down. The IEI value reaches the maximum at a certain point and then begins to decrease, indicating that the manifold information collection degree and server computing overhead can be balanced to the greatest extent at the highest value.

[0101] Table 1 Experimental data corresponding to the Digits dataset

[0102]

[0103]

[0104] Table 2 Experimental data corresponding to the Office31 dataset

[0105] method Amazon Webcam DSLR AVG FedAvg 48.78 58.6 47.07 50.48 FedProx 48.23 68.81 44.67 51.8 MOON 41.51 36.27 40.23 40.34 FedProto 45.96 65.56 42.57 49.35 FedProc 43.48 45.21 40.44 43.45 FPL 44.8 56.18 43.37 46.83 FedCSPC 45.88 60.19 43.41 48.36 FedCD 48.66 69.41 45.07 52.25 FML 54.22 78.49 52.5 58.72

[0106] The present invention also provides a structural diagram of an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus.

[0107] Memory, used to store computer programs;

[0108] The processor is used to implement the steps provided in the above method embodiment when executing the program stored in the memory.

[0109] The communication interface is used for communication between the above electronic device and other devices.

[0110] The method provided in the embodiment of the present invention can be applied to electronic devices. Specifically, the electronic device can be: a desktop computer, a portable computer, an intelligent mobile terminal, a server, etc. This is not limited here, and any electronic device that can implement the present invention belongs to the protection scope of the present invention.

[0111] The present invention also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps provided in the above method embodiment are implemented.

[0112] As for the device / electronic device / storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the specific content and beneficial effects and other related matters can be referred to the partial description of the method embodiment.

[0113] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0114] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A single-client multi-domain heterogeneous federated learning system based on manifold learning, characterized in that: The system includes at least one client and a server; Each of the clients is used to determine, according to a local local model and a local data set, a plurality of manifold point sets corresponding to the categories of data in the local data set, and send the plurality of manifold point sets and the local model to the server; The server is used to determine the global manifold of the corresponding category according to the received manifold points of each client under any of the categories, and divide the data domain of each global manifold by clustering processing to obtain sub-manifolds corresponding to each category; The server is further used to update each of the sub-manifolds based on an attention mechanism, and reconstruct the manifold points of each of the clients in each category according to the updated sub-manifolds; The server is further configured to update the global model according to each of the local models, and distribute the reconstructed manifold points of each of the clients in each category and the current global model to the corresponding clients; Each of the clients is also used to use the received global model as a new local model, determine the total loss function based on the new local model, update the new local model based on the total loss function, and send the updated local model to the server, so that each of the clients and the server can perform iterative training until the global model converges.

2. The system according to claim 1, characterized in that For any first client among the at least one client, The first client is used to determine a plurality of first manifold points according to a local local model and a local data set; When the communication round between the first client and the server reaches a preset round, the first client is further used to obtain a plurality of second manifold points according to the plurality of first manifold points based on a determinant point process algorithm, and divide the plurality of second manifold points into a plurality of manifold point sets according to the category of the data in the local data set; The first client is also used to send the multiple manifold point sets and the local model to the server.

3. The system according to claim 1 or 2, characterized in that: The server is specifically used to connect the manifold points of each of the clients under any of the categories received to form a global manifold of the corresponding category, which is expressed as: in, represents the global manifold corresponding to category l, represents the manifold point of client c under category l, c represents the index of the client, l represents the index of the data category, C represents the total number of clients, and concat() represents the concatenation function; The server is specifically used to adopt the FINCH clustering technology to cluster each of the global manifolds respectively to obtain a plurality of sub-manifolds corresponding to different manifold structures corresponding to each category.

4. The system according to claim 1 or 2, characterized in that: any first submanifold corresponding to any first category in the categories; The server is specifically used to connect all submanifolds except the first submanifold in the submanifolds corresponding to the first category, and update the first submanifold based on the attention mechanism according to the connection result and the first submanifold, which is expressed as: K=V=concat(T l,s ,s≠s o ), Among them, ApplyAttention() represents the attention function, Softmax() represents the normalized exponential function, and T l ' ,s represents the sth submanifold corresponding to the updated category l, T l,s represents the sth submanifold corresponding to category l, Indicates the sth o submanifolds, d represents the length of the second dimension of the matrix K, concat() represents the connection function, K T represents the transpose of K.

5. The system according to claim 1 or 2, characterized in that: Each of the clients is specifically used to use the received global model as a new local model, determine a cross entropy loss function, a manifold approximation loss function and a manifold separation loss function according to the new local model, and determine a total loss function according to the cross entropy loss function, the manifold approximation loss function and the manifold separation loss function, wherein the cross entropy loss function is expressed as: L CE ←-∑ i y i log(g(w c ;u i )) Among them, L CE represents the cross entropy loss function, y i represents the label of the i-th data in the local dataset, i represents the index of the data in the local dataset, g() represents the calculation function of the classifier part of the local model, and w c represents the parameters of the classifier part of the local model, u i represents the manifold point calculated from the i-th data in the local dataset, f() represents the calculation function of the feature extractor part of the local model, represents the parameters of the feature extractor of the local model obtained in the tth round, x i represents the i-th data in the local dataset, t represents the index of the communication round, and e represents the identifier of the feature extractor part of the local model; The manifold approximation loss function is expressed as: Among them, L MA represents the manifold approximation loss, Indicates that before mapping, i The nearest manifold point, j represents the index of the manifold point returned by the server; The manifold separation loss function is expressed as: Among them, L MS represents the manifold separation loss, exp() represents the exponential function with the natural constant e as the base, sim() represents the similarity function, and identifies the similarity between two vectors. Represents the center point of the global manifold corresponding to category l; The total loss function is expressed as: L=L CE +αL MA +βL MS , Among them, L represents the overall loss function, α represents the participation of manifold approximation loss, and β represents the participation of manifold separation loss; Each of the clients is specifically used to update the gradient according to the corresponding total loss function, and to update the new local model based on the updated gradient, which is expressed as: in, represents the local model of the t+1th round corresponding to client c, represents the local model of the tth round corresponding to client c, η represents the learning rate, Represents the gradient of the overall loss function L.

6. The system according to claim 2, characterized in that The first client is specifically used to execute: S61, based on the determinant point process algorithm, obtain a second manifold point and a first intermediate variable according to the first manifold point and the first parameter, expressed as: WITH' temp =DPP(Z,k), Z=[u1,u2,...,u i ,...,u n ], v=Vol(Z t ' emp ), Among them, Z' temp represents the sampled manifold point used to calculate the first intermediate variable IEI, DPP() represents the determinant point process, Z represents the manifold point set calculated from all data in the local data set, and u i represents the manifold point calculated from the i-th data in the local data set, k represents the first parameter, v represents the vector composed of the manifold volume of the sampled manifold point used to calculate IEI, Vol() represents the manifold volume calculation function, IEI represents the first intermediate variable, and v max represents the maximum value in v, and n represents the total number of manifold points, i.e. Z' temp The length of the first dimension, det() represents the matrix determinant, I represents the identity matrix, Represents Z' temp The average value of () T represents transpose; S62, determining whether the first intermediate variable is greater than a preset threshold, if not, executing S63, if yes, ending the calculation; S63, determining whether the first parameter is less than or equal to the total number of elements in the first manifold point after increasing the first parameter by a certain threshold value, if so, taking the result after increasing the first parameter by the certain threshold value as the new first parameter, and returning to execute S61.

7. The system according to claim 1 or 2, characterized in that: The local data set includes images of various tones collected by various collection methods.

8. A single-client multi-domain heterogeneous federated learning method based on manifold learning, characterized in that: Applied to a single-client multi-domain heterogeneous federated learning system based on manifold learning as described in any one of claims 1 to 7, The method comprises: Each of the clients determines, according to a local local model and a local data set, a plurality of manifold point sets corresponding to categories of data in the local data set; Each of the clients sends the corresponding multiple manifold point sets and local models to the server; The server determines the global manifold of the corresponding category according to the manifold points of each of the clients under any of the categories, and divides the data domain of each of the global manifolds by clustering processing to obtain sub-manifolds corresponding to each of the categories; The server updates each of the sub-manifolds based on an attention mechanism, and reconstructs the manifold points of each of the clients in each category according to the updated sub-manifolds; The server updates the global model according to each of the local models; The server distributes the reconstructed manifold points of each client in each category and the current global model to the corresponding client; Each of the clients uses the received global model as a new local model, determines a total loss function according to the new local model, and updates the new local model according to the total loss function; Each of the clients sends the updated local model to the server respectively, so that each of the clients and the server performs iterative training until the global model converges.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor is used to implement the method as claimed in claim 8 when executing the program stored in the memory.

10. A program product, characterized in that The program product comprises computer program instructions, and when the computer program instructions are executed, the method according to claim 8 can be implemented.

Citation Information

Cited By

  • Federal learning-based cross-regional photovoltaic power generation power prediction method

    CN120372682A

  • Cross-region photovoltaic power generation power prediction method based on federated learning

    CN120372682B

  • Personalized federated learning method for asynchronous optimization and prototype perception reasoning of classifier

    CN120687850A

  • Personalized federated learning method of classifier asynchronous optimization and prototype perception reasoning

    CN120687850B

  • Heterogeneous task-oriented big language model enhanced federal map learning method and system

    CN121835845A