# Adaptive Federated Learning in Resource Constrained Edge Computing Systems

Adaptive control sets how often edge nodes aggregate federated learning updates

Shiqiang Wang, Tiffany Tuor, Theodoros Salonidis, Kin K. Leung, Christian Makaya, Ting He and 1 more · arXiv · 2018-4-14

- **Problem** Edge nodes must choose how many local gradient updates to run between global aggregations. The right number depends on how different node datasets are and on the resource budget, and that is unknown in advance.
- **Method** The authors derive a convergence bound for distributed gradient descent. At each aggregation, the aggregator recomputes the best number of local updates from estimated parameters, keeping resource use within the budget.
- **Results** The adaptive method reaches loss and accuracy close to the best fixed interval across SVM, linear regression, K-means and CNN tests. For SVM with SGD across 5 to 500 nodes, it matches or beats the fixed interval of 10.

## Why the aggregation interval is a resource decision

Edge nodes produce a large share of the data used to train models, but sending that data to a remote cloud is often impractical because of network bandwidth and privacy limits. Training therefore has to happen where the data is stored, and the nodes must coordinate their results through a central aggregator.

In federated learning, each node runs local gradient steps on its own data, and a global aggregation combines the node parameters and sends them back. The aggregation interval can be set to one local update or to several, and it is the main knob for trading computation against communication. Every local update draws on the computation budget of a node, and every aggregation draws on the communication resources of the network, so each setting of the interval consumes resources in a different way.

The relationship between aggregation frequency, model accuracy and resource use is complicated, and the data distribution across nodes is usually unknown in advance and often non-i.i.d. The problem studied is therefore how many local updates to run between aggregations so that the final loss is as low as possible under a given resource budget, which is stated as a constrained minimization over the number of updates and the number of aggregations.

## Distributed gradient descent as the base procedure

Each node i has a local loss F\_i(w), which is the average of the per-sample losses over its own dataset, and the global loss F(w) is the average over all nodes weighted by dataset size. \\\[ F(w)=\\frac{\\sum\_{i=1}^{N} D\_i F\_i(w)}{D} \\\] F(w) cannot be evaluated directly, because computing it needs information from every node.

Each node starts from the same parameter and, at each iteration, takes a gradient step on its local loss from the parameter it holds after the most recent aggregation. \\\[ w\_i(t)=\\tilde w\_i(t-1)-\\eta\\nabla F\_i(\\tilde w\_i(t-1)) \\\] The aggregated parameter w(t) is the same weighted average of the node parameters, and the node parameters are replaced by it only at iterations where an aggregation takes place.

Setting the interval to one update makes the procedure equivalent to centralized gradient descent on the global loss, which is why the centralized method is the natural reference. The reported parameter is not simply the last one: it is the iterate with the lowest global loss among the aggregation points, which the authors chose to keep the convergence statement rigorous.

## What the convergence bound depends on

The analysis assumes that each local loss is convex, ρ-Lipschitz and β-smooth, and the authors confirm this holds for squared-SVM and linear regression. The same section defines the gradient divergence δ as an upper bound on how far a local gradient can be from the global gradient, and δ is the data-size weighted average of the per-node values.

The gap between the distributed parameter w(t) and an auxiliary centralized parameter v\[k\](t) is bounded by a function h(x), where x counts the local steps since the last aggregation. The function is nonnegative and grows exponentially in x, it is zero at x = 0 and x = 1, and it is proportional to δ. A data distribution with identical node datasets gives δ = 0 and removes the gap.

Under step size η at most 1/β, the final bound combines an interval-free term in T with a term involving h(τ), and it places no restriction on how data is spread across nodes; that dependence enters only through h(τ). \\\[ F(w\_f)-F(w^\*)\\le\\frac{1}{2}\\eta\\phi T+\\sqrt{\\frac{1}{4}\\eta^2\\phi^2T^2+\\rho h(\\tau)\\eta\\phi\\tau}+\\rho h(\\tau) \\\] Here phi is a constant built from the distance between the auxiliary parameters and the optimum, and it is not estimated online.

Because h(τ) is nondecreasing in τ and the bound grows with it, the best τ is small when the data distribution differs a lot across nodes and the resource budget is tight. Proposition 1 states that when the minimum resource budget grows without bound, the optimal τ tends to 1, and that under the stated conditions a finite upper limit on the optimal τ always exists.

## Choosing tau during training

The control objective G(τ) combines the convergence terms with the per-update and per-aggregation costs, and the chosen interval is the integer τ that minimizes it. A closed-form minimizer is not available, because G(τ) mixes polynomial and exponential terms, so the aggregator searches over a finite set of integers. Resource use is checked against the budget using the number of local updates T and aggregations K, with T equal to K times τ.

The consumption per local update and per aggregation is measured at the nodes and the aggregator, and the total used so far is compared with each budget. The smoothness, Lipschitz and divergence parameters are estimated after each aggregation from differences between local and global losses and gradients. Because the global parameter is only available right after aggregation, these estimates are first used at the second aggregation after initialization.

When a node's local parameter equals the global one, its estimates are set to zero, and the gap function is then defined as zero for every τ.

At each aggregation the search is limited to values up to γ times the current τ\*, and never above τ\_max, which keeps early and noisy estimates from making τ\* jump. The search parameter γ is set to 10 and τ\_max to 100 in all experiments. When the estimated consumption shows that the next interval would exceed a budget, the aggregator shortens the last interval and sets the stop flag.

## Models, datasets and data distributions

The models are squared-SVM, linear regression, K-means and a convolutional neural network, and the two that satisfy Assumption 1 are squared-SVM and linear regression. The SVM is trained on MNIST-O with 70,000 handwritten digits, split into 60,000 for training and 10,000 for testing, to predict even or odd. The DGD variant of the SVM uses only 1,000 training and 1,000 testing samples per simulation round, while the SGD variant uses the whole dataset.

Linear regression uses an energy dataset of 19,735 records, and K-means uses a user knowledge modeling dataset of 403 samples with 5 attributes. The CNN is trained on MNIST-O, a fashion MNIST variant called MNIST-F, and CIFAR-10, which has 60,000 color images in 10 classes. Since the energy dataset has no ground-truth labels, its node assignment is based on labels generated by an unsupervised clustering step.

Four ways of splitting data across nodes are compared. In Case 1 samples are assigned at random, in Case 2 every node holds samples with a single label, in Case 3 every node holds the full dataset, and in Case 4 the first half of the labels go to the first half of the nodes in the Case 1 way and the rest go to the other nodes in the Case 2 way.

The gradient step size is 0.01, the default time budget is 15 seconds, and the reported results are averages over 15 independent runs. The SVM, linear regression and K-means experiments run on a prototype system, while the CNN runs in a simulation with 5 nodes because of the limits of the Raspberry Pi devices.

## Adaptive tau against fixed tau

The adaptive method gives one point per case, the average τ\* it chose with the loss or accuracy that resulted, and the fixed-τ baseline is drawn as a curve over τ. Across the cases and models tested, the adaptive point lies close to the best fixed-τ point, which the authors report for all cases and all models. Longer training would raise the absolute accuracy of the CNN, so the closeness claim is about the fixed time budget and not about the best attainable accuracy.

The best fixed τ differs from case to case and from model to model, so a single fixed interval cannot serve every setting. In some cases the distributed method beats the centralized one, because for a given time budget several nodes can use their computation in parallel. For DGD, Case 3 trails Case 1 because each node processes the full dataset, so each local update costs more resource.

## Node count, aggregation time and time budget

With SVM (SGD) and the number of nodes varied from 5 to 500 in simulation, the adaptive method performed better than or similar to the fixed τ = 10 baseline in every case. The baseline is fixed at τ = 10 because that value worked well among the fixed settings in the earlier sweep.

At the largest factors τ\* falls a little, because so few aggregations fit in the budget that the last interval is shortened to stay within the limit. Compared with the fixed τ = 10 baseline, the adaptive method performs better in almost all of these settings.

When the total time budget is swept from 5 to 60 seconds on the prototype, τ\* falls as the budget grows, except in Case 3 where all nodes share one dataset. In every case the adaptive method performs better than or similar to the fixed τ = 10 baseline.

## Limitations

The bound is derived under Assumption 1, which the K-means and CNN losses do not satisfy because they are non-convex. Results for those two models are reported anyway, so the evidence for them is empirical and not covered by the bound.

When the estimated smoothness becomes large, phi can turn negative, which makes the τ computation misbehave, so the authors kept phi constant.

The parameter estimates arrive with a lag and can be inaccurate, which is why the search range and the cap on τ are used. The main comparisons use only the fixed τ = 10 baseline in the node, aggregation-time and budget sweeps, and accuracy is reported only for SVM and CNN. The CNN results come from a 5-node simulation rather than from the prototype.

## Paper info

- **Authors**: Shiqiang Wang, Tiffany Tuor, Theodoros Salonidis, Kin K. Leung, Christian Makaya, Ting He, Kevin Chan
- **Venue**: arXiv · Preprint
- **First published**: 2018-4-14
- **Added**: 2026-11-12
- **Updated**: 2019-2-17
- **Version**: v3
- **arXiv**: 1804.05271
- **Category**: cs.DC · cs.LG · math.OC · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1804.05271v3) · [PDF ↗](https://arxiv.org/pdf/1804.05271v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Shiqiang Wang, Tiffany Tuor, Theodoros Salonidis, Kin K. Leung, Christian Makaya, Ting He, Kevin Chan (2018). Adaptive Federated Learning in Resource Constrained Edge Computing Systems. arXiv:1804.05271v3. https://arxiv.org/abs/1804.05271v3

**BibTeX**

```
@misc{wang2018adaptive,
  title = {{Adaptive Federated Learning in Resource Constrained Edge Computing Systems}},
  author = {Shiqiang Wang and Tiffany Tuor and Theodoros Salonidis and Kin K. Leung and Christian Makaya and Ting He and Kevin Chan},
  year = {2018},
  eprint = {1804.05271},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.05271v3}
}
```

## Other paper commentary

- [Federated Optimization: Distributed Machine Learning for On-Device Intelligence](https://refivu.com/en/papers/5f4eb215-ecfd-414d-aaa9-bd382c3c7b54-federated-optimization-distributed-machine-learning-for-on.md)
- [Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs](https://refivu.com/en/papers/2f0fda58-62a6-4d7b-8db1-4bdf80289483-efficient-and-robust-approximate-nearest-neighbor-search.md)
- [Channel Pruning for Accelerating Very Deep Neural Networks](https://refivu.com/en/papers/e9bb1323-d15c-464e-b220-b00a94be3b6d-channel-pruning-for-accelerating-very-deep-neural-networks.md)
- [Towards Federated Learning at Scale: System Design](https://refivu.com/en/papers/5a416c7f-9637-4efb-9bcc-4ff43e95b3bd-towards-federated-learning-at-scale-system-design.md)
- [Efficient Inference in Fully Connected CRFs with Gaussian Edge Potentials](https://refivu.com/en/papers/bfc0169f-9d85-4375-8194-0b11713c1836-efficient-inference-in-fully-connected-crfs-with-gaussian.md)
- [Direct Sparse Odometry](https://refivu.com/en/papers/05fea2ab-dd17-4852-b079-020caac4ff45-direct-sparse-odometry.md)
- [An overview of deep learning in medical imaging focusing on MRI](https://refivu.com/en/papers/32ea4d5e-6c76-4049-bb47-28e2173246b5-an-overview-of-deep-learning-in-medical-imaging.md)
- [Simplifying Graph Convolutional Networks](https://refivu.com/en/papers/e44b1726-1294-4944-949a-e3035e872bc5-simplifying-graph-convolutional-networks.md)
- [Cross-lingual Language Model Pretraining](https://refivu.com/en/papers/8d4c53c4-5c75-4330-9085-1b84a43703b6-cross-lingual-language-model-pretraining.md)
- [Multi-Stage Progressive Image Restoration](https://refivu.com/en/papers/a0d55708-eafa-400b-8906-c56a935d39eb-multi-stage-progressive-image-restoration.md)
- [DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradients](https://refivu.com/en/papers/2b8264c6-509a-4bef-bf4f-0e373a15bf5f-dorefa-net-training-low-bitwidth-convolutional-neural.md)
- [Learning Face Representation from Scratch](https://refivu.com/en/papers/c66cea99-ee67-42f0-85f5-a773fc796f34-learning-face-representation-from-scratch.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [Convolutional Neural Network](https://refivu.com/en/terms/610f2c09337d-convolutional-neural-network)
- [Federated Learning](https://refivu.com/en/terms/c6fc55e6f812-federated-learning)
- [k-means](https://refivu.com/en/terms/43bff6ec1a4e-k-means)
- [Loss Function](https://refivu.com/en/terms/4b92e3b56586-loss-function)
- [aggregator](https://refivu.com/en/terms/37f07f5ceea8-aggregator)
- [Assumption 1](https://refivu.com/en/terms/5dc7d1083944-assumption-1)
- [Linear Regression](https://refivu.com/en/terms/772ea5657e9d-linear-regression)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/75d8bb03-c432-4128-871e-23133be3cbc7-adaptive-federated-learning-in-resource-constrained-edge)
