1-Bit compression clustering type federal learning method in Internet of Vehicles scene
By adopting clustered and adaptive threshold 1-Bit compression technology in the Internet of Vehicles scenario, the problems of high communication overhead and low learning performance in traditional federated learning are solved, efficient decentralized federated learning is achieved, and vehicles are improved Communication efficiency and model generalization performance of the network.
Patent Information
- Application Number
- CN202410873640.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-11-01
AI Technical Summary
In the Internet of Vehicles scenario, the traditional decentralized federated learning method has problems such as high communication overhead, complex network management and degraded learning performance, especially when facing heterogeneous data and highly mobility vehicle networks.
A clustered decentralized wireless federated learning method combining clustering and 1-Bit compression is proposed. By clustering vehicle location, attributes and model similarity, a 1-Bit compression scheme with adaptive threshold is used to reduce uplink communication overhead. , and introduce early termination strategies to improve efficiency and stability.
Significantly reduces communication overhead while maintaining good federated learning performance, improving cluster stability and overall learning efficiency, preventing overfitting and reducing unnecessary waste of computing resources.
Smart Images

Figure CN118886478A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the cross-technical field of Internet of Vehicles and artificial intelligence, and specifically relates to a clustered decentralized federated learning method based on 1-Bit compression in an Internet of Vehicles scenario. Background Art
[0002] As intelligent driving technology continues to advance, intelligent connected vehicles are expected to improve road traffic safety and efficiency through cooperative autonomous driving technology. The deployment of cooperative autonomous driving technology requires a powerful communication network and complex machine learning models to support collaborative training and decision-making tasks. In recent years, federated learning has been regarded as a key technology for privacy protection in cooperative autonomous driving technology. Federated learning has a wide range of applications in intelligent perception, traffic flow optimization, safety warning systems, etc. FL only exchanges the weights and biases of the neural networks of connected vehicles, bypassing the exchange of raw data. This feature provides the potential to support cooperative driving functions with low latency and privacy protection. Centralized federated learning technology requires a parameter server, which acts as a central coordinator to aggregate, update, and distribute local model parameters. However, due to a large number of client connections, the parameter server may slow down the entire training process. In addition, using base stations or roadside units as central servers to connect vehicle information on the road poses large-scale challenges. Decentralized federated learning processes have enhanced scalability and fault recovery capabilities. They rely on a fully distributed network structure instead of a parameter server, which contributes to the further development of vehicle network scenarios. Vehicles collaborate by exchanging model updates with their respective neighbors and implementing consensus strategies. Traditional decentralized federated learning in vehicular networks requires its models to interact extensively, resulting in huge communication overhead and challenges in network resource management. In addition, learning performance degrades when faced with heterogeneous data.
[0003] In order to address the challenges brought by distributed and heterogeneous data, cluster-based federated learning frameworks have been considered. However, traditional decentralized federated learning still encounters problems such as high communication overhead and complex network management. Various methods for managing vehicle self-organizing networks have been proposed. Clustering algorithms are introduced to improve the network efficiency of vehicle self-organizing networks. Unlike traditional federated learning, cluster-based federated learning does not require the local model to be transmitted to all surrounding vehicles. Instead, it follows a clustering strategy and only transmits the local model to the cluster center vehicle. Therefore, it reduces the communication overhead and improves the generalization performance of non-independent and identically distributed data.
[0004] However, even in the IoV scenario, cluster-based federated learning faces the challenges of high mobility and large network models, resulting in low communication efficiency and slow information transmission. In the cluster wireless federated learning scenario, multiple terminals participate in the training and transmission of the neural network model, which requires multiple rounds of communication, resulting in a large amount of communication overhead. The overall training time of the global model is mainly affected by the training and communication time of each terminal. As the computing power of the device increases, the speed of client training increases, and communication efficiency becomes the main limiting factor for training speed. Therefore, it is necessary to conduct in-depth research on algorithms suitable for efficient communication, privacy protection, and good model performance in distributed vehicle network scenarios.
[0005] In order to further improve the communication efficiency of vehicles and maintain good federated learning effects in distributed scenarios, a 1-Bit compression clustering federated learning method in the Internet of Vehicles scenario is proposed. Vehicles are clustered using their location, attributes, relative speed, and model similarity. A 1-Bit compression scheme based on an adaptive threshold is used to reduce the communication overhead of the uplink, and an early termination strategy is incorporated to avoid unnecessary communication and computing resource waste, thus achieving an efficient decentralized federated learning algorithm.
[0006] As the vehicle continues to move on the road and the information continues to interact, the generalization performance of the entire vehicle is improved. Formally, the problem can be expressed as:
[0007]
[0008] in is the local objective function of vehicle i. The local objective function formula can be written as
[0009]
[0010] where ξ i is the local data of vehicle i. i ,ξ i ) is the loss function of the data sample of vehicle i. is the parameter vector of vehicle i. The goal of this paper is to minimize f(w) in a decentralized framework while considering reducing the communication overhead of the Internet of Vehicles scenario. Therefore, the objective function can be written as:
[0011]
[0012] Where η is the total number of clusters, is the set of vehicles in the kth cluster, Δ is the set of non-clustered vehicles. |·| represents the cardinality of the set.
[0013] From the training process of federated learning, it can be seen that the cluster center vehicle transmits its local network model through broadcast communication. Communication optimization of the downlink is not feasible. The present invention mainly focuses on the modeling and analysis of the uplink wireless network of vehicles in the cluster.
[0014] When wireless network data transmission is in progress, both uplink and downlink use communication bandwidth as resources. Assuming that orthogonal frequency division multiple access (OFDMA) technology is used for data transmission, each vehicle uplink will be allocated a communication resource block B. U According to Shannon's formula, the channel capacity of each uplink wireless transmission V2V link from the cluster center vehicle to vehicle i in the channel n transmission model is:
[0015]
[0016] The uplink bandwidth has a total of R sub-channels, r i,n ∈{0, 1}, r i,n =1 indicates that the V2V link transmits to vehicle i on channel n, r i,n =0, on the contrary, P i ∈(0,P max ] represents the transmission power of the V2V link to the sending vehicle, The channel gain o representing the V2V link pair from vehicle i to the cluster center vehicle is the channel fading coefficient, and d is the distance between channels. Indicates h i Find the mathematical expectation. n It is the interference caused by other service devices (such as other devices not participating in FL) using channel n multiplexing.
[0017] The transmission delay of the uplink of the V2V link from vehicle i to the cluster center vehicle is:
[0018]
[0019] H(w i ) is the size of the uplink transmission model. Similarly, Z(g) is the size of the downlink transmission model.
[0020] Similarly, it is assumed that the cluster center vehicle uses broadcasting to send the global model through the downlink. Similarly, the downlink transmission rate can be expressed as:
[0021]
[0022] Among them B D is the bandwidth used by the cluster center vehicle in the downlink, P c ∈(0,P max ] is the transmission power of the cluster center vehicle, I D It is the interference caused by the transmission of other clusters around this cluster.
[0023] The transmission delay of the downlink is:
[0024]
[0025] The delay system in each round of cluster-based federated learning training includes the local training time t train , Data uplink transmission time Data reconstruction time t reconstruct , Model release time
[0026] Assuming that all vehicle clocks are synchronized and there is a maximum delay between the federated learning training steps of all vehicles in each round, the next federated learning step will be executed only after the maximum delay. When the current round of federated learning training is completed, the next round of training will be entered simultaneously.
[0027]
[0028] As CPU and GPU processing power continues to improve, t train and t reconstruct Will continue to decrease, while the uplink and downlink transmission delay and It has gradually become an important factor limiting the learning speed of federated learning. Summary of the invention
[0029] The technical problem to be solved by the present invention is: a decentralized wireless federated learning method combining clustering and 1-Bit compressed sensing is proposed for distributed scenarios. This decentralized method significantly reduces communication overhead while maintaining good performance. In view of the dynamics of vehicle mobility and the non-independent and identically distributed characteristics of data, a novel clustering algorithm is proposed to improve the performance of federated learning and enhance clustering stability. The algorithm promotes interaction between different clusters by sharing vehicles. Clustering indicators include vehicle domain density, cluster head stability, vehicle mobility (quantified by average relative speed) and model similarity (assessed by cosine similarity). By dynamically combining sparsity with the number of observations to further minimize the model size, a novel 1-Bit compression method based on adaptive threshold is proposed, which further reduces communication overhead while ensuring the accuracy requirements of the federated learning model training process. In order to prevent overfitting during the training of the federated learning model and reduce unnecessary communication overhead, an early stopping strategy is incorporated into the proposed method to improve the overall performance.
[0030] The present invention adopts the following technical solutions to solve the above technical problems:
[0031] Step 1: Vehicle training local data, specifically:
[0032] As the instruction manual Figure 1 As shown, the local model of vehicle i in the tth round of federated learning training is The local dataset of vehicle i is ξ i Each vehicle will first determine whether the local model has converged. If not, it will train the local model.
[0033] Step 2: Vehicle clustering, specifically:
[0034] The vehicle position set is Neighborhood parameters (cluster radius r, cluster vehicle number threshold δ), core object set Core for the t-1th round of federated learning training t-1 and vehicle speed.
[0035] First, initialize the core object collection of this round: And calculate the neighborhood density N within the cluster radius for each vehicle r (X i ), the domain density of vehicle i is: N r (X i )=num(|X j -X i |<r, j∈X∩j≠i), when the value is greater than the threshold δ, it is added to the core object set Ω=Ω∪{X j}.
[0036] Then sort the core object set from high to low and initialize the number of clusters: k = 0, according to the priority neighborhood density N r (X j )>maintain the cluster center of the previous round>sim value is clustered in sequence.
[0037] The vehicle speed and model similarity evaluation indicators are:
[0038]
[0039] where N(i) is the number of neighbors of vehicle i within one hop, v i and v j is the speed of vehicle i and vehicle j, and is the dot product of the two vectors.
[0040] Next, the cluster center vehicles are taken out from the core object set one by one and all the vehicles in the cluster center vehicle area are formed into a cluster, and the cluster vehicles in the core object set are deleted. And so on. Therefore, in some locations, the shared vehicle can be used by multiple clusters that meet the requirements at the same time. When , it indicates that all clusters have been formed, and the clustering result C of the current round t is obtained. t and the set of non-clustered vehicles Δ tFrom the clustering algorithm, it can be seen that any two cluster centers cannot be within each other's neighborhood, and information about different clusters can be obtained through shared vehicles.
[0041] Step 3: Model transfer, specifically:
[0042] As the instruction manual Figure 1 As shown in the figure, if the model has not converged in each cluster and the cluster center vehicle has the model of the edge vehicle and the shared vehicle in the previous round, the cluster algorithm of wireless federated learning based on 1-bit compression clustering with adaptive threshold can be used. If the vehicle is a new vehicle joining the cluster, the complete local model needs to be transmitted.
[0043] As the instruction manual Figure 2 As shown, when vehicle t can transmit the local compression model CS(w i,t )hour:
[0044] At the non-cluster center: vehicle i sends the global model of the cluster center vehicle of cluster k in round t-1 and the local model w i,t Compare and expand to a one-dimensional vector:
[0045]
[0046] The model is sparsed by using the sparse ternary compression algorithm, and the change trend of the local model is calculated first.
[0047]
[0048] and amplitude change information
[0049]
[0050] As the instruction manual Figure 2 As shown, find the amplitude change value The Top-K threshold, which is the K% largest value in the model parameters, can be large or small due to the continuous interaction and update of the model. This paper proposes an adaptive threshold. and Will correspond The numbers greater than the threshold are saved, and the other numbers are set to 0. i,t The simple expression of sparsification is:
[0051]
[0052] Will The minimum value among the retained values is recorded as the update step size Δ, that is:
[0053]
[0054] The 1-Bit compression algorithm adds a compressed sensing process after the sparse ternary compression algorithm. We know that the sparse model There are only three values: 1, 0, and -1. According to the 1-bit compression algorithm, the vehicle and the sensor matrix shared with the cluster center vehicle are sparsely compressed into a model Observe and get y i,t ,Right now:
[0055]
[0056] where A∈R M×N is the sensing matrix, N is The length of M is the number of observations. i,t (x) has only two values: 1 and -1.
[0057] Vehicle, the compressed model y i,t (x) and the update step size Δ are transmitted to the cluster center vehicle.
[0058] Cluster center: The cluster center vehicle receives the y i,t (x) and the global sensor matrix A call the binary iterative hard threshold algorithm to Y i,t The data is reconstructed to obtain y′ i,t .
[0059] The cluster center vehicle passes through the restored y′ i,t , the global model of the previous round And given the update step information Δ, the local model w′ of vehicle i is restored i,t .
[0060]
[0061] Finally, the local model of each vehicle is restored from the kth cluster center in the tth round.
[0062] As the iteration process progresses, the difference between the global model and the local model decreases, allowing K and M to be dynamically adjusted based on the threshold difference in sparsity level.<K,M> Represents a dynamic combination of sparsity K and the number of observations M.<K=0.1N,M=0.4N> and<K=0.15N,M=0.9N> , the signal recovery accuracy of the two tuples is close. Since K = 0.15N is large, it is more suitable for situations with large amplitude changes. high -th low When | is large, it indicates that the update amplitude is large and a larger sparsity K is required. high and the number of observations M high On the contrary, a smaller threshold difference indicates that a smaller sparsity and number of observations can be used. high >ψ×th mid, where ψ is the threshold coefficient, then a large sparsity K is selected high and the number of observations M high , similarly mid >ψ×th low When choosing the sparsity K mid and the number of observations M mid .
[0063] Step 4: Cluster center vehicle model aggregation, specifically:
[0064] is the network model parameter after local training of the kth cluster center vehicle in the tth iteration. The meanings of other parameters are similar.
[0065] The aggregation process of cluster center vehicles:
[0066]
[0067] in represents the edge vehicle model (excluding newly added vehicles) transmitted using compressed sensing, and D is the set of edge vehicles in the kth cluster in the tth iteration. represents the shared vehicle model (excluding newly added vehicles) using compressed sensing transmission, and S is the set of shared vehicles in the kth cluster in the tth iteration. represents the newly added vehicles in the kth cluster in the tth iteration, N is the set of newly added vehicles in the kth cluster in the tth round of federated learning training, and these vehicles need to transmit the complete local model. |·| represents the number in the set.
[0068] Step 5: Update the downlink vehicle model, specifically:
[0069] When the cluster center vehicle aggregates the local model, it will send the global model to the vehicles within the communication radius. The downstream receiving vehicles will update according to the global model they received. Among them, shared vehicles may receive multiple global models, so they are aggregated according to the weights of different clusters.
[0070] Update formula for downlink vehicles:
[0071] Where μ is the set of clusters to which CSV belongs, N k is the number of vehicles in cluster k.
[0072] Compared with the prior art, the present invention has the following technical effects:
[0073] 1. The federated learning method based on clustering and adaptive threshold 1-bit compression has more efficient performance and better clustering stability than the existing federated learning algorithm.
[0074] 2. Simulation experimental results show that this method can significantly reduce communication overhead while maintaining good federated learning performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 The overall flow chart of the method of the present invention is
[0076] Figure 2 Flowchart of the 1-Bit compression scheme used in the present invention
[0077] Figure 3 (a) is a box plot of accuracy at different compression levels (b) is the total communication overhead at different compression levels DETAILED DESCRIPTION
[0078] The effectiveness of the method of the present invention is illustrated below through a specific computer simulation implementation case. Without loss of generality, the implementation case selects the cross entropy function as the loss function, the optimization function uses the Adam function, the initial learning rate is 0.001, β1=0.9, β2=0.999; the batch size is set to 32. The method proposed in the present invention is applicable to any federated learning model without loss of generality. In order to speed up the simulation speed, the data set of each vehicle is derived from the MNIST data set, which contains 500 images. A single number represents 55% of the data, while the remaining 9 numbers each account for 5%, eventually forming a non-independent and identically distributed data set.
[0079] To run the simulation, the total number of vehicles is set to 10, and the vehicle positions and speeds are generated using virtual simulation software. The simulation scenario is a 3×3 Manhattan model with each side 200 meters long. For the present invention, the communication range of the V2V link pair is assumed to be 100 meters. The training process uses the Adam optimizer with an initial learning rate of lr=0.001, and each vehicle locally trains a single fully connected layer with a cross entropy loss function. We assume that the federated learning is initially 32-bit encoded. The accuracy of the simulation part is the average of the accuracy of all vehicles on the complete MNIST test set.
[0080] This case sets the parameters
[0081]
[0082] The case studies respectively analyze the effects of compression degree, early termination strategy, and clustering method on the method of the present invention.
[0083] The number of signal parameters before compressed sensing is N = 784 × 10 + 10 = 7850. The convergence accuracy and convergence speed of the verified model increase with the increase of the number of observations M, and decrease with the decrease of sparsity K. When all vehicles are in a cluster, a theoretical centralized federated learning scenario is formed, which is the theoretical upper limit of the clustering algorithm. As shown in Figure 3(a), as the vehicle continues to move, the accuracy is close to the convergence result of centralized federated learning.
[0084] The case parameters used in the method of the present invention are set as<K=0.01N,M=0.1N> ,<K=0.05N,M=0.6N> ,<K=0.1N,M=0.9N> As shown in Figure 3(a), when the model is neither sparse nor compressed, the complete local model is transmitted, forming the theoretical upper limit of the clustering algorithm under the case condition. When K = 0.1N, it represents the upper limit of 1-bit compression under this sparsity level.<M=0.1N,K=0.01N> The signal is compressed to one tenth of its original size, the number of observations is reduced, and the accuracy of signal recovery is reduced. Local training is a solution for the vehicle to train a local model without performing federated learning. The analysis is verified by the accuracy and communication overhead shown by the recognition accuracy of different compression levels shown in Figure 3(b), where the communication overhead is the total overhead when training stops, and the accuracy consists of the mean and standard deviation. The amount of information transmitted for the complete local model at the moment of convergence of centralized federated learning is only 3.6% of that of centralized federated learning, and the accuracy is about 8.9% lower than that of centralized federated learning. When the sparsity K=0.1N, the amount of uplink information transmitted is 9.5% of the amount of information required to transmit the complete model, and the accuracy decreases by 0.2%. When the method of the present invention is used, the amount of uplink information transmission is approximately 1 / 13 of the amount of information required to transmit the complete local model, and the accuracy is only reduced by 0.4%. When<M=0.1N,K=0.01N> When ,the communication overhead will be further reduced, and its accuracy will also drop significantly.
[0085] Signal recovery accuracy varies with sparsity and compression
[0086]
[0087] In the simulation experiment implemented in this case, the convergence criterion is |LOS t -LOS t-1 |<ε * , where ε * Less than the standard deviation ΔLOS. As shown in Figure 3(b), when the vehicle local model converges, it stops training, effectively preventing overfitting of federated learning training and avoiding unnecessary communication overhead. In the distributed scenario of the case, different clusters converge differently and new training is started when a new vehicle joins the cluster.
[0088] The clustering algorithm proposed by the method of the present invention allows multiple clusters that meet certain conditions to use shared vehicles, thereby improving the recognition accuracy in certain scenarios. In contrast, the algorithm based on the hard clustering clustering scheme operates without shared vehicles between clusters, only counts the domain density of each vehicle once, and selects the vehicle with the highest domain density as the cluster center vehicle. The speed clustering scheme uses the minimum average speed as the clustering criterion. The model similarity clustering scheme uses the cosine similarity of the model as an indicator for creating clusters.
[0089] The clustering scheme based on model similarity can only transmit the local model to the candidate vehicles in advance when selecting the cluster center vehicle, which requires a large communication overhead. Simply considering cosine similarity in decentralized federated learning will lead to insufficient data diversity and insufficient overall generalization performance. The algorithm based on the clustering scheme based on vehicle speed has good performance under this framework, but it can be seen from this case that its cluster is not stable in this scenario. The soft clustering scheme proposed in the present invention focuses on the stability of clustering. As the vehicle speed increases, the average lifespan of the cluster will shorten. At the highest vehicle speed, compared with other algorithms, the algorithm proposed in the present invention increases the average lifespan of the cluster at the same speed by at least 17.8%.
[0090] Performance comparison of different clustering schemes
[0091] plan Accuracy ACC Communication overhead (MB) Average cluster lifespan (s) Clustering by vehicle speed 0.873±0.0128 14.55 1.4 Clustering based on model similarity 0.843±0.0488 24.05 3.5 Clustering based on hard clustering 0.876±0.019 5.79 4.5 Soft clustering of the present invention 0.877±0.0153 5.03 3.7
Claims
1. The clustering federated learning method with 1-bit compression in the Internet of Vehicles scenario includes the following steps: Step 1: Vehicle training local data, specifically: The local model of vehicle i in the tth round of federated learning training is The local dataset of vehicle i is ξ i As shown in Figure 1 of the specification, each vehicle will first determine whether the local model has converged. If not, the local model will be trained. Step 2: Vehicle clustering, specifically: The vehicle position set is Neighborhood parameters (cluster radius r, cluster vehicle number threshold δ), core object set Core for the t-1th round of federated learning training t-1 and vehicle speed. First, initialize the core object collection of this round: And calculate the neighborhood density N within the cluster radius for each vehicle r (X i ), the domain density of vehicle i is: N r (X i )=num(|X j -X i |<r, j∈X∩j≠i), when the value is greater than the threshold δ, it is added to the core object set Ω=Ω∪{X j}. Then sort the core object set from high to low and initialize the number of clusters: k = 0, according to the priority neighborhood density N r (X j )>maintain the cluster center of the previous round>sim value is used to cluster in turn. Vehicle speed and model similarity evaluation index: where N(i) is the number of neighbors of vehicle i within one hop, v i and v j is the speed of vehicle i and vehicle j, and is the dot product of the two vectors. A lower sim value means a smaller average cluster speed and lower intra-cluster model similarity, corresponding to a more stable cluster and a richer global model. Next, the cluster center vehicles are taken out from the core object set one by one and all the vehicles in the cluster center vehicle area are formed into a cluster, and the cluster vehicles in the core object set are deleted. And so on, so in some locations, the shared vehicle can be used by multiple clusters that meet the requirements at the same time. When , it indicates that all clusters have been formed, and the clustering result C of the current round t is obtained. t and the set of non-clustered vehicles Δ tFrom the clustering algorithm, it can be seen that any two cluster centers cannot be within each other's neighborhood, and information about different clusters can be obtained through shared vehicles. Step 3: Model transfer, specifically: As shown in Figure 1 of the specification, if the model has not converged in each cluster and the cluster center vehicle has the model of the edge vehicle and the shared vehicle in the previous round, the cluster algorithm of the 1-bit compression clustering wireless federated learning based on the adaptive threshold can be used. If the vehicle is a new vehicle joining the cluster, the complete local model needs to be transmitted. As shown in Figure 2 of the specification, vehicle i can transmit the local compression model CS(w i,t )hour: At the non-cluster end: The global model where vehicle i sends the kth cluster center vehicle in round t-1 and the local model w i,t Compare and expand to a one-dimensional vector: The model is sparsed by using the sparse ternary compression algorithm, and the change trend of the local model is calculated first. and amplitude change information As shown in Figure 2 of the specification, find the amplitude change value The Top-K threshold is the K% largest value in the model parameters. Due to the continuous interaction and update of the model, the update amplitude can be large or small. This paper proposes an adaptive Top-K threshold. Then and Will correspond The numbers greater than the threshold are saved, and the other numbers are set to 0. i,t The simple expression of sparsification is: Will The minimum value among the retained values is recorded as the update step size Δ. The 1-Bit compression algorithm adds a compressed sensing process after the sparse ternary compression algorithm. We know that the sparse model There are only three values (1, 0, -1). According to the 1-Bit compression algorithm, the sensor matrix shared by vehicle i and the cluster center vehicle is sparsely compressed into a three-element model. Observe and get y i,t At this time, y i,t (x) has only two values (1, -1). Vehicle i compresses the model y i,t (x) and the update step size Δ are transmitted to the cluster center vehicle. Cluster center: The cluster center vehicle receives the y i,t (x) and the global sensor matrix A call the binary iterative hard threshold algorithm to Y i,t The data is reconstructed to obtain y′ i,t . The cluster center vehicle passes through the restored y′ i,t , the global model of the previous round And given the update step information Δ, the local model w′ of vehicle i is restored i,t . As the iteration process progresses, the difference between the global model and the local model decreases, allowing K and M to be dynamically adjusted based on the threshold difference in sparsity level.<K,M> Represents a dynamic combination of sparsity K and the number of observations M.<K=0.1N,M=0.4N> and<K=0.15N,M=0.9N> , the signal recovery accuracy of the two tuples is close. Since K = 0.15N is large, it is more suitable for situations with large amplitude changes. high -th low When | is large, it indicates that the update amplitude is large and a larger sparsity K is required. high and the number of observations M high On the contrary, a smaller threshold difference indicates that a smaller sparsity and number of observations can be used. The 1-bit compression scheme of the adaptive threshold in this method will select the appropriate sparsity and number of observations according to the local update amplitude in each vehicle that can use 1-bit compression transmission. high >ψ×th mid , where ψ is the threshold coefficient, then a large sparsity K is selected high and the number of observations M high , similarly mid >ψ×th low When choosing the sparsity K mid and the number of observations M mid . Step 4: Cluster center vehicle model aggregation, specifically: is the network model parameter after local training of the kth cluster center vehicle in the tth iteration. The meanings of other parameters are similar. The cluster center vehicle receives the models of the vehicles in the cluster and aggregates them locally by weight. The aggregation process of cluster center vehicles: in represents the edge vehicle model (excluding newly added vehicles) transmitted using compressed sensing, and D is the set of edge vehicles in the kth cluster in the tth iteration. represents the shared vehicle model using compressed sensing transmission (excluding newly added vehicles), and S is the set of shared vehicles in the kth cluster in the tth iteration. represents the newly added vehicles in the kth cluster in the tth iteration, N is the set of newly added vehicles in the kth cluster in the tth round of federated learning training, and these vehicles need to transmit the complete local model. |·| represents the number in the set. Step 5: Update the downlink vehicle model, specifically: When the cluster center vehicle aggregates the local model, it will send the global model to the vehicles within the communication radius. The downstream receiving vehicles will update according to the global model they received. Among them, shared vehicles may receive multiple global models, so they are aggregated according to the weights of different clusters. The update formula for downlink vehicles is: Where μ is the set of clusters to which CSV belongs, N k is the number of vehicles in cluster k.
