Here, the loss function of different FL algorithms can be different [1]}. For example, given a set of input-output pairs \(\lbrace x_i,y_i\rbrace _{i=1}^K\) , the loss function \(\mathcal {F}\)  of a linear regression FL model can be determined as \(\mathcal {F}( \textbf {w}_k) = \frac{1}{2}\left(x_i^T \textbf {w}_k -y_i\right)^2\) . Then, each device \(k\)  uploads its computed update \(\textbf {w}_k\)  to the MEC server, which then aggregates and calculates a new version of global model as
\(\textbf {w}_G = \frac{1}{\sum _{k \in \mathcal {K}}|D_k|}\sum _{k=1}^{K}|D_k|\textbf {w}_k.\) 
