Federated Learning Theory
Calculate client drift for two quadratic objectives and distinguish optimization, secure aggregation, and user-level privacy in federated learning.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 3
- Reading time
- 2 min
In this article3 chapters
The weighting specifies the global objective
For client losses \(F_i\) and weights \(p_i\) summing to one, the target is \(F(w)=\sum_i p_i F_i(w)\). Uniform client weights target a client average. Sample-proportional weights target a record average when the client losses are local sample means. Partial participation, unequal availability and different data distributions can bias the realized update away from the stated objective. With one exact local gradient step at a shared model and correct weights, averaging the steps equals a global gradient step.
Mini-batch gradients explain how a sampling rule changes the update being estimated. Private aggregation then supplies a separate visibility contract for combining submitted updates.
Several local steps can drift even at the optimum
Use two equally weighted clients with \(F_1(w)=\tfrac12(w-1)^2\) and \(F_2(w)=(w+1)^2\). Their global stationary point is \(w_*=-1/3\). There the local gradients are opposite, \(-4/3,4/3\). With common step size \(\eta\), the first moves average to zero. The second steps evaluate gradients at different local models and curvatures. The second gradients are \(-4/3+4\eta/3\) and \(4/3-8\eta/3\). Their averaged final position is
\[ \overline w_2=w_*+\tfrac23\eta^2. \]
The drift persists even though the starting global gradient is zero. Control-variate methods such as SCAFFOLD estimate and correct part of the disagreement between local and global gradients.
Aggregation and disclosure have separate specifications
Secure aggregation lets a service recover the sum of submitted updates under a protocol’s participation, dropout and trust assumptions. It can hide individual updates from that view while still revealing their sum. Making the released model insensitive to one client’s participation needs contribution bounds and a privacy analysis of all releases, as in differential privacy. Secure multiparty computation develops the cryptographic abstraction behind computations on private client inputs. Both properties depend on explicitly stated models.[1][2][3]