Heterogeneous client federated large model self-adaptive fine-tuning and aggregation method and system
By using a method that adaptively computes the rank on the client side and perceives the projection on the server side, the low training efficiency and loss of update signals in federated learning on heterogeneous devices are solved, achieving more efficient model training and better generalization performance.
Patent Information
- Application Number
- CN202611319699.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies in federated learning suffer from problems such as low global training efficiency, rank collapse, target mismatch, and loss of local effective update signals in heterogeneous devices and dynamic network environments, resulting in insufficient model accuracy and generalization ability.
The NTK feature matrix is formed by local calibration samples on the client side. The sufficient rank is calculated. The feasible rank is limited by combining the memory, training time and communication budget. The client-aware projection is used to preserve the local effective update direction. A heterogeneous LoRA aggregation and distribution method is designed to achieve adaptive rank allocation and parameter reconstruction.
It improves the stability of model training and local generalization performance in heterogeneous scenarios, while maintaining privacy protection and low communication overhead, and improves the text generation quality of large models.
Smart Images

Figure CN123157429A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of question-and-answer or text generation technology that cannot be centrally shared, specifically involving a method and system for adaptive fine-tuning and aggregation of heterogeneous client federated large models. Background Technology
[0002] Large-scale models are widely used in question-answering or text generation scenarios where data cannot be centrally shared, such as in finance, healthcare, and government affairs. As the application of large-scale models in intelligent question answering, content generation, and professional knowledge services in these fields continues to expand, the heterogeneity of sample data necessitates different institutions or terminals adapting their tasks using local data that cannot be shared outside their local domain. However, significant differences exist among clients in terms of data scale, task distribution, GPU memory, computing power, and communication conditions.
[0003] Federated learning is a key means to obtain high-quality large models. Many studies at home and abroad have focused on the low-rank adaptive LoRA fine-tuning technique for large models under the federated learning framework. It mainly uses methods such as static rank allocation, independent average matrix, and singular value decomposition and aggregation to achieve collaborative optimization of large models under the protection of privacy of multiple clients.
[0004] However, adaptive rank allocation and efficient heterogeneous aggregation still have the following problems in heterogeneous devices and dynamic network environments: (1) Most existing methods adopt static unified rank configuration, which does not perceive the differences in real-time computing power, bandwidth and data scale of the client, resulting in low global training efficiency.
[0005] (2) For heterogeneous rank LoRA updates, only zero-filling truncation or global SVD truncation are used, resulting in rank collapse, target mismatch, and failure to retain effective local update signals from the client, thus impairing model accuracy and generalization ability.
[0006] Patent application CN120633890A discloses a heterogeneous device-aware adaptive federated learning fine-tuning method. Specifically, it proposes a heterogeneous device-aware federated LoRA fine-tuning technology. Based on real-time device computing power and network status, it uses integer programming to dynamically allocate LoRA ranks and hierarchically weights and aggregates different rank parameters according to common dimensions, thereby optimizing the efficiency of federated learning fine-tuning under heterogeneous devices and reducing global synchronization latency and server computational overhead. However, it has the following drawbacks: (1) Rank allocation is based solely on resource and latency considerations, without taking into account the geometric characteristics of local client data, and lacks theoretical guidance.
[0007] (2) The use of global hierarchical weighting and matrix slicing does not retain the effective local update signals of the client, and cannot solve the target mismatch problem in heterogeneous aggregation.
[0008] (3) Relying on static weighting and pruning strategies cannot alleviate the rank collapse phenomenon and makes it difficult to stably maintain the client-specific update direction. Summary of the Invention
[0009] In view of the above, the purpose of this invention is to provide a method and system for adaptive fine-tuning and aggregation of heterogeneous client federated large models. The method calculates the sufficient rank based on the effective dimension of the NTK feature matrix formed by local calibration text samples, limits the feasible rank by memory, training time and communication budget, and preserves the local effective update direction of each client through client-aware projection. This solves the technical problems of unquantifiable rank allocation, loss of aggregation signal and insufficient local generalization performance in federated LoRA.
[0010] To achieve the above-mentioned objectives, an embodiment provides an adaptive fine-tuning and aggregation method for a heterogeneous client federated large model, comprising the following steps: Each client performs local benchmark testing on the large model based on local text data and resource constraints, determines the supported LoRA candidate rank set, extracts representative samples from local text data, evaluates the effective complexity of the text generation task based on the representative samples and selects the matching rank from the LoRA candidate rank set accordingly, initializes the LoRA factor based on the matching rank, performs local training of the large model for the current round of text generation task based on the current LoRA factor, and uploads the LoRA factor. The server aggregates the incremental weights determined by the LoRA factors of each client to obtain global incremental weights, constructs an update space based on the incremental weights determined by the LoRA factors of each client, maps the global incremental weights to the update space of each client, generates reconstructed LoRA factors, and distributes them to the clients for the next round of federated learning.
[0011] This invention utilizes client-side local text data features, task complexity, and resource constraints to achieve adaptive allocation of LoRA ranks, enabling different clients to obtain fine-tuning capacity that matches their data scale, computing power, and training needs. It designs a client-aware heterogeneous LoRA aggregation and distribution method, which, after the server aggregates updates from each client, maps global incremental weight updates to the client-related space, preserving valid local update signals from each client. A rank-compatible parameter reconstruction mechanism is proposed, enabling the server to generate suitable LoRA factors for clients of different ranks and continuously iterate training. The system architecture balances privacy protection, communication efficiency, and heterogeneous adaptability, making it suitable for large-scale model federated collaborative fine-tuning in heterogeneous terminal, edge node, and institutional data environments.
[0012] Preferably, representative samples are extracted from local text data, including: Calibration samples are extracted from local text data for analysis. The number of calibration samples ranges from 64 to 512, and can be determined at a rate of 1% to 5% depending on the size of the local text data. The extracted calibration samples are stratified according to task category and input length. Then, based on the feature vectors generated by the frozen base model, calibration samples covering different feature regions are selected in each layer. If the deviation of the category proportion of the calibration sample from the local text data does not exceed 5 percentage points, and the average cosine similarity between the local sample and the most recent calibration sample is not less than 0.85, the calibration sample is considered representative.
[0013] Preferably, the effective complexity of the text generation task is evaluated based on representative samples, and a matching rank is selected from the LoRA candidate rank set accordingly, including: Client A local NTK feature matrix is constructed using representative samples, and the numerical rank or stable rank of the NTK feature matrix is used as the basis for the calculation. Characterize the effective complexity of the task, according to Calculate the minimum sufficient rank Let the feasible set of resources be denoted as , , ,in , and These represent the client's GPU memory, training duration, and single-round communication budget, respectively. For peak video memory, This represents the average training time per step. This is for single-round communication. like There exists not less than If the candidate ranks are equal, then the minimum value among them is selected as the matching rank; if Not empty but does not exist that is not less than If the candidate rank is not found, it is determined that the client resources are insufficient, and a choice is made. As the matching rank; if If empty, adjust the batch size or local training configuration and re-perform the benchmark test, or do not participate in the current round of training.
[0014] Preferably, initializing the LoRA factor based on the matching rank and performing local training of the large model for text generation tasks based on the LoRA factor includes: client i according to the determined matching rank Initialize LoRA factor and This makes the incremental weights of the model represent as The large model parameters are kept frozen, and training is performed only on the LoRA factor.
[0015] Preferably, the server aggregates the incremental weights determined by the LoRA factors of each client to obtain a global incremental weight, including: Incremental weights for each client Perform a weighted summation to form the global incremental weight. Among them, each weight The sum is 1, where the weights are 1. Based on a preset determination, when the client uploads a sample size, the weights... Determined based on sample size.
[0016] Preferably, the update space is constructed based on the incremental weights determined by the LoRA factors of each client, including: The update characteristic of the local large model is the incremental weights uploaded by the client. Bearing, including the main row direction, column direction, and strength of the update; Server for incremental weights Perform compact singular value decomposition ,Depend on Zhang Cheng's left strange subspace and Zhang Cheng's right singular subspace together constitutes the client-induced update space; among which... For the reason A diagonal matrix composed of non-zero singular values. and These are the corresponding left singular vector matrix and right singular vector matrix, respectively.
[0017] Preferably, mapping the global incremental weights to the update space of each client includes: Here, CAP represents client-perceived projection. Represents global incremental weights via client left and right subspaces , Client perception update obtained after bilateral projection.
[0018] Preferably, generating the reconstructed LoRA factor includes: First calculate the client's position in the subspace. The core matrix within And then Perform singular value decomposition and sort according to the client's matching rank. Retain the corresponding components; The retained result is then decomposed into a pair of reconstructed LoRA factors, such that the product of the reconstructed LoRA factors is equal to the mapping update under the rank constraint. If the actual component is less than the matching rank Then, zero components are used to fill in the gaps, so that the shapes of the reconstructed LoRA factors are respectively consistent with those of the original LoRA factors. and Compatible, among which , These represent the output dimension and input dimension of the target weight matrix, respectively.
[0019] To achieve the above-mentioned objectives, embodiments of the present invention provide a heterogeneous client federated large model adaptive fine-tuning and aggregation system, including each client and a server communicating with the clients; Each client is used to perform local benchmarking on the large model based on local text data and resource constraints, determine the supported LoRA candidate rank set, extract representative samples from local text data, evaluate the effective complexity of the text generation task based on the representative samples and select the matching rank from the LoRA candidate rank set accordingly, initialize the LoRA factor based on the matching rank, perform local training of the large model for the current round of text generation task based on the current LoRA factor, and upload the LoRA factor. The server aggregates the incremental weights determined by the LoRA factors of each client to obtain global incremental weights, constructs an update space based on the incremental weights determined by the LoRA factors of each client, maps the global incremental weights to the update space of each client, generates reconstructed LoRA factors, and distributes them to the clients for the next round of federated learning.
[0020] Compared with the prior art, the beneficial effects of the present invention include at least the following: (1) The rank allocation is more comprehensive: Existing technologies mainly rely on the real-time computing capabilities of the device, network status and global latency constraints to dynamically allocate LoRA ranks through integer programming. However, this invention further combines the local data characteristics of the client, task complexity and resource constraints to determine the LoRA rank, so that the rank allocation not only reflects the device's carrying capacity, but also reflects the model capacity actually required by the local task.
[0021] (2) Stronger ability to retain local effective signals: Existing technologies align different LoRA factors in ascending order on the server side and only perform weighted average aggregation on common dimensions, and then distribute the adapted LoRA factors to the device through slicing and cropping. Although this method can reduce computational complexity, it is easy to ignore the update direction unique to different clients. This invention maps global updates to the subspace related to local text data on the client through client-aware aggregation and distribution, thereby more fully preserving the effective update signals related to the client's local tasks.
[0022] (3) Better generalization stability in heterogeneous scenarios: Existing technologies mainly address the training efficiency issues caused by device computing power, network bandwidth, and synchronization delay. This invention further optimizes the issues of data heterogeneity, task complexity differences, and target mismatch in heterogeneous rank aggregation. It can improve the stability of federated large model fine-tuning and local generalization performance while maintaining privacy protection and low communication overhead, thereby improving the text generation quality of large models. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of the heterogeneous client federated large model adaptive fine-tuning and aggregation method provided in the embodiment; Figure 2 This is a schematic diagram of the structure of the heterogeneous client federated large model adaptive fine-tuning and aggregation system provided in the embodiment. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the scope of protection of this invention.
[0026] Existing large-scale federated LoRA fine-tuning methods for text generation generally employ static allocation of ranks or heuristic allocation based solely on device resources. Existing heterogeneous rank aggregation methods typically use zero-padding truncation or global SVD truncation, which easily leads to rank collapse and target mismatch, resulting in poor quality of large-scale federated learning models. To address this, this invention provides an adaptive fine-tuning and aggregation method and system for heterogeneous client-side federated large-scale models. Under the condition that the client's original data does not leave the domain, it utilizes quantifiable local data geometric features and resource budgets to calculate and allocate LoRA ranks for each client. The LoRA product update uploaded by the client explicitly represents the local effective update direction, and it completes the reconstruction of calculable client-aware projection and rank-compatible parameters to reduce the loss of local effective signals in heterogeneous tasks, thereby improving the inference quality of large-scale models obtained through federated learning.
[0027] like Figure 1As shown in the embodiment, an adaptive fine-tuning and aggregation method for a heterogeneous client-fed large model is provided. This method includes two stages: quantized adaptive rank allocation and client-aware projection aggregation and rank-compatible reconstruction. The client is an institution, edge node, or terminal holding local task data. The server only receives updates of the LoRA factor or its equivalent product, and does not receive original samples, labels, or text features. Figure 1 As shown, it includes the following steps: Phase 1, Client-side Adaptive Rank Allocation and Training: Each client performs local benchmarking on the large model based on local text data and resource constraints, determines the supported LoRA candidate rank set, extracts representative samples from the local text data, evaluates the effective complexity of the text generation task based on the representative samples, selects a matching rank from the LoRA candidate rank set accordingly, initializes the LoRA factor based on the matching rank, performs local training of the large model for the current round of text generation task based on the current LoRA factor, and uploads the LoRA factor.
[0028] In this embodiment, each client first prepares for adaptive rank allocation. Specifically, each client obtains its local text training set, sample size, task category (consultation and Q&A in the financial, medical, and government sectors, collectively referred to as text generation tasks), and resource constraints such as available GPU memory, computation time, and communication bandwidth for fine-tuning. Based on the aforementioned local text data and resource constraints, the client determines its supported LoRA candidate rank set through local benchmark testing. Specifically, each candidate rank is tested under the same calibration samples, batch size, and number of training steps, and the peak GPU memory usage is recorded. Average training time per step and single-round communication volume When all three criteria do not exceed the corresponding budget, they are included in the feasible LoRA candidate rank set. The frozen base model uses an 8B-level autoregressive language model, with LoRA inserted into each attention projection layer. The candidate rank set R = {4, 8, 16, 32, 64}. Related original local text data and resource information details are not uploaded to the server.
[0029] In this embodiment, representative samples are extracted from local text data, including: analyzing calibration samples extracted from local text data to extract statistical or feature information that reflects the complexity of the local task, differences in data distribution, and training requirements. The number of calibration samples is preferably 64–512, and can be determined according to the scale of the local text data at a ratio of 1%–5%; if there are fewer than 64 samples, all samples are used. During sampling, the extracted calibration samples are stratified according to task category and input length, and then calibration samples covering different feature regions are selected within each layer based on the feature vector generated by the frozen base model. If the deviation between the proportion of each category of the calibration samples and the local text data does not exceed 5 percentage points, and the average cosine similarity between the local samples and the most recent calibration samples is not less than 0.85, then the calibration samples are considered representative. All analyses are performed locally on the client side.
[0030] In the embodiment, the client Constructing a local NTK feature matrix using representative samples And by its numerical rank or stable rank Characterize the effective complexity of the task, according to Calculate the minimum sufficient rank Let the feasible set of resources be denoted as , , ,in , and These represent the client's GPU memory, training duration, and single-round communication budget, respectively. If... There exists not less than If the candidate ranks are equal, then the minimum value among them is selected as the matching rank; if Not empty but does not exist that is not less than If the candidate rank is not found, it is determined that the client resources are insufficient, and a choice is made. As the matching rank; if If the value is empty, the batch size or local training configuration will be adjusted and the benchmark test will be performed again, or the system will not participate in the current round of training. When the candidate rank set is {4, 8, 16, 32, 64}, 4 and 8 are the smaller ranks, 16 is the medium rank, and 32 and 64 are the larger ranks.
[0031] In this embodiment, initializing the LoRA factor based on the matched rank and performing local training of the large model for text generation tasks based on the LoRA factor includes: for the target weight matrix in the large model Client i follows the determined matching rank Initialize LoRA factor and This makes the incremental weights of the model represent as The base model parameters remain frozen, and training is performed only on the LoRA factors. Specifically, each client performs a preset number of rounds or steps of LoRA fine-tuning on local text data to obtain local LoRA factors. and The client only uploads the LoRA factor and the sample size used for weighting to the server, without uploading the original local data, labels, or local features. This approach, combining client resource constraints and task requirements, initializes LoRA factors of corresponding sizes for different clients, allowing each client to obtain personalized fine-tuning parameters that match its data features and resource conditions. This avoids underfitting, overfitting, or resource waste problems caused by uniform rank settings.
[0032] In the second stage, server-aware aggregation and distribution: the server aggregates the incremental weights determined by the LoRA factors of each client to obtain global incremental weights, constructs an update space based on the incremental weights determined by the LoRA factors of each client, maps the global incremental weights to the update space of each client, generates reconstructed LoRA factors, and distributes them to the clients for the next round of federated learning.
[0033] In this embodiment, the server aggregates the incremental weights determined by the LoRA factors of each client to obtain the global incremental weights, including: the server adjusting the incremental weights of each client based on the sample size of the client or a preset weight. Perform a weighted summation to form the global incremental weight. Among them, each weight The sum of these weights is 1, which represents the global incremental weight. It serves as a shared update reference on the server side and is not directly distributed to clients as a unified rank.
[0034] In this embodiment, an update space is constructed based on the incremental weights determined by the LoRA factors of each client, including: incremental weights uploaded by the client to reflect the update characteristics of the local large model. Bearing, including the primary row direction, column direction, and strength of the update. Server... Perform compact singular value decomposition ,Depend on and This forms a client-induced update space, and the global incremental weight is projected onto the update space to obtain... Where CAP represents client-perceived projection. Represents global incremental weights via client The client-perceived update is obtained by projecting the left and right subspaces onto both sides. Thus, the server can retain global information related to the client's update direction without accessing local data.
[0035] In this embodiment, the generated reconstructed LoRA parameters are sent to the client for the next round of federated learning, including: the server first calculates the client's subspace... The core matrix within And then Perform singular value decomposition and sort according to the client's matching rank. Retain the corresponding components; then decompose the retained results into a pair of reconstructed LoRA factors, such that the product of the reconstructed LoRA factors equals the mapping update under the rank constraint. If the actual components are less than the matching rank... Then, zero components are used to fill in the gaps, so that the shapes of the reconstructed LoRA factors are respectively consistent with those of the original LoRA factors. and Compatible, among which , These represent the output and input dimensions of the target weight matrix, respectively. Finally, the reconstructed LoRA factor is sent to the corresponding client as the initial parameters for the next round of training.
[0036] The client receives the reconstructed LoRA factor and enters the next round of training, repeating the client-adaptive rank allocation and training phase and the server-aware aggregation and distribution phase. Training stops when the preset number of rounds is reached, or when the validation set master metric improves below a preset threshold for several consecutive rounds. For question-answering tasks, the master metric can be Exact Match or token-level F1; for other tasks, the corresponding accuracy, F1, ROUGE, or perplexity can be used.
[0037] like Figure 2 As shown in the embodiment, a heterogeneous client-fed large model adaptive fine-tuning and aggregation system is provided, including various clients and a server connected in communication with the clients. Each client is used to perform local benchmarking on the large model based on local text data and resource constraints, determine the supported LoRA candidate rank set, extract representative samples from the local text data, evaluate the effective complexity of the text generation task based on the representative samples and select a matching rank from the LoRA candidate rank set accordingly, initialize LoRA factors based on the matching rank, perform local training of the large model for the current round of text generation task based on the current LoRA factors, and upload the LoRA factors. The server is used to aggregate the incremental weights determined by the LoRA factors of each client to obtain global incremental weights, construct an update space based on the incremental weights determined by the LoRA factors of each client, map the global incremental weights to the update space of each client, generate reconstructed LoRA factors, and send them to the clients for the next round of federated learning.
[0038] The heterogeneous client federated large model adaptive fine-tuning and aggregation system provided in the embodiment belongs to the same inventive concept as the above method. For detailed process, please refer to the above method, which will not be repeated here.
[0039] The method and system of this invention do not adopt a uniform LoRA rank across all clients. Instead, they allocate parameters individually based on the client's local data complexity and resource conditions. This allows clients with low resources to avoid excessive training burdens, while clients with high complexity obtain sufficient model expressive power. Furthermore, during server-side aggregation, this invention does not simply average or truncate the LoRA parameters of different clients. Instead, it maps global incremental weights to an update space more relevant to the client, based on the local update characteristics of each client. This preserves more update information effective for the client's local task without additional uploading of local data or significantly increasing communication overhead, thereby improving the stability and final performance of the heterogeneous federated LoRA fine-tuning process.
[0040] The specific embodiments described above illustrate the technical solution and beneficial effects of the present invention in detail. It should be understood that the above description is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, additions, and equivalent substitutions made within the scope of the principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for adaptive fine-tuning and aggregation of a heterogeneous client federated large model, characterized in that, Includes the following steps: Each client performs local benchmark testing on the large model based on local text data and resource constraints, determines the supported LoRA candidate rank set, extracts representative samples from local text data, evaluates the effective complexity of the text generation task based on the representative samples and selects the matching rank from the LoRA candidate rank set accordingly, initializes the LoRA factor based on the matching rank, performs local training of the large model for the current round of text generation task based on the current LoRA factor, and uploads the LoRA factor. The server aggregates the incremental weights determined by the LoRA factors of each client to obtain global incremental weights, constructs an update space based on the incremental weights determined by the LoRA factors of each client, maps the global incremental weights to the update space of each client, generates reconstructed LoRA factors, and distributes them to the clients for the next round of federated learning.
2. The heterogeneous client federated large model adaptive fine-tuning and aggregation method according to claim 1, characterized in that, Representative samples were extracted from the local text data, including: Calibration samples are extracted from local text data for analysis. The number of calibration samples ranges from 64 to 512, and can be determined according to the size of the local text data at a rate of 1% to 5%. The extracted calibration samples are stratified according to task category and input length. Then, based on the feature vectors generated by the frozen base model, calibration samples covering different feature regions are selected in each layer. If the deviation of the category proportion of the calibration sample from the local text data does not exceed 5 percentage points, and the average cosine similarity between the local sample and the most recent calibration sample is not less than 0.85, the calibration sample is considered representative.
3. The heterogeneous client federated large model adaptive fine-tuning and aggregation method according to claim 1, characterized in that, The effective complexity of the text generation task is evaluated based on representative samples, and a matching rank is selected from the LoRA candidate rank set accordingly, including: Client A local NTK feature matrix is constructed using representative samples, and the numerical rank or stable rank of the NTK feature matrix is used as the basis for the calculation. Characterize the effective complexity of the task, according to Calculate the minimum sufficient rank Let the feasible set of resources be denoted as , , ,in , and These represent the client's GPU memory, training duration, and single-round communication budget, respectively. For peak video memory, This represents the average training time per step. This is for single-round communication. like There exists not less than If the candidate ranks are equal, then the minimum value among them is selected as the matching rank; if Not empty but does not exist that is not less than If the candidate rank is not found, it is determined that the client resources are insufficient, and a choice is made. As the matching rank; if If empty, adjust the batch size or local training configuration and re-perform the benchmark test, or do not participate in the current round of training.
4. The heterogeneous client federated large model adaptive fine-tuning and aggregation method according to claim 1, characterized in that, Initialize LoRA factors based on matching rank and perform local training of a large model for text generation tasks based on LoRA factors, including: client i according to the determined matching rank. Initialize LoRA factor and This makes the incremental weights of the model represent as The large model parameters are kept frozen, and training is performed only on the LoRA factor.
5. The heterogeneous client federated large model adaptive fine-tuning and aggregation method according to claim 1, characterized in that, The server aggregates the incremental weights determined by the LoRA factors of each client to obtain the global incremental weights, including: Incremental weights for each client Perform a weighted summation to form the global incremental weight. Among them, each weight The sum is 1, where the weights are 1. Based on a preset determination, when the client uploads a sample size, the weights... Determined based on sample size.
6. The heterogeneous client federated large model adaptive fine-tuning and aggregation method according to claim 1, characterized in that, The update space is constructed based on the incremental weights determined by the LoRA factors of each client, including: The update characteristic of the local large model is the incremental weights uploaded by the client. Bearing, including the main row direction, column direction, and strength of the update; Server for incremental weights Perform compact singular value decomposition ,Depend on Zhang Cheng's left strange subspace and Zhang Cheng's right singular subspace together constitutes the client-induced update space; among which... For the reason A diagonal matrix composed of non-zero singular values. and These are the corresponding left singular vector matrix and right singular vector matrix, respectively.
7. The heterogeneous client federated large model adaptive fine-tuning and aggregation method according to claim 1, characterized in that, Mapping the global incremental weights to the update space of each client includes: Here, CAP represents client-perceived projection. Represents global incremental weights via client left and right subspaces , Client perception update obtained after bilateral projection.
8. The heterogeneous client federated large model adaptive fine-tuning and aggregation method according to claim 7, characterized in that, Generate reconstructed LoRA factors, including: First calculate the client's position in the subspace. The core matrix within And then Perform singular value decomposition and sort according to the client's matching rank. Retain the corresponding components; The retained result is then decomposed into a pair of reconstructed LoRA factors, such that the product of the reconstructed LoRA factors is equal to the mapping update under the rank constraint. If the actual component is less than the matching rank Then, zero components are used to fill in the gaps, so that the shapes of the reconstructed LoRA factors are respectively consistent with those of the original LoRA factors. and Compatible, among which , These represent the output dimension and input dimension of the target weight matrix, respectively.
9. A heterogeneous client federated large model adaptive fine-tuning and aggregation system, characterized in that, This includes each client, as well as the server that communicates with the clients; Each client is used to perform local benchmarking on the large model based on local text data and resource constraints, determine the supported LoRA candidate rank set, extract representative samples from local text data, evaluate the effective complexity of the text generation task based on the representative samples and select the matching rank from the LoRA candidate rank set accordingly, initialize the LoRA factor based on the matching rank, perform local training of the large model for the current round of text generation task based on the current LoRA factor, and upload the LoRA factor. The server aggregates the incremental weights determined by the LoRA factors of each client to obtain global incremental weights, constructs an update space based on the incremental weights determined by the LoRA factors of each client, maps the global incremental weights to the update space of each client, generates reconstructed LoRA factors, and distributes them to the clients for the next round of federated learning.
Citation Information
Patent Citations
Heterogeneous device sensing adaptive federated learning fine tuning method
CN120633890A
