Next Article in Journal
Electric Bicycle Series Arc Fault Identification Method Based on Improved PCA and SVM
Previous Article in Journal
Precision Livestock Farming and Biomedical Engineering: Assessing Feed Quality, Animal Health, and Behavior Using Machine Learning for Sensor Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Context-Aware Online Model Splitting and Device Association for Semi-Decentralized Federated Learning in Internet of Things

1
Jiangsu Key Laboratory of Wireless Communications, Nanjing University of Posts and Telecommunications, Nanjing 210003, China
2
Zhengzhou Power Supply Company, State Grid Henan Electric Power Company, Zhengzhou 450015, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(13), 4016; https://doi.org/10.3390/s26134016
Submission received: 26 May 2026 / Revised: 13 June 2026 / Accepted: 15 June 2026 / Published: 24 June 2026
(This article belongs to the Section Internet of Things)

Abstract

As a distributed approach to Artificial Intelligence (AI) model construction over wireless networks, federated learning (FL) based on multi-device collaborative training can protect data privacy, as well as increase the computing load of local model updates. In contrast, split learning (SL) with proper model splitting can adapt to the computation and transmission capabilities among devices. In this paper, while taking advantage of FL and SL, we concentrate on a semi-decentralized hybrid federated split learning (SD-HFSL) framework, in which we surpass the limitations of a single central server and allow the shared split models to be aggregated among multiple edge servers. To verify the importance of latency optimization for training efficiency, we analyze the convergence performance of SD-HFSL while jointly considering the limited computation and communication resources. Then, aiming at maximizing the long-term training efficiency, we propose an online optimization problem that includes local model splitting and device association. Considering that the training latency is unknown to the system a priori, a context-aware online training algorithm with sublinear regret is proposed based on the framework of contextual multi-armed bandit (CMAB), where the edge servers can observe the context information of device sites for latency estimation, followed by the iterative optimization based on the evaluated information in different contexts. Experiments on several neural network models show that the proposed algorithm reduces training latency and improves test accuracy compared with the selected benchmarks.

1. Introduction

Internet of Things (IoT) technology has been extensively applied across a variety of domains, including industry and transportation, where demand for intelligent applications continues to grow [1,2]. These intelligent applications are often implemented based on Artificial Intelligence (AI) technologies with a large amount of training data collected from widely distributed IoT devices [3]. Meanwhile, considering the increasing complexity of neural network models, it is more difficult for resource-constrained devices to efficiently build training models to support rapidly iterating AI applications. In particular, although cloud computing [4] or edge computing [5] has the ability to provide extra computing resources for large-scale data training, the third-party computing model has difficulty with meeting the privacy requirements among the involved devices [6]. To solve this issue, taking advantage of the distributed devices and their local computing power, the federated learning (FL) [7] algorithm is an approach that can be used for cooperatively training AI models by using the local data of several devices while meeting privacy requirements. In contrast to conventional centralized training, which exchanges local data with a central server to train on massive volumes of raw data, FL can effectively safeguard data privacy without local data interaction. Recent works have designed a variety of FL frameworks to accommodate a large number of devices by using techniques to reduce training overhead [8,9]. Moreover, to facilitate FL over dynamic wireless networks, strategies of resource allocation were fully addressed, considering communication link unreliability [2,10,11,12] and training efficiency [13,14]. Moreover, some interesting reviews of FL can be found in [15,16,17,18].
Nevertheless, with the increasing complexity of AI models, low-performance devices under the short-plate effect can significantly increase training latency and weaken the training efficiency of FL in real-world scenarios. Most importantly, the local computing tasks of traditional FL will be completely dependent on the device itself, which can not fully mobilize the existing computing resources. Considering the problem that a single device is insufficient to support complex training tasks, a deep neural network (DNN) can be divided into several sections via split learning (SL) [19], which is a cooperative training method that can send procedures of forward propagation and gradient calculations to other computing nodes for processing, such as devices and edge servers. Compared with FL, SL can lower a single device’s processing load and energy usage by performing model splitting and distributing the intermediate outcomes, such as model features and gradients across other computing units. To reduce the computational load of model training and inference processes, the SL framework is implemented in open-source applications, such as indoor positioning, cooperative identification, and rapid reasoning [20]. Moreover, in academia, SL is deployed over wireless networks, maximizing learning performance with resource adaptation [21,22,23,24].
However, the amount of data possessed by a single device in SL is limited, and the trained model is insufficient in generalization ability or learning ability, especially in the heterogeneous data environment. To solve this issue, jointly considering the advantages of FL and SL, recent works have incorporated the low computational load on SL devices and collaborative training of FL [25,26,27,28,29,30,31,32,33]. In [25], a novel learning framework, namely, hybrid federated split learning (HSFL), was proposed to obtain a trade-off between training time and energy consumption with the joint optimization problem, including splitting decisions. Moreover, the time consumption of the stragglers in HSFL was considered in [26], where the local models were trained among all devices along the ring through a pre-defined direction. We can see that HSFL, in fact, retains the characteristics of FL, integrated with existing learning mechanisms. For instance, in [27], a special split from the perspective of clustering was proposed in HFSL, which was similar to clustered FL, but optimized the model updating and cluster splitting schemes in the training stage to accelerate model convergence. Moreover, the authors in [28] adapted HFSL to intrusion detection systems, considering the reliability of split information in the sharing process. To strike a balance between latency and performance, optimization was proposed in [29] by jointly optimizing client selection, model splitting, and bandwidth allocation policies. Recent work [30] analyzed and optimized the HFSL under multi-tier systems, improving the flexibility of model splitting. An asynchronous framework that enabled personalized model splitting and aperiodic model aggregation was proposed in [31] to minimize the long-term average training latency. Moreover, HFSL can also introduce differential privacy and other security mechanisms under the premise of ensuring learning efficiency [32,33]. These studies indicate that HFSL can combine the low local computational load of SL with the collaborative training ability of FL.
With regard to HFSL, there is a practical issue that has not been fully considered in previous works. In particular, the current HFSL framework is trained under the presumption that a central server has complete control over learning, which is obviously difficult to achieve due to the fact that the communication and computing power of the central server are limited. In particular, when the hardware of the central server fails, the local model of the device will lose the object of model uploading, resulting in extremely severe stagnation of the training process. To solve this issue, semi-decentralized edge learning frameworks were recently proposed in [34,35,36], which can greatly improve the robustness of the training process by performing model aggregation among various edge servers without a central server. Specifically, to reduce the consumption of spectrum resources, an adaptive control technique combining edge aggregation with device-to-device (D2D) technologies was proposed in [34]. Moreover, under the multiple edge server scenario, a tradeoff between training effectiveness and energy consumption was considered in [35]. Additionally, convergence performance of the global model in the case of decentralized architecture was analyzed in [36]. HFSL can be integrated with a semi-central architecture by reorganizing the local model update process into the interaction process between devices and edge servers. However, this combination is not simple to achieve and will create new challenges. On the one hand, adding the model splitting mechanism under a decentralized architecture needs to be redesigned according to the characteristics of each device in order to improve the training efficiency with limited wireless resources. On the other hand, it is difficult to describe the convergence performance of HFSL in a scenario of multiple edge servers accurately, and there is a lack of correspondence between training efficiency and splitting strategy. Therefore, we need to design an efficient training mechanism that includes model splitting and device association, where a semi-decentralized hybrid federated split learning (SD-HFSL) framework is designed.
In this paper, the considered SD-HFSL framework can use SL to reduce the computational load of FL devices with intra- and inter-aggregations among multiple edge servers. Aiming at maximizing the long-term training efficiency, an online problem of model splitting decisions is formulated. Specifically, considering that the training latency is uncertain in different states of devices, i.e., the communication environment varies across time, and the local computing power changes accordingly. Learning the training latency for each device site precisely with a cold start (i.e., no prior knowledge available) is the first step toward efficient model splitting. Fortunately, to solve this issue, multi-armed bandit (MAB) algorithms have been studied to address the tradeoff between exploration and exploitation in sequential decision-making with uncertain information. The classic MAB algorithm, e.g., upper confidence bound (UCB), is concerned with learning the single optimal action among a set of candidate actions with unknown rewards [37]. Using the known information adequately, contextual bandits extend the basic MAB to contextual multi-armed bandit (CMAB) [38,39], where the edge servers can observe the context information (i.e., channel state, allocated bandwidth, transmit power, interference) of device sites for the training latency estimation, especially local computing power estimation. Since the problem of contextual bandits is already much more common and difficult than the basic MAB, this paper tackles solutions based on the framework of CMAB. Different from the previous works [38,39], this paper can merge local computing power evaluation with the training process by considering the training, exploration, and exploitation phases jointly. Meanwhile, we investigate multiple servers with incomplete information and compare them with the existing works of HFSL. Finally, the considered SD-HFSL framework based on the proposed scheme can improve learning efficiency, even with limited resources and unknown information. As summarized in Table 1, the main technical distinction of this work is not merely combining FL and SL, but jointly considering three coupled aspects that are usually treated separately, including semi-decentralized aggregation among multiple edge servers, three-part split training without label uploading, and context-aware online optimization of both split points and device–server association under unknown latency.
As such, the main contributions of this paper are as follows.
  • We propose a novel SD-HFSL framework over wireless networks, where multiple edge servers are deployed, and each of them can coordinate a device cluster with splitting-based local model updating. Moreover, the edge models can be periodically updated based on intra-cluster model aggregation and inter-cluster model aggregation. According to the analysis results of convergence performance, aiming at maximizing the long-term training efficiency, an online optimization problem of model splitting and device association is formulated.
  • An online decision-making algorithm based on the framework of CMAB is proposed, which allows the edge servers to observe the context information of device sites for training latency estimation. Meanwhile, combined with the evaluated information, devices can update the model splitting and association decisions according to the estimated context-dependent latency through exploration and exploitation in sequential decision-making under uncertainty. Meanwhile, we prove that the proposed algorithm can provide a provable performance, achieving sublinear regret compared to an oracle algorithm that knows the expected training latency.
  • Our experiments adapt several model structures, including AlexNet, VGG16, and ResNet18, and present several comparison algorithms based on the existing works. The simulation results show that the proposed algorithm achieves lower training latency and higher test accuracy in the considered settings, especially when prior latency information is unavailable.
The organization of this paper is structured as follows. The system model with convergence analysis is presented in Section 2. The long-term optimization problem is introduced in Section 3. The details of the proposed online algorithm for training efficiency improvement are introduced in Section 4. Finally, we present extensive experimental results in Section 5, and the conclusions are drawn in Section 6.

2. System Model

2.1. SD-HFSL Framework

The proposed SD-HFSL framework is shown in Figure 1, which consists of a set of edge servers S = { 1 , 2 , , S } and a set of devices K = { 1 , 2 , , K } .
Each device k K has its local dataset { x k , i , y k , i } i = 1 D k with D k training samples, where x k , i and y k , i are the i-th training data and the corresponding training label, respectively. Given the training round set T = { 1 , 2 , , T } , by performing T rounds of multi-devices collaborative learning, our goal is to find the optimal global model w ¯ ( T ) from the trained edge model set W ¯ ( T ) = { w ¯ 1 ( T ) , w ¯ 2 ( T ) , , w ¯ S ( T ) } that can minimize the global training loss, i.e.,
min w ¯ ( T ) W ¯ ( T ) F ( w ¯ ( T ) ) = k K | D k | f k ( w ¯ ( T ) ) k K | D k | ,
where f k ( w ¯ ( T ) ) is the local loss of device k with edge model w ¯ ( T ) and can be evaluated at the end of each training round.
The main notation used in the system model is summarized in Table 2.
Specially, compared with the training process in traditional semi-decentralized FL [40], the characteristic of the considered SD-HFSL framework is that we redesign the device and edge server model interaction process, assuming that the trained local model on the device can be split to offload part of the computation to the associated edge server. For instance, we design a three-part splitting strategy without label sharing [26], where the DNN is beyond the execution capacity of the device and can be split into three parts, namely part a, part b, and part c. It is divided into three parts because we consider that in the case of model splitting, the labels of devices do not leave the local area in the gradient descent calculation, so as to improve the privacy protection capabilities. We note that keeping labels locally does not eliminate all privacy risks because intermediate features and back-propagated gradients may still contain information about local samples. Therefore, the proposed framework focuses on reducing label exposure and communication/computation latency, while stronger protection can be incorporated by adding feature perturbation, differential privacy noise, or secure aggregation to the exchanged activations and gradients.
Then, in each training round t, the key steps of the SD-HFSL framework include local model updates, intra-cluster model aggregation, and inter-cluster model aggregation.
(1) Local Model Updates: Considering the case of model splitting, the initial parameter w ( t ) of the device k in training round t can be written as w k ( t ) = { w k a ( t ) , w k b ( t ) , w k c ( t ) } , where only the model parameters of part a and part c are downloaded to devices. Since the model in splitting is usually large in scale and occupies more computing resources, we adopt parallel SGD with fast aggregation, in which the local model w k ( t ) obtained by device k is updated as
w k ( t ) = w k ( t 1 ) η g k ( ζ k ( t ) , w k ( t 1 ) ) ,
where g ( ζ k ( t ) , w k ( t 1 ) ) is the gradient computed on the batch of randomly-sampled local training dataset ζ k ( t ) with model parameter w k ( t 1 ) , and η is the learning rate. Moreover, the parameter update for devices with splitting is performed based on the vanilla SL without label sharing. Specifically, in the forward propagation of SL, w k a ( t ) is executed locally and the output feature is uploaded to the associated edge servers for the calculation of w k b ( t ) . Then, the output of the edge server is downloaded by the device for the execution of w k c ( t ) . Similarly, in the backward propagation, the gradients of part c, part b and part a are calculated in order, denoted as g k c ( w k ( t ) ) , g k b ( w k ( t ) ) , and g k a ( w k ( t ) ) , respectively.
(2) Intra-cluster Model Aggregation: When the local models are updated, each device can upload its complete or partial model parameters to the associated edge server, performing intra-cluster model aggregation to obtain the edge mode w ˜ s ( t ) , i.e.,
w ˜ s ( t ) = k V s ( t ) D k w k ( t ) k V s ( t ) D k ,
where the set of devices associated with the s-th edge server and successfully participating in training round t is denoted as V s ( t ) . Then, the updated edge models can be broadcast to the associated devices for the following local model updates in the current training round.
(3) Inter-cluster Model Aggregation: When the edge model is updated, each edge server can upload its model parameters to the associated edge servers, performing inter-cluster model aggregation, i.e.,
w ˜ s ( t + 1 ) = k V s ( t ) D k w k ( t ) + s C s ( t ) k V s ( t ) D k w k ( t ) k V s ( t ) D k + s C s ( t ) k V s ( t ) D k ,
where C s ( t ) is the set of edge servers that are placed in the converging area of edge server s with successful model interaction in training round t.
Finally, at the end of each training round, the updated edge models of edge servers are transmitted to the associated devices to perform the next round of training. As the complexity of the model increases, it is usually required to perform many training rounds to obtain the desired learning performance.

2.2. Latency Model

The latency of the SD-HFSL framework consists of forward propagation and back propagation. Meanwhile, the single-round training process involves multiple stages of model transmission and computation.
(1) Transmission Latency: The number of divisible layers contained in a model is denoted as I max . Then, let 1 I k a , b ( t ) I max 2 and I k a , b ( t ) < I k b , c ( t ) I max 1 be the two breakpoints of the breakpoints for device k in training round t, corresponding to the model, divided into three parts. In addition, if the local model of device k is not split, we can derive that I k a , b ( t ) = I k b , c ( t ) = 0 . To avoid ambiguity between association and successful participation, we use x k , s ( t ) to denote the device–server association before training latency is evaluated. After τ k ( t ) is obtained, z k ( t ) denotes whether device k satisfies the latency budget, and a k , s ( t ) = x k , s ( t ) z k ( t ) denotes effective participation in aggregation and utility evaluation.
In the forward propagation of device k, denote T k U ( t ) = { τ k U , a , b ( t ) , τ k U , b , c ( t ) } as the uploading latency set, where τ k U , a , b ( t ) and τ k U , b , c ( t ) are the latencies of uploading the output features of part a to part b, and part b to part c, respectively. Mathematically, we can evaluate τ k U , a , b ( t ) and τ k U , b , c ( t ) with feature size M k U , a , b ( t ) and M k U , b , c ( t ) as
τ k U , a , b ( t ) = I ( I k a , b ( t ) ) s S x k , s ( t ) M k U , a , b ( t ) W k , s a , b ( t ) log 2 1 + p k ( t ) H k , s ( t ) n k intra-cluster ( t ) + n k inter-cluster ( t ) + σ 2 + ( 1 I ( I k a , b ( t ) ) ) τ k U , 0 ( t )
and
τ k U , b , c ( t ) = I ( I k b , c ( t ) ) s S x k , s ( t ) M k U , b , c ( t ) W ˜ s , k b , c ( t ) log 2 1 + p ˜ s , k ( t ) H ˜ s , k ( t ) n ˜ s intra-cluster ( t ) + n ˜ s inter-cluster ( t ) + σ 2 ,
respectively, where I ( · ) is the indicator function that determines whether there is model splitting, τ k U , 0 ( t ) is the latency for forward propagation without considering model splitting, W k , s a , b ( t ) is the bandwidth allocated to the device k, p k ( t ) refers to the transmit power of device k, H k , s ( t ) is the channel gain between the device k and its associated edge server, n k intra-cluster ( t ) is the intra-cluster interference caused by the devices associated with the same edge server, n k inter-cluster ( t ) is the inter-cluster interference caused by the other elements in the system with the same frequency, and σ 2 is the additive white Gaussian noise (AWGN). Similarly, W ˜ s , k b , c ( t ) is the bandwidth allocated to the edge server to transmit model parameters to device k, p ˜ s , k ( t ) refers to the transmit power of edge server s, H ˜ s , k ( t ) is the channel gain between the device k and its associated edge server s, and n ˜ s intra-cluster ( t ) and n ˜ s inter-cluster ( t ) are the intra- and inter-cluster interferences for edge server s. Similarly, the transmission latency in back propagation is denoted as T k D ( t ) = { τ k D , c , b ( t ) , τ k D , b , a ( t ) } . Assuming the channel and noise environment of the system in the process of feature uploading and gradient downloading are unchanged in the same training round, let M ¯ k D , c , b ( t ) and M ¯ k D , b , a ( t ) be the size of the gradients determined by the split points for device k in training round t, then we can evaluate τ k D , c , b ( t ) and τ k D , b , a ( t ) as
τ k D , c , b ( t ) = I ( I k b , c ( t ) ) M ¯ k D , c , b ( t ) M k U , b , c ( t ) τ k U , b , c ( t )
and
τ k D , b , a ( t ) = I ( I k a , b ( t ) ) M ¯ k D , b , a ( t ) M k U , a , b ( t ) τ k U , a , b ( t ) ,
respectively.
(2) Computing Latency: Denote C F , l and C B , l as the number of floating point operations (FLOPs) required by the l-th layer in the forward and backward propagation. Moreover, the local computing power in cycle/s of device k and edge server s are denoted as f k ( t ) and f ˜ s ( t ) , respectively. Then, the computing latency neural networks in forward propagation for part a, part b, and part c can be evaluated as
τ k C , a ( t ) = I ( I k a , b ( t ) ) l = 1 I k a , b ( t ) C F , l f k ( t ) + ( 1 I ( I k a , b ( t ) ) ) τ k C , 0 ( t ) ,
τ k C , b ( t ) = I ( I k b , c ( t ) ) s S x k , s ( t ) l = I k a , b ( t ) + 1 I k b , c ( t ) C F , l f ˜ s ( t ) ,
and
τ k C , c ( t ) = I ( I k b , c ( t ) ) l = I k b , c ( t ) + 1 I max C F , l f k ( t ) ,
respectively, where τ k C , 0 ( t ) can be the computing latency for forward propagation without considering model splitting in device k. Similarly, let τ k B , 0 ( t ) be the computing latency for back propagation without considering model splitting in device k. Then, the computing latency in back propagation can be evaluated as
τ k G , c ( t ) = I ( I k b , c ( t ) ) l = I k b , c ( t ) + 1 I max C B , l f k ( t ) + ( 1 I ( I k a , b ( t ) ) ) τ k B , 0 ( t ) ,
τ k G , b ( t ) = I ( I k b , c ( t ) ) s S x k , s ( t ) l = I k a , b ( t ) + 1 I k b , c ( t ) C B , l f ˜ s ( t ) ,
and
τ k G , a ( t ) = I ( I k a , b ( t ) ) l = 1 I k a , b ( t ) C B , l f k ( t ) ,
respectively.
In addition, similar to traditional FL, the SD-HFSL framework can also be designed for synchronous aggregation. The dominant latency terms are the split forward/backward computation and feature/gradient transmission. The aggregation, inter-edge exchange, model broadcast, and edge queuing delays are therefore omitted in the main expression for analytical tractability. If these components are non-negligible in a practical deployment, they can be added as an extra term τ agg ( t ) + τ inter ( t ) + τ bc ( t ) + τ q ( t ) without changing the proposed online decision structure, where τ agg ( t ) denotes the intra-cluster aggregation latency, τ inter ( t ) denotes the inter-edge model exchange latency, τ bc ( t ) denotes the model broadcast latency from edge servers to devices, and τ q ( t ) denotes the edge-server queuing latency in training round t.
Thus, without considering the latency of model aggregation, inter-cluster model interaction, and model broadcast, we can evaluate the actual training latency of the system in round t as
τ ( t ) = max k K τ k ( t ) ,
where
τ k ( t ) = τ k C , a ( t ) + τ k U , a , b ( t ) + τ k C , b ( t ) + τ k U , b , c ( t ) + τ k C , c ( t ) + τ k G , c ( t ) + τ k D , c , b ( t ) + τ k G , b ( t ) + τ k D , b , a ( t ) + τ k G , a ( t ) .
Moreover, since the value of 0–1 variable a k , s ( t ) is related to the successful participation in training, we can set the maximum training latency τ max ( t ) to avoid the existence of equipment with extremely poor latency performance, i.e.,
z k ( t ) = 1 , τ k ( t ) τ max ( t ) , 0 , τ k ( t ) > τ max ( t ) ,
and the actual device–server participation variable is a k , s ( t ) = x k , s ( t ) z k ( t ) . This separation removes the circular dependence between association selection and latency-feasible participation.
We can observe that the model splitting strategy and the device association strategy can directly affect the defined training latency, which is affected by multi-dimensional factors such as bandwidth, transmit power, local computing power, and interference. Meanwhile, enhancing learning performance constitutes one of the primary objectives of SD-HFSL. Nevertheless, the influence of optimizing training latency on learning performance warrants additional investigation.

2.3. Convergence Analysis

We conducted the convergence analysis of SD-HFSL to quantify the impact of training latency and considered the following three standard assumptions on the loss functions, which are consistent with the FL literature [27,30]. These assumptions are adopted to obtain a tractable upper bound for the semi-decentralized split aggregation process in resource-constrained IoT networks. They are standard in FL convergence analysis and allow us to explicitly connect device participation, inter-edge aggregation reliability, and the loss bound.
Assumption 1.
Each gradient g k ( w ) of the local loss f k ( w ) is Lipschitz continuous with a positive constant L, i.e., g k ( w ) g k ( w )   L w w . w , w .
Assumption 2.
Each local loss f k ( w ) is strongly convex with a positive constant μ, i.e., f k ( w ) f k ( w ) + ( w w ) T g k ( w ) + μ 2 w w 2 , w , w .
Assumption 3.
Each local gradient g k ( w ) satisfies ξ 1 2 g k ( w ) 2 ξ 2 2 with ξ 1 , ξ 2 > 0 , w .
Theorem 1.
Denote the global optimal model as w , then the upper bound of the training loss on edge server s can be expressed as
E ( F s ˜ ( w ˜ s ( t + 1 ) ) F ˜ s ( w ) ) 1 1 μ L t + 1 4 L ξ 2 2 k K D k N U min μ k K D k + 1 μ L t + 1 E F s ( w ¯ s ( 1 ) ) F s ( w ) ,
where w ˜ s ( t ) = k V s ( t ) D k w k ( t ) k V s ( t ) D k . Here, u k D ( t ) denotes the probability that device k successfully participates in the current round under the latency budget, u s , s E ( t ) denotes the reliability of inter-edge model exchange from edge server s to s, and N U ( t ) denotes the amount of successfully aggregated data, including both intra-cluster and inter-cluster contributions.
N U min = min t T N U ( t ) = min t T k V s ( t ) u k D ( t ) D k + s C s ( t ) k V s ( t ) u k D ( t ) u s , s E ( t ) D k .
According to Theorem 1, increasing the device participation probability or increasing the reliability of communication between edge servers in N U min can reduce the upper bound of training loss (see Appendix A). Moreover, it is worth noting that the factors affecting the learning performance among devices are not only the amount of locally owned data, but also the convergence parameters, such as L and μ . Specially, we define the local gradient of device k as g k ( t ) rather than g k ( ζ k j ( t ) , w k ( j 1 ) ( t ) ) , which can represent the average gradient or the gradient based on local complete data. This simplification has little effect on the results of the analysis, since this paper focus on the cost of edge servers rather than the local updates among the devices. In particular, the data held by the devices that do not have a low local loss based on the current edge model should be more important for improving learning performance. Finally, in light of the analytical findings of the convergence performance, we may rebuild the objective function using the acquired upper limit. It should be emphasized that the above theorem provides theoretical insight under simplified convex assumptions. The DNNs used in the experiments, such as AlexNet, VGG16, and ResNet18, are non-convex. Therefore, the bound should not be interpreted as a complete convergence guarantee for these neural networks. Instead, it explains why reducing latency and increasing latency-feasible participation are useful design principles. The experimental results then provide empirical evidence that the same principles improve SD-HFSL performance in practical non-convex training.

3. Problem Formulation

The considered problem for SD-HFSL is a sequential decision-making problem, and the goal is to maximize the training efficiency. Specifically, to jointly optimize the learning performance and training latency, the training efficiency can be evaluated as the decrease in training losses per unit of time. Hence, for each device k, the training efficiency can be defined as
u k ( t ) = s S a k , s ( t ) F ˜ s ( w ˜ s ( t 1 ) ) F ˜ s ( w ˜ s ( t ) ) τ k ( t ) ,
where F ˜ s ( w ˜ s ( t 1 ) ) F ˜ s ( w ˜ s ( t ) ) indicates the reduction of training loss under the associated edge model.
Then, the system utility to represent the training efficiency can be expressed as
U ( t ) = k K u k ( t ) .
Different from common optimization problems, this paper considers the unknown randomness in local computing power changes, resulting in training latency is uncertain in different states of devices, which can be evaluated based on the context information C ^ ( t ) , including channel state, allocated bandwidth, transmit power, interference, etc. Then, the formulation of the online maximization problem with model splitting strategy I and device association strategy X can be expressed as
(22a) max { I , X } t = 1 T U ( I ( t ) , X ( t ) , C ^ ( t ) ) (22b) s . t . 1 I k a , b ( t ) I max 2 , k K , t T , (22c) I k a , b ( t ) < I k b , c ( t ) I max 1 , k K , t T , (22d) x k , s ( t ) { 0 , 1 } , k K , s S , t T , (22e) s S x k , s ( t ) 1 , k K , t T , (22f) k K x k , s ( t ) A s max , s S , t T ,
where the model splitting strategy is coupled with the device association strategy, the maximum number of devices associated with edge server s is defined as A s max , and each device can be associated with, at most, one edge server. The latency-feasible variable z k ( t ) and the effective participation variable a k , s ( t ) = x k , s ( t ) z k ( t ) are then evaluated after the candidate association and split decision are determined.
There are two challenges to be addressed to solve this online maximization problem. On the one hand, precise training latency estimation is necessary for the model splitting decision to improve the expected utility when implemented. Since the system evaluates long-term performance and is based on cold starts, it cannot utilize historical information and can only continuously estimate the training latency of the device from multiple rounds. On the other hand, the relationship between training loss and optimization variables in the utility function can not accurately describe the effect of the splitting strategy on learning performance.
To solve these issues, we examine the convergence of the introduced framework under the previous analysis results in [10]. Specially, with limited latency budget τ max , allowing more devices to participate in training can accelerate the convergence rate of training loss, i.e.,
F ˜ s ( w ˜ s ( t 1 ) ) F ˜ s ( w ˜ s ( t ) )   k V s ( t ) a k , s ( t ) D k ϖ 2 + s C s ( t ) k V s ( t ) a k , s ( t ) D k ϖ 2 ,
where ϖ 2 g k ( w ) 2 is the upper bound of the local gradient. Equation (23) uses the effective participation variable a k , s ( t ) and therefore counts the devices that successfully contribute to the model update, while the residual term in Theorem 1 is reduced when this successful data mass increases.
Then, the right side of the proportional Formula (23) is brought into the utility function (21) and is transformed into a problem that can be solved with a deterministic solution.

4. Joint Model Splitting and Device Association

We assume that only splitting and association strategies related to transmission latency can be further optimized, while other parameters, such as bandwidth allocation, channel gain, transmit power, and co-frequency interference are predetermined as the context information of the current training round. Specifically, we formulate the proposed long-term model splitting problem as a CMAB with online decisions. The strategy is “online” because the training latency among devices and edge servers is unknown in advance, and is evaluated based on the context associated with the system. Moreover, given the estimated latency information, we propose a joint splitting and association algorithm to further improve system utility.

4.1. Online Latency Estimation Based on CMAB

In CMAB, assuming that the existing control center can observe the context of the system at the beginning of each training round before performing model updates. Let c k ( t ) c ( t ) be the context of device k observed in training round t, where c ( t ) is the context space and can be limited by quantitative coding. Similarly, we denote the context of edge server s as c ˜ s ( t ) c ( t ) . Then, the context of the system is collected in
c ( t ) = { c 1 ( t ) , c 2 ( t ) , , c K ( t ) , c ˜ 1 ( t ) , c ˜ 2 ( t ) , , c ˜ S ( t ) } .
The local computing power { f k ( t ) , f ˜ s ( t ) } of device k and edge server s is a random variable parameterized by the context { c k ( t ) , c ˜ s ( t ) } . Hence, we can rewrite the computing power vector in a context-aware form, i.e.,
f ( t ) = { f 1 ( c 1 ( t ) ) , f 2 ( c 2 ( t ) ) , , f K ( c K ( t ) ) , f ˜ 1 ( c ˜ 1 ( t ) ) , f ˜ 2 ( c ˜ 2 ( t ) ) , , f ˜ S ( c ˜ S ( t ) ) } .
Moreover, let ψ k ( c k ( t ) ) E [ f k ( t ) c k ( t ) ] and ψ ˜ s ( c ˜ s ( t ) ) E [ f ˜ s ( t ) c ˜ s ( t ) ] be the expected values of the unknown local computing power of device k and edge server s, respectively. Then, the vector of the expected local computing power is given by
ψ ( t ) = { ψ 1 ( c 1 ( t ) ) , ψ 2 ( c 2 ( t ) ) , , ψ K ( c K ( t ) ) , ψ ˜ 1 ( c ˜ 1 ( t ) ) , ψ ˜ 2 ( c ˜ 2 ( t ) ) , , ψ ˜ S ( c ˜ S ( t ) ) } .
The core of the CMAB approach is the use of contextual information c ( t ) and computing power f ( t ) to simulate the actual training latency. In practice, the control center does not have a priori knowledge of the training latency affected by the local computing power. Hence, the joint splitting and association strategy is optimized based on the estimation results, which can be replaced by ψ ( t ) in each training round. More specifically, the context is the quantized vector c ( t ) , the action is the joint decision { I ( t ) , X ( t ) } , and the reward is the system utility U ( t ) defined in (21). The oracle policy is the policy that knows the expected computing capability ψ ( t ) for every context and selects the best feasible joint decision in each round.
The context-aware online optimization algorithm designed in the framework of CMAB is executed simultaneously with the model training process. In each time slot or training round t, sequential decision-making is performed at a hypothetical control center as follows: (1) The control center observes the context set c ( t ) of all devices and edge servers. (2) The control center determines the model splitting decision I ( t ) and the device association strategy X ( t ) based on the observed latest computing power information ψ ( t ) in the current training round. (3) The optimized strategy is applied for model training, where if I k a , b ( t ) = I k b , c ( t ) = 0 , and device k can update its local model locally with complete model transfer to the associated edge servers; otherwise, three-part training is performed. (4) At the end of each training round, the actual local computing power among devices and edge servers is observed, which is then used to update the computing power estimation ψ ( t ) with the observed context c ( t ) . Especially, if the latency budget cannot be satisfied, the local computation time concerned is upper-bounded to meet τ k ( t ) = τ max ( t ) .
To make the context-aware demand estimation tractable, the context space scope needs to be designed to be limited. To be specific, the system context c ( t ) can be divided into small hypercubes with context partition. Meanwhile, the state of each device or edge server in different training rounds will be different, especially considering the complex communication environment and interference that is difficult to predict in advance. Therefore, the computing power estimation process needs to be performed separately on each device and edge server with fine-grained induction. Then, a key issue is estimating the local computing power pattern for context hypercubes at each device or each edge server. The proposed online optimization algorithm runs with a cold start, where local computing power can only be estimated based on the context of the hypercubes observed in each training round with an accumulation of historical information. In particular, to estimate the number of times that device k or edge server s contributes local computing power up to training round t, the control center has two types of counters O k ( c k ( t ) ) and O ˜ s ( c ˜ s ( t ) ) , with different contexts. The control center also keeps two experiences, E k ( c k ( t ) ) and E ˜ s ( c ˜ s ( t ) ) , from hypercube in training round t to store the context-power pair { c ( t ) , f ( t ) } . Then, given the experiences, the local computing power estimated for device k and edge server s are obtained by estimator θ , i.e.,
ψ k ( c k ( t ) ) = θ ( E k ( c k ( t ) ) , O k ( c k ( t ) ) ) ,
and
ψ ˜ s ( c ˜ s ( t ) ) = θ ( E ˜ s ( c ˜ s ( t ) ) , O ˜ s ( c ˜ s ( t ) ) ) ,
respectively. In particular, in this paper, we consider an unbiased estimation θ ( · ) using maximum likelihood estimation, i.e.,
ψ k ( c k ( t ) ) = c E k ( c k ( t ) ) f k ( c ) O k ( c k ( t ) ) ,
and
ψ ˜ s ( c ˜ s ( t ) ) = c E ˜ s ( c ˜ s ( t ) ) f ˜ s ( c ) O ˜ s ( c ˜ s ( t ) ) .
Algorithm 1 illustrates the pseudo code of the online optimization algorithm.
Specifically, in each training round t, the algorithm is in either an exploration phase or an exploitation phase. To determine the phase, the most important criterion is whether the local computing power corresponding to the current context information is fully explored. Hence, the sets of under-explored devices and edge servers are denoted as K ue ( t ) = { k K , O k ( c k ( t ) ) O k ( t ) } and S ue ( t ) = { s S , O ˜ s ( c ˜ s ( t ) ) O ˜ s ( t ) } , respectively, where O ( t ) = { O k ( t ) , O ˜ s ( t ) } is a threshold set to determine whether the historical data of devices and edge servers can enter the exploitation stage. In particular, since the training latency affected by the local computing power is the final expression in the proposed problem, we can evaluate the training latency based on the joint splitting and association strategy indirectly. In addition, since the combination of device k K and edge server s S can be viewed as an arm, according to the sets of under-explored devices and edge servers, the procedures of exploration and exploitation are as follows.
(1) Exploration If the under-explored set is non-empty, device k V s ( t ) and its associated edge server s in the under-explored set have two cases. In case 1, for edge server s, the number of devices associated with the current training round satisfies k K ue a k , s ( t ) = A s max , s S , where the remaining devices k K ue ( t ) / V s ( t ) in the collection can be removed from the association policy in the current arm. In case 2, when the under-explored devices and edge servers satisfy k K ue a k , s ( t ) < A s max , s S . In this case, the devices can greedily associate existing edge servers in order.Meanwhile, since we have defined the latency budget τ max , the latency that exceeds the budget during the exploration process is always denoted as τ k = τ max .
Algorithm 1 Context-Aware Online Optimization Algorithm
  1:
 Input: K , S , T, context partition, exploration thresholds, and latency budget τ max .
  2:
 Output: online splitting and association decisions { I ( t ) , X ( t ) } t = 1 T .
  3:
 Initialization. initialize O k ( c k ( t ) ) = 0 , O ˜ s ( c ˜ s ( t ) ) = 0 , k , s , t , and choose an estimator θ based on maximum likelihood estimation.
  4:
  for t = 1 , 2 , , T do
  5:
    Observe the context c ( t ) and counter O ( t )
  6:
    Evaluate under-explored devices and edge servers
  7:
    if K ue ( c ( t ) ) S ue ( c ( t ) ) then ▷ Exploration
  8:
    else
  9:
    Solving the problem in (22) ▷ Exploitation
10:
    end if
11:
    for each devices k K ue ( t ) do
12:
   Update counter O k ( c k ( t ) ) = O k ( c k ( t ) ) + 1
13:
   Update estimations ψ k ( c k ( t ) ) = c E k ( c k ( t ) ) f k ( c ) O k ( c k ( t ) )
14:
   Update experiences E k ( c k ( t ) ) = E k ( c k ( t ) ) { c k ( t ) , ψ k ( c k ( t ) ) }
15:
    end for
16:
    for each edge server s S ue ( t ) do
17:
   Update counter O ˜ s ( c ˜ s ( t ) ) = O ˜ s ( c ˜ s ( t ) ) + 1
18:
   Update estimations ψ ˜ s ( c ˜ s ( t ) ) = c E ˜ s ( c ˜ s ( t ) ) f ˜ s ( c ) O ˜ s ( c ˜ s ( t ) )
19:
   Update experiences E ˜ s ( c ˜ s ( t ) ) = E ˜ s ( c ˜ s ( t ) ) { c ˜ s ( t ) , ψ ˜ s ( c ˜ s ( t ) ) }
20:
    end for
21:
   Perform joint model splitting and device association strategy
22:
  end for
23:
  Return  { I ( t ) , X ( t ) } .
(2) Exploitation: If the explored set is non-empty, we can optimize the joint problem of model splitting and device association strategy based on the current estimated value ψ ( t ) . Finally, given the feedback latency information, the counter, estimations, and experiences are also updated. Then, the model splitting problem can be decoupled from the device association problem, i.e.,
(31a)   max { I ( t ) } U ( X ( t ) , C ^ ( t ) ) (31b) s . t .   ( 22 b ) ,   ( 22 c ) ,
and
(32a)   max { X ( t ) } U ( I ( t ) , C ^ ( t ) ) (32b) s . t .   ( 22 d ) ( 22 f ) ,
respectively. Hence, given a fixed device association strategy, the optimal model splitting can be evaluated based on the exhaustive search. Since the model splitting strategy between the device and the edge server is carried out independently, we can infer that the complexity for the problem (31) is O ( ( K I max ) 2 ) . Meanwhile, given the fixed model splitting strategy, the evaluated training latency among devices and edge servers can be evaluated. Then, a utility matching matrix H , including the latency from the devices to the edge servers, is designed. Since each edge server can associate multiple devices, the original association is a many-to-one assignment. To use the KM algorithm, edge server s is expanded into A s max virtual server slots, each of which has the same utility weight as device k. The resulting matrix has K device nodes and s S A s max virtual slots. A one-to-one matching over the virtual slots is therefore equivalent to the original capacity-constrained association because each device is matched to, at most, one slot, and no edge server receives more than A s max devices because it owns only A s max slots. If the two sides have different cardinalities, dummy nodes with zero utility are added to obtain a square matrix.
For a device–slot pair corresponding to edge server s, the matching weight is defined as the estimated utility, e.g., 1 / τ k or the latency-normalized utility in (21), after the split decision is fixed.
The model splitting strategy and device association strategy are performed iteratively until the objective function is convergent, where the convergence criterion for a given threshold ϵ is defined as U ( X ( t ) , C ^ ( t ) ) U ( I ( t ) , C ^ ( t ) ) ε and the strategies in each iteration j are denoted as I ( j ) ( t ) and X ( j ) ( t ) , respectively.
Moreover, the performance of online decision-making is measured by utility loss, termed regret, compared to the utility achieved by the oracle policy. Let U ( c ( t ) ) be the expected utility achieved by the oracle policy under context c ( t ) , and let U ( t ) be the utility achieved by the proposed online policy. The cumulative regret is
R ( T ) = t = 1 T U ( c ( t ) ) U ( t ) .
Under bounded utility and a finite context partition, the regret consists of exploration regret and exploitation regret. For | C | context hypercubes and an exploration threshold growing as O ( t ρ log t ) , 0 < ρ < 1 , the number of forced exploration rounds is sublinear in T. The exploitation regret is also sublinear because the sample-mean estimates of the context-dependent computing capabilities converge to their expectations. Following the standard finite-partition CMAB concentration argument in [38], which bounds forced exploration and estimation error separately, the expected regret is upper bounded by
E [ R ( T ) ] C 1 ( K + S ) | C | T ρ log T + C 2 T 1 ρ / 2 ,
where C 1 and C 2 are constants related to the bounded utility range and estimation error. Thus, E [ R ( T ) ] / T 0 as T , which indicates sublinear regret. Larger K, S, context dimension, or finer context partition increases the constants and slows convergence, which is also observed in the simulations.

4.2. Complexity Optimization for Online Learning

It is worth noting that the complexity of the KM algorithm in (32) is O ( max { K , S } 3 ) , thus, it is more complicated to use the KM algorithm in each exploitation stage. To solve this issue, as shown in Algorithm 2, we can use a simple greedy algorithm with complexity O ( K ) to solve device association in the first few exploitation stages. Then, a joint optimization algorithm is adopted when the estimates are stabilized. In particular, we set a threshold κ , and if t κ , we allow each device to be independently associated with the edge server based on its optimal training latency until the maximal association constraint is satisfied. Moreover, even if the model splitting strategy can be selected among the limited optimization results, the complexity of the iterative optimization strategy can not be ignored. To solve this issue, considering the model splitting process, according to the transmission and computing processes, the model splitting strategy for exploration can be divided into two cases. (1) The device completes the model training locally without model splitting. (2) Only the first and last layer neural networks are trained locally at the device, and the remaining layers are trained at the edge server. Finally, according to the estimated local computing power of the current round, a better model splitting strategy for exploration is chosen from the above two cases to achieve lower complexity.
Algorithm 2 Joint Model Splitting and Device Association Algorithm
  1:
  Input: K , S , t, C ^ ( t ) , ψ k ( c k ( t ) ) , ψ ˜ s ( c ˜ s ( t ) ) , A s max , κ , and ε .
  2:
  Output: splitting strategy I ( t ) and association strategy X ( t ) .
  3:
  Initialization. j = 0 , I ( t ) , X ( t ) .
  4:
  Repeat.
  5:
    if t κ
  6:
      for k = 1 , 2 , , K
  7:
        Ergodic search I k a , b ( t ) and I k b , c ( t ) with fixed association strategy X ( t ) and obtain the temporary splitting strategy I ( t ) = I ( j ) ( t )
  8:
      else
  9:
        Perform model splitting from two fixed strategies
10:
      end for
11:
  Update the current latency matching matrix H
12:
  if t κ
13:
      Obtain the association strategy X ( t ) = X ( j ) ( t ) based on KM algorithm with fixed model splitting strategy I ( t )
14:
    else
15:
      Obtain the association strategy X ( t ) = X ( j ) ( t ) based on greedy algorithm with fixed model splitting strategy I ( t )
16:
    end if
17:
     j = j + 1
18:
  Until U ( X ( t ) , C ^ ( t ) ) U ( I ( t ) , C ^ ( t ) ) ε .
19:
  Return. I ( t ) , X ( t ) .

5. Numerical Results

In this section, we present the details of the simulation results and evaluate the performance of the proposed SD-HFSL based on the framework of CMAB [41].

5.1. Experiment Settings

For the simulation results, we assume that there are S = 5 edge servers and K = 25 devices (if not specified) randomly located in a square area with the size of 500 m × 500 m . Moreover, each edge server can associate at most with five devices, i.e., A s max = 5 , s S . In addition, the context space has two dimensions, namely “task workload of edge servers” and “wireless communication environment”. For instance, the context “task workload of edge servers” indicates the case where the devices and edge servers take on other computing tasks, and only a part of local computing power can be used for training. The “wireless communication environment” is the communication rate between devices and edge servers. For reproducibility, the wireless links use distance-dependent path loss with small-scale fading, the transmit powers of devices and edge servers are set to 23 dBm and 30 dBm, respectively, the total bandwidth is 20 MHz and equally divided among active links, and the noise power spectral density is 174 dBm/Hz. All reported curves are averaged over 20 independent trials with random locations, computing powers, and non-IID data partitions. Across these repeated trials, the result variation is small. The relative standard deviation of the latency and utility curves is within about 2.5 % of the mean, and the 95% confidence interval of the final test accuracy is within about ± 0.4 percentage points. Since each figure contains multiple baseline curves, these narrow intervals are visually difficult to distinguish and would reduce readability. This behavior is different from reinforcement learning training curves, where policy exploration often causes much wider fluctuations. Then, to describe the unknown local computing power under different contexts, we can assume that the local computing power of device k and edge server s is uniformly distributed in the interval [ f k min ( c ( t ) ) , f k max ( c ( t ) ) ]   [ f ˜ s min ( c ( t ) ) , f ˜ s max ( c ( t ) ) ] , respectively, where the actual computing power of the device s is on the order of 10 9 cycles/second, and the actual computing power of the edge server s is usually on the order of 10 11 cycles/second, and the upper and lower bounds of computing power vary with the context information. In particular, to reduce the complexity of simulation, we consider four contextual situations that occur at equal intervals over 1000 training rounds, and for each device and edge server pair, the elements in the threshold set O ( t ) are set as 50. Moreover, for the learning task, we consider non-i.i.d. local training data among devices and conduct the experiments using the CIFAR-10 datasets. By default, we train the learning model based on AlexNet, which consists of five convolutional layers, three fully connected layers, and finally the Softmax classification layer, where the batch size is set to 64, and the learning rate is set to 0.02. The number of model splitting points is I max = 8 . Moreover, to simulate the imbalance of the number distribution, we consider that each device has only two types of training samples. The experimental data setup and the main parameters are summarized in Table 3. These values are selected to emulate resource-constrained IoT devices assisted by stronger edge servers. The latency budget and exploration threshold are set to make the system experience both successful and unsuccessful participation events, which is necessary to evaluate online adaptation under incomplete information.
Finally, the proposed algorithm is compared with the following five benchmarks: (1) Oracle algorithm. The latency values between devices and edge servers are known in advance, and the optimal latency is evaluated when all devices can be successfully associated. (2) Greedy algorithm. Based on the existing experience, devices are associated with the edge server with the lowest training latency and set κ = T ; that is, the KM algorithm is not used to optimize the association strategy. (3) UCB algorithm. The expected utility of each local computing power is evaluated over time by enumerating all splitting and association decisions without considering the context information. Moreover, when the association constraint is not satisfied, devices randomly select the edge server. (4) Random. Each device is randomly associated with the edge server. When the edge server association constraint is not satisfied, the device with large training latency is removed. (5) Noncooperative algorithm. Regardless of model splitting, devices perform model training locally. The proposed method also has limitations. It requires enough repeated observations in each context hypercube to obtain reliable estimates, and the matching step may become costly when the number of devices and virtual edge-server slots is very large. In addition, the present simulations focus on latency and learning efficiency rather than attacks on exchanged features or gradients.

5.2. Results and Discussions

In Table 4, to intuitively reflect the impact of the model splitting strategy on training latency, we randomly select a device k in training round t, and define its splitting strategy I k a , b ( t ) and I k b , c ( t ) as I 1 and I 2 , respectively.
From Table 4, we can observe that when there is an obvious difference between the device’s local computing power and the edge server, the device tends to send as many computing tasks as possible to the edge server to reduce the training latency. Specifically, considering the parameter distribution of AlexNet, the training latency can increase significantly when the splitting strategy I 1 2 due to the large computational amount of the second convolution layer. Moreover, because of the maximum training budget τ max , device k is unable to successfully participate in training in this case. Hence, the splitting strategy has a direct impact on the training latency and the number of devices participating in the training, and needs to be fully optimized.
Figure 2 shows the cumulative performance of the proposed algorithm and the baselines. In particular, in Figure 2a, we compare the cumulative training latency t = 1 T τ ( t ) of different algorithms. The results show that, except for the oracle and greedy algorithms, the proposed algorithm can obtain the lowest training latency. In addition, it is interesting that the proposed algorithm has no obvious advantage over the greedy algorithm and the UCB algorithm in the initial training rounds. This is because, to reduce the complexity, the proposed algorithm also completes device association in a greedy way under the exploration phase and has the same execution process as the comparison algorithms. Specifically, when the KM algorithm is taken into account, the advantages of the proposed algorithm in different contexts are constantly amplified. In Figure 2b, we compare the cumulative number of participating devices t = 1 T k K s S a k , s ( t ) . We can observe that our proposed algorithm is also the best, except for the oracle algorithm, due to the fact that we can realize the maximum total matching by the KM algorithm in the utilization phase. Other comparison algorithms cannot deal with the maximum number of association constraints, so more devices cannot participate in the training when the association strategy conflicts. Moreover, in Figure 2c, we evaluate the cumulative system utility t = 1 T k K s S a k , s ( t ) τ ( t ) , considering the training latency and the number of the participating devices. The proposed algorithm obtains a higher cumulative utility than the non-oracle baselines. In addition, in order to further reflect the gap between the proposed algorithm and the optimal strategy, we define the cumulative inability; that is, we calculate the difference between the proposed algorithm and the oracle algorithm in the training latency, the number of participating devices, and the system utility. In Figure 2d–f, it can be seen that after full exploration, the training latency and the system utility of the proposed algorithm have the slowest growing trend, while the number of devices participating in training is almost consistent with the optimal case, which can demonstrate the effectiveness of the proposed context-based estimation strategy.
Moreover, to further explain the reasons for the advantages of our proposed algorithm, we especially compare the proposed algorithm with the greedy and UCB algorithms. Specifically, in Figure 3a, we changed the proportions of devices to edge servers while evaluating the average number of associated devices in training, which can be denoted as t = 1 T k K s S a k , s ( t ) T . We can observe that when the number of devices is small, i.e., K = 25 , and the number of edge servers is large, i.e., S = 10 , more devices can be associated with the ideal edge server, and there is little difference between the proposed algorithm and the greedy algorithm. On the contrary, when the number of terminals is large, i.e., K = 30 , there is an upper bound on the maximum number of associations due to the limit of the maximum number of devices associated in a single edge server, and there is no significant change as the number of devices increases. In addition, we further compare the average training latency t = 1 T τ ( t ) T of the proposed algorithm and the UCB algorithm under different numbers of context types. In particular, we assume that the larger the context index, the longer the training latency of a single training round. Moreover, different contextual situations occur in order per each 250 training rounds. Then, the results show that when the context type is small, the performance of the proposed algorithm is close to that of the UCB algorithm, and the advantages of the proposed algorithm are more significant with the increase of the context types. This is because our proposed algorithm considers the context when estimating training latency, and dynamically updates the model splitting and association strategies under different context backgrounds to improve performance.
Finally, based on the above simulation results, we also trained both VGG16 and ResNet18 networks in the process of verifying learning performance. Specifically, VGG16 consists of 13 convolutional layers and three fully connected layers, which are separated by the maximization pool, and the activation units of all hidden layers use ReLU functions. Moreover, the network structure of ResNet18 consists of 17 convolutional layers and a final fully connected layer, where each basic block consists of two convolution layers and a skip connection. In Figure 4, we evaluate the learning performance of different neural network structures under different numbers of training rounds. The final test accuracy increases when more devices participate in training.
Moreover, in Figure 5, except for the oracle algorithm, we can observe that the proposed algorithm based on different DNNs can obtain higher test accuracy in the same time frames, especially in the case of VGG16.
Moreover, with the increase in neural network complexity, test accuracy and convergence speed can increase simultaneously. Interestingly, although the computational amount of these neural networks is very different, the training latency in the simulation results does not seem to have a large gap. This is because the local computing capacity of the device is weak, considering that the training latency of the edge server cannot completely offset the local computing latency when the model is split.

6. Conclusions

In this paper, we investigated the long-term training efficiency of the SD-HFSL framework. A joint optimization problem of model splitting and device association was formulated based on the convergence performance. Meanwhile, a context-aware online training algorithm was proposed based on the framework of CMAB. We defined the training of the split training process and evaluated the learning performance based on the number of participating devices. The devices and edge servers can observe the context information of device sites for the latency estimation, followed by the iterative optimization based on the evaluated updated information in different contexts. Our experiments used different baselines and model structures to show that the proposed algorithm achieves lower training latency and higher test accuracy in the considered settings, especially when prior latency information is unavailable. Future work will consider privacy protection against feature and gradient leakage and will further evaluate the proposed online algorithm in real-world edge testbeds. Scalable low-complexity matching methods are also needed for larger IoT and 6G networks with fast-varying contexts [42].

Author Contributions

Conceptualization B.X.; methodology, B.X.; software, S.W.; validation, S.W.; formal analysis, X.T.; writing—original draft preparation, B.X.; writing—review and editing, X.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China under Grant U2441226.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

No new data were created or analyzed in this study.

Conflicts of Interest

Shuang Wang is employed by zhengzhou power supply company, state grid henan electric power company. The company played no role in the design of the study, the collection, analysis, or interpretation of data, the writing of the manuscript, or the decision to publish the article. The authors declare no conflicts of interest.

Appendix A. Proof of Theorem 1

According to assumption 1, based on the second-order Taylor expansion of F ˜ s ( w ˜ s ( t + 1 ) ) , we can obtain
F ˜ s ( w ˜ s ( t + 1 ) ) = F ˜ s ( w ˜ s ( t ) ) + ( w ˜ s ( t + 1 ) w ˜ s ( t ) ) T F ˜ s ( w ˜ s ( t ) ) + 1 2 ( w ˜ s ( t + 1 ) w ˜ s ( t ) ) T 2 F ˜ s ( w ˜ s ( t ) ) ( w ˜ s ( t + 1 ) w ˜ s ( t ) ) ( a ) F ˜ s ( w ˜ s ( t ) ) 1 2 L 2 F ˜ s ( w ˜ s ( t ) ) + 1 2 L F ˜ s ( w ˜ s ( t ) ) k V s ( t ) D k w k ( t ) + s C s ( t ) k V s ( t ) D k w k ( t ) k V s ( t ) D k + s C s ( t ) k V s ( t ) D k 2 ( b ) F ˜ s ( w ˜ s ( t ) ) 1 2 L 2 F ˜ s ( w ˜ s ( t ) ) + 4 ξ 2 2 k K D k k V s ( t ) a k , s ( t ) D k k K D k ,
where steps ( a ) and ( b ) are derived form (26) and (29) in [25].
Moreover, according to Assumptions 2 and 3, we further have [43]
F ˜ s ( w ˜ s ( t ) ) 2 2 μ ( F ˜ s ( w ˜ s ( t ) ) F ˜ s ( w ) ) .
Then, substituting (A2) into (A1), we can obtain
F ˜ s ( w ˜ s ( t + 1 ) ) F ˜ s ( w ¯ s ) ( 1 μ L ) ( F ˜ s ( w ˜ s ( t ) ) F ˜ s ( w ) ) + 4 ξ 2 2 ( k K D k k V s ( t ) a k , s ( t ) D k ) k K D k .
We can derive that
ξ 2 2 k K D k N U ( t ) = k V s ( t ) ( 1 a k , s ( t ) ) D k ϖ 2 + s C s ( t ) k V s ( t ) ( 1 a k , s ( t ) u s , s E ( t ) ) D k ϖ 2 .
This equation represents the residual contribution of devices that fail to participate locally or whose inter-edge model exchange is unreliable. Equivalently, the successful data mass N U ( t ) reduces the additive error term in (A3). Applying (A3) recursively yields
Δ t + 1 1 μ L t + 1 Δ 0 + = 0 t 1 μ L 4 ξ 2 2 ( k K D k N U ( t ) ) k K D k ,
where Δ t = E ( F ˜ s ( w ˜ s ( t ) ) F ˜ s ( w ) ) . Since N U ( t ) N U min , the geometric sum is upper bounded by L μ , which leads to the bound in Theorem 1. Therefore, a larger successful participation probability u k D ( t ) or a more reliable inter-edge exchange probability u s , s E ( t ) directly tightens the loss bound.
Then, applying (A3) recursively, we can complete the proof.

References

  1. Wu, Y.; Dai, H.N.; Wang, H.; Xiong, Z.; Guo, S. A Survey of Intelligent Network Slicing Management for Industrial IoT: Integrated Approaches for Smart Transportation, Smart Energy, and Smart Factory. IEEE Commun. Surv. Tutor. 2022, 24, 1175–1211. [Google Scholar] [CrossRef]
  2. Cao, H.; Alrashoud, M.; Mohamed, T.; Yang, L. An Intelligent Softwarized Resource Management and Allocation Framework for Services with Personalized Intentions in 6G-Enabled IoT Networks. IEEE Internet Things J. 2026, 13, 8261–8274. [Google Scholar]
  3. Goodfellow, I.; Bengio, Y.; Courville, A.; Bengio, Y. Deep Learning; MIT Press: Cambridge, MA, USA, 2016. [Google Scholar]
  4. Jiang, D.; Wang, Y.; Lv, Z.; Wang, W.; Wang, H. An energy-efficient networking approach in cloud services for IIoT networks. IEEE J. Sel. Areas Commun. 2020, 38, 928–941. [Google Scholar]
  5. Wang, F.; Xu, J.; Wang, X.; Cui, S. Joint offloading and computing optimization in wireless powered mobile-edge computing systems. IEEE Trans. Wirel. Commun. 2017, 17, 1784–1797. [Google Scholar] [CrossRef]
  6. Mothukuri, V.; Parizi, R.M.; Pouriyeh, S.; Huang, Y.; Dehghantanha, A.; Srivastava, G. A survey on security and privacy of federated learning. Future Gener. Comput. Syst. 2021, 115, 619–640. [Google Scholar] [CrossRef]
  7. McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; y Arcas, B.A. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics (AISTATS 2017), Fort Lauderdale, FL, USA, 20–22 April 2017; pp. 1–10. [Google Scholar]
  8. Luo, S.; Chen, X.; Wu, Q.; Zhou, Z.; Yu, S. HFEL: Joint Edge Association and Resource Allocation for Cost-Efficient Hierarchical Federated Edge Learning. IEEE Trans. Wirel. Commun. 2020, 19, 6535–6548. [Google Scholar] [CrossRef]
  9. Wu, S.; Luo, Y.; Fu, S.; Chen, Y.; Xu, M. An Efficient Replication-Based Aggregation Verification and Correctness Assurance Scheme for Federated Learning. IEEE Trans. Serv. Comput. 2025, 18, 633–646. [Google Scholar] [CrossRef]
  10. Chen, M.; Yang, Z.; Saad, W.; Yin, C.; Poor, H.V.; Cui, S. A joint learning and communications framework for federated learning over wireless networks. IEEE Trans. Wirel. Commun. 2021, 20, 269–283. [Google Scholar]
  11. Xu, B.; Xia, W.; Zhang, J.; Quek, T.Q.S.; Zhu, H. Online Client Scheduling for Fast Federated Learning. IEEE Wirel. Commun. Lett. 2021, 10, 1434–1438. [Google Scholar] [CrossRef]
  12. Cao, H.; Tian, C.; Xie, J.; Du, J.; Alsolai, H.; Mumtaz, S. A Novel Slice Reconfiguration Method Based on VNF Fusion and Soft Migration for 6G Networks. IEEE Trans. Veh. Technol. 2026. [Google Scholar] [CrossRef]
  13. Shi, W.; Zhou, S.; Niu, Z.; Jiang, M.; Geng, L. Joint Device Scheduling and Resource Allocation for Latency Constrained Wireless Federated Learning. IEEE Wirel. Commun. 2020, 20, 453–467. [Google Scholar] [CrossRef]
  14. Lagén, S.; Pascual-Iserte, A.; Munoz, O.; Vidal, J. Energy efficiency in latency-constrained application offloading from mobile clients to multiple virtual machines. IEEE Trans. Signal Process. 2017, 66, 1065–1079. [Google Scholar] [CrossRef]
  15. Li, T.; Sahu, A.K.; Talwalkar, A.; Smith, V. Federated Learning: Challenges, Methods, and Future Directions. IEEE Signal Process. Mag. 2020, 37, 50–60. [Google Scholar] [CrossRef]
  16. Wang, X.; Han, Y.; Wang, C.; Zhao, Q.; Chen, X.; Chen, M. In-Edge AI: Intelligentizing Mobile Edge Computing, Caching and Communication by Federated Learning. IEEE Netw. 2019, 33, 156–165. [Google Scholar] [CrossRef]
  17. Niknam, S.; Dhillon, H.S.; Reed, J.H. Federated Learning for Wireless Communications: Motivation, Opportunities, and Challenges. IEEE Commun. Mag. 2020, 58, 46–51. [Google Scholar] [CrossRef]
  18. Xu, B.; Xia, W.; Wen, W.; Liu, P.; Zhao, H.; Zhu, H. Adaptive Hierarchical Federated Learning Over Wireless Networks. IEEE Trans. Veh. Technol. 2022, 71, 2070–2083. [Google Scholar]
  19. Wu, M.; Cheng, G.; Li, P.; Yu, R.; Wu, Y.; Pan, M.; Lu, R. Split Learning with Differential Privacy for Integrated Terrestrial and Non-Terrestrial Networks. IEEE Wirel. Commun. Mag. 2023, 31, 177–184. [Google Scholar] [CrossRef]
  20. Li, M.; Zhang, Y.; Xiao, M.; Zhang, W.; Sun, X. Unsupervised Learning for Salient Object Detection via Minimization of Bilinear Factor Matrix Norm. IEEE Trans. Neural Netw. Learn. Syst. 2023, 34, 1354–1366. [Google Scholar] [PubMed]
  21. He, J.; Wu, H.; Xiao, X.; Bassoli, R.; Fitzek, F.H.P. Functional Split of In-Network Deep Learning for 6G: A Feasibility Study. IEEE Wirel. Commun. 2022, 29, 36–42. [Google Scholar] [CrossRef]
  22. Koda, Y.; Park, J.; Bennis, M.; Yamamoto, K.; Nishio, T.; Morikura, M.; Nakashima, K. Communication-Efficient Multimodal Split Learning for mmWave Received Power Prediction. IEEE Commun. Lett. 2020, 24, 1284–1288. [Google Scholar]
  23. Xiao, D.; Yang, C.; Wu, W. Mixing Activations and Labels in Distributed Training for Split Learning. IEEE Trans. Parallel Distrib. Syst. 2022, 33, 3165–3177. [Google Scholar]
  24. Yang, Y.; Zhang, Z.; Tian, Y.; Yang, Z.; Huang, C.; Zhong, C.; Wong, K.K. Over-the-Air Split Machine Learning in Wireless MIMO Networks. IEEE J. Sel. Areas Commun. 2023, 41, 1007–1022. [Google Scholar] [CrossRef]
  25. Yin, B.; Chen, Z.; Tao, M. Predictive GAN-Powered Multi-Objective Optimization for Hybrid Federated Split Learning. IEEE Trans. Commun. 2023, 71, 4544–4560. [Google Scholar]
  26. Shen, J.; Cheng, N.; Wang, X.; Lyu, F.; Xu, W.; Liu, Z.; Aldubaikhy, K.; Shen, X. RingSFL: An Adaptive Split Federated Learning Towards Taming Client Heterogeneity. IEEE Trans. Mob. Comput. 2024, 23, 5462–5478. [Google Scholar]
  27. Zhang, H.; Tao, M.; Shi, Y.; Bi, X.; Letaief, K.B. Federated Multi-Task Learning with Non-Stationary and Heterogeneous Data in Wireless Networks. IEEE Trans. Wirel. Commun. 2024, 23, 2653–2667. [Google Scholar]
  28. Otoum, S.; Guizani, N.; Mouftah, H. On the Feasibility of Split Learning, Transfer Learning and Federated Learning for Preserving Security in ITS Systems. IEEE Trans. Intell. Transp. Syst. 2023, 24, 7462–7470. [Google Scholar]
  29. Xie, C.; Chen, Z.; Yi, W.; Shin, H.; Nallanathan, A. Tackling Class Imbalance and Client Heterogeneity for Split Federated Learning in Wireless Networks. IEEE Trans. Wirel. Commun. 2025, 24, 4920–4936. [Google Scholar] [CrossRef]
  30. Lin, Z.; Wei, W.; Chen, Z.; Lam, C.T.; Chen, X.; Gao, Y.; Luo, J. Hierarchical split federated learning: Convergence analysis and system optimization. IEEE Trans. Mob. Comput. 2025, 24, 9352–9367. [Google Scholar] [CrossRef]
  31. Ao, H.; Tian, H.; Ni, W.; Nie, G.; Niyato, D. Semi-asynchronous federated split learning for computing-limited devices in wireless networks. IEEE Trans. Wirel. Commun. 2025, 24, 5196–5212. [Google Scholar]
  32. Guo, J.; Wu, J.; Liu, A.; Xiong, N.N. LightFed: An Efficient and Secure Federated Edge Learning System on Model Splitting. IEEE Trans. Parallel Distrib. Syst. 2022, 33, 2701–2713. [Google Scholar]
  33. Wu, M.; Cheng, G.; Ye, D.; Kang, J.; Yu, R.; Wu, Y.; Pan, M. Federated Split Learning with Data and Label Privacy Preservation in Vehicular Networks. IEEE Trans. Veh. Technol. 2024, 73, 1223–1238. [Google Scholar]
  34. Lin, F.P.C.; Hosseinalipour, S.; Azam, S.S.; Brinton, C.G.; Michelusi, N. Semi-decentralized federated learning with cooperative D2D local model aggregations. IEEE J. Sel. Areas Commun. 2021, 39, 3851–3869. [Google Scholar]
  35. Liu, W.; Chen, L.; Zhang, W. Decentralized federated learning: Balancing communication and computing costs. IEEE Trans. Signal. Inf. Pract. 2022, 8, 131–143. [Google Scholar] [CrossRef]
  36. Che, C.; Li, X.; Chen, C.; He, X.; Zheng, Z. A decentralized federated learning framework via committee mechanism with convergence guarantee. IEEE Trans. Parallel Distrib. Syst. 2022, 33, 4783–4800. [Google Scholar] [CrossRef]
  37. Kuleshov, V.; Precup, D. Algorithms for the multi-armed bandit problems. J. Mach. Learn. Res. 2000, 1, 1–48. [Google Scholar]
  38. Chen, L.; Xu, J. Budget-Constrained Edge Service Provisioning with Demand Estimation via Bandit Learning. IEEE J. Sel. Areas Commun. 2019, 37, 2364–2376. [Google Scholar] [CrossRef]
  39. Müller, S.; Atan, O.; van der Schaar, M.; Klein, A. Context-Aware Proactive Content Caching with Service Differentiation in Wireless Networks. IEEE Trans. Wirel. Commun. 2017, 16, 1024–1036. [Google Scholar]
  40. Sun, Y.; Shao, J.; Mao, Y.; Wang, J.H.; Zhang, J. Semi-decentralized federated edge learning for fast convergence on non-iid data. In Proceedings of the IEEE Wireless Communications and Networking Conference (WCNC), Austin, TX, USA, 10–13 April 2022; pp. 1898–1903. [Google Scholar]
  41. Wang, S.; Bao, W.; Huang, Z.; Ye, B.; Tang, J.; Xu, B. Context-aware online federated split learning in 5G networks. In Proceedings of the 2024 5th International Conference on Computer, Big Data and Artificial Intelligence (ICCBD+AI), Jingdezhen, China, 1–3 November 2024; pp. 491–496. [Google Scholar]
  42. Cao, H.; Liu, K.; Tan, L.; Chen, N.; Cao, X.; He, S. A Think-Do Architecture for Cognitive Autonomy: LLM-Driven Agentic AI for Sustainable Resource Orchestration in 6G Satellite Networks. IEEE Netw. 2026. [Google Scholar] [CrossRef]
  43. Stephen, B.; Lieven, V. Convex Optimization; MIT Press: Cambridge, MA, USA, 2004. [Google Scholar]
Figure 1. The considered SD-HFSL framework over wireless networks.
Figure 1. The considered SD-HFSL framework over wireless networks.
Sensors 26 04016 g001
Figure 2. Comparison on cumulative algorithm performance. (a) Cumulative training latency. (b) Cumulative number of associated devices. (c) Cumulative system utility. (d) Cumulative gap of latency. (e) Cumulative gap of device number. (f) Comparison gap of system utility.
Figure 2. Comparison on cumulative algorithm performance. (a) Cumulative training latency. (b) Cumulative number of associated devices. (c) Cumulative system utility. (d) Cumulative gap of latency. (e) Cumulative gap of device number. (f) Comparison gap of system utility.
Sensors 26 04016 g002
Figure 3. Performance under different experiment settings. (a) Average number of associated devices with different proportions of devices and edge servers. (b) Average training latency with different context types.
Figure 3. Performance under different experiment settings. (a) Average number of associated devices with different proportions of devices and edge servers. (b) Average training latency with different context types.
Sensors 26 04016 g003
Figure 4. Learning performance under different neural network structures and different numbers of training rounds.
Figure 4. Learning performance under different neural network structures and different numbers of training rounds.
Sensors 26 04016 g004
Figure 5. Learning performance under different neural network structures and different training latency. (a) Test accuracy based on AlexNet. (b) Test accuracy of VGG16. (c) Test accuracy of ResNet18.
Figure 5. Learning performance under different neural network structures and different training latency. (a) Test accuracy based on AlexNet. (b) Test accuracy of VGG16. (c) Test accuracy of ResNet18.
Sensors 26 04016 g005
Table 1. Comparison between related learning frameworks and the proposed SD-HFSL.
Table 1. Comparison between related learning frameworks and the proposed SD-HFSL.
WorkArchitectureMultiple Edge ServersModel SplittingDevice AssociationOnline/Context LearningRegret Analysis
HSFL [25]Centralized hybrid FL-SLNoYesLimitedNoNo
RingSFL [26]Ring-based split FLNoYesNoNoNo
Hierarchical split FL [30]Multi-tier hierarchyYesYesLimitedNoNo
Semi-asynchronous FSL [31]Asynchronous edge learningNoYesClient selectionNoNo
Semi-decentralized FL [34,35,36]Edge-to-edge aggregationYesNoYesNoNo
Proposed SD-HFSLSemi-decentralized HFSLYesThree-part splitJointly optimizedContext-aware CMABYes
Table 2. Summary of key notation.
Table 2. Summary of key notation.
NotationDefinition
K , S Sets of IoT devices and edge servers
D k Number of training samples at device k
I k a , b , I k b , c Two split points separating parts a, b, and c
x k , s ( t ) Association decision between device k and edge server s
z k ( t ) Successful participation indicator under the latency budget
a k , s ( t ) Effective participation, i.e., a k , s ( t ) = x k , s ( t ) z k ( t )
τ k ( t ) , τ ( t ) Device latency and synchronous round latency
c k ( t ) , c ˜ s ( t ) Context states of device k and edge server s
ψ k , ψ ˜ s Estimated computing capability under the observed context
Table 3. Experimental data setup.
Table 3. Experimental data setup.
ParameterValue
K25
S5
A s max 5
τ max 5 s
Training samples per device500
Types of labels per device2
f k min ( c ( t ) ) , f k max ( c ( t ) ) 1 × 10 9 , 5 × 10 9
f ˜ s min ( c ( t ) ) , f ˜ s max ( c ( t ) ) 1 × 10 11 , 5 × 10 11
κ 50
T1000
Table 4. Estimated single-round training latency under different model splitting schemes.
Table 4. Estimated single-round training latency under different model splitting schemes.
I 1 , I 2 234567
13.4513.4073.2753.1792.5592.338
2-6.9306.8156.7476.1605.897
3--6.9136.8856.2845.995
4---6.9466.2926.078
5----6.3986.133
6-----6.739
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xu, B.; Wang, S.; Tang, X. Context-Aware Online Model Splitting and Device Association for Semi-Decentralized Federated Learning in Internet of Things. Sensors 2026, 26, 4016. https://doi.org/10.3390/s26134016

AMA Style

Xu B, Wang S, Tang X. Context-Aware Online Model Splitting and Device Association for Semi-Decentralized Federated Learning in Internet of Things. Sensors. 2026; 26(13):4016. https://doi.org/10.3390/s26134016

Chicago/Turabian Style

Xu, Bo, Shuang Wang, and Xiaoyu Tang. 2026. "Context-Aware Online Model Splitting and Device Association for Semi-Decentralized Federated Learning in Internet of Things" Sensors 26, no. 13: 4016. https://doi.org/10.3390/s26134016

APA Style

Xu, B., Wang, S., & Tang, X. (2026). Context-Aware Online Model Splitting and Device Association for Semi-Decentralized Federated Learning in Internet of Things. Sensors, 26(13), 4016. https://doi.org/10.3390/s26134016

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop