Multi-modal federated learning method and system for modal incomplete scene
Through the cluster step-by-step aggregation strategy and prototype comparison integration, the information sharing problem caused by incomplete modalities in multi-modal federated learning is solved, knowledge exchange and model optimization between clients are realized, and the efficiency of multi-modal federated learning is improved. effectiveness.
Patent Information
- Application Number
- CN202410792703.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing multi-modal federated learning methods cannot effectively solve the problem of information sharing and collaborative learning between clients in incomplete modal scenarios, resulting in insufficient utilization of data and reducing the effectiveness of multi-modal federated learning.
Propose a multi-modal federated learning framework for incomplete modal scenarios. Through the cluster step-by-step aggregation strategy and the prototype comparison integration strategy, model aggregation and knowledge exchange between clients are realized, including model aggregation within each cluster. Update and inter-cluster decoupled aggregation to optimize the model using intra-modal and inter-modal prototype comparison loss functions.
It effectively integrates the information of heterogeneous clients, improves the model training effect, promotes collaborative training and information sharing between clients, and solves the problem of knowledge sharing under incomplete modalities.
Smart Images

Figure CN118709805A
Abstract
Description
Technical Field
[0001] The present invention belongs to the federated learning technology in the field of distributed training, and specifically relates to a multimodal federated learning and system for modal incomplete scenarios, and proposes a new multimodal federated framework for modal incomplete scenarios. Background Art
[0002] The development of hospital informatization and artificial intelligence technology has made how to fully analyze and utilize multi-source heterogeneous multimodal health and medical data to provide intelligent clinical decision support a current research hotspot. Researchers have conducted a series of multimodal learning studies using data of different modalities such as medical images, clinical texts, physiological monitoring signals, and laboratory test results. Since medical data contains a large amount of sensitive information and comes from scattered sources, the traditional centralized multimodal learning paradigm requires data from different data sources to be aggregated to a server for model training, which can easily lead to privacy issues.
[0003] Federated learning is a distributed learning paradigm that allows different clients to achieve collaborative model training without directly sharing local data. Therefore, it has been widely used as a promising privacy protection solution. Multimodal clients replacing single-modal clients in traditional federated learning is a preliminary attempt to combine federated learning with multimodality. However, most modal federated learning methods assume that each client has complete data of all modalities. In reality, some clients may often have modality missing, resulting in modality inconsistency between clients. In fact, single-modal clients and multimodal clients can provide each other with information during model training. In the case of relatively scarce real-world medical data, it is particularly important to effectively combine the data resources on these inconsistent clients. However, existing methods usually cannot effectively solve the information sharing between clients with inconsistent modalities, making it impossible to fully utilize the data on each client, thereby greatly reducing the effectiveness of multimodal federated learning. For example, some methods rely on public multimodal datasets for knowledge transfer. However, due to the privacy of medical data, it is likely that public multimodal datasets cannot be obtained. Other methods choose to use generative models to generate the missing modalities of the client to solve the problem of incomplete modalities. However, the modalities generated by the generator may bring additional noise to the original data, which has a negative impact on the performance. Therefore, the effectiveness of the above methods is significantly limited.
[0004] In summary, modality incompleteness increases the difficulty of collaborative training and information sharing among clients. Solving modality incompleteness and effectively integrating data resources across heterogeneous clients are crucial to improving the practicality of multimodal federated learning in the healthcare field. Summary of the invention
[0005] In view of this, the present invention is committed to solving the technical problems caused by modal incompleteness, and further discloses a multimodal federated learning framework for modal incomplete scenarios, and provides a multimodal federated learning method and system for modal incomplete scenarios, which promotes collaborative training and knowledge exchange between multimodal and unimodal clients without relying on public data sets or generating missing modalities.
[0006] To this end, the present invention provides the following technical solutions:
[0007] On the one hand, the present invention provides a multimodal federated learning method for a modality incomplete scenario, which is applied to a server and includes the following steps:
[0008] S1: Divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and single-modal cluster models to each client according to the cluster category, wherein the clients include multimodal clients and single-modal clients;
[0009] S2: receiving a local prototype set and local model information of each modality transmitted by each client, where the local model information and the local prototype set are obtained by local training / calculation by the client;
[0010] S3: Execute the cluster step-by-step aggregation strategy to derive the multi-modal global model and the single-modal global model; and use the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain the global prototype set corresponding to each type of modality;
[0011] The cluster step-by-step aggregation strategy is divided into two stages. The first stage is to perform model aggregation updates within each cluster, and the second stage is to perform decoupled aggregation between clusters, that is, to disentangle the feature encoder and classifier of the model and aggregate the feature encoders of the same modality.
[0012] S4: Distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the corresponding multimodal clients and unimodal clients, wherein the distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients, and the distributed global prototype sets are used for the participating clients to update the local prototype sets;
[0013] The iterative loop S2-S4 is repeated until the iteration termination condition is met, and each multimodal client and unimodal client obtains the final model.
[0014] Optionally, the server executes the cluster step-by-step aggregation strategy to derive the multi-modal global model and the unimodal global model. In the first stage, the server performs model aggregation updates in each cluster:
[0015]
[0016] In the formula, φ r+1 (·; w), φ r+1 (·; W) represents the unimodal global model and multimodal global model obtained in the rth iteration; It represents the current model of the 1st and N1th unimodal clients after local training after the unimodal global model obtained in the previous round r-1 is distributed to the clients. N1 is the number of unimodal clients in the corresponding cluster. w and W are the model parameters of the unimodal client and multimodal client respectively. It indicates the current model after local training of the 1st and M1th multimodal clients after the multimodal global model obtained in the previous round r-1 is distributed to the clients. M1 is the number of multimodal clients in the corresponding cluster.
[0017] The servers in the second phase are decoupled and aggregated between clusters, as shown below:
[0018]
[0019] In the formula, represents the feature encoder i of the unimodal global model at the rth iteration, The feature encoder i representing the multimodal global model, Represents the global feature encoder i obtained by the r+1th round of aggregation, η i Represents the dynamically adjusted aggregation weight, and i corresponds to the modality category.
[0020] Further optionally, in step 3, the process of performing global prototype aggregation by modality type using the local prototype sets transmitted by each client to obtain the global prototype set corresponding to each type of modality is expressed as:
[0021] Receive the local prototype set P of each client local , and divide the local prototype set of each modality category according to the modality category;
[0022] Then, average aggregation is performed according to the modal categories to obtain the global prototype set of each modal category.
[0023] In another aspect, the present invention provides a multimodal federated learning method for a modality incomplete scenario, which is applied to a system including a client and a server, and includes the following steps:
[0024] Step 1: Divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and single-modal cluster models to each client according to the cluster category, wherein the clients include multimodal clients and single-modal clients;
[0025] Step 2: Each client uses the local data set to train the model, generate / update the local prototype set, and transmit it to the server;
[0026] Step 3: The server executes the cluster step-by-step aggregation strategy to derive a multi-modal global model and a single-modal global model; and uses the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain a global prototype set corresponding to each type of modality;
[0027] The cluster step-by-step aggregation strategy is divided into two stages. The first stage is to perform model aggregation update within the cluster, and the second stage is to perform decoupled aggregation between clusters, that is, to disentangle the feature encoder and classifier of the model and aggregate the feature encoders of the same modality.
[0028] Step 4: The server distributes the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the matching multimodal clients and unimodal clients, and the distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients, and the distributed global prototype sets participate in updating the local prototype sets in step 2;
[0029] Iterate step 2 to step 4 until the iteration termination condition is met, and each multimodal client and unimodal client obtains the final model.
[0030] Further optionally, the updating of the local prototype set in step 2 is achieved based on intra-modality prototype comparison and inter-modality prototype comparison;
[0031] Among them, based on the distance measurement between the local prototype and the global prototype, the intra-modality prototype comparison loss and the inter-modality prototype comparison loss of the multimodal client and the unimodal client are calculated;
[0032] Each client at least constructs a total loss function by combining the corresponding intra-modality prototype contrast loss and inter-modality prototype contrast loss, and then optimizes the client's current model with the minimum of the total loss function as the optimization goal, and then updates the client's local prototype set based on the updated model.
[0033] Further optionally, the formulas of the intra-modality prototype contrast loss and the inter-modality prototype contrast loss of the multi-modal client and the uni-modal client are as follows;
[0034] Wherein, the multimodal client includes A mode and B mode, and the loss formula is:
[0035]
[0036] In the formula, They are the intra-modality prototype contrast loss and inter-modality prototype contrast loss of multimodal client m, respectively. is the dataset of category k in the local A prototype set corresponding to the A modality of the multimodal client m, is the dataset of category k in the local B prototype set corresponding to the B modality of the multimodal client m, is the data set of category k in the global A prototype set corresponding to the A modality, The data set of category k in the global B prototype set corresponding to the B modality;
[0037] If the single mode is represented as A mode, the loss formula is:
[0038]
[0039] In the formula, They are the intra-modality prototype contrast loss and inter-modality prototype contrast loss of the single-modality client n, It is the dataset of category k in the local A prototype set corresponding to the A modality of the multi-modal client n.
[0040] In a third aspect, the present invention provides a server based on the multimodal federated learning method applied to the server, including:
[0041] The cluster module is used to: divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and unimodal cluster models to each client according to the cluster category, wherein the multimodal cluster model and unimodal cluster model are both composed of a feature encoder and a classifier;
[0042] The transmission module is used to receive the local prototype set and local model information transmitted by each client, wherein the local model information and the local prototype set are obtained by local training / calculation by the client;
[0043] The cluster step-by-step aggregation module is used to execute the cluster step-by-step aggregation strategy to derive the multi-modal global model and the unimodal global model;
[0044] The global prototype aggregation module is used to utilize the local prototype sets transmitted by each client, perform global prototype aggregation according to the modality type, and obtain the global prototype set corresponding to each type of modality;
[0045] The transmission module is used to distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the matching multimodal clients and unimodal clients. The distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients. The distributed global prototype sets are used to participate in the client to update the local prototype sets.
[0046] In a fourth aspect, the present invention provides a system based on the above method applied to a system including a client and a server, including a client and a server, wherein the client includes a multimodal client and a single-modal client;
[0047] Wherein, the server includes a cluster module, a cluster step aggregation module, a global prototype aggregation module, and a transmission module;
[0048] The cluster module is used to: divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and unimodal cluster models to each client according to the cluster category, wherein the multimodal cluster model and unimodal cluster model are both composed of a feature encoder and a classifier;
[0049] The transmission module is used to receive the local prototype set and local model information transmitted by each client, wherein each client trains the model using the local data set, and generates / updates the local prototype set, and transmits it to the server;
[0050] The cluster step-by-step aggregation module is used to execute the cluster step-by-step aggregation strategy to derive a multi-modal global model and a single-modal global model;
[0051] The global prototype aggregation module uses the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain the global prototype set corresponding to each type of modality;
[0052] The transmission module is used to distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the corresponding multimodal clients and unimodal clients. The distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients. The distributed global prototype sets are used for participating clients to update the local prototype sets.
[0053] In a fifth aspect, the present invention provides an electronic device, comprising:
[0054] one or more processors;
[0055] a memory storing one or more computer programs;
[0056] The processor calls the computer program to implement:
[0057] The invention relates to steps of a multimodal federated learning method for a modality-incomplete scenario applied to a server or steps of a multimodal federated learning method for a modality-incomplete scenario applied to a system including a client and a server.
[0058] In a sixth aspect, the present invention provides a computer-readable storage medium storing a computer program programmed or configured to implement a multimodal federated learning method for a modality-incomplete scenario applied to a server or a multimodal federated learning method for a modality-incomplete scenario applied to a system including a client and a server.
[0059] Beneficial Effects
[0060] Compared with the existing method, the advantages of the present invention are:
[0061] (1) The present invention proposes a multimodal federated learning for modality incomplete scenarios, and specifically proposes a cluster step-by-step aggregation strategy. In the first stage, model aggregation and update are performed within each cluster. In the second stage, decoupled aggregation is performed between clusters to aggregate feature encoders of the same modality. That is, through intra-cluster model aggregation and inter-cluster feature encoder aggregation, communication between heterogeneous clients in modality incomplete scenarios is achieved, unimodal information is effectively integrated, and the problem of knowledge sharing and collaborative learning between heterogeneous clients in incomplete modality scenarios is solved, thereby improving the effect of model training.
[0062] (2) The preferred solution of the present invention proposes a prototype comparison integration strategy, which uses prototypes to integrate semantic-level knowledge from heterogeneous clients and enhances the use of semantic-level knowledge in clients. Specifically, intra-modal and inter-modal prototype comparisons are developed, where intra-modal prototype comparison aims to minimize the difference in feature distribution within the same modality, and inter-modal prototype comparison aims to connect prototypes of different but semantically related modalities, supplement modal information that may be missing in single-modal clients, and enhance interaction between modalities.
[0063] (3) The present invention is efficient, practical, and easy to implement. Experimental results show that the present invention can promote collaborative training and information sharing among heterogeneous clients. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 It is a system block diagram of multimodal federated learning for modality incomplete scenarios provided by the present invention. DETAILED DESCRIPTION
[0065] The present invention provides a multimodal federated learning framework for modality incomplete scenarios, which promotes collaborative training and knowledge exchange between multimodal and unimodal clients without relying on public datasets or generating missing modalities. The present invention will be further described below in conjunction with embodiments.
[0066] Embodiment 1:
[0067] Step 1: Obtain information about multimodal clients and unimodal clients in the target scenario, group clients with consistent modalities into a cluster, and determine the model based on the cluster category.
[0068] This embodiment considers a setting of a modal mixed distribution multimodal federation, with a total of M multimodal clients (multimodal clients have two modes, A and B) and N single-modal A clients, and no single-modal B clients. It should be understood that single-modal B clients may exist in other feasible embodiments. Each multimodal client has a local data set in, is the jth aligned data pair of the mth multimodal client (1≤m≤M), with the superscript Representation dataset The number of data in is the corresponding label; it should be understood that in practical applications, multimodal datasets can be applied, such as ADNI (Alzheimer's Disease Neuroimaging Initiative) multimodal imaging data (PET positron emission tomography + MRI magnetic resonance imaging), X-ray + text report. The label represents the category of the multimodal dataset, such as ADNI multimodal imaging data (PET + MRI), the task is binary classification, and the corresponding label is AD (Alzheimer's Disease) or CN (Cognitively Normal), and The same could be AD or CN.
[0069] Each unimodal A client has a local dataset in, is the jth data of the nth unimodal client (1≤n≤N), is the corresponding label, Representation dataset The amount of data present in .
[0070] Clients with consistent modalities are grouped into the same cluster. It should be understood that the modalities of single-modal clients may not be completely consistent with each other, and if the modalities are not necessarily consistent, they will also be grouped into different clusters.
[0071] Both the unimodal cluster model and the multimodal cluster model are composed of a feature encoder and a classifier. The unimodal cluster model φ(·; w) of this embodiment is composed of the following feature encoder f A (·) and classifier g(·), as shown below:
[0072] φ(·;w)=f A (·)∪g(·) (1)
[0073] In order to convey the relevance at the feature level, the multimodal clustering model of this embodiment adopts a feature-level multimodal fusion network, which merges the feature representations extracted by the single-modal encoder networks of different modalities before making predictions. The multimodal network based on feature fusion can be expressed as:
[0074] φ(·;W)=(f i (·),i∈(A,B))∪g(·) (2)
[0075] In the formula, i represents the data mode, f i (·) is the feature encoder of modality i, W, w are the model parameters of the multimodal cluster model and the unimodal cluster model, respectively. The model parameters W, w are related to the feature encoder f A The relationship between (·) and the classifier g(·) and the feature encoder f A The application of (·) and classifier g(·) are both prior arts in the art and thus will not be described in detail.
[0076] It should be understood that in some embodiments, after the clusters are divided, unimodal cluster models and multimodal cluster models are assigned to unimodal clients and multimodal clients according to the cluster categories. The specific models can be given in advance, or an optimal multimodal cluster model and a unimodal cluster model can be obtained according to the following formula 3, or an optimal multimodal cluster model and a unimodal cluster model can be obtained by constructing the objective function with reference to formula 3.
[0077] The following goal set in this embodiment is to obtain an optimal multimodal cluster model and a unimodal cluster model through collaborative training between clients. The goal is defined as follows:
[0078]
[0079] In the formula, Represents the set of all local datasets from multimodal and unimodal clients. and Represent the size of the multimodal and unimodal client local datasets, denote the i-th data modality in multimodal and unimodal clients, respectively. and are the loss functions of the multimodal and unimodal clients, respectively. W and w are the model parameters of the multimodal cluster model and the unimodal cluster model, respectively. are respectively the expectations of the loss functions of the data of the multimodal client and the unimodal client. That is, in some embodiments, an optimal multimodal cluster model and a unimodal cluster model are obtained through collaborative training according to the target set in Formula 3.
[0080] It should be noted that the formula before the plus sign in the objective of formula 3 represents the optimal multimodal cluster model, and the formula after the plus sign represents a single modality. The single-modality and multimodal cluster models are mutually influential and collaboratively trained. The feature encoder and classifier of the training process will be updated. The model update method of this embodiment is: through cluster distribution aggregation and prototype comparison integration strategy update.
[0081] Step 2: Each client trains a model using a local data set, generates / updates a local prototype set, and transmits it to the server. The process of training a model using a local data set is a prior art, and therefore, it will not be elaborated on in detail.
[0082] Inspired by prototype learning, the present invention uses prototypes to improve the efficiency of knowledge exchange between clients. Considering the example-driven nature of prototype learning and its characteristics of promoting semantic-level knowledge interaction, integrating prototype learning into multimodal federated learning can capture the deep internal semantic correlation between multimodal and unimodal clients and effectively utilize the correlation information between modalities. Local prototype updates require the generation of an initial set of local prototypes from local data. In order to capture the semantic correlation within and between modalities, the present invention develops intra-modal and inter-modal prototype comparisons, where the intra-modal prototype comparison aims to minimize the difference in feature distribution within the same modality; the inter-modal prototype comparison aims to connect prototypes of different but semantically related modalities, supplement the modal information that may be missing in unimodal clients, and enhance the interaction between modalities.
[0083] The prototype is the class average feature output by the feature extractor. Each local client will use the local dataset Input the feature encoder of the corresponding modality, average the obtained feature representation, and then obtain the local prototype set of modality i and category k (label category) of each client. To this end, the multimodal client of the present invention obtains a multimodal local prototype set, and the unimodal client obtains a unimodal local prototype set. The calculation equation of the local prototype set can be expressed as:
[0084]
[0085] In the formula, k is a class, is a local dataset with mode i and category k, f i (·; x) is the feature encoder of modality i.
[0086] The preferred updating of the local prototype set of the present invention is realized based on intra-modality prototype comparison and inter-modality prototype comparison.
[0087] For multimodal clients, the intra-modality prototype contrast loss and inter-modality prototype contrast loss are as follows:
[0088]
[0089] In the formula, They are the intra-modality prototype contrast loss and inter-modality prototype contrast loss of multimodal client m, respectively. is the dataset of category k in the local A prototype set corresponding to the A modality of the multimodal client m, is the dataset of category k in the local B prototype set corresponding to the B modality of the multimodal client m, is the data set of category k in the global A prototype set corresponding to the A modality, It is the data set of category k in the global B prototype set corresponding to the B modality; the global prototype set is obtained by aggregating the global prototypes in the subsequent step four. In the first global iteration, the prototype comparison loss is not calculated.
[0090] For a single-modal client, the intra-modality prototype contrast loss and inter-modality prototype contrast loss are as follows:
[0091]
[0092] In the formula, They are the intra-modality prototype contrast loss and inter-modality prototype contrast loss of the single-modality client n, is the dataset of category k in the local A prototype set corresponding to the A modality of the multi-modal client n. d(*) is the distance measure between the local prototype and the global prototype. The distance measure can take many forms, such as L1 distance, L2 distance and bulldozer distance.
[0093] The ultimate goal of client c set in this embodiment is It can be expressed as:
[0094]
[0095] In the formula, α and β are important weights, l cls is the local client classification loss.
[0096] It should be understood that the loss function of each client in this embodiment is composed of three categories: classification loss, intra-modality prototype comparison loss, and inter-modality prototype comparison loss. The goal of the latter two loss functions is to adjust the prototype. The classification loss will also implicitly affect the calculation of the prototype. This embodiment uses gradient descent to update the local prototype set (update the model parameters, and then update the local prototype set based on the model update). In other feasible embodiments, the objective function can be adjusted, and the overall idea is to optimize by reducing the loss.
[0097] Step 3: The server executes the cluster step-by-step aggregation strategy to derive the multi-modal global model and the unimodal global model; and uses the local prototype sets transmitted by each client to perform global prototype aggregation by modality type to obtain the global prototype set corresponding to each type of modality.
[0098] Many federated learning frameworks that solve system heterogeneity (model heterogeneity, modality missing, communication delay) adopt a result-level fusion strategy and use knowledge distillation to aggregate local predicted logits. The result-level fusion strategy solves the aggregation problem caused by system heterogeneity. However, local predicted logits cannot convey feature-level correlation, which greatly affects model performance. Inspired by cluster federated learning, the technical solution of the present invention proposes a feature-level federated aggregation strategy-cluster step-by-step aggregation strategy. In the first stage, the traditional federated framework is used to only perform intra-cluster model aggregation updates. In the second stage, inter-cluster decoupling aggregation is performed to disentangle the model's feature encoder and classifier, aggregate feature encoders of the same modality, and perform feature-level fusion. The cluster step-by-step aggregation strategy is well adapted to the model heterogeneity problem caused by modal heterogeneity, and compared with the result-level fusion strategy, the feature-level fusion can utilize the correlation and interactivity between different modal features. The defined cluster step-by-step aggregation strategy includes intra-cluster aggregation and inter-cluster aggregation.
[0099] Although the model architectures of different clusters are different, the same cluster has the same model architecture, so the traditional federated framework can be used for weighted averaging within the cluster. In this way, the cluster can make full use of the local data of similar clients, reduce data offset, correct the training of local models in federated learning, and keep the local objectives of each client consistent with the optimal value of the cluster's global model.
[0100] In-cluster aggregation process: The server performs weighted aggregation of models according to cluster categories to obtain a single-modal global model and multimodal global models In round r:
[0101]
[0102] Here, FL(*) represents any existing FL algorithm (e.g., FedAvg or FedProx) that aims to generate a single global model. Therefore, the existing intra-cluster aggregation method used can be integrated with numerous state-of-the-art FL algorithms to improve model performance in the non-IID case.
[0103] Intra-cluster aggregation effectively learns the data distribution characteristics within the cluster, but does not fully utilize the effective information in other clusters. Inter-cluster aggregation decouples the feature extractor and classifier of the global model, aggregates the feature extractors of the same modality to consistently learn unimodal information, and enhances the expression of the same modality. Intra-cluster aggregation process: For round r:
[0104]
[0105] In the formula, represents the feature encoder i of the r-th round of unimodal global model, The feature encoder i representing the multimodal global model, Represents the global feature encoder i obtained by the r+1th round of aggregation, η i represents the dynamically adjusted aggregation weight, reflecting the proportion of modality i in the total data set. The specific value is an empirical value, which is set to 0.5 in this embodiment. It should be understood that the new After that, it will be distributed to the corresponding client to replace the client's current feature encoder. After the client trains the local model, it sends the model to the server, and the server performs intra-cluster and inter-cluster aggregation.
[0106] This embodiment can also obtain a more generalized global prototype set by aggregating local prototype sets from heterogeneous clients. This helps to alleviate the knowledge bias between multimodal and unimodal clients. The central server receives the local prototype set P of each client. local After that, it is divided into local A prototype set and the local B prototype set Perform average aggregation by category to obtain the global A prototype set and the global B prototype set Then, it is sent to each client.
[0107]
[0108] In the formula, k is a class, M k represents the set of multimodal clients with category k, N k It should be understood that the above formula is derived based on the modality setting of this embodiment. In other feasible embodiments, when the modality is different, the above formula can be adjusted adaptively.
[0109] Step 4: The central server distributes the multimodal global model, the unimodal global model and the global prototype set to each local client, and steps 2-4 are iterated until the model converges, and then each multimodal client and unimodal client obtains the final model. Among them, the iteration termination condition or the model convergence condition can be set according to the application requirements, and the present invention does not restrict this.
[0110] To summarize, step 1 of the technical solution of the present invention performs cluster division and determines the model structure of each cluster; step 2 is a local execution operation of the client, and steps 3 and 4 are both execution operations of the server, wherein step 3 involves the update of the global model and the global prototype, which are sent to the client by step 4. Therefore, even if steps 3 and 4 do not involve local updates, the obtained global model and global prototype will affect the local model and local prototype.
[0111] Embodiment 2:
[0112] This embodiment is different from Embodiment 1, and is described by applying a multimodal federated learning method to a server. This embodiment provides a multimodal federated learning method for a modality incomplete scenario, including the following steps:
[0113] S1: Divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and single-modal cluster models to each client according to the cluster category, wherein the clients include multimodal clients and single-modal clients;
[0114] S2: receiving a local prototype set and local model information of each modality transmitted by each client, where the local model information and the local prototype set are obtained by local training / calculation by the client;
[0115] S3: Execute the cluster step-by-step aggregation strategy to derive the multi-modal global model and the single-modal global model; and use the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain the global prototype set corresponding to each type of modality;
[0116] The cluster step-by-step aggregation strategy is divided into two stages. The first stage is to perform model aggregation updates within each cluster, and the second stage is to perform decoupled aggregation between clusters, that is, to disentangle the feature encoder and classifier of the model and aggregate the feature encoders of the same modality.
[0117] S4: Distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to each modality to the corresponding multimodal clients and unimodal clients, the distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients, and the distributed global prototype sets are used to participate in the client updating the local prototype sets; wherein, iterate the loop S2-S4 until the iteration termination condition is met.
[0118] The specific implementation process of each step can refer to the description of Example 1.
[0119] Embodiment 3:
[0120] Based on Example 1, Example 3 provides a system, which is named FedMI in this example, and includes: a client and a server, wherein the client includes a multimodal client and a single-modal client; the server includes a cluster module, a cluster step-by-step aggregation module, a global prototype aggregation module, and a transmission module;
[0121] The cluster module is used to classify clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and unimodal cluster models to each client according to the cluster category, wherein the multimodal cluster model and unimodal cluster model are both composed of a feature encoder and a classifier;
[0122] The transmission module is used to receive the local prototype set and local model information transmitted by each client, wherein each client trains the model using the local data set, and generates / updates the local prototype set, and transmits it to the server;
[0123] The cluster step-by-step aggregation module is used to execute the cluster step-by-step aggregation strategy to derive a multi-modal global model and a single-modal global model;
[0124] The global prototype aggregation module is used to use the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain the global prototype set corresponding to each type of modality;
[0125] The transmission module is used to distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the corresponding multimodal clients and unimodal clients to replace the current models of the multimodal clients and unimodal clients. The distributed global prototype sets are used for participating clients to update the local prototype sets.
[0126] Embodiment 4:
[0127] Based on the embodiment 2, the embodiment 4 provides a server, which includes a cluster module, a transmission module, a cluster step-by-step aggregation module and a global prototype aggregation module.
[0128] The cluster module is used to divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and unimodal cluster models to each client according to the cluster category, wherein the multimodal cluster model and unimodal cluster model are both composed of a feature encoder and a classifier;
[0129] The transmission module is used to receive the local prototype set and local model information transmitted by each client, wherein the local model information and the local prototype set are obtained by local training / calculation by the client;
[0130] The cluster step-by-step aggregation module is used to execute the cluster step-by-step aggregation strategy to derive the multi-modal global model and the unimodal global model;
[0131] The global prototype aggregation module is used to utilize the local prototype sets transmitted by each client, perform global prototype aggregation according to the modality type, and obtain the global prototype set corresponding to each type of modality;
[0132] The transmission module is used to distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the matching multimodal clients and unimodal clients. The distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients. The distributed global prototype sets are used to participate in the client to update the local prototype sets.
[0133] Among them, please refer to the above method content for the specific implementation process of each module, the present invention will not be repeated here, and the division of the above functional modules is only for example illustration. In some embodiments, some functional modules can be merged, and some functional modules can be split. Each functional module can be implemented in software or hardware or a combination of software and hardware. Among them, the hardware and software equipment includes but is not limited to general-purpose computer equipment, programmable gate arrays, digital signal processors, microprocessors and their corresponding programming or burning software.
[0134] In some embodiments, an embodiment of the present invention further provides an electronic device, comprising: one or more processors; and a memory storing one or more computer programs;
[0135] The processor calls the computer program to implement:
[0136] The invention relates to steps of a multimodal federated learning method for a modality-incomplete scenario applied to a server or steps of a multimodal federated learning method for a modality-incomplete scenario applied to a system including a client and a server.
[0137] For the specific implementation process of each step, please refer to the description of the above method.
[0138] It should be understood that in the embodiments of the present invention, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the type of device.
[0139] In some embodiments, an embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program programmed or configured to implement a multimodal federated learning method for a modality-incomplete scenario applied to a server or a multimodal federated learning method for a modality-incomplete scenario applied to a system including a client and a server.
[0140] For the specific implementation process of each step, please refer to the description of the above method.
[0141] The readable storage medium is a computer-readable storage medium, which may be an internal storage unit of the software and hardware device described in any of the aforementioned embodiments, such as a hard disk or memory of a controller. The readable storage medium may also be an external storage device of the controller, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the controller. Furthermore, the readable storage medium may also include both an internal storage unit of the controller and an external storage device. The readable storage medium is used to store the computer program and other programs and data required by the controller. The readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0142] Based on this understanding, the technical solution of the present invention, in essence or in other words, the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.
[0143] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The present application is a device for realizing the function specified in one flow or multiple flows of the flow chart and / or one or multiple blocks of the block diagram with reference to the instructions executed by the processor according to the method, device (system) and computer program product of the embodiment of the present application. These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which realizes the function specified in one flow or multiple flows of the flow chart and / or one or multiple blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0144] Experimental verification: The verification process is carried out using the research content of multimodal federated learning in modal incomplete scenarios as an example.
[0145] 1. Data Description
[0146] This experiment is based on the multimodal imaging data of the Alzheimer's Disease Neuroimaging Initiative (ADNI) to verify and evaluate the effectiveness of the system in Example 2. A brief description is as follows:
[0147] The Alzheimer's Disease Neuroimaging Initiative (ADNI) data warehouse contains multimodal imaging, clinical, and genetic data of more than 2220 patients across four studies (ADNI1, ADNI2, ADNI GO, and ADNI3). Our study focused on ADNI1. T1-weighted magnetic resonance (T1-MRI) imaging data and 18-fluorodeoxyglucose PET (FDG-PET) imaging data were used in this experiment. For participants with multiple visits, we used the images from the first visit of the patient. Data preprocessing of MRI images included intensity normalization, skull removal, and gray matter (GM) segmentation. Subsequently, T1-MRI images were registered to the MNI-152 standard brain template space. Preprocessing of FDG-PET images included intensity normalization and affine registration with the corresponding MRI images. Finally, all MRI and PET data were downsampled to 96×96×96. MRI images for this experiment were from 326 participants, including 163 AD and 163 CN. Paired MRI-PET data were obtained from 118 participants, including 59 AD and 59 CN.
[0148] 2. Experimental Setup
[0149] The unimodal clustering model is 3D-Resnet18, and the multimodal clustering model is dual-channel 3D-Resnet18. The traditional federated framework used for intra-cluster aggregation is FedAvg. The learning rate of both multimodal and unimodal clusters is set to 0.0001. The batch size is set to 4 for multimodal clustering and 8 for unimodal clustering. The weights of intra-modal prototype contrast loss and inter-modal prototype contrast loss are both set to 1. The multimodal model is trained for 30 epochs, while the parameters of the unimodal model are frozen after 15 epochs. The number of multimodal clients and unimodal clients is 3. This experiment explores two different local data distribution scenarios: independent identical distribution (IID) and non-independent identical distribution (Non-IID). In the non-IID scenario, the data distribution for unimodal and multimodal clustering is performed using Dirichlet (α) distribution, where α∈{1,2}. Both multimodal and unimodal datasets are split into training and test sets according to 7:3.
[0150] 3. Comparison with other methods
[0151] This experiment selected several advanced models as baseline models for comparison:
[0152] (1) Single client: Each client trains independently using local data without any information exchange.
[0153] (2) Traditional federation frameworks: FedAvg, FedProx, and FedBN. The present invention uses the above federation frameworks as intra-cluster aggregation algorithms.
[0154] (3) Single-modality heterogeneous federation frameworks: FedDistall, FedProto. All single-modality heterogeneous federation frameworks are extended to multimodal federation scenarios with incomplete modalities by operating on each modality separately. FedDistall achieves scenario expansion by sharing the average logical vector of labels for each modality. FedProto performs prototype learning and global prototype aggregation for each modality separately.
[0155] (4) Modality-incomplete multimodal federation framework: CreamFL, Harmony. CreamFL exchanges knowledge between heterogeneous clients through a public multimodal dataset. Since the present invention does not require a public dataset, five data labeled AD and five data labeled CN are randomly selected from each multimodal client as the public dataset. Harmony adapts to the modality-incomplete scenario by decoupling the multimodal network. CreamFL and Harmony only have a multimodal global model.
[0156] Table 1 shows the comparative experimental results of this experiment.
[0157] Table 1 Performance comparison of different methods under IID and Non-IID
[0158]
[0159]
[0160] Considering the model heterogeneity of unimodal clients and multimodal clients in the incomplete modality scenario, the technical solution of the present invention compares the test set accuracy of the global unimodal model and the global multimodal model in various methods. It can be seen that the present invention achieves the best performance on both IID and Non-IID data. Since each client in the single client only uses local data for independent training, its performance is the worst among all the compared methods. The performance of the three traditional federated learning methods is significantly higher than that of the single client, indicating that federated learning can effectively improve the overall performance of the model by making full use of the data of different clients for collaborative training. The poor performance of FedDistall shows that in the incomplete multimodal federation scenario, especially in the non-IID scenario, the result-level fusion strategy may not be able to achieve effective knowledge transfer. FedProto reduces the negative impact of heterogeneous clients through prototype exchange, thereby improving the performance of the model. Therefore, it is even better than the multimodal federated learning method. However, due to the lack of interaction between modalities and gradient-level information exchange, its effectiveness is limited in the incomplete multimodal federated learning scenario. It is worth noting that the multimodal federated learning method did not show significant performance advantages in our experiments. The main reason may be that CreamFL relies heavily on public datasets with complete modalities and sufficient samples, while the public datasets used in our experiments are small in size, which weakens its effectiveness. The reason for Harmony's poor performance may be that it ignores the local semantic-level exchange between clients and only relies on gradient-level information exchange. In contrast, our method effectively realizes multimodal information fusion and sharing between clients in the case of inconsistent modalities through cluster step-by-step aggregation and prototype contrast integration, thereby significantly improving the final performance.
[0161] It should be emphasized that the examples described in the present invention are illustrative rather than restrictive, and therefore the present invention is not limited to the examples described in the specific embodiments. Any other embodiments derived by those skilled in the art based on the technical solution of the present invention that do not depart from the purpose and scope of the present invention, whether modified or replaced, also fall within the scope of protection of the present invention.
Claims
1. A multimodal federated learning method for modality incomplete scenarios, applied to servers, Features: The following steps are involved: S1: Divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and single-modal cluster models to each client according to the cluster category, wherein the clients include multimodal clients and single-modal clients; S2: receiving a local prototype set and local model information of each modality transmitted by each client, where the local model information and the local prototype set are obtained by local training / calculation by the client; S3: Execute the cluster step-by-step aggregation strategy to derive the multi-modal global model and the single-modal global model; and use the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain the global prototype set corresponding to each type of modality; The cluster step-by-step aggregation strategy is divided into two stages. The first stage is to perform model aggregation updates within each cluster, and the second stage is to perform decoupled aggregation between clusters, that is, to disentangle the feature encoder and classifier of the model and aggregate the feature encoders of the same modality. S4: Distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the corresponding multimodal clients and unimodal clients, wherein the distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients, and the distributed global prototype sets are used for the participating clients to update the local prototype sets; The iterative loop S2-S4 is repeated until the iteration termination condition is met, and each multimodal client and unimodal client obtains the final model.
2. The method according to claim 1, Features: The process of executing the cluster step-by-step aggregation strategy to derive a multi-modal global model and a unimodal global model is to perform model aggregation updates in each cluster in the first stage: In the formula, φ r+1 (·; w), φ r+1 (·; W) represents the unimodal global model and multimodal global model obtained in the rth iteration; It means that after the unimodal global model obtained in the previous round r-1 is distributed to the client, the 1st and Nth 1 The current model after local training of single-modal clients, N 1 is the number of unimodal clients in the corresponding cluster; w and W are the model parameters of unimodal clients and multimodal clients respectively; It means that after the multimodal global model obtained in the previous round r-1 is distributed to the client, the 1st and Mth 1 The current model after local training of a multimodal client, M 1 is the number of multimodal clients in the corresponding cluster; The second stage is to perform decoupled aggregation between clusters, expressed as: In the formula, represents the feature encoder i of the unimodal global model at the rth iteration, The feature encoder i representing the multimodal global model, Represents the global feature encoder i obtained by the r+1th round of aggregation, η i Represents the dynamically adjusted aggregation weight, and i corresponds to the modality category.
3. The method according to claim 1, Features: In step 3, the process of using the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain the global prototype set corresponding to each type of modality is expressed as: Receive the local prototype set P of each client local , and divide the local prototype set of each modality category according to the modality category; Then, average aggregation is performed according to the modal categories to obtain the global prototype set of each modal category.
4. A multimodal federated learning method for modality incomplete scenarios, applied to a system consisting of clients and servers, Features: The following steps are involved: Step 1: Divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and single-modal cluster models to each client according to the cluster category, wherein the clients include multimodal clients and single-modal clients; Step 2: Each client uses the local data set to train the model, generate / update the local prototype set, and transmit it to the server; Step 3: The server executes the cluster step-by-step aggregation strategy to derive a multi-modal global model and a single-modal global model; and uses the local prototype sets transmitted by each client to perform global prototype aggregation according to the modality type to obtain a global prototype set corresponding to each type of modality; The cluster step-by-step aggregation strategy is divided into two stages. The first stage is to perform model aggregation update within the cluster, and the second stage is to perform decoupled aggregation between clusters, that is, to disentangle the feature encoder and classifier of the model and aggregate the feature encoders of the same modality. Step 4: The server distributes the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the matching multimodal clients and unimodal clients, and the distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients, and the distributed global prototype sets participate in updating the local prototype sets in step 2; Iterate step 2 to step 4 until the iteration termination condition is met, and each multimodal client and unimodal client obtains the final model.
5. The method according to claim 4, Features: The updating of the local prototype set in step 2 is realized based on intra-modality prototype comparison and inter-modality prototype comparison; Among them, based on the distance measurement between the local prototype and the global prototype, the intra-modality prototype comparison loss and the inter-modality prototype comparison loss of the multimodal client and the unimodal client are calculated; Each client at least constructs a total loss function by combining the corresponding intra-modality prototype contrast loss and inter-modality prototype contrast loss, and then optimizes the client's current model with the minimum of the total loss function as the optimization goal, and then updates the client's local prototype set based on the updated model.
6. The method according to claim 5, Features: The formulas of the intra-modality prototype contrast loss and the inter-modality prototype contrast loss of the multi-modal client and the uni-modal client are as follows; Wherein, the multimodal client includes A mode and B mode, and the loss formula is: In the formula, They are the intra-modality prototype contrast loss and inter-modality prototype contrast loss of multimodal client m, respectively. is the dataset of category k in the local A prototype set corresponding to the A modality of the multimodal client m, is the dataset of category k in the local B prototype set corresponding to the B modality of the multimodal client m, is the data set of category k in the global A prototype set corresponding to the A modality, The data set of category k in the global B prototype set corresponding to the B modality; If the single mode is represented as A mode, the loss formula is: In the formula, They are the intra-modality prototype contrast loss and inter-modality prototype contrast loss of the single-modality client n, It is the dataset of category k in the local A prototype set corresponding to the A modality of the multi-modal client n.
7. A server based on the method according to any one of claims 1 to 3, Features: include: The cluster module is used to divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and unimodal cluster models to each client according to the cluster category, wherein the multimodal cluster model and unimodal cluster model are both composed of a feature encoder and a classifier; The transmission module is used to receive the local prototype set and local model information transmitted by each client, wherein the local model information and the local prototype set are obtained by local training / calculation by the client; The cluster step-by-step aggregation module is used to execute the cluster step-by-step aggregation strategy to derive a multi-modal global model and a single-modal global model; The global prototype aggregation module is used to utilize the local prototype sets transmitted by each client, perform global prototype aggregation according to the modality type, and obtain the global prototype set corresponding to each type of modality; The transmission module is used to distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the matching multimodal clients and unimodal clients. The distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients. The distributed global prototype sets are used to participate in the client to update the local prototype sets.
8. A system based on the method according to any one of claims 4 to 6, Features: It includes a client and a server, wherein the client includes a multi-modal client and a single-modal client; Wherein, the server includes a cluster module, a cluster step aggregation module, a global prototype aggregation module, and a transmission module; The cluster module is used to: divide clients with consistent modalities into a cluster, and distribute corresponding multimodal cluster models and unimodal cluster models to each client according to the cluster category, wherein the multimodal cluster model and unimodal cluster model are both composed of a feature encoder and a classifier; The transmission module is used to receive the local prototype set and local model information transmitted by each client, wherein each client trains the model using the local data set, and generates / updates the local prototype set, and transmits it to the server; The cluster step-by-step aggregation module is used to execute the cluster step-by-step aggregation strategy to derive a multi-modal global model and a single-modal global model; The global prototype aggregation module is used to utilize the local prototype sets transmitted by each client, perform global prototype aggregation according to the modality type, and obtain the global prototype set corresponding to each type of modality; The transmission module is used to distribute the multimodal global model, the unimodal global model and the global prototype sets corresponding to various modalities to the corresponding multimodal clients and unimodal clients. The distributed multimodal global model and unimodal global model are used to replace the current models of the multimodal clients and unimodal clients. The distributed global prototype sets are used for participating clients to update the local prototype sets.
9. An electronic device, Features: include: one or more processors; a memory storing one or more computer programs; The processor calls the computer program to implement: The steps of any one of claims 1-3 applied to a server for a multimodal federated learning method for a modality-incomplete scenario, or the steps of any one of claims 4-6 applied to a system comprising a client and a server for a multimodal federated learning method for a modality-incomplete scenario.
10. A computer-readable storage medium, Features: The computer-readable storage medium stores a computer program that is programmed or configured to implement a multimodal federated learning method for a modality-incomplete scenario as applied to a server as claimed in any one of claims 1 to 3, or a multimodal federated learning method for a modality-incomplete scenario as applied to a system comprising a client and a server as claimed in any one of claims 4 to 6.
Citation Information
Patent Citations
Unmanned aerial vehicle small base station cluster RAN slicing method based on hierarchical federated learning
CN114997737A
Method and device for recruiting trusted nodes to complete calculation task
CN115865642A
Encoder model training method and device, electronic equipment and storage medium
CN116976400A
Federal learning method and device, federal prediction method and device, equipment and storage medium
CN117455009A
Cited By
Multi-modal federated learning method for making up modal deficiency and related equipment
CN119151015A
Multi-modal federated learning method with robustness
CN119151020A
Federal learning method and device based on feature comparison optimization and classifier dynamic integration
CN119670916A
Hybrid modal federated learning method and system based on modal decoupling and modal memory
CN120409623A
