Journal of Intelligent Systems and Internet of Things

Federated Learning for Intelligent Resources Allocation in Internet of Things

Mahmoud Ismail, Shereen Zaki
Volume 7, Issue 1, pp. 62-73 (2022)
DOI: https://doi.org/10.54216/JISIoT.070106
Online: https://www.americaspg.com/journal/18/article/1616

Abstract

By using federated learning (FL), multiple Internet-of-Things (IoT) devices can construct a shared learning model without sending raw data to a centralized server. While FL has come a long way, it still has a ways to go. Issues such as heterogeneous user equipment (UEs) and data that is not independently and uniformly distributed are still obstacles. Facilitating a numerous UEs to participate in the learning in each cycle poses a possible problem of the huge communication budget. A weighted adjoining factor is presented to the localized gradient descent, generalizing the present FedAvg to solve these concerns. At the start of each global round, the proposed FL method randomly selects a fraction of the UEs to perform stochastic gradient descent in parallel. Then, we utilize the suggested FL method in cellular IoT to reduce either total power usage or execution duration of FL, in which a straightforward but effective path-following method is constructed for its explanations. At last, obtained simulations on poorly balanced data are presented to show that the presented FL algorithm is superior to FedAvg in terms of performance with respect to fast convergence. Moreover, they show that the suggested algorithm needs significantly less time and energy to train than the FL algorithm does when users contribute heavily to the learning process. These findings provide strong support for the suggested FL algorithm as a potential paradigm change for training mobile IoT networks with limited bandwidth.

Keywords: Internet of Things; Cellular Network; Mobile Edge Computing; Federated Learning; Resource Allocation

A. Proposed Route-Navigate Scheme

π‘’π‘™βˆ€K are neither curved nor bowlshaped in (ρ,b) , which could be validated by examining the Hessian matrix. Consequently, the related

𝑑𝑙, π‘‘π‘π‘œ,π‘˜ 𝑒𝑙 , π–²π–­π–±π‘˜ 𝑑𝑙 , and π–²π–­π–±π‘˜

It is worth noting the functions πΈπ‘π‘œ,π‘˜ , π‘‘π‘π‘œ,π‘˜ objective as well as condition are nonconvex. The next section presents an efficient route-Navigate approach for solving issue:

π‘₯β‰₯πœ—π‘˜ π‘₯βˆ€π‘˜βˆˆπ’¦π‘”, π‘₯∈{𝑑𝑙, 𝑒𝑙} (11) π‘šπ‘–π‘› 𝝆,𝐟,𝐛,𝝑,𝐭 πœ‚πΈπ‘”(𝝆𝑒𝑙, 𝐟, 𝝑𝑒𝑙) + (1 βˆ’πœ‚)𝑇𝑔 𝑋(𝐭) s.t. π‘Ÿπ‘˜

Wherever,

𝑒𝑙, π–Ώπ‘˜, πœ—π‘˜ 𝑒𝑙) 𝐸𝑔(𝝆𝑒𝑙, 𝐟, 𝝑𝑒𝑙) = βˆ‘ πΈπ‘˜(πœŒπ‘˜ π‘˜βˆˆπ’¦π‘” 𝑒𝑙)2 𝑒𝑙) = 𝑆(πœŒπ‘˜ 𝑒𝑙 + πΏπœƒπ‘˜ 𝑒𝑙, π–Ώπ‘˜, πœ—π‘˜ 2 π‘π‘˜π·π‘˜π–Ώπ‘˜ 2 πΈπ‘˜(πœŒπ‘˜ πœ—π‘˜ 𝑑𝑙) = 𝑆 𝑑𝑙+ πΏπ‘π‘˜π·π‘˜ + 𝑆 𝑒𝑙, πœ—π‘˜ π‘‡π‘˜(π–Ώπ‘˜, πœ—π‘˜ 𝑒𝑙 π–Ώπ‘˜ πœ—π‘˜ πœ—π‘˜ 𝑑𝑙+ 𝑑𝑐𝑝+ π‘‘π‘π‘œ 𝑋(𝐭) = {π‘‘π‘π‘œ 𝑇𝑔

𝑒𝑙, if 𝑋 is Syn 𝑑, if 𝑋 is Asyn

(12)

𝑒𝑙}π‘˜βˆˆπ’¦π‘”, and π‘π‘‘π‘™β‰œ {πœ—π‘˜ 𝑒𝑙}π‘˜βˆˆπ’¦π‘”, and π‘π‘’π‘™β‰œ{πœ—π‘˜ 𝑒𝑙, π‘‘π‘π‘œ 𝑑𝑙, 𝑑}, and π‘β‰œ{𝝑𝑒𝑙, 𝝑𝑑𝑙} with π‘π‘’π‘™β‰œ{πœ—π‘˜ The π‘‘β‰œ{𝑑𝑐𝑝, π‘‘π‘π‘œ

𝑑𝑙}π‘˜βˆˆπ’¦π‘” are recently created variables to disentangle the cost function. All restraints and the goal itself are seen to be concave and smooth. Because UEs have limited computing power and data storage, this could require more than one transmission block to finish a single global round.

π‘₯𝐡log (1 + π›Ύπ‘˜ π‘₯) β‰₯πœ—π‘˜ π‘₯| β‡’ {π‘π‘˜
π‘₯π‘π‘˜β€–2 Γ— π–―π—‹π—ˆπ–»(πœ‘π‘˜β€–πœŒπ‘˜ π‘₯) β‰€πœ–} < π›Ύπ‘˜ π‘₯𝐡𝑁0 π‘π‘˜ βˆ€π‘˜βˆˆπ’¦π‘”, π‘₯∈{𝑑𝑙, 𝑒𝑙}

(13) π‘₯ denote a new factor indicating the smooth SNR of π‘˜βˆ’π‘‘β„Ž UE, and Ο΅ denote small positive factor (close to 0) to guarantee high dependability.

which guarantees a satisfactory boundary. At this point, π›Ύπ‘˜

4. Empirical Results

A. Data Description

Figure 2. confusion matrix of the proposed FL scheme on the CIFAR-10 dataset.
Figure 2. confusion matrix of the proposed FL scheme on the CIFAR-10 dataset.

To evaluate the efficacy of the proposed FL method in a diverse environment, we train it on 100 UEs using both Fashion-MNIST and CIFAR-10 datasets. The number of samples across UEs follows a power law, in wich every UE only has access to two classes of data. Artificial datasets are created for each of the above datasets by following the mechanism given [3].

B. Simulation Setup

πœ†0 1+0.01𝑔] as

For guaranteeing the convergence of the proposed FL scheme, the experiments set the πœ†π‘”= [ fixed learning rate, in which the initial value πœ†0 is thoroughly selected from the following group of values {0.1,0.03,0.01}. Moreover, Her initialization is used to define initial parameters π’˜0 = 0 . For both datasets, the batch size is set to of 64 and 16 for both realistic and artificial samples, correspondingly. To validate the effectiveness of the proposed FL scheme, fair comparisons is performed against FedAvg, Per-FedAvg, FL. In these comparisons, the number of chosen UEs per round is set fixed for all deemed FL approaches. For each UE, the local data is divided into 80% for training and 20% for evaluation. The implementation of FL solutions is done with TensorFlow, running on python 3.9 environment.

Figure 3. confusion matrix of the proposed FL scheme on the Fashion-MNIST dataset.
Figure 3. confusion matrix of the proposed FL scheme on the Fashion-MNIST dataset.

C. Numerical Results

To evaluate how well a set of categorization models performs on test data, statisticians use a matrix called the confusion matrix. Only if the actual values of the test data are provided, it can be computed. The matrix itself can be simply comprehended, but the accompanying terminologies may be difficult. It is also called an error matrix since it displays the model's execution defects in a matrix form. Thus, detailed performance of the proposed framework on fashion-MNIST is given in Figure 2. As noted, the proposed FL scheme can effectively recognize the data class with almost zero confusion. Similarly, a detailed performance of the proposed framework on CIFAR-10 is given in Figure 3. As noted, the proposed FL scheme can effectively recognize the data class with low confusion.

Figure 4. performance vs versus the number of communication rounds lobal rounds on actual (left) and artificial (right)
Figure 4. performance vs versus the number of communication rounds lobal rounds on actual (left) and artificial (right)
Figure 5. performance vs versus the number of communication rounds lobal rounds on actual (left) and artificial (right)
Figure 5. performance vs versus the number of communication rounds lobal rounds on actual (left) and artificial (right)

data from CIFAR-10.

Figure. 4 indicates the convergence of the proposed FL scheme for both actual and artificial data from fashion-mnist. The learning rate of the competing methods is decayed in the same way as with the proposed FL scheme. The findings prove that the proposed FL scheme can significantly surpasses the competing methods on both actual and artificial data sets. The proposed system is shown to be more stable and to converge faster than competing methods, in addition to having high results. Further evidence that the weighted proximate term is an efficient tool for mitigating the unfavorable consequences of the random sampling method for selecting user involvement in a multi-faceted environment.

Junction of our solution is shown for both real and simulated CIFAR-10 data in Figure. 5. The proposed FL scheme's decline of the learning rate is like that of the competing approaches. Results show the suggested FL approach can greatly outperforms the alternatives on real and synthetic data sets. It is demonstrated that the proposed system is superior to alternative approaches, both in terms of stability and convergence speed. More proof that the weighted proximate term is a useful instrument for reducing the drawbacks of the random sampling technique when choosing user participation in a complex setting.

Figure 6. performance vs versus the number of communication rounds lobal rounds on actual (left) and artificial (right)
Figure 6. performance vs versus the number of communication rounds lobal rounds on actual (left) and artificial (right)

data from Fashion-MNIST under different local iterations.

We examine the impact of 𝐿= 10 π‘Žπ‘›π‘‘ 𝐿= 30 local iterations on the efficiency of the proposed FL algorithm in Figure. 6. The results show that in every configuration, the proposed scheme performs better than competing methods. A bigger L also expedites convergence and improves resilience against the instabilities shared by all FL algorithms when used to non-iid data. One-short averaging can occur in FL scheme if L is quite large. Allowing a suitable value of L is helpful since it increases the convergence speed and avoids divergence of the suggested FL scheme.

5. Conclusion

To address the disparity between UE data and UE features in federated systems, we present an effective FL method that uses a weighted proximal term, an adaptation of FedAvg. As a result of its unbiased sampling technique, the suggested FL algorithm only requires a tiny fraction of UEs to engage in training in each round. We have analyzed the performance of the suggested FL method under the premise of substantially convex and seamless FL's issue. Our findings were validated by experimental evidence on both actual and artificial data sets, showing that the suggested FL algorithm stabilizes and is more robust than FedAvg in highly diverse settings. Using the suggested FL approach, we then define a wireless IoT resource allocation problem with the goal of minimizing either total energy usage or timeframe.

References

[1].  Sharma,  S.  K.,  &  Wang,  X.  (2017).  Live  data  analytics  with  collaborative  edge  and  cloud processing in wireless IoT networks. IEEE Access, 5, 4621-4635.

[2].  Preuveneers,  D.,  Rimmer,  V.,  Tsingenopoulos,  I.,  Spooren,  J.,  Joosen,  W.,  &  Ilie -Zudor,  E. (2018).  Chained  anomaly  detection  models  for  federated  learning:  An  intrusion  detection  case study. Applied Sciences, 8(12), 2663.

[3].  Sisinni,  E.,  Saifullah,  A.,  Han,  S.,  Jennehag,  U.,  &  Gidlund,  M.  (2018).  Industrial  internet  of things:  Challenges,  opportunities,  and  directions.  IE EE  transactions  on  industrial  informatics, 14(11), 4724-4734.

[4].  Ferreira, P. V. R., Paffenroth, R., Wyglinski, A. M., Hackett, T. M., Bilén, S. G., Reinhart, R. C., &  Mortensen,  D.  J.  (2018).  Multiobjective  reinforcement  learning  for  cognitive  satellite communications  using  deep  neural  network  ensembles.  IEEE  Journal  on  Selected  Areas  in Communications, 36(5), 1030-1041.

[5].  Jeong, E., Oh, S., Kim, H., Park, J., Bennis, M., & Kim, S. L. (2018). Communication -efficient on-device machine learning: Federated distillation and augmentation under non-iid private  data. arXiv preprint arXiv:1811.11479.

[6].  Smith, V., Chiang, C. K., Sanjabi, M., & Talwalkar, A. S. (2017). Federated multi-task learning. Advances in neural information processing systems, 30.

[7].  Mao,  Y.,  You,  C.,  Zhang,  J.,  Huang,  K.,  &  Letaief,  K.  B.  (2017).  A  survey  on  mobile  edge computing:  The  communication  perspective.  IEEE  communications  surveys  &  tutorials,  19(4), 2322-2358.

[8].  Huang,  L.,  Yin,  Y.,  Fu,  Z.,  Zhang,  S.,  Deng,  H.,  &  Liu,  D.  (2018).  LoAdaBoost:  Loss-based AdaBoost federated machine learning with reduced computational complexity on IID and non-IID 

intensive care data. arXiv preprint arXiv:1811.12629.

[9].  H.  S.  Lee  and  D.  E.  Lee,  “Resource  allocation  in  wireless  networks  with  federated  learning: Network  adaptability  and  learning  acceleration,”  ICT  Express,  2022,  doi: 10.1016/j.icte.2022.01.019.

[10].  Xu,  Z.,  Wang,  Y.,  Tang,  J.,  Wang,  J.,  &  Gursoy,  M.  C.  (2017,  May).  A  deep reinforcement learning based framework for power-efficient resource allocation in cloud RANs. In 2017 IEEE International Conference on Communications (ICC) (pp. 1 -6). IEEE.

[11].  Liaqat, M., Chang, V., Gani, A., Ab Hamid, S. H., Toseef, M., Shoaib, U., & Ali, R. L. (2017). Federated cloud resource management: Review and discussion. Journal of Network and Computer Applications, 77, 87-105.

[12].  Liaqat, M., Chang, V., Gani, A., Ab Hamid, S. H., Toseef, M., Shoaib, U., & Ali, R. L. (2017). Federated cloud resource management: Review and discussion. Journal of Network and Computer Applications, 77, 87-105.

[13].  Bittencourt, L., Immich, R., Sakellariou, R., Fonseca, N., Madeira, E., Curado, M., ... & Rana,  O.  (2018).  The  internet  of  things,  fog  and  cloud  continuum:  Integration  and  challenges. Internet of Things, 3, 134-155.

[14].  Hameed, A., Khoshkbarforoushha, A., Ranjan, R., Jayaraman, P. P., Kolodziej, J., Balaji, P., ... & Zomaya, A. (2016). A survey and taxonomy on energy efficient resource allocation techniques for cloud computing systems. Computing, 98, 751-774. 

[15].  Lee,  Y.  H.,  Huang,  K.  C.,  Shieh,  M.  R.,  &  Lai,  K.  C.  (2017).  Distributed  resource allocation in federated clouds. The Journal of Supercomputing, 73, 3196 -3211. 

[16].  Fung,  S.  Y.  K.,  Raman,  K.  K.,  &  Zhu,  X.  K.  (2017).  Does  the  PCAOB  international inspection  program  improve  audit  quality  for  non -US-listed  foreign  clients?.  Journal  of Accounting and Economics, 64(1), 15-36.

[17].  Caldas, S., Konečny, J., McMahan, H. B., & Talwalkar, A. (2018). Expanding the reach of federated learning by reducing client resource requirements. arXiv preprint arXiv:1812.07210. 

[18].  Chen, F., Luo, M., Dong, Z., Li, Z., & He, X. (2018). Federated meta-learning with fast convergence and efficient communication. arXiv preprint arXiv:1802.07876 .

[19].  Yu, Z., Hu, J., Min, G., Lu, H., Zhao, Z., Wang, H., & Georgalas, N. (2018, December). Federated  learning  based  proactive  content  caching  in  edge  computing.  In  2018  IEEE  Global Communications Conference (GLOBECOM) (pp. 1-6). IEEE.

[20].  Samie,  F.,  Tsoutsouras,  V.,  Bauer,  L.,  Xydis,  S.,  Soudris,  D.,  &  Henkel,  J.  (2016, December). Computation offloading and resource allocation for low-power IoT edge devices. In 2016 IEEE 3rd world forum on internet of things (WF-IoT) (pp. 7-12). IEEE.

[21].  Chen,  M.  H.,  Liang,  B.,  &  Dong,  M.  (2017,  May).  Joint  offloading  and  resource allocation for computation and communication in mobile cloud with computing access point. In IEEE INFOCOM 2017-IEEE Conference on Computer Communications (pp. 1 -9). IEEE.

[22].  Tanaka,  H.,  Yoshida,  M.,  Mori,  K.,  &  Takahashi,  N.  (2018).  Multi-access  edge computing: A survey. Journal of Information Processing, 26, 87 -97.

[23].  Colen, G. R., de Oliveira, L. G., Vinck, A. H., & Ribeiro, M. V. (2016). A spectral compressive resource allocation technique for PLC systems. IEEE Transactions on Communications, 65(2), 816-826.

[24].  Cong  Luong,  N.,  Niyato,  D.,  In  Kim,  D.,  &  Wang,  L.  C.  (2018).  Efficient  Training Management for Mobile Crowd-Machine Learning: A Deep Reinforcement Learning Approach. arXiv e-prints, arXiv-1812.

[25].  Samarakoon,  S.,  Bennis,  M.,  Saad,  W.,  &  Debbah,  M.  (2018,  December).  Federated learning  for  ultra-reliable  low-latency  V2V  communications.  In  2018  IEEE  Global Communications Conference (GLOBECOM) (pp. 1-7). IEEE.

[26].  He,  Y.,  Liang,  C.,  Zhang,  Z.,  Yu,  F.  R.,  Zhao,  N.,  Yin,  H.,  &  Zhang,  Y.  (2017, September). Resource allocation in software-defined and information-centric vehicular networks with mobile edge computing. In 2017 IEEE 86th Vehicular Technology Conference (VTC-Fall) (pp. 1-5). IEEE.