Duality-Gap-Driven Radio and CPU Allocation for Wireless Federated Learning

When phones or sensors train a shared model over a wireless link, every round forces the same choice. How many local training steps should each device run? How fast should its processor run? How much transmit power should it spend to send the update before the deadline? Existing allocators answer with worst-case convergence bounds that treat all devices as equally far from done. Dual coordinate methods, which train by adjusting one variable per data sample instead of the model weights directly, offer something those allocators never use. They produce a computable duality gap, a number that certifiably upper-bounds how far training is from optimal. That gap also splits exactly into one term per device.

We propose to use each device's share of the gap as a live signal for allocating resources. Devices whose data still carries most of the remaining error get more local steps, a higher clock, and more power. Devices that are nearly done slow their processors, where energy scales roughly with the cube of clock speed, and send cheaply. The claim is narrow and testable. For convex models trained with distributed dual coordinate ascent, gap-driven allocation should reach a target accuracy with less device energy under the same round deadline than allocators driven by fixed, worst-case convergence constants.

Core Claim

For regularized empirical risk minimization with $n$ samples, losses $\phi_j$ with convex conjugates $\phi_j^*$, dual variables $\alpha_j$, and primal weights $w = \frac{1}{\lambda n}\sum_j \alpha_j x_j$, the duality gap decomposes over samples:

$$ P(w) - D(\alpha) \;=\; \sum_{i=1}^{K} G_i, \qquad G_i = \frac{1}{n}\sum_{j \in \mathcal{S}_i}\big[\phi_j(w^\top x_j) + \phi_j^*(-\alpha_j) + \alpha_j w^\top x_j\big], $$

where $\mathcal{S}_i$ is device $i$'s data and $K$ is the number of devices. Each device can compute $G_i$ from the weights it already receives, and reporting it costs one scalar of uplink. The standard analysis of stochastic dual coordinate ascent (SDCA) gives a second ingredient. The expected dual improvement from a local step is proportional to the current local gap. Together these yield a per-round progress model that is measured rather than assumed, and that model can sit directly inside a joint communication-computation allocation.

The novelty is not dual methods in federated learning. A dual approach for federated learning proposes federated dual coordinate descent with inexact local oracles, and Trading Computation for Communication: Distributed Stochastic Dual Coordinate Ascent (DisDCA) shows that more local dual steps $m$ cut communication rounds. Both, however, treat communication as a uniform abstract cost and fix $m$ or the local tolerance across devices. The novelty is also not duality in resource allocation. Multi-Resource Allocation for On-Device Distributed Federated Learning Systems applies Lagrangian duality to power and frequency, but trains the model in the primal and tunes local accuracy with harmony search. Federated Learning Over Wireless Networks: Convergence Analysis and Resource Allocation (FEDL) chooses local accuracy $\theta$ from strong-convexity and smoothness constants that are global, loose, and the same for every device. What is new is feeding the model's own per-device certificate into the physical allocation each round.

Research Program

The learning algorithm is DisDCA over $K$ wireless devices. In each round, device $i$ runs $m_i$ SDCA steps at clock $f_i$ and uploads its weight change at power $p_i$ over a fading channel with gain $h_i$. Computation time is $c\,m_i/f_i$, where $c$ is cycles per step, and computation energy is $\kappa c\,m_i f_i^2$, which follows from power scaling as $f^3$ as in Efficient Resource Allocation for On-Demand Mobile-Edge Cloud Computing. Upload time is the payload in bits divided by the Shannon rate $B\log(1+p_i h_i/N_0)$, where $B$ is bandwidth and $N_0$ is noise power. Under SDCA's per-step guarantee, the predicted gap reduction from device $i$ is approximately $G_i\,(1-(1-s_i/n_i)^{m_i})$, where $n_i$ is the local sample count and $s_i$ depends on $\lambda$ and the loss smoothness.

Each round, the server solves a drift-plus-penalty problem. It maximizes predicted gap reduction minus $V$ times total energy, subject to every device finishing within deadline $T$. Here $V$ is a trade-off weight and the drift-plus-penalty machinery follows Lyapunov-Based Optimization of Edge Resources for Energy-Efficient Adaptive Federated Learning. For a fixed time split, the problem separates across devices. We expect a water-filling structure in which a device's step budget grows with $\log G_i$ and its clock is set so that the marginal energy per unit of gap reduction is equal across active devices. This echoes the bottleneck, strong, and optimal user partition that FEDL derives, but with gap-weighted rather than uniform progress. We will derive this structure, solve the time split by one-dimensional search, and handle the discrete $m_i$ by rounding with a bounded loss.

The analysis target is a convergence-in-energy bound. We will use the proven DisDCA-b variant, since the practical variant's rate is open, and show that gap-driven allocation reaches gap $\epsilon$ with energy no worse than any fixed-$m$ policy under the same deadline. Evaluating $G_i$ exactly takes one local data pass, so we will also study a subsampled estimate and charge its cycles to the energy budget.

The scope is explicitly convex: linear SVMs, logistic regression, and multinomial logistic regression on fixed features. We do not claim deep networks, where conjugates are intractable, as A dual approach for federated learning notes.

Baselines

The naive reference is DisDCA with uniform $m$, every device at maximum clock, and equal power. This is the "do nothing" allocator. On idealized networks, Trading Computation for Communication: Distributed Stochastic Dual Coordinate Ascent reports that DisDCA-p reaches the target duality gap on covtype in "under 1 second". That figure motivates the dual solver but ignores wireless cost entirely.

The strongest resource-allocation competitor is FEDL's joint allocation of $f$, $p$ and $\theta$ from Federated Learning Over Wireless Networks: Convergence Analysis and Resource Allocation. It is the only method in the file that closes the loop between local accuracy and physical resources with a convergence analysis. It will be run twice: with its own primal learner, and with DisDCA substituted as the learner but with $m_i$ set from FEDL's constant-based $\theta$. The second run isolates the allocation signal from the choice of learner. No reported numerical result was found on Lacuna for FEDL's energy or time, and none for the Gao et al. allocator, which we also include with its subgradient power and frequency block.

The strongest learning-side competitor is AccFedDCD with uniform resources. On MNIST multinomial logistic regression with 30% participation, A dual approach for federated learning reports that it reaches the target in "just 3 rounds" versus "17 rounds for FedAvg and SCAFFOLD". Rounds are not energy, so we will re-measure it in joules under our channel model.

We also include a primal Lyapunov allocator with FedAvg, following Lyapunov-Based Optimization of Edge Resources for Energy-Efficient Adaptive Federated Learning. It reports "roughly 30-50%" power reduction versus equal-data-rate baselines on non-stationary MNIST.

The key ablation keeps our allocator fixed and replaces $G_i$ with three alternatives: local data size, local gradient norm, and a clairvoyant oracle that uses the true realized progress. All methods share data partitions, channel realizations, deadline, and energy budget, and receive the same grid-search budget for $V$ and step sizes. Beating the competitors means reaching the same duality gap or test accuracy with at least 20% less total device energy than FEDL-with-DisDCA at equal deadline, across three seeds. The ablation must also show that the gap signal closes most of the distance between data-size weighting and the oracle.

Why not just…?

Why not just plug DisDCA into FEDL's allocator? This is the most direct simpler route, and we run it as a baseline. FEDL sets local accuracy from global smoothness and convexity constants, so it cannot see that one device's data is nearly fit while another's is not. The answer is empirical. If DisDCA-plus-FEDL matches our energy on non-IID LEAF partitions, the per-device gap signal adds nothing and the claim fails.

Why not just let every device run as many steps as fit in the deadline? This is a real threat. Deadline-filling is simple and uses all available time. It ignores cubic clock energy, though. A device that is nearly done still spends heavily on a fast clock for little gain. We include deadline-fill at both maximum clock and energy-optimal fixed clock. If it matches our allocator at loose gap targets but loses at tight ones ($10^{-3}$ and below), that pattern would confirm where the certificate matters.

Why not use gradient norms as the progress signal in a primal method? Gradient norms are cheap and available in FedAvg. Unlike $G_i$, however, they are not additive upper bounds on suboptimality, and their scale is not comparable across heterogeneous devices. The gradient-norm ablation settles whether this distinction matters in practice.

Proposed Experiments

The convex benchmarks are covtype, rcv1, and epsilon, which DisDCA and the asynchronous bundle method of An Asynchronous Bundle Method for Distributed Learning Problems already use. These are partitioned IID and label-skewed across 20 to 100 devices. We add FEMNIST and Synthetic from LEAF: A Benchmark for Federated Settings with multinomial logistic regression for natural non-IID splits, and MNIST for direct comparison with FedDCD.

The wireless simulation follows Multi-Resource Allocation for On-Device Distributed Federated Learning Systems: a 150 m cell, 2.0 GHz maximum clock, and a 20 J device budget. Channels are Rayleigh-fading, averaged over 100 realizations as in Joint Optimization of Radio and Computational Resources for Multicell Mobile-Edge Computing.

Metrics are total device energy to reach a duality gap of $10^{-2}$, $10^{-3}$, and $10^{-4}$; wall-clock time; test accuracy; and the fraction of rounds that meet the deadline.

There are three decisive checks. First, the energy advantage over FEDL-with-DisDCA should grow as the gap target tightens and as data heterogeneity increases. If it does not, gap-driven allocation is not the source of any gain. Second, in the ablation, $G_i$ should outperform data-size and gradient-norm weighting and approach the oracle. Third, the subsampled gap estimate must retain the advantage after its compute is charged to the energy budget; otherwise the certificate costs more than it saves.