Large-model distributed fine-tuning federated segmentation learning method and system for wireless edge network, and medium

By dividing the large model into device-side and server-side models in the wireless network, and performing distributed fine-tuning, the problem of low training efficiency and privacy protection of large models in the wireless network is solved, and efficient multi-modal generation tasks and resource optimization are achieved. .

CN118780348AActive Publication Date: 2024-10-15TSINGHUA UNIVERSITY

Patent Information

Application Number
CN202410787393.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-15
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

In a wireless network environment, the training and application of large models face bandwidth limitations, transmission delays, and device heterogeneity, resulting in low training efficiency and inconsistent performance, and traditional methods violate privacy protection and limit computing resources.

Method used

The large model distributed fine-tuning federated segmentation learning method is used to divide the large model into a device-side model and a server-side model. Each device is only responsible for training a part of the large model, performs forward and reverse calculations through local data, and transmits the intermediate output. The results are sent to the server to reduce the communication volume. The computing power of the local device and the server is used for collaborative training, and the model is pruned to reduce computing and storage requirements.

Benefits of technology

It achieves efficient training of high-performance large models in a wireless network environment, reduces communication overhead and computing resource requirements, protects user privacy, and improves network resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780348A_ABST
    Figure CN118780348A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a large-model distributed fine-tuning federated segmentation learning method and system for a wireless edge network, and a medium, and relates to the technical field of computers. The method comprises the following steps: each local device in a plurality of local devices inputs local training data into a local device side model to obtain an intermediate output result and transmit the intermediate output result to a server; the server processes the plurality of intermediate output results by using a server side model to obtain an equipment side model gradient and a server side model gradient; the server uses the server side model gradient to update parameters of the server side model, and each local device uses the device side model gradient to update parameters of the local device side model; and pruning the server side model and the equipment side model at least according to the importance score of the neurons, and continuing cooperative training based on the pruned server side model and equipment side model to obtain a trained large model so as to realize efficient fine tuning of the large model in the wireless network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a large-model distributed fine-tuning federated segmentation learning method, system and medium for wireless edge networks. Background Art

[0002] At present, large models are increasingly used in various fields. Large models usually have hundreds of millions of parameters and require huge computing resources and data for training. However, in wireless network environments, the training and application of large models face many challenges due to issues such as network bandwidth, transmission delay, and device heterogeneity. First, bandwidth limitations in wireless networks may lead to inefficient transmission of large model data, increasing training time. Second, transmission delays in wireless networks may cause synchronization problems during model training, affecting training results. In addition, heterogeneity between different devices may also lead to inconsistencies in model training and performance degradation. Therefore, how to efficiently fine-tune large models in a wireless network environment is a problem that needs to be solved urgently.

[0003] In the related art, although some methods have tried to solve the problem of fine-tuning large models in wireless networks, there are still some defects or problems: First, the traditional centralized machine learning model fine-tuning method requires all data to be uploaded to the cloud or data center for processing, which puts tremendous pressure on wireless networks with limited bandwidth resources and violates the increasingly stringent privacy protection requirements. In addition, large models are not suitable for fine-tuning on mobile terminals and local devices with limited computing power due to their large and complex network structure and massive parameters. In addition, the federated learning method requires the entire model or data set to be downloaded to each node for training, which not only increases the burden of network transmission, but also may lead to the risk of data privacy leakage. Summary of the invention

[0004] Based on the above technical problems, the embodiments of the present invention provide a large-model distributed fine-tuning federated segmentation learning method, system and medium for wireless edge networks to more effectively manage the use of computing and storage resources and achieve the goal of efficiently training high-performance large models in a resource-constrained environment.

[0005] An embodiment of the present invention provides a large-model distributed fine-tuning federated segmentation learning method for a wireless edge network, the method comprising:

[0006] Each local device among the multiple local devices inputs local training data into a local device-side model to obtain an intermediate output result; each device-side model is a part of a large model, and the local training data of the multiple local devices include: text training data, image training data, video training data and audio training data, and the intermediate output result represents the understanding and representation of the currently input local training data by the device-side model;

[0007] The multiple local devices transmit the intermediate output results output by each of them to the server;

[0008] The server processes the multiple intermediate output results using the server-side model to obtain a device-side model gradient and a server-side model gradient, and uses the server-side model gradient to update the parameters of the server-side model, where the server-side model is the remaining part of the large model except the device-side model;

[0009] The server sends the device-side model gradient as a device-side model gradient shared by the multiple local devices to each local device in the multiple local devices;

[0010] Each local device among the multiple local devices updates parameters of a local device-side model using the device-side model gradient;

[0011] At least according to the neuron importance score, the server prunes the server-side model to obtain a pruned server-side model, and each local device of the multiple local devices prunes the local device-side model to obtain a pruned device-side model;

[0012] The multiple local devices and the server continue to collaboratively train based on the pruned server-side model and the pruned device-side model to obtain a trained large model;

[0013] The trained large model is used to perform multimodal generation tasks, which include: text generation tasks, image generation tasks, video generation tasks and audio generation tasks.

[0014] A second aspect of an embodiment of the present invention provides a large-model distributed fine-tuning federated segmentation learning system for a wireless edge network, the system comprising:

[0015] A data processing module is deployed on each local device among the multiple local devices, and is used to input local training data into a local device-side model to obtain an intermediate output result; each device-side model is a part of a large model, and the local training data of the multiple local devices include: text training data, image training data, video training data and audio training data, and the intermediate output result represents the understanding and representation of the current input local training data by the device-side model;

[0016] A data transmission module, deployed on the plurality of local devices, for transmitting the intermediate output results outputted by the respective devices to the server;

[0017] a result processing module, deployed on the server, for processing a plurality of intermediate output results using a server-side model to obtain a device-side model gradient and a server-side model gradient, and using the server-side model gradient to update a parameter of the server-side model, wherein the server-side model is the remaining part of the large model except the device-side model;

[0018] a gradient sending module, deployed on the server, configured to send the device-side model gradient as a device-side model gradient shared by the multiple local devices to each of the multiple local devices;

[0019] A parameter updating module, deployed on each local device among the multiple local devices, and configured to update the parameters of the local device-side model using the device-side model gradient;

[0020] A pruning module, deployed on the server and each of the multiple local devices, configured to prune the server-side model at least according to the neuron importance score to obtain a pruned server-side model, and prune the local device-side model to obtain a pruned device-side model;

[0021] A training module, deployed on the multiple local devices and the server, for continuing collaborative training based on the pruned server-side model and the pruned device-side model to obtain a trained large model;

[0022] The trained large model is used to perform multimodal generation tasks, which include: text generation tasks, image generation tasks, video generation tasks and audio generation tasks.

[0023] A third aspect of an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the large-model distributed fine-tuning federated segmentation learning method for wireless edge networks according to the first aspect of the embodiment of the present invention is implemented.

[0024] Through the large-model distributed fine-tuning federated segmentation learning method for wireless edge networks of the embodiment of the present invention, the large model is segmented into a device-side model and a server-side model suitable for processing by each device (such as a local device and a server) by using federated segmentation learning. Each device is only responsible for training a part of the large model, thereby reducing the computational burden of a single device. Moreover, since this embodiment adopts a distributed model fine-tuning framework, the device is allowed to perform model fine-tuning on local data and only transmits the intermediate output results of the model to the server instead of the original data. This not only reduces the communication volume, but also achieves fine-tuning of the large model while protecting user privacy. In addition, this embodiment utilizes the computing power of local devices and the centralized processing power of servers to collaboratively train models, which also improves the resource utilization of the network, thereby achieving efficient large-model fine-tuning in a wireless network environment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1 It is a flow chart of a large-model distributed fine-tuning federated segmentation learning method for wireless edge networks shown in one embodiment of the present invention;

[0027] Figure 2 is a schematic diagram of a large-model distributed fine-tuning federated segmentation learning method for wireless edge networks shown in an embodiment of the present invention;

[0028] Figure 3 It is a structural schematic diagram of a multi-modal large model provided by an embodiment of the present invention;

[0029] Figure 4 It is a schematic diagram of an example of applying federated segmentation learning to distributed fine-tuning of a multimodal large model provided by an embodiment of the present invention;

[0030] Figure 5 It is a structural block diagram of a large-model distributed fine-tuning federated segmentation learning system for wireless edge networks provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] As mentioned earlier, in traditional machine learning, model training usually requires a large amount of data to be transmitted to a central server, which not only poses a risk of privacy leakage, but also places high demands on network bandwidth and storage resources. Although federated learning allows data training on local devices and only uploads model parameters to the server for aggregation, for large models, even the transmission of model parameters may cause significant network load and latency. Therefore, how to efficiently fine-tune large models in a wireless network environment is an urgent problem to be solved.

[0033] Although some related federated learning methods can perform distributed fine-tuning while protecting data privacy, they require each device to have sufficient computing and storage capabilities to train the entire model, often ignoring unfavorable factors such as bandwidth limitations and transmission delays in wireless network environments, resulting in low training efficiency. For fine-tuning of large models, how to reduce communication overhead and computing resource requirements while ensuring performance is a key issue that needs to be solved urgently.

[0034] Distributed training methods based on federated learning usually assume that all clients can independently train the entire machine learning model. Each device trains the model locally with its own data and only uploads model updates (such as gradients) to the central server for aggregation, thereby achieving distributed training and data privacy protection. However, even so, for large models, the number of parameters updated each time is still huge and may still exceed the capacity of wireless networks. In addition, the dedicated memory of the local device may not be sufficient to store all the weights of the large model during training, which results in the memory availability of the device limiting the size of the neural network model during training and may destroy the integrity of information during training. In order to cope with memory limitations, the size of the model is usually reduced (which may result in a loss of representation ability) and the input data is usually processed by dimensionality reduction, which puts higher requirements on the development of training algorithms with more efficient memory usage. However, most of the techniques used to reduce deployment memory are not applicable to training memory reduction because they usually require first training a full-size model and then compressing it. In addition, the techniques used to reduce training memory in data centers / supercomputers are not applicable to federated learning. Therefore, solving the computing and storage challenges faced by local devices when training large models in federated learning is an important and urgent task.

[0035] Considering that the existence of the above problems is mainly due to the following two reasons: (1) Device hardware limitations: Federated learning usually requires each device or server to have a complete copy of the model, while IoT devices in wireless networks usually have limited computing power and storage space. Large models need to process massive amounts of data, which places very high hardware requirements, including high-performance GPUs, large-capacity hard drives and memory. IoT devices often find it difficult to meet these requirements and cannot directly run and train large models locally, resulting in slow or incomplete training. (2) Wireless communication and privacy issues: The bandwidth and stability of wireless communication networks are lower than those of wired networks. Distributed training of large models requires a large amount of data transmission and synchronization. Under limited wireless bandwidth conditions, the communication cost of transmitting model parameters is extremely high. The training data collected by local devices may contain user privacy information, so it is also necessary to consider how to conduct effective model training while ensuring that the data does not leave the local area.

[0036] Therefore, in order to at least partially solve one or more of the above-mentioned problems and other potential problems, an embodiment of the present invention proposes a large model distributed fine-tuning federated segmentation learning method for wireless edge networks, in which each device is only responsible for training part of the large model, reducing the computational burden of a single device, and allowing data to be partially processed on local devices (such as smart phones, sensors, etc.), and then the intermediate processing results are transmitted to the server for further processing, thereby reducing the amount of data transmission. Since the original data does not need to leave the local device, it helps to protect the privacy of the data and improve data security, thereby achieving efficient large model fine-tuning in a wireless network environment.

[0037] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a large-model distributed fine-tuning federated segmentation learning method for wireless edge networks according to an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:

[0038] Step S11: Each local device among the multiple local devices inputs local training data into the local device-side model to obtain an intermediate output result; each device-side model is a part of the large model, and the local training data of the multiple local devices include: text training data, image training data, video training data and audio training data, and the intermediate output result represents the device-side model's understanding and representation of the currently input local training data.

[0039] In this embodiment, for fine-tuning the training of the large model, the large model can be segmented through federated segmentation learning, and divided into a device-side model and a server-side model. The device-side model is a part of the large model, and the server-side model is the remaining part of the large model except the device-side model. For example, the device-side model obtained by segmentation is the network structure of the 1st to nth layers of the large model, and the server-side model is the network structure of the n+1st to Nth layers of the large model. The device-side models obtained by segmentation are respectively deployed on one or more local devices, and the same device-side model is deployed in each local device. Each local device has a certain computing power. The local device can be an electronic device (such as a mobile phone, etc.), a sensor, etc. The local device is responsible for executing the forward propagation (Forward Propagation) and reverse propagation of the device-side model.

[0040] Among them, the large model in this embodiment refers to a machine learning or deep learning model with a huge number of parameters, such as a super-large-scale pre-trained model under the Transformer architecture (such as BERT, GPT-3, etc.). It is based on the principle of deep learning and uses a large amount of data and computing resources to train a neural network model with a large number of parameters. Due to its large parameter scale, this type of model often has high expressiveness and generalization ability, but it also requires a large amount of computing resources, storage space and data for training and deployment.

[0041] The federated learning of this embodiment is a distributed machine learning technology, the core idea of ​​which is to perform distributed model training between multiple devices with local data, allowing multiple devices or nodes (such as smart phones, IoT devices, etc.) to collaboratively train a shared model without uploading the original data to a central server or cloud. Each device performs model updates (i.e., gradient calculations) on its local data, and then only sends the updates (rather than the original data) to the central server. These local updates are aggregated on the central server to iteratively improve the global model. During the model training process, the local training data will not leave the local device, but only by exchanging model parameters or intermediate results, a global model based on virtual fusion data is constructed, which can not only use a large amount of distributed data to improve model performance, but also effectively protect user privacy. And, segmentation learning is a distributed training method for deep learning models, the core idea of ​​which is to divide the network structure into two or more parts, and each device retains a part of the sub-network structure. During the training process, different devices only perform forward or reverse calculations on the local network structure, and pass the calculation results to the next device. In this way, the computing and storage requirements of a single device are reduced, and each participant does not know the complete network structure, which helps to protect data privacy.

[0042] In this embodiment, each of the multiple local devices can input its own local training data into the local device-side model, perform forward propagation calculations, and obtain an intermediate output result output by the local device-side model, which represents the understanding and representation of the current input local training data by the device-side model. The local training data of the multiple local devices in this embodiment include: text training data, image training data, video training data, and audio training data, which are used for training and fine-tuning large models.

[0043] In one example, the device-side model can be represented as Where u represents the parameter dimension of the device-side model, the set of local training data in the local devices participating in the training is recorded as C = {1, 2, L, C}, where C represents the total number of devices, and each device c has its own unique local training data set D c .

[0044] In this embodiment, the local device performs processing only based on its own local training data without relying on training data from other local devices, thereby protecting the privacy of local data from being leaked.

[0045] Step S12: the multiple local devices transmit their respective intermediate output results to the server.

[0046] In this embodiment, after multiple local devices obtain the intermediate output results output by their respective local device-side models, they transmit their respective intermediate output results to the server through a wireless edge network.

[0047] Step S13: The server processes multiple intermediate output results using the server-side model to obtain a device-side model gradient and a server-side model gradient, and uses the server-side model gradient to update the parameters of the server-side model. The server-side model is the remaining part of the large model except the device-side model.

[0048] In this embodiment, the server may be an edge server, which is connected to the base station and has powerful computing capabilities, and is responsible for the training and fine-tuning of the server-side model deployed by it. After receiving multiple intermediate output results transmitted by multiple local devices, the server can use the server-side model to continue forward propagation calculations, further process the multiple intermediate output results, and obtain the device-side model gradient and the server-side model gradient. Then, the server uses the obtained server-side model gradient to update the parameters of the server-side model. Through the back-propagation algorithm, the server can accurately adjust the parameters of the server-side model to optimize the performance of the model.

[0049] In one example, the server-side model can be represented as Where z represents the parameter dimension of the server-side model. In addition, the server is also responsible for collecting key network information, such as channel status information and device computing capabilities, in order to implement efficient resource management strategies.

[0050] Step S14: the server sends the device-side model gradient as the device-side model gradient shared by the multiple local devices to each local device in the multiple local devices.

[0051] In this embodiment, after obtaining the device-side model gradient, the server uses the device-side model gradient as the device-side model gradient shared by multiple local devices and sends it to each local device through the wireless edge network. That is, in this embodiment, the server sends the same device-side model gradient to each local device among all local devices to ensure that the device-side model on the local device can be synchronized and updated with the server-side model on the server.

[0052] Step S15: Each local device among the multiple local devices updates the parameters of the local device-side model using the device-side model gradient.

[0053] In this embodiment, after each local device receives the device-side model gradient transmitted by the server, it can use the device-side model gradient to update the parameters of the local device-side model through the back-propagation algorithm, and adjust its model parameters to a state that better matches the server-side model, thereby improving the performance of the entire large model.

[0054] Step S16: At least based on the neuron importance score, the server prunes the server-side model to obtain a pruned server-side model, and each local device among the multiple local devices prunes the local device-side model to obtain a pruned device-side model.

[0055] In this embodiment, after a round of parameter updates of the device-side model and the server-side model, that is, after a round of collaborative training of the device-side model and the server-side model is completed, the neuron importance scores corresponding to the device-side model and the server-side model can be obtained, and then a dynamic pruning strategy can be used to guide the pruning process of the device-side model and the server-side model at least based on the neuron importance scores: the server prunes the server-side model at least based on its corresponding neuron importance scores to obtain a pruned server-side model; and each local device prunes the local device-side model at least based on its corresponding neuron importance scores to obtain a pruned device-side model.

[0056] This embodiment relates to a dynamic pruning technology for deep neural networks, which aims to reduce the computing and storage requirements during model fine-tuning, and is particularly suitable for scenarios with limited client resources.

[0057] Step S17: The multiple local devices and the server continue to collaboratively train based on the pruned server-side model and the pruned device-side model to obtain a trained large model.

[0058] In this embodiment, after obtaining the pruned server-side model and the pruned device-side model, multiple local devices and servers can continue to perform collaborative training through the aforementioned steps S11 to S16 based on the pruned server-side model and the pruned device-side model deployed by each of them until the model converges or reaches a preset accuracy, thereby obtaining a trained device-side model and a trained server-side model, thereby obtaining a trained large model.

[0059] Among them, the trained large model in this embodiment can be used to perform multimodal generation tasks, which include: text generation tasks, image generation tasks, video generation tasks and audio generation tasks.

[0060] Through the distributed fine-tuning of this embodiment, the pre-trained large model is adjusted in a targeted manner using local training data sets distributed in different geographical locations or computing nodes, that is, the large model is fine-tuned in a distributed environment, allowing the large model to be trained in parallel on multiple computing nodes, thereby accelerating the training process. This distributed fine-tuning is very useful for processing large-scale data sets because it can make full use of computing resources and improve training efficiency. Distributed fine-tuning means that each local device optimizes the parameters of the device-side model based on its local training data, and finally integrates the update results of all local devices, in order to make the large model better adapt to the overall data distribution, while avoiding the privacy leakage risks caused by directly transmitting the original data.

[0061] Specifically, the distributed fine-tuning process of the large model in this embodiment involves the following key steps: first, a large model pre-trained on a large-scale data set is selected as the basic model; then, according to the task requirements of the multimodal generation task, the large model is split so that each local device and server can each process a part of the network structure (i.e., the device-side model and the server-side model). During the training process, each local device performs forward and reverse calculations locally and passes the intermediate results to other devices; finally, the model is aggregated through the server to obtain a global large model with optimized performance on the multimodal generation task.

[0062] In this embodiment, federated segmentation learning is used to segment the large model into a device-side model and a server-side model suitable for processing by each device. Each device is only responsible for training a part of the large model, which reduces the computational burden of a single device. In addition, since this embodiment adopts a distributed model fine-tuning framework, the device is allowed to perform model fine-tuning on local data and only transmits the intermediate output results of the model to the server instead of the original data. This not only reduces the communication volume, but also achieves fine-tuning of the large model while protecting user privacy. In addition, this embodiment uses the computing power of local devices and the centralized processing power of servers to collaboratively train models, which also improves the resource utilization of the network, thereby achieving efficient fine-tuning of large models in a wireless network environment.

[0063] In combination with the above embodiments, in one implementation, the present invention also provides a large model distributed fine-tuning federated segmentation learning method for wireless edge networks. In this method, the large model includes multiple neurons, and the parameters of the server-side model and the device-side model include at least: the weight of the neuron, the neuron importance score is used to prune the neuron, and the neuron importance score reflects the importance of the neuron to the overall output of the network.

[0064] After a round of parameter updates of the device-side model and the server-side model, the neuron importance score corresponding to each neuron in the large model can be calculated, and then based on the neuron importance score, it is determined whether to prune the corresponding neuron. In the case of pruning a certain neuron, the edge corresponding to the neuron will also be pruned. In one example, all neurons with a neuron importance score lower than a first threshold (freely set) can be pruned, or one or more (freely set) neurons with the lowest neuron importance score can be pruned, and there is no restriction on this.

[0065] Among them, for the neuron importance score: for the jth neuron in the i-th layer, its neuron importance score s i,j It is determined based on the absolute values ​​of the weights of all neurons in the i+1th layer connected to it, and the neuron importance scores of all neurons in the i+1th layer connected to it.

[0066] In an optional example, the neuron importance score s of the jth neuron in the i-th layer i,j It is the sum of the absolute values ​​of the weights of all neurons in the next layer (i+1 layer) connected to it, and the product of the neuron importance scores of these neurons (that is, all neurons in the i+1 layer connected to it). In this way, this recursive calculation quantifies the total impact of each neuron on the final output, and the importance propagates backward from the output layer, thus reflecting the importance of each neuron to the overall output of the network. Neuron importance score s of the jth neuron in the i-th layer i,jIt can be shown as the following formula (1):

[0067]

[0068] in, is the weight of the kth neuron in the i+1th layer connecting the jth neuron in the ith layer, S i+1,k is the neuron importance score of the k-th neuron in the i+1th layer connected to the j-th neuron in the i-th layer.

[0069] In combination with the above embodiments, in one implementation, the present invention further provides a large model distributed fine-tuning federated segmentation learning method for wireless edge networks. In this method, the above step S16 may specifically include step S21:

[0070] Step S21: Based on the neuron importance score and the weight importance score, the server prunes the server-side model to obtain a pruned server-side model, and each local device among the multiple local devices prunes the local device-side model to obtain a pruned device-side model.

[0071] In this embodiment, based on the neuron importance score, the weight importance score of the edge connecting two neurons can be determined, so as to guide the pruning process of the device side model and the server side model according to the neuron importance score and the weight importance score.

[0072] The server prunes the server-side model according to the weight importance scores corresponding to the server-side model and the neuron importance scores corresponding to the neurons in the server-side model to obtain a pruned server-side model; and each local device prunes the local device-side model according to the weight importance scores corresponding to the device-side model and the neuron importance scores corresponding to the neurons in the device-side model to obtain a pruned device-side model.

[0073] The weighted importance score is used to prune the edge between two neurons; the weighted importance score connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer is It is determined based on the absolute value of the weight connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer, and the neuron importance score of the kth neuron in the i+1-th layer.

[0074] In an optional example, the weight importance score connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer It is the product of the absolute value of the weight connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer, and the neuron importance score of the kth neuron in the i+1-th layer. This weight importance score not only takes into account the size of the weight, but also combines its potential impact on the subsequent layer neurons and the subsequent network response, directly linking the importance of the weight with its absolute value and its relevance to the neurons, comprehensively measuring the contribution of the weight to the overall performance of the network, and providing a more comprehensive evaluation of the importance of the weight.

[0075] Therefore, the weight importance of connecting the jth neuron in the i-th layer to the kth neuron in the i+1th layer is The absolute value of the weight is multiplied by the importance score of its target neuron, and its calculation method is shown in the following formula (2):

[0076]

[0077] in, is the weight of the kth neuron in the i+1th layer connecting the jth neuron in the ith layer, S i+1,k is the neuron importance score of the k-th neuron in the i+1th layer connected to the j-th neuron in the i-th layer.

[0078] In combination with the above embodiments, in one implementation, the present invention also provides a large model distributed fine-tuning federated segmentation learning method for wireless edge networks. In this method, in each round of collaborative training, the pruning process of the device side model and the server side model is guided by the importance score of the neurons propagated from the output layer to the input layer of the large model. As the collaborative training continues, the number of pruned neurons in each round of collaborative training gradually decreases.

[0079] This embodiment adopts a dynamic pruning strategy, which guides the pruning process based on the neuron importance score propagated from the output layer to the input layer, or the neuron importance score and the weight importance score. In the early stage of model fine-tuning, redundant connections in the network are pruned more actively. As the network becomes sparser, the number of pruning rounds is gradually reduced. This method improves efficiency without affecting performance, meets the growing demand for lightweight models, and is suitable for deployment in resource-constrained environments. The core of the pruning method is to evaluate the importance of neuron importance scores and weight importance scores based on their contribution to the final output or response of the network, which is in sharp contrast to the simple pruning method that only relies on the absolute value of the weight (pruning below the weight threshold).

[0080] In addition, in another embodiment, the model may be pruned based on the neuron importance score, or the neuron importance score and the weight importance score after the last round of collaborative training; or the pruning rounds may be set (such as every 3 rounds, every 5 rounds, etc.), and the model may be pruned based on the neuron importance score, or the neuron importance score and the weight importance score when the pruning round is reached.

[0081] In combination with the above embodiments, in one implementation, the present invention further provides a large-model distributed fine-tuning federated segmentation learning method for a wireless edge network, in which the local training data includes multiple data samples, each data sample includes input data and corresponding labels; the above step S12 may specifically include step S31, and the "server processes multiple intermediate output results using the server-side model to obtain a device-side model gradient and a server-side model gradient" in the above step S13 may specifically include steps S32 to SS35:

[0082] Step S31: the multiple local devices transmit the intermediate output results output by each of them and the labels corresponding to the intermediate output results to the server through a wireless channel.

[0083] In this embodiment, the local training data may include multiple data samples, such as D c data samples, each of which includes input data x c,C and the corresponding label y c,C The forward propagation of the device-side model is calculated independently on the data set of the local training data of the corresponding local device, including the following aspects:

[0084] Data preparation: For each local device that participates in fine-tuning the large model, a small batch of data is randomly extracted from its local training data set. This small batch of data usually contains b data samples. At this time, the input data and the corresponding labels can be expressed as and Where t represents the current training round and d is the feature dimension of the input data.

[0085] Model loading: Each local device has a local device-side model w c (t-1), this device-side model is updated and saved at the end of the previous training epoch (t-1).

[0086] Forward propagation: During the forward propagation process, the local device sends a small batch of data X c (t) Input to the device side model w c(t-1). The device-side model will perform a series of calculations according to its defined neural network structure, and generate intermediate output results (also called activation values) at specific model segmentation layers. These intermediate output results represent the device-side model's understanding and representation of data features under the current input, and they will be transmitted to the server for further processing. The generation process of intermediate results is expressed as:

[0087] Parallel processing: During the forward propagation phase of the device-side model, all local devices involved in fine-tuning the large model will execute the above steps in parallel, which means that different local devices can perform forward propagation on different datasets of local training data at the same time, thereby accelerating the fine-tuning process of the entire large model.

[0088] After the local device completes the forward propagation and generates the intermediate output results, it can transmit the intermediate output results and the labels corresponding to the intermediate output results to the server through the wireless channel. In this way, this process ensures the privacy of the data because the original data does not leave the local device; at the same time, by transmitting the intermediate results instead of the original data, the load of network transmission is also reduced.

[0089] Step S32: The server predicts the multiple intermediate output results using the server-side model to obtain prediction results.

[0090] In this embodiment, after the server receives the intermediate output results of all local devices participating in the training and fine-tuning, the server can perform forward propagation, use the prediction of the above, and input multiple intermediate output results into the server-side model until the prediction result output by the server-side model is obtained. The prediction result represents the prediction result of the server on the input data based on the intermediate output results of all local devices. The dimension and format of the prediction result depend on the specific design of the server-side model and the task requirements.

[0091] Step S33: The server calculates the loss corresponding to each local device based on the prediction result and the label transmitted by each local device.

[0092] In this embodiment, after obtaining the prediction results, the server can perform subsequent processing and analysis: the server can calculate the loss corresponding to each local device in parallel based on the prediction results and the labels transmitted by each local device through the loss function corresponding to each local device.

[0093] Step S34: the server averages the multiple losses corresponding to the multiple local devices and then calculates the partial derivative to obtain an aggregated gradient.

[0094] In this embodiment, after obtaining the losses corresponding to each of the multiple local devices, the server can average the multiple losses corresponding to each of the multiple local devices and then calculate the partial derivative to obtain the aggregated gradient. The averaging process in this embodiment can be direct averaging or weighted averaging, depending on the needs or application scenarios. The main purpose of calculating the aggregated gradient in this embodiment is to reduce the communication and computing overhead in the subsequent local device back propagation process, thereby improving the resource utilization efficiency of the system.

[0095] In one embodiment, the server calculates the aggregated gradient, i.e., the partial derivatives of the model parameters with respect to the loss function. These aggregated gradients reflect the adjustment direction of the model during the training process. In order to make full use of the loss functions from multiple local devices, the server first performs weighted aggregation of the loss functions from different local devices, and then calculates the partial derivatives to form a comprehensive gradient update.

[0096] Specifically, the server first calculates the loss functions of all local devices involved in fine-tuning the large model in parallel, and then calculates their average value. The specific loss function aggregation strategy may vary depending on the application scenario. Common strategies include average aggregation (averaging all loss functions) or weighted average aggregation (assigning different weights according to the amount of data on the edge device, such as: the first local device uses 2 data samples, and the second local device uses 3 data samples, then the corresponding weight of the first local device is 2 / 5, and the corresponding weight of the second local device is 3 / 5). Then, the server takes the partial derivative of the averaged loss function to obtain the aggregated gradient.

[0097] Step S35: The server obtains the device-side model gradient and the server-side model gradient according to the aggregated gradient.

[0098] In this embodiment, after obtaining the aggregated gradient, the server can determine the device-side model gradient G based on the aggregated gradient. c (t) and the server-side model gradient G s (t), and then the server transmits the device-side model gradient G through the wireless channel c (t) is sent to all local devices, with the aim of enabling local devices to contribute knowledge features to each other.

[0099] Afterwards, the back propagation of the server-side model is based on the server-side model gradient G s (t) is used to update the parameters of the server-side model so as to better fit the training data in the next iteration. The specific process is shown in the following formula (3):

[0100] W s (t) = W s (t-1)-η s GS (t) (3)

[0101] Among them, η s is the learning rate of the server-side model update, W s (t) is the server-side model after the update in this training round (t round), W s (t-1) is the server-side model at the end of the previous training round (t-1 round), G s (t) is the server-side model gradient.

[0102] Sharing gradients between local devices not only prevents overfitting, but also eliminates the need for model exchange as in federated learning, thereby significantly reducing the number of backpropagations required, optimizing the training process, and improving training efficiency and resource utilization. The backpropagation of the device-side model is based on the shared gradient G received by the local device. c (t) is used to update the parameters of the device-side model. The specific process is shown in the following formula (4):

[0103] W c (t) = W c (t-1)-η c G c (t) (4)

[0104] Among them, η c is the learning rate of the device-side model update, W c (t) is the device-side model after the update in this training round (t round), W c (t-1) is the device-side model at the end of the previous training round (t-1 round), G c (t) is the model gradient on the device side.

[0105] In combination with the above embodiments, the present invention further provides a large-model distributed fine-tuning federated segmentation learning method for wireless edge networks. In the method, the above step S32 may specifically include step S41 and step S42:

[0106] Step S41: The server splices the multiple intermediate output results based on the number of intermediate output results transmitted by each local device and the activation dimension of the server-side model to obtain an intermediate splicing result.

[0107] In this embodiment, after the server receives the intermediate output results of all local devices, the server will splice these intermediate output results. Since each local device may have a different amount of data and a different model output dimension, the splicing operation needs to ensure the consistency and alignment of the data. The server splices multiple intermediate output results based on the number of intermediate output results transmitted by each local device and the activation dimension of the server-side model to obtain the intermediate splicing result.

[0108] For example, the intermediate splicing result after splicing can be expressed as Where t represents the current training round, C represents the number of local devices participating in the training, b is the mini-batch data size of each local device (i.e., the number of intermediate output results transmitted by each device), and q is the activation dimension of the server-side model after the split layer (i.e., the number of features of each intermediate output result).

[0109] Step S42: The server predicts the intermediate splicing result using the server-side model to obtain the prediction result.

[0110] In this embodiment, after obtaining the intermediate splicing result, the server can use the server-side model to predict the intermediate splicing result R(t) to obtain the predicted result. The process of determining the predicted result based on the intermediate splicing result can be expressed as: in, is the prediction result, R(t) is the intermediate splicing result, W s (t-1) is the server-side model at the end of the previous training round (t-1 round).

[0111] In combination with the above embodiments, in one embodiment, Figure 2 As shown, Figure 2 FIG. 1 is a schematic diagram of a large-model distributed fine-tuning federated segmentation learning method for wireless edge networks according to an embodiment of the present invention. Figure 2 In the example, the large model is divided into a device-side model and a server-side model, and the device-side model is deployed on multiple devices, and the server-side model is deployed on an edge server, which is connected to a base station. A total of C devices are deployed, and each device has a local data set.

[0112] The process of distributed fine-tuning on a large model includes the following steps:

[0113] Step 1: Forward propagation of the device-side model: On the local device, use the local data and the device-side model to perform forward propagation calculations to generate intermediate results.

[0114] Step 2: Uplink transmission of intermediate results: The local device transmits the calculated intermediate results to the server.

[0115] Step 3: Forward propagation of the server-side model: The server receives the intermediate results and continues the forward propagation calculation using the server-side model.

[0116] Step 4: Calculate aggregate gradient: The server aggregates the loss functions of different devices and then calculates the aggregate gradient.

[0117] Step 5: Server-side model back propagation: The server uses the aggregated gradients to update the server-side model parameters.

[0118] Step 6: Aggregate gradient downlink broadcast: The server broadcasts the aggregated device-side model gradient to all local devices.

[0119] Step 7: Device-side model back propagation: After receiving the aggregated gradient broadcast by the server, the local device uses the gradient to update the local model parameters.

[0120] Step 8: Large model structured pruning: Model pruning is guided by the importance of neurons and weight importance scores from the output layer to the input layer.

[0121] In combination with the above embodiments, the present invention further provides a large-model distributed fine-tuning federated segmentation learning method for wireless edge networks. In the method, in addition to the above steps, steps S51 and S52 may also be included:

[0122] Step S51: the server divides the large model according to the functional structure of the large model to obtain the device side model and the server side model.

[0123] In this embodiment, the server can divide the large model according to the functional structure of the large model to obtain a device side model and a server side model, and the server side model belongs to the last part of the large model and is used to execute the output of the final prediction result.

[0124] Step S52: the server deploys the device-side model to multiple local devices respectively, and deploys the server-side model to the server locally.

[0125] In this embodiment, after the server obtains a device-side model and a server-side model, the device-side model can be deployed to multiple local devices respectively, and the server-side model can be deployed to the server locally, so that each local device is deployed with a device-side model, representing the same part of the large model.

[0126] In combination with the above embodiments, the present invention also provides a large model distributed fine-tuning federated segmentation learning method for wireless edge networks, in which the large model is a multimodal large model, and the multimodal large model includes: a modal encoder, an input projector, a base large model, an output projector, and a modal generator. For example, Figure 3 As shown, Figure 3 It is a structural diagram of a multimodal large model provided by an embodiment of the present invention. The multimodal large model includes multiple potential segmentation layers, and the multimodal large model can be segmented according to needs.

[0127] In this embodiment, the model structured pruning can be performed first according to the neuron importance score of the multimodal large model, and then the multimodal large model can be segmented according to its functional structure. The modal encoder is regarded as the input layer for processing specific modal data, so it is deployed to the local device as a device-side model. The input projector, the base large model, the output projector, and the modal generator are responsible for feature extraction and generation at a higher level than processing specific modal data, so they are deployed to the edge server as server-side models. Figure 4 As shown, Figure 4 FIG. 1 is a schematic diagram of an example of applying federated segmentation learning to distributed fine-tuning of a multimodal large model provided by an embodiment of the present invention. Figure 4 In the paper, the multimodal large model is split into two parts and deployed to the edge server and local device for fine-tuning respectively: the modal encoder is deployed to the local device, while the remaining modules of the large model (including input projector, base large model, output projector and modal generator) are deployed to the edge server.

[0128] On the local device, a modal encoder is deployed, which is responsible for processing the specific modal data collected on the local device and converting it into a feature representation suitable for input into the base large model. The specific modal data includes at least: image data, text data, voice data and audio data. After completing the forward propagation, the local device sends the obtained feature representation to the edge server for further processing.

[0129] On the edge server, the input projector, base large model, output projector, and modal generator are deployed. When receiving feature representations from the local device, these modules will work together to perform backpropagation and update model parameters. During the backpropagation process, the edge server first calculates the device-side model gradient and the server-side model gradient according to the loss function, and propagates the aggregated device-side model gradient to the local device. The local device then uses the received gradient to update its local modal encoder parameters, and the edge server also uses the aggregated server-side model gradient to update the parameters of the input projector, base large model, output projector, and modal generator.

[0130] Finally, the multimodal large model is fine-tuned by iterative training: in each iteration cycle, the local device processes new data and sends the obtained feature representation to the edge server; the edge server uses these feature representations for backpropagation and parameter update, and sends the aggregated gradient information to the local device. In this way, the local device can achieve distributed fine-tuning and optimization of the multimodal large model without sharing the original data.

[0131] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0132] Based on the same inventive concept, an embodiment of the present invention provides a large model distributed fine-tuning federated segmentation learning system 500 for wireless edge networks. Figure 5 , Figure 5 1 is a block diagram of a large model distributed fine-tuning federated segmentation learning system for wireless edge networks provided by an embodiment of the present invention. Figure 5 As shown, the system 500 includes:

[0133] A data processing module 501 is deployed on each local device among the multiple local devices, and is used to input local training data into a local device-side model to obtain an intermediate output result; each device-side model is a part of a large model, and the local training data of the multiple local devices include: text training data, image training data, video training data and audio training data, and the intermediate output result represents the understanding and representation of the current input local training data by the device-side model;

[0134] A data transmission module 502, deployed on the plurality of local devices, for transmitting the intermediate output results outputted by the respective devices to the server;

[0135] A result processing module 503 is deployed on the server and is used to process multiple intermediate output results using the server-side model to obtain a device-side model gradient and a server-side model gradient, and use the server-side model gradient to update the parameters of the server-side model, where the server-side model is the remaining part of the large model except the device-side model;

[0136] A gradient sending module 504, deployed on the server, configured to send the device-side model gradient as a device-side model gradient shared by the multiple local devices to each of the multiple local devices;

[0137] A parameter updating module 505, deployed on each local device of the plurality of local devices, and configured to update the parameters of the local device-side model using the device-side model gradient;

[0138] A pruning module 506, deployed on the server and each of the multiple local devices, configured to prune the server-side model at least according to the neuron importance score to obtain a pruned server-side model, and prune the local device-side model to obtain a pruned device-side model;

[0139] A training module 507, deployed on the multiple local devices and the server, is used to continue collaborative training based on the pruned server-side model and the pruned device-side model to obtain a trained large model;

[0140] The trained large model is used to perform multimodal generation tasks, which include: text generation tasks, image generation tasks, video generation tasks and audio generation tasks.

[0141] Optionally, the large model includes a plurality of neurons, and the parameters include at least: a weight of a neuron; the neuron importance score is used to prune the neuron;

[0142] The neuron importance score s of the jth neuron in the i-th layer i,j It is determined based on the absolute values ​​of the weights of all neurons in the i+1th layer connected to it, and the neuron importance scores of all neurons in the i+1th layer connected to it.

[0143] Optionally, the pruning module 506 includes:

[0144] A pruning submodule, deployed on the server and each of the multiple local devices, for pruning the server-side model according to the neuron importance score and the weight importance score to obtain a pruned server-side model, and pruning the local device-side model to obtain a pruned device-side model;

[0145] The weighted importance score is used to prune the edge between two neurons; the weighted importance score connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer is It is determined according to the absolute value of the weight connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer, and the neuron importance score of the kth neuron in the i+1-th layer.

[0146] Optionally, the local training data includes a plurality of data samples, each of which includes input data and a corresponding label; the data transmission module 502 includes:

[0147] A data transmission submodule, deployed on the multiple local devices, for transmitting the intermediate output results outputted by each of the devices and the labels corresponding to the intermediate output results to the server through a wireless channel;

[0148] The result processing module 503 includes:

[0149] A result prediction module, deployed on the server, used to predict the multiple intermediate output results using the server-side model to obtain a prediction result;

[0150] A loss calculation module, deployed on the server, for calculating the loss corresponding to each local device based on the prediction result and the label transmitted by each local device;

[0151] A gradient aggregation module, deployed on the server, is used to average multiple losses corresponding to multiple local devices and then calculate partial derivatives to obtain an aggregated gradient;

[0152] A gradient determination module is deployed on the server and is used to obtain the device-side model gradient and the server-side model gradient according to the aggregated gradient.

[0153] Optionally, the result prediction module includes:

[0154] A result splicing module, deployed on the server, for splicing the plurality of intermediate output results based on the number of intermediate output results transmitted by each local device and the activation dimension of the server-side model to obtain an intermediate splicing result;

[0155] A result determination module is deployed on the server and is used to predict the intermediate splicing result by using the server-side model to obtain the predicted result.

[0156] Optionally, during each round of collaborative training, the pruning process of the device side model and the server side model is guided based on the importance scores of neurons propagated from the output layer to the input layer of the large model. As the collaborative training continues, the number of pruned neurons in each round of collaborative training gradually decreases.

[0157] Optionally, the system 500 further includes:

[0158] A model segmentation module, deployed on the server, for segmenting the large model according to the functional structure of the large model to obtain the device side model and the server side model, wherein the server side model belongs to the last part of the large model;

[0159] The model deployment module is deployed on the server and is used to deploy the device-side model to multiple local devices respectively and deploy the server-side model to the server locally.

[0160] Optionally, the large model is a multimodal large model, and the multimodal large model includes: a modal encoder, an input projector, a base large model, an output projector and a modal generator;

[0161] The modality encoder is regarded as an input layer for processing specific modality data. The modality encoder is a device-side model deployed to the local device, and is used to process the specific modality data collected on the local device into a feature representation that conforms to the input to the base large model. The specific modality data includes at least: image data, text data, voice data and audio data;

[0162] The input projector, the base macro model, the output projector and the modality generator are deployed to an edge server for performing feature extraction and generation at a higher level than processing the specific modality data.

[0163] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the large-model distributed fine-tuning federated segmentation learning method for wireless edge networks as described in any of the above embodiments of the present invention are implemented.

[0164] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0165] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0166] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, embodiments of the present invention may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Moreover, embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0167] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

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

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

[0170] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0171] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0172] The above is a detailed introduction to the large-model distributed fine-tuning federated segmentation learning method, system and medium for wireless edge networks provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A large-model distributed fine-tuning federated segmentation learning method for wireless edge networks, characterized in that: The method comprises: Each local device among the multiple local devices inputs local training data into a local device-side model to obtain an intermediate output result; each device-side model is a part of a large model, and the local training data of the multiple local devices include: text training data, image training data, video training data and audio training data, and the intermediate output result represents the understanding and representation of the currently input local training data by the device-side model; The multiple local devices transmit the intermediate output results output by each of them to the server; The server processes the multiple intermediate output results using the server-side model to obtain a device-side model gradient and a server-side model gradient, and uses the server-side model gradient to update the parameters of the server-side model, where the server-side model is the remaining part of the large model except the device-side model; The server sends the device-side model gradient as a device-side model gradient shared by the multiple local devices to each local device in the multiple local devices; Each local device among the multiple local devices updates parameters of a local device-side model using the device-side model gradient; At least according to the neuron importance score, the server prunes the server-side model to obtain a pruned server-side model, and each local device of the multiple local devices prunes the local device-side model to obtain a pruned device-side model; The multiple local devices and the server continue to collaboratively train based on the pruned server-side model and the pruned device-side model to obtain a trained large model; The trained large model is used to perform multimodal generation tasks, which include: text generation tasks, image generation tasks, video generation tasks and audio generation tasks.

2. The method according to claim 1, characterized in that The large model includes a plurality of neurons, and the parameters include at least: the weight of the neuron; the neuron importance score is used to prune the neuron; The neuron importance score s of the jth neuron in the i-th layer i ,j It is determined based on the absolute values ​​of the weights of all neurons in the i+1th layer connected to it, and the neuron importance scores of all neurons in the i+1th layer connected to it.

3. The method according to claim 2, characterized in that The server prunes the server-side model at least according to the neuron importance score to obtain a pruned server-side model, and each of the multiple local devices prunes the local device-side model to obtain a pruned device-side model, including: According to the neuron importance score and the weight importance score, the server prunes the server-side model to obtain a pruned server-side model, and each local device of the multiple local devices prunes the local device-side model to obtain a pruned device-side model; The weighted importance score is used to prune the edge between two neurons; the weighted importance score connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer is It is determined according to the absolute value of the weight connecting the jth neuron in the i-th layer and the kth neuron in the i+1-th layer, and the neuron importance score of the kth neuron in the i+1-th layer.

4. The method according to claim 1, characterized in that: The local training data includes a plurality of data samples, each of which includes input data and a corresponding label; The multiple local devices transmit the intermediate output results output by each of them to the server, including: The multiple local devices transmit the intermediate output results output by each of them and the labels corresponding to the intermediate output results to the server through a wireless channel; The server processes the multiple intermediate output results using the server-side model to obtain a device-side model gradient and a server-side model gradient, including: The server predicts the multiple intermediate output results using the server-side model to obtain a prediction result; The server calculates the loss corresponding to each local device based on the prediction result and the label transmitted by each local device; The server averages multiple losses corresponding to the multiple local devices and then calculates partial derivatives to obtain an aggregated gradient; The server obtains the device-side model gradient and the server-side model gradient according to the aggregated gradient.

5. The method according to claim 4, characterized in that The server predicts the multiple intermediate output results using the server-side model to obtain prediction results, including: The server splices the multiple intermediate output results based on the number of intermediate output results transmitted by each local device and the activation dimension of the server-side model to obtain an intermediate splicing result; The server predicts the intermediate splicing result using the server-side model to obtain the predicted result.

6. The method according to any one of claims 1 to 5, characterized in that: During each round of collaborative training, the pruning process of the device side model and the server side model is guided by the importance scores of neurons propagated from the output layer to the input layer of the large model. As the collaborative training continues, the number of pruned neurons in each round of collaborative training gradually decreases.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The server divides the large model according to the functional structure of the large model to obtain the device side model and the server side model, wherein the server side model belongs to the last part of the large model; The server deploys the device-side model to multiple local devices respectively, and deploys the server-side model to the server locally.

8. The method according to any one of claims 1 to 5, characterized in that: The large model is a multi-modal large model, and the multi-modal large model includes: a modal encoder, an input projector, a base large model, an output projector and a modal generator; The modality encoder is regarded as an input layer for processing specific modality data. The modality encoder is a device-side model deployed to the local device, and is used to process the specific modality data collected on the local device into a feature representation that conforms to the input to the base large model. The specific modality data includes at least: image data, text data, voice data and audio data; The input projector, the base macro model, the output projector and the modality generator are deployed to an edge server for performing feature extraction and generation at a higher level than processing the specific modality data.

9. A large-model distributed fine-tuned federated segmentation learning system for wireless edge networks, characterized in that: The system comprises: A data processing module is deployed on each local device among the multiple local devices, and is used to input local training data into a local device-side model to obtain an intermediate output result; each device-side model is a part of a large model, and the local training data of the multiple local devices include: text training data, image training data, video training data and audio training data, and the intermediate output result represents the understanding and representation of the current input local training data by the device-side model; A data transmission module, deployed on the plurality of local devices, for transmitting the intermediate output results outputted by the respective devices to the server; a result processing module, deployed on the server, for processing a plurality of intermediate output results using a server-side model to obtain a device-side model gradient and a server-side model gradient, and using the server-side model gradient to update a parameter of the server-side model, wherein the server-side model is the remaining part of the large model except the device-side model; a gradient sending module, deployed on the server, configured to send the device-side model gradient as a device-side model gradient shared by the multiple local devices to each of the multiple local devices; A parameter updating module, deployed on each local device among the multiple local devices, and configured to update the parameters of the local device-side model using the device-side model gradient; A pruning module, deployed on the server and each of the multiple local devices, configured to prune the server-side model at least according to the neuron importance score to obtain a pruned server-side model, and prune the local device-side model to obtain a pruned device-side model; A training module, deployed on the multiple local devices and the server, for continuing collaborative training based on the pruned server-side model and the pruned device-side model to obtain a trained large model; The trained large model is used to perform multimodal generation tasks, which include: text generation tasks, image generation tasks, video generation tasks and audio generation tasks.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the large-model distributed fine-tuning federated segmentation learning method for wireless edge networks as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • MePC-F model-based real-time federal learning data privacy security strengthening method in Internet of Vehicles

    CN115310121A

  • Federal learning method and device based on edge calculation, equipment and medium

    CN115618965A

  • Federal learning optimization method, device and system oriented to sample imbalance scene

    CN115906153A

Cited By

  • Internet of Things federal learning method and system based on dual dynamic sparse training

    CN119180352A

  • Pre-training model fine tuning method and device, equipment, storage medium and program product

    CN121052406A

  • Heterogeneous multi-modal splitting cooperative training system based on cross-modal structure propagation

    CN122712632A