CN116418687A - Parameter optimization and resource allocation method for low-energy wireless federated learning system - Google Patents
Parameter optimization and resource allocation method for low-energy wireless federated learning system Download PDFInfo
- Publication number
- CN116418687A CN116418687A CN202310196400.3A CN202310196400A CN116418687A CN 116418687 A CN116418687 A CN 116418687A CN 202310196400 A CN202310196400 A CN 202310196400A CN 116418687 A CN116418687 A CN 116418687A
- Authority
- CN
- China
- Prior art keywords
- optimization
- resource allocation
- edge server
- federated learning
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
- H04L41/0833—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for reduction of network energy consumption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明属于无线通信技术领域,具体涉及一种低能耗无线联邦学习系统的参数优化和资源分配方法。The invention belongs to the technical field of wireless communication, and in particular relates to a parameter optimization and resource allocation method of a low-energy wireless federated learning system.
背景技术Background technique
相比于传统的集中式机器学习模型训练方式,联邦学习可以充分利用分布式智能终端的本地数据和计算资源,在保护智能终端数据隐私和节省通信资源的前提下,有效完成机器学习模型的分布式训练。然而,在混合式无线异构网络中,智能终端的工作时间往往受其有限能量储备的限制。因此,如何在保证模型训练性能的前提下有效地降低系统能耗,成为联邦学习亟待解决的问题之一。Compared with the traditional centralized machine learning model training method, federated learning can make full use of the local data and computing resources of distributed intelligent terminals, and effectively complete the distribution of machine learning models under the premise of protecting the data privacy of intelligent terminals and saving communication resources. style training. However, in hybrid wireless heterogeneous networks, the working time of smart terminals is often limited by their limited energy reserves. Therefore, how to effectively reduce system energy consumption while ensuring model training performance has become one of the urgent problems to be solved in federated learning.
发明内容Contents of the invention
本发明针对上述问题,提供了一种低能耗无线联邦学习系统的参数优化和资源分配方法,针对在无线联邦学习系统中,能耗主要包括模型训练的计算能耗和模型参数传输的通信能耗,设计了一个降低能耗的参数优化和资源分配方法。Aiming at the above problems, the present invention provides a method for parameter optimization and resource allocation of a low-energy wireless federated learning system. In the wireless federated learning system, energy consumption mainly includes calculation energy consumption for model training and communication energy consumption for model parameter transmission. , a parameter optimization and resource allocation method to reduce energy consumption is designed.
本发明的技术方案如下:Technical scheme of the present invention is as follows:
一种低能耗无线联邦学习系统的参数优化和资源分配方法,包括以下步骤:A method for parameter optimization and resource allocation of a low-energy wireless federated learning system, comprising the following steps:
构建低能耗无线联邦学习系统模型,包括一个云服务器、N个边缘服务器和M个智能终端,基于低能耗无线联邦学习系统模型建立联邦学习流程;Build a low-energy wireless federated learning system model, including a cloud server, N edge servers and M smart terminals, and establish a federated learning process based on the low-energy wireless federated learning system model;
以最小化系统模型能耗为优化目标,限定与聚合间隔相关的智能终端本地模型训练次数、智能终端的计算频率、系统带宽分配以及智能终端和边缘服务器的传输功率,建立联合参数优化和资源分配问题,With the optimization goal of minimizing the energy consumption of the system model, limit the number of smart terminal local model training related to the aggregation interval, the calculation frequency of the smart terminal, the system bandwidth allocation, and the transmission power of the smart terminal and the edge server, and establish joint parameter optimization and resource allocation. question,
将联合参数优化和资源分配问题拆分为聚合间隔优化子问题并计算得到最优聚合间隔、频率优化子问题并计算得到最优计算频率、带宽分配优化子问题并计算得到最优带宽分配和传输功率优化子问题并计算得到智能终端和边缘服务器的最优传输功率。Split the joint parameter optimization and resource allocation problem into aggregation interval optimization sub-problem and calculate the optimal aggregation interval, frequency optimization sub-problem and calculate the optimal computing frequency, bandwidth allocation optimization sub-problem and calculate the optimal bandwidth allocation and transmission The power optimization sub-problem is calculated to obtain the optimal transmission power of the smart terminal and the edge server.
本发明的进一步技术方案是:基于低能耗无线联邦学习系统模型建立联邦学习流程,具体包括以下步骤:A further technical solution of the present invention is: establishing a federated learning process based on a low-energy wireless federated learning system model, specifically including the following steps:
S1、云服务器通过边缘服务器向所有智能终端广播全局模型及其当前参数值;S1. The cloud server broadcasts the global model and its current parameter values to all smart terminals through the edge server;
S2、智能终端利用本地数据对接收到的全局模型进行迭代训练,κ1次本地迭代训练完成后,智能终端将训练更新后的全局模型参数即本地模型参数上传至边缘服务器;S2. The smart terminal uses local data to iteratively train the received global model. After κ 1 local iterative training is completed, the smart terminal uploads the updated global model parameters after training, that is, the local model parameters, to the edge server;
S3、在关联的智能终端都上传参数后,边缘服务器将接收的模型参数聚合为边缘模型的参数,并通过组播下放至边缘服务器关联的所有智能终端;S3. After all the associated smart terminals upload the parameters, the edge server aggregates the received model parameters into the parameters of the edge model, and distributes them to all the smart terminals associated with the edge server through multicast;
S4、对S2和S3迭代执行κ2次后,边缘服务器将边缘模型的参数上传至云服务器;S4. After performing κ 2 iterations on S2 and S3, the edge server uploads the parameters of the edge model to the cloud server;
S5、在所有边缘服务器都上传边缘模型参数后,云服务器聚合接收的模型参数,并依据聚合后的模型参数更新全局模型;S5. After all the edge servers upload the edge model parameters, the cloud server aggregates the received model parameters, and updates the global model according to the aggregated model parameters;
S6、迭代执行S1至S5,直至全局模型收敛或达到预设的精度值。S6. Iteratively execute S1 to S5 until the global model converges or reaches a preset precision value.
本发明的进一步技术方案是:所述方法还包括基于联邦学习流程计算智能终端在本地迭代训练中的计算时延和计算能耗、智能终端向边缘服务器上传全局模型参数的速率以及边缘服务器的组播速率,具体包括:The further technical solution of the present invention is: the method also includes calculating the computing delay and computing energy consumption of the smart terminal in the local iterative training based on the federated learning process, the rate at which the smart terminal uploads the global model parameters to the edge server, and the group of edge servers broadcast rate, including:
智能终端m在一次本地迭代训练中的计算时延为:Tm,cop=vmCDm/fm,其中,vm为终端处理单位比特样本数据所需的CPU轮数,C是样本数据的比特大小,Dm是终端的样本数量,fm为智能终端计算频率,相应的智能终端的计算能耗表示为:其中,δ是智能终端的能量消耗系数;The calculation delay of smart terminal m in a local iterative training is: T m,cop =v m CD m /f m , where v m is the number of CPU rounds required by the terminal to process unit bit sample data, and C is the sample data The bit size of D m is the number of samples of the terminal, f m is the calculation frequency of the intelligent terminal, and the corresponding calculation energy consumption of the intelligent terminal is expressed as: Among them, δ is the energy consumption coefficient of the smart terminal;
智能终端m向边缘服务器n上传本地模型参数时的速率为:其中,Bn为边缘服务器n的带宽,pm为智能终端m的传输功率,gn,m为信道增益,N0为加性噪声功率;智能终端的参数上传时间为Tm,com=W/Rm,其中W为上传模型参数的比特大小,智能终端的通信能耗为Em,com=pmTm,com;The rate at which smart terminal m uploads local model parameters to edge server n is: Among them, B n is the bandwidth of the edge server n, p m is the transmission power of the intelligent terminal m, g n,m is the channel gain, N 0 is the additive noise power; the parameter upload time of the intelligent terminal is T m,com =W /R m , where W is the bit size of the uploaded model parameters, and the communication energy consumption of the smart terminal is E m, com = p m T m, com ;
边缘服务器n的组播速率为:其中,pn为边缘服务器n的传输功率,Cn为与边缘服务器n相关联的所有智能终端的索引集合,边缘服务器的下行链路组播时延为Tn,com=W/Rn,边缘服务器的通信能耗为En,com=pnTn,com。The multicast rate of edge server n is: Among them, p n is the transmission power of the edge server n, C n is the index set of all intelligent terminals associated with the edge server n, and the downlink multicast delay of the edge server is T n, com = W/R n , The communication energy consumption of the edge server is E n,com =p n T n,com .
本发明的进一步技术方案是:系统模型能耗的具体表达式为:The further technical scheme of the present invention is: the concrete expression of system model energy consumption is:
本发明的进一步技术方案是:所述联合参数优化和资源分配问题的具体表达式为:A further technical solution of the present invention is: the specific expression of the joint parameter optimization and resource allocation problem is:
其中,表示聚合间隔集合,/>表示计算频率集合,表示带宽集合,/>表示传输功率集合,κglob为一轮全局模型迭代中的本地模型训练次数,fm,max为终端最大计算频率,/>和/>为智能终端的最大计算时间和最大通信时间,Tn,max为边缘服务器组播的最大时延,Btotal为系统总带宽,Bmin和Bmax分别为边缘服务器的最小带宽和最大带宽,pm,max和pn,max分别为智能终端的最大传输功率和边缘服务器的最大传输功率,Em,max和En,max分别为智能终端的最大能耗和边缘服务器的最大能耗。in, Represents a collection of aggregation intervals, /> Represents the set of computing frequencies, Represents a bandwidth collection, /> Indicates the set of transmission power, κ glob is the number of local model training in one round of global model iteration, f m,max is the maximum calculation frequency of the terminal, /> and /> is the maximum calculation time and maximum communication time of the intelligent terminal, T n,max is the maximum delay of the edge server multicast, B total is the total system bandwidth, B min and B max are the minimum bandwidth and maximum bandwidth of the edge server respectively, p m,max and p n,max are the maximum transmission power of the intelligent terminal and the maximum transmission power of the edge server, respectively, and E m,max and E n,max are the maximum energy consumption of the intelligent terminal and the maximum energy consumption of the edge server, respectively.
本发明的进一步技术方案是:将联合参数优化和资源分配问题拆分为聚合间隔优化子问题并计算得到最优聚合间隔,具体表达式为:The further technical solution of the present invention is: split the joint parameter optimization and resource allocation problem into aggregation interval optimization sub-problems and calculate the optimal aggregation interval, the specific expression is:
本发明的进一步技术方案是:将联合参数优化和资源分配问题拆分为频率优化子问题并计算得到最优计算频率,具体表达式为:The further technical solution of the present invention is: split the joint parameter optimization and resource allocation problem into frequency optimization sub-problems and calculate the optimal calculation frequency, the specific expression is:
本发明的进一步技术方案是:将联合参数优化和资源分配问题拆分为传输功率优化子问题并计算得到智能终端和边缘服务器的最优传输功率,具体表达式为:The further technical solution of the present invention is: split the joint parameter optimization and resource allocation problem into transmission power optimization sub-problems and calculate the optimal transmission power of the smart terminal and the edge server, the specific expression is:
本发明的进一步技术方案是:将联合参数优化和资源分配问题拆分为带宽分配优化子问题并计算得到最优带宽分配,其中最优带宽分配采用凸优化工具箱实现。A further technical solution of the present invention is: splitting the joint parameter optimization and resource allocation problem into bandwidth allocation optimization sub-problems and calculating the optimal bandwidth allocation, wherein the optimal bandwidth allocation is realized by using a convex optimization toolbox.
本发明提供的一种低能耗无线联邦学习系统的参数优化和资源分配方法,构建了低能耗无线联邦学习系统模型,基于低能耗无线联邦学习系统模型建立联邦学习流程;以最小化系统模型能耗为优化目标,建立联合参数优化和资源分配问题,将联合参数优化和资源分配问题拆分为聚合间隔优化子问题并计算得到最优聚合间隔、频率优化子问题并计算得到最优计算频率、带宽分配优化子问题并计算得到最优带宽分配和传输功率优化子问题并计算得到智能终端和边缘服务器的最优传输功率。本发明对无线通信和模型训练的多个变量进行联合优化,在模型训练性能的限制下,最小化联邦学习过程中的系统能耗,与其他方案相比,本发明方法显著优于对比方案,可以明显降低系统能耗。The parameter optimization and resource allocation method of a low-energy wireless federated learning system provided by the present invention constructs a low-energy wireless federated learning system model, and establishes a federated learning process based on the low-energy wireless federated learning system model; to minimize the energy consumption of the system model To optimize the goal, establish a joint parameter optimization and resource allocation problem, split the joint parameter optimization and resource allocation problem into aggregation interval optimization sub-problems and calculate the optimal aggregation interval, frequency optimization sub-problems and calculate the optimal computing frequency and bandwidth Assign optimization sub-problems and calculate the optimal bandwidth allocation and transmission power optimization sub-problems and calculate the optimal transmission power of smart terminals and edge servers. The invention jointly optimizes multiple variables of wireless communication and model training, and minimizes the system energy consumption in the federated learning process under the limitation of model training performance. Compared with other schemes, the method of the present invention is significantly better than the comparison scheme. Can significantly reduce system energy consumption.
附图说明Description of drawings
图1是本发明实施例中低能耗无线联邦学习系统的参数优化和资源分配方法流程示意图;FIG. 1 is a schematic flow diagram of a method for parameter optimization and resource allocation of a low-energy wireless federated learning system in an embodiment of the present invention;
图2是本发明实施例中无线分层联邦学习系统模型结构示意图;Fig. 2 is a schematic structural diagram of a wireless hierarchical federated learning system model in an embodiment of the present invention;
图3是本发明实施例中不同优化方案下系统能耗随边缘服务器所关联的智能终端数目的变化趋势对比图。Fig. 3 is a comparison chart of the variation trend of system energy consumption with the number of smart terminals associated with the edge server under different optimization schemes in the embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅出示了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
如图1所示,实施例中一种低能耗无线联邦学习系统的参数优化和资源分配方法,包括以下步骤:As shown in Figure 1, a method for parameter optimization and resource allocation of a low-energy wireless federated learning system in an embodiment includes the following steps:
构建低能耗无线联邦学习系统模型,包括一个云服务器、N个边缘服务器和M个智能终端,基于低能耗无线联邦学习系统模型建立联邦学习流程;Build a low-energy wireless federated learning system model, including a cloud server, N edge servers and M smart terminals, and establish a federated learning process based on the low-energy wireless federated learning system model;
以最小化系统模型能耗为优化目标,限定与聚合间隔相关的智能终端本地模型训练次数、智能终端的计算频率、系统带宽分配以及智能终端和边缘服务器的传输功率,建立联合参数优化和资源分配问题;With the optimization goal of minimizing the energy consumption of the system model, limit the number of smart terminal local model training related to the aggregation interval, the calculation frequency of the smart terminal, the system bandwidth allocation, and the transmission power of the smart terminal and the edge server, and establish joint parameter optimization and resource allocation. question;
将联合参数优化和资源分配问题拆分为聚合间隔优化子问题并计算得到最优聚合间隔、频率优化子问题并计算得到最优计算频率、带宽分配优化子问题并计算得到最优带宽分配和传输功率优化子问题并计算得到智能终端和边缘服务器的最优传输功率。Split the joint parameter optimization and resource allocation problem into aggregation interval optimization sub-problem and calculate the optimal aggregation interval, frequency optimization sub-problem and calculate the optimal computing frequency, bandwidth allocation optimization sub-problem and calculate the optimal bandwidth allocation and transmission The power optimization sub-problem is calculated to obtain the optimal transmission power of the smart terminal and the edge server.
具体实施过程中,如图2所示,实施例提供的一种无线分层联邦学习系统,该系统包含一个云服务器、N个边缘服务器和M个智能终端。云服务器与各边缘服务器之间通过高性能有线回程链路连接,边缘服务器与其关联的各智能终端之间无线通信链路连接。In the specific implementation process, as shown in FIG. 2 , a wireless hierarchical federated learning system provided by the embodiment includes a cloud server, N edge servers and M intelligent terminals. The cloud server and each edge server are connected through a high-performance wired backhaul link, and the edge server and its associated intelligent terminals are connected with a wireless communication link.
优选地,基于低能耗无线联邦学习系统模型建立联邦学习流程,具体包括以下步骤:Preferably, the federated learning process is established based on the low-energy wireless federated learning system model, which specifically includes the following steps:
S1、云服务器通过边缘服务器向所有智能终端广播全局模型及其当前参数值;S1. The cloud server broadcasts the global model and its current parameter values to all smart terminals through the edge server;
S2、智能终端利用本地数据对接收到的全局模型进行迭代训练,κ1次本地迭代训练完成后,智能终端将训练更新后的全局模型参数即本地模型参数上传至边缘服务器;S2. The smart terminal uses local data to iteratively train the received global model. After κ 1 local iterative training is completed, the smart terminal uploads the updated global model parameters after training, that is, the local model parameters, to the edge server;
S3、在关联的智能终端都上传参数后,边缘服务器将接收的模型参数聚合为边缘模型的参数,并通过组播下放至边缘服务器关联的所有智能终端;S3. After all the associated smart terminals upload the parameters, the edge server aggregates the received model parameters into the parameters of the edge model, and distributes them to all the smart terminals associated with the edge server through multicast;
S4、对S2和S3迭代执行κ2次后,边缘服务器将边缘模型的参数上传至云服务器;S4. After performing κ 2 iterations on S2 and S3, the edge server uploads the parameters of the edge model to the cloud server;
S5、在所有边缘服务器都上传边缘模型参数后,云服务器聚合接收的模型参数,并依据聚合后的模型参数更新全局模型;S5. After all the edge servers upload the edge model parameters, the cloud server aggregates the received model parameters, and updates the global model according to the aggregated model parameters;
S6、迭代执行S1至S5,直至全局模型收敛或达到预设的精度值。至此,该联邦学习系统的机器学习模型训练过程结束。S6. Iteratively execute S1 to S5 until the global model converges or reaches a preset precision value. So far, the machine learning model training process of the federated learning system is over.
具体实施过程中,基于联邦学习流程计算智能终端在本地迭代训练中的计算时延和计算能耗、智能终端向边缘服务器上传全局模型参数的速率以及边缘服务器的组播速率,具体包括:During the specific implementation process, the calculation delay and energy consumption of the smart terminal in local iterative training, the rate at which the smart terminal uploads global model parameters to the edge server, and the multicast rate of the edge server are calculated based on the federated learning process, including:
智能终端m在一次本地迭代训练中的计算时延为:Tm,cop=vmCDm/fm,其中,vm为终端处理单位比特样本数据所需的CPU轮数,C是样本数据的比特大小,Dm是终端的样本数量,fm为智能终端计算频率,相应的智能终端的计算能耗表示为:其中,δ是智能终端的能量消耗系数;The calculation delay of smart terminal m in a local iterative training is: T m,cop =v m CD m /f m , where v m is the number of CPU rounds required by the terminal to process unit bit sample data, and C is the sample data The bit size of D m is the number of samples of the terminal, f m is the calculation frequency of the intelligent terminal, and the corresponding calculation energy consumption of the intelligent terminal is expressed as: Among them, δ is the energy consumption coefficient of the smart terminal;
智能终端m向边缘服务器n上传本地模型参数时的速率为:其中,Bn为边缘服务器n的带宽,pm为智能终端m的传输功率,gn,m为信道增益,N0为加性噪声功率;智能终端的参数上传时间为Tm,com=W/Rm,其中W为上传模型参数的比特大小,智能终端的通信能耗为Em,com=pmTm,com;The rate at which smart terminal m uploads local model parameters to edge server n is: Among them, B n is the bandwidth of the edge server n, p m is the transmission power of the intelligent terminal m, g n,m is the channel gain, N 0 is the additive noise power; the parameter upload time of the intelligent terminal is T m,com =W /R m , where W is the bit size of the uploaded model parameters, and the communication energy consumption of the smart terminal is E m, com = p m T m, com ;
边缘服务器n的组播速率为:其中,pn为边缘服务器n的传输功率,/>为与边缘服务器n相关联的所有智能终端的索引集合,边缘服务器的下行链路组播时延为Tn,com=W/Rn,边缘服务器的通信能耗为En,com=pnTn,com。The multicast rate of edge server n is: Among them, p n is the transmission power of edge server n, /> is the index set of all intelligent terminals associated with edge server n, the downlink multicast delay of the edge server is T n,com =W/R n , and the communication energy consumption of the edge server is E n,com =p n T n, com .
另外,系统内的无线通信链路采用“混合频时带宽分配”方案,系统总带宽采用频分的方式被分配给各边缘服务器,各智能终端采用时分的方式轮流使用其边缘服务器所分配到的带宽。In addition, the wireless communication link in the system adopts the "hybrid frequency-time bandwidth allocation" scheme. The total bandwidth of the system is allocated to each edge server by frequency division, and each intelligent terminal uses time division in turn to use the bandwidth allocated by its edge server. bandwidth.
进一步地,系统模型能耗的具体表达式为:Further, the specific expression of the energy consumption of the system model is:
实施例以最小化上述定义中的系统能耗为目标,联合进行参数优化和资源分配,具体涉及聚合间隔计算频率/>带宽分配/>以及传输功率/> The embodiment aims to minimize the system energy consumption in the above definition, and jointly performs parameter optimization and resource allocation, specifically involving the aggregation interval Calculation frequency /> bandwidth allocation/> and transmission power/>
联合参数优化和资源分配问题可以建模为:The joint parameter optimization and resource allocation problem can be modeled as:
其中,表示聚合间隔集合,/>表示计算频率集合,表示带宽集合,/>表示传输功率集合,κglob为一轮全局模型迭代中的本地模型训练次数,fm,max为终端最大计算频率,/>和/>为智能终端的最大计算时间和最大通信时间,Tn,max为边缘服务器组播的最大时延,Btotal为系统总带宽,Bmin和Bmax分别为边缘服务器的最小带宽和最大带宽,pm,max和pn,max分别为智能终端的最大传输功率和边缘服务器的最大传输功率,Em,max和En,max分别为智能终端的最大能耗和边缘服务器的最大能耗。in, Represents a collection of aggregation intervals, /> Represents the set of computing frequencies, Represents a bandwidth collection, /> Indicates the set of transmission power, κ glob is the number of local model training in one round of global model iteration, f m,max is the maximum calculation frequency of the terminal, /> and /> is the maximum calculation time and maximum communication time of the intelligent terminal, T n,max is the maximum delay of the edge server multicast, B total is the total system bandwidth, B min and B max are the minimum bandwidth and maximum bandwidth of the edge server respectively, p m,max and p n,max are the maximum transmission power of the intelligent terminal and the maximum transmission power of the edge server, respectively, and E m,max and E n,max are the maximum energy consumption of the intelligent terminal and the maximum energy consumption of the edge server, respectively.
优选地,实施例将上述联合优化问题拆分为聚合间隔优化、计算频率优化、带宽分配优化和传输功率优化四个子问题:Preferably, the embodiment splits the above-mentioned joint optimization problem into four sub-problems: aggregation interval optimization, calculation frequency optimization, bandwidth allocation optimization, and transmission power optimization:
其中,将联合参数优化和资源分配问题拆分为聚合间隔优化子问题并计算得到最优聚合间隔,具体表达式为:Among them, the joint parameter optimization and resource allocation problem is split into aggregation interval optimization sub-problems and the optimal aggregation interval is calculated. The specific expression is:
将联合参数优化和资源分配问题拆分为频率优化子问题并计算得到最优计算频率,具体表达式为: Split the joint parameter optimization and resource allocation problem into frequency optimization sub-problems and calculate the optimal computing frequency, the specific expression is:
将联合参数优化和资源分配问题拆分为传输功率优化子问题并计算得到智能终端和边缘服务器的最优传输功率,具体表达式为:The problem of joint parameter optimization and resource allocation is divided into transmission power optimization sub-problems and the optimal transmission power of smart terminals and edge servers is calculated. The specific expression is:
另外,将联合参数优化和资源分配问题拆分为带宽分配优化子问题并计算得到最优带宽分配,其中最优带宽分配采用凸优化工具箱实现。In addition, the problem of joint parameter optimization and resource allocation is split into bandwidth allocation optimization sub-problems and the optimal bandwidth allocation is calculated. The optimal bandwidth allocation is realized by convex optimization toolbox.
基于低能耗无线联邦学习的参数优化和资源分配方法流程总结在如下的算法1中:The process of parameter optimization and resource allocation method based on low-energy wireless federated learning is summarized in Algorithm 1 as follows:
为了更好地体现本发明的有效性,实施例进行了仿真实验。图3展现了在不同优化方案下,系统能耗随边缘服务器所关联的智能终端数目的变化趋势。实验将系统智能终端总数目M分别设置为2000和3000。可以观察到,本发明提出的参数优化和资源分配方法可以与联合优化问题的穷举搜索算法保持一致,同时显著优于对比方案,可以明显降低系统能耗。In order to better reflect the effectiveness of the present invention, a simulation experiment is carried out in the embodiment. Figure 3 shows the variation trend of system energy consumption with the number of smart terminals associated with the edge server under different optimization schemes. In the experiment, the total number M of intelligent terminals in the system is set to 2000 and 3000 respectively. It can be observed that the parameter optimization and resource allocation method proposed by the present invention can be consistent with the exhaustive search algorithm of the joint optimization problem, and at the same time, it is significantly better than the comparison scheme, and can significantly reduce system energy consumption.
通过实施例可以看出,本发明提供的一种低能耗无线联邦学习系统的参数优化和资源分配方法,构建了低能耗无线联邦学习系统模型,基于低能耗无线联邦学习系统模型建立联邦学习流程;以最小化系统模型能耗为优化目标,建立联合参数优化和资源分配问题,将联合参数优化和资源分配问题拆分为聚合间隔优化子问题并计算得到最优聚合间隔、频率优化子问题并计算得到最优计算频率、带宽分配优化子问题并计算得到最优带宽分配和传输功率优化子问题并计算得到智能终端和边缘服务器的最优传输功率。本发明对无线通信和模型训练的多个变量进行联合优化,在模型训练性能的限制下,最小化联邦学习过程中的系统能耗,与其他方案相比,本发明方法显著优于对比方案,可以明显降低系统能耗。It can be seen from the embodiments that a method for parameter optimization and resource allocation of a low-energy wireless federated learning system provided by the present invention constructs a low-energy wireless federated learning system model, and establishes a federated learning process based on the low-energy wireless federated learning system model; With the optimization goal of minimizing the energy consumption of the system model, a joint parameter optimization and resource allocation problem is established, and the joint parameter optimization and resource allocation problem is split into aggregation interval optimization sub-problems, and the optimal aggregation interval and frequency optimization sub-problems are calculated and calculated The sub-problems of optimal computing frequency and bandwidth allocation optimization are obtained, and the sub-problems of optimal bandwidth allocation and transmission power optimization are calculated, and the optimal transmission power of intelligent terminals and edge servers is calculated. The present invention jointly optimizes multiple variables of wireless communication and model training, and minimizes system energy consumption in the process of federated learning under the limitation of model training performance. Compared with other solutions, the method of the present invention is significantly better than the comparative solution. Can significantly reduce system energy consumption.
在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的步骤、方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种步骤、方法所固有的要素。As used herein, the terms "comprises," "comprising," or any other variation thereof are intended to cover a non-exclusive inclusion such that a step, method comprising a series of elements includes not only those elements, but also other elements not expressly listed. elements, or also include elements inherent in such steps and methods.
以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310196400.3A CN116418687A (en) | 2023-03-03 | 2023-03-03 | Parameter optimization and resource allocation method for low-energy wireless federated learning system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310196400.3A CN116418687A (en) | 2023-03-03 | 2023-03-03 | Parameter optimization and resource allocation method for low-energy wireless federated learning system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116418687A true CN116418687A (en) | 2023-07-11 |
Family
ID=87055626
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310196400.3A Pending CN116418687A (en) | 2023-03-03 | 2023-03-03 | Parameter optimization and resource allocation method for low-energy wireless federated learning system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116418687A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117521778A (en) * | 2023-10-25 | 2024-02-06 | 广东工业大学 | A cost optimization method for split federated learning |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115278708A (en) * | 2022-07-25 | 2022-11-01 | 中国电子科技集团公司第五十四研究所 | A mobile edge computing resource management method for federated learning |
| CN115293256A (en) * | 2022-08-02 | 2022-11-04 | 西北大学 | A Blockchain-Assisted Federated Learning Wireless Network Model |
| WO2022257348A1 (en) * | 2021-06-08 | 2022-12-15 | 重庆邮电大学 | Task offloading and resource allocation method in uncertain network environment |
-
2023
- 2023-03-03 CN CN202310196400.3A patent/CN116418687A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022257348A1 (en) * | 2021-06-08 | 2022-12-15 | 重庆邮电大学 | Task offloading and resource allocation method in uncertain network environment |
| CN115278708A (en) * | 2022-07-25 | 2022-11-01 | 中国电子科技集团公司第五十四研究所 | A mobile edge computing resource management method for federated learning |
| CN115293256A (en) * | 2022-08-02 | 2022-11-04 | 西北大学 | A Blockchain-Assisted Federated Learning Wireless Network Model |
Non-Patent Citations (2)
| Title |
|---|
| ZHIHAO DONG ET AL.: "Fuzzy Logic Assisted Client Selection and Energy-Efficient Joint Optimization for Hierarchical Federated Learning", IEEE, 23 October 2023 (2023-10-23) * |
| 张菁: "基于云边端协同的MEC任务卸载问题研究", 中国优秀硕士学位论文全文数据库, 31 January 2023 (2023-01-31) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117521778A (en) * | 2023-10-25 | 2024-02-06 | 广东工业大学 | A cost optimization method for split federated learning |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111913723B (en) | Pipeline-based cloud-edge-device collaborative offloading method and system | |
| CN109814951B (en) | Joint optimization method for task unloading and resource allocation in mobile edge computing network | |
| CN113625751B (en) | Unmanned aerial vehicle position and resource joint optimization method for air-ground integrated federal learning | |
| CN114363911B (en) | A wireless communication system and resource optimization method for deploying hierarchical federated learning | |
| CN111405569A (en) | Method and device for computing offloading and resource allocation based on deep reinforcement learning | |
| CN111130911B (en) | Calculation unloading method based on mobile edge calculation | |
| CN112105062B (en) | Mobile edge computing network energy consumption minimization strategy method under time-sensitive condition | |
| CN110429973A (en) | A Cooperative Computing Offloading and Optimization Method for UAV and Ground Base Station | |
| CN113406974B (en) | Learning and resource joint optimization method for unmanned aerial vehicle cluster federal learning | |
| CN117521778B (en) | A cost-optimization approach for split federated learning | |
| CN116009677B (en) | Federal learning equipment end energy consumption optimization method based on Cell-Free mMIMO network | |
| CN113852994B (en) | High-altitude base station cluster auxiliary edge calculation method used in emergency communication | |
| CN110167178B (en) | D2D joint resource fairness allocation method with energy collection function | |
| CN116233954A (en) | Clustering data sharing method, device and storage medium based on federated learning system | |
| CN108833227B (en) | Intelligent home communication optimal scheduling system and method based on edge calculation | |
| CN108009024A (en) | Distributed game task discharging method in Ad-hoc cloud environments | |
| Liu et al. | Adaptive federated pruning in hierarchical wireless networks | |
| CN116418687A (en) | Parameter optimization and resource allocation method for low-energy wireless federated learning system | |
| CN116542319A (en) | Self-adaptive federation learning method and system based on digital twin in edge computing environment | |
| Cao et al. | A game-theoretic approach of resource allocation in NOMA-based fog radio access networks | |
| CN115118591A (en) | Cluster federation learning method based on alliance game | |
| Wang et al. | Joint job offloading and resource allocation for distributed deep learning in edge computing | |
| CN107426775B (en) | Distributed multi-user access method for high-energy-efficiency heterogeneous network | |
| CN114327860A (en) | Design and resource allocation method of wireless federal learning system | |
| CN118590098A (en) | RIS-assisted joint task offloading and resource allocation method for multiple MEC servers |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |