Conserving Drift Corrections When Clients Move Between Edge Servers

Hierarchical federated learning trains one model across many devices by inserting a middle tier of edge servers, such as base stations, gateways or ground stations, between the devices and a central cloud. Devices synchronize often and cheaply with their nearby edge server and rarely with the cloud. The best current methods for this setting keep small correction vectors that cancel two kinds of drift. One is the pull of each device toward its own data. The other is the pull of each edge group toward its region's data. With those corrections, convergence becomes insensitive to how different the data are. Their guarantees, however, rest on an invariant: the corrections must sum to zero within each group and across groups. That invariant holds only if every device stays attached to the same edge server for the whole run. In the deployments that motivate hierarchy, devices do not stay put. Satellites pass over ground stations in minutes, vehicles cross cell boundaries, and drones hand over between relays. Each such move silently breaks the sums the corrections rely on.

This note proposes a handoff rule that restores those sums using only messages between the moving device, the edge server it leaves, and the one it joins. The device carries its correction state across the boundary, and the two servers rebalance their books locally. The cloud never re-initializes anything. We also ask a second question. Inter-group data mismatch is known to be the main obstacle in two-tier training. A device that physically moves between groups carries information across that boundary, so if the corrections are kept consistent, mobility may stop being a nuisance and start acting as an extra path for mixing information between groups.

Core Claim

Multi-timescale gradient correction (MTGC) keeps a client-to-group correction updated at every edge aggregation and a group-to-cloud correction updated at every cloud aggregation. It proves non-convex convergence that is immune to data heterogeneity and reduces to SCAFFOLD with a single tier. Semi-decentralized gradient tracking (SD-GT) does the analogous thing when devices inside a group talk peer-to-peer. Both papers assume fixed group membership, and SD-GT names dynamic subnets under mobility as open.

Write the client correction of device $i$ in group $g$ as $z_i$, the group correction as $y_g$, and the group size as $n_g$. Use the zero-sum structure common to SCAFFOLD-style schemes, which the precise MTGC parameterization should be checked against before implementation. The consistency conditions are then

$$\sum_{i \in g} z_i = 0 \ \text{ for every group } g, \qquad \sum_{g} n_g\, y_g = 0 .$$

When device $i$ moves from group $g$ to group $h$, the first condition fails in both groups by $\pm z_i$. The second fails because $n_g$ and $n_h$ change and because $y_g$ and $y_h$ were each estimated against the old membership.

We claim three things. First, if these residuals are left in place, they inject a bias whose accumulated size scales with the migration rate times the gap between the mover's gradient and its group's average gradient. That bias reintroduces exactly the heterogeneity dependence MTGC removed. Second, a three-party handoff removes the bias to first order. In it, the mover sends its $z_i$ and its last local gradient estimate to both servers, the departing server spreads $z_i$ back over its remaining members, and the arriving server re-centers. Each server then adjusts its own $y$ by the mover's weighted contribution, and the cloud reconciles at its next scheduled sync. Third, with consistent corrections, the sequence of migrations behaves like a time-varying communication graph at the top tier, and faster migration should shrink the inter-group drift term. Without the handoff, faster migration should do the opposite.

The closest flat-network result is DSGTm-TV, a push-pull form of gradient tracking that proves exact convergence on time-varying directed graphs. It assumes a fixed node set and no hierarchy, so it handles edges changing but not devices changing which aggregator they belong to.

Research Program

The first part is analysis. We extend the MTGC non-convex proof to a membership process in which each device migrates between edge rounds with some probability. We treat the membership sequence as given, either a deterministic schedule as in orbital passes or a Markov chain. We derive two bounds. One is for naive carry-over, where corrections are kept unchanged after a move. The other is for the handoff rule, and its residual should be governed only by the staleness of the mover's last gradient estimate, which is bounded by local smoothness times one edge round of drift. The analysis also covers mid-round truncation, where a pass ends before the scheduled edge aggregation. That is the case SemSpaceFL sidesteps by assuming clean passes. For the mixing question, we follow Beyond spectral gap: that paper showed the spectral gap is overly pessimistic and introduced an "effective number of neighbors" measured through random-walk variance reduction. We compute the analogous quantity for the migration chain over groups and test whether it predicts the inter-group drift term better than the chain's spectral gap does. Vogels et al. proved their result only for convex problems with identically distributed data, so we use it as a predictive diagnostic and not as a guarantee.

The second part is a simulator with real mobility structure. One regime is cellular-style random migration with a tunable rate. The other is deterministic contact schedules for a small Walker-type constellation over a handful of ground stations, in the spirit of the time-snapshot graphs of Jia et al. and the contact-duration reasoning of SemSpaceFL. The orbital schedule matters because it makes handovers periodic and correlated across devices, which is when residual bias could build up coherently.

Baselines

The naive reference is hierarchical FedAvg with migration, meaning plain model averaging with no corrections. Its failure under group non-IID data is documented. MTGC reports up to a 25.5x reduction in global rounds to target accuracy against it, and 10–15% higher final CIFAR-100 accuracy than HFedAvg, FedProx, SCAFFOLD and FedDyn with ResNet-18 (MTGC). Those numbers are for static groups. We found no reported result on Lacuna for MTGC or SD-GT under client migration, so the strongest competitor's dynamic-membership performance must be measured here.

The strongest existing method is MTGC itself in two variants. One keeps stale corrections after migration. The other resets the mover's correction to zero and recomputes it on its next round. SD-GT gets the same two variants for the within-group peer-to-peer setting. The flat alternative is DSGTm-TV run on the time-varying union graph, which ignores the hierarchy. For context on static topology choice, Unified Analyses for HFL reports roughly 91.5% CIFAR-10 accuracy for Ring-Ring and roughly 88.5% for Star-Star with ResNet-18. We use their static Star-Star configuration as the no-migration upper reference for our setup.

All methods share the same partitions, model, local steps, edge and cloud periods, and total device-to-server bytes. The handoff's extra messages, two vectors per migration event, are charged against the budget. Each method gets the same learning-rate grid. Two ablations isolate the key ingredient: handing off only the client-level correction, and handing off only the group-level adjustment. Beating the strongest competitor means two things. Under migration rates where reset-MTGC degrades, the handoff must match no-migration MTGC accuracy within run-to-run noise. And its rounds-to-target must not grow with heterogeneity, while reset or stale MTGC visibly lose that property.

Why not just…?

Why not just reset a migrating device's correction? Resetting is simple, and at low migration rates it may be enough. That is a real threat. Resetting does not repair the departing group's sum, though, so the residual $-z_i$ stays in group $g$ until every remaining member refreshes. At steady migration, some groups are always inconsistent. The migration-rate sweep will show whether reset-MTGC's accuracy gap opens only at rates no deployment would produce. If so, we will report that the handoff is unnecessary for those regimes.

Why not flatten everything into one time-varying graph and run push-pull gradient tracking? DSGTm-TV does handle time-varying directed links. It assumes a fixed node set, however, and its step-size bounds depend on global mixing properties. It also discards the cheap, frequent edge synchronization that motivates hierarchy, and the unified HFL analysis says the top tier's structure dominates convergence. We run it under the same byte budget, and if it matches the handoff, the hierarchical machinery is not needed.

Why not avoid mid-round handovers by scheduling, as travel-time association does? SemSpaceFL's contact-duration association nearly doubles completed epochs per pass. It reduces handovers but cannot remove them, since passes still end and devices still change gateways between rounds. We combine travel-time association with each method, and we expect the handoff's advantage to shrink but not vanish.

Why not drop corrections, since mobility already mixes data? If migration alone mixed enough, plain HFedAvg with mobility would close the gap to MTGC. The paper comparing centralized and decentralized FL shows that sparse mixing collapses generalization as the number of clients grows, with ring-based decentralized learning nearly 20% below centralized learning at 100 clients. That makes mixing through slow migration alone unlikely to suffice. Our sweep tests this directly.

Proposed Experiments

We use CIFAR-10 and CIFAR-100 with the group-plus-client non-IID splits used by MTGC, Shakespeare for language modeling, and EuroSAT under the orbital contact schedule, following FedSN, whose satellite-specific mechanisms are complementary to ours. Metrics are final test accuracy, rounds and bytes to target accuracy, and a direct diagnostic: the norm of the violated sums in the consistency conditions, logged every round.

The first decisive check is a migration-rate sweep at fixed heterogeneity. The handoff should hold a flat curve near the no-migration reference, while stale and reset MTGC degrade. The second sweeps heterogeneity at a fixed migration rate, to test whether heterogeneity immunity survives mobility. The third tests the mixing claim. With the handoff, inter-group drift should fall as migration increases, and the migration chain's effective number of neighbors should track that drop more closely than its spectral gap. If either the first or the third prediction fails, the respective claim is wrong, and we will report it as such.