AI & LLM Security / Privacy-Preserving ML

Federated Learning & Privacy-Preserving Machine Learning

Centralizing user data for training concentrates both privacy risk and regulatory exposure in one place. Federated Learning (FL) inverts the arrangement: the model goes to the data. Clients train locally and send only model updates, which are combined into a new global model. That removes the central dataset, but it does not by itself remove the privacy problem — updates leak information about the data that produced them — and it introduces a new one, because the participants computing those updates are no longer trusted. Secure aggregation and differential privacy address the first; robust aggregation addresses the second, and the two pull against each other.

Three panels: decentralized edge client training with local data staying on device and Gaussian noise added for differential privacy; secure aggregation where the server sees only the aggregate sum, with its honest-but-curious and non-collusion assumptions stated; and defenses against poisoning and membership inference, noting the tension between robust aggregation and secure aggregation.

Federated learning: local training, secure aggregation of updates, and the poisoning and inference defenses layered over it

Two regimes, not one

“Federated learning” covers two settings whose threat models and engineering constraints differ enough that a control appropriate to one is often wrong for the other.

  Cross-device Cross-silo
Participants Up to millions of consumer devices. A handful to a few hundred organizations.
Availability Intermittent; clients drop mid-round routinely. Reliable, usually always-on infrastructure.
Round participation A small sampled subset each round; a client may never be selected twice. Typically all participants, every round.
Client state Stateless — no assumption that a client returns. Stateful across rounds.
Identity Weak. Devices generally cannot be enrolled in an organizational trust domain. Strong. Each participant is a known, contracted legal entity.
Dominant threat Many cheap, individually weak malicious clients. Few clients, but each holds a large data share and real incentives.

Dropout recovery machinery matters in the cross-device setting and is close to irrelevant in cross-silo. Client authentication is practical in cross-silo and largely unavailable cross-device. Read every claim below against the regime you are in.

The training loop

Federated Averaging (FedAvg) iterates four steps. Writing W_t for the global weights at round t and D_k for client k’s local dataset:

  1. Broadcast — the server sends W_t to the clients selected for this round.
  2. Local training — each client trains on its own D_k for a fixed number of local epochs, producing W_t^k.
  3. Aggregation — clients return their updates, which the server combines into a single weighted sum.
  4. Update — the server forms W_(t+1) from that sum and the round repeats.

Raw data never leaves the client. Model updates do, and a gradient or weight delta is a function of the training data — gradient inversion attacks reconstruct recognizable training images and text from unprotected updates. Step 3 is therefore where the privacy engineering has to happen.

Secure aggregation and differential privacy

These are different tools solving different halves of the problem. Neither replaces the other.

Safeguard Mechanism What it guarantees What it assumes
Secure aggregation (SecAgg) Clients apply pairwise masks derived from key agreement, which cancel when the updates are summed; secret sharing lets the server recover the sum when clients drop out. The server learns the aggregate sum and nothing about any individual update. An honest-but-curious server, and no collusion above the protocol’s threshold. It hides individuals, not the sum.
Local differential privacy Each client clips its update to a bounded norm, then adds calibrated Gaussian noise before sending it. A bounded (ε, δ) limit on what any observer — including the server — can infer about one record, independent of the aggregation protocol. Correct clipping and noise calibration on every client. Utility cost is highest here.
Central differential privacy The server adds calibrated noise to the aggregate before publishing the new global model. A bounded limit on membership inference against the published model. A trusted server, since it sees the clean aggregate before adding noise.

Two things follow that are easy to miss:

For the broader family of privacy-enhancing technologies these sit within — differential privacy, secure multi-party computation, homomorphic encryption, and zero-knowledge proofs as distinct primitives — see Privacy by Design & Privacy-Enhancing Technologies.

Poisoning, and the conflict it creates

The participants are untrusted, which is the structural difference from centralized training.

The conflict. Plain SecAgg is designed so the server sees only the sum. Krum, Trimmed Mean, and Bulyan all work by ranking or trimming individual updates. Deploying both naively is contradictory: whatever lets the server rank submissions also lets it inspect them. Reconciling them requires a protocol built for it — verifiable or robust secure aggregation schemes that compute the robust statistic inside the protected computation, or norm bounds enforced cryptographically on each masked submission rather than by inspection. A deployment claiming both should be asked which scheme it uses.

Client authentication helps in cross-silo, where participants are known entities: short-lived OIDC tokens raise the cost of registering extra identities and bound how many one principal can hold. It does not prevent Sybil attacks — one authenticated principal can still control many enrolled devices — and in cross-device settings it is usually unavailable in the first place.

Operational cost

Diagnostic checklist

When auditing a privacy-preserving machine learning deployment, evaluate these six criteria:

Diagnostic area Evaluation question Audit evidence
Regime and threat model Is the deployment cross-device or cross-silo, and are the server trust assumptions written down? Architecture records & documented trust boundaries.
Data locality Does raw training data stay on the client, verified rather than assumed? Client code review & network captures.
Aggregation protection Is secure aggregation in use, and what does it assume about server honesty and collusion? Aggregation implementation & protocol specification.
Privacy budget Is noise calibrated at the layer matching the trust model, with ε accounted across rounds and its value justified? Clipping and noise configuration & budget accounting records.
Poisoning defense Are norm bounds enforced on every submission, and does the robust aggregation rule coexist with secure aggregation by design? Aggregation configuration & the scheme reconciling the two.
Participant identity In cross-silo, are participants authenticated with short-lived credentials, and is the residual Sybil exposure recorded? Authentication gateway logs & risk register entry.
What I need to remember

Federated learning removes the central dataset, not the leakage — updates still encode the data. Secure aggregation hides individual updates from an honest-but-curious server; differential privacy bounds what the aggregate reveals; they solve different halves. Robust aggregation like Krum or Bulyan needs to rank individual updates, which plain SecAgg exists to prevent, so any deployment claiming both must name the scheme that reconciles them.

Primary references