Manuscript Offprint

arXiv:2609.09659

Cascading Gradient Inversion via LT-Code Inspired Peeling in Federated Learning

Saeed Shariati, Mohsen Alambardar Meybodi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Saeed Shariati and Mohsen Alambardar Meybodi

Abstract—Federated learning shares model updates rather than raw data, yet these updates can be inverted to reconstruct the clients' training data. Analytic reconstruction attacks, which invert a gradient in closed form, degrade as the batch grows: prior single-round attacks recover only about half of a batch of size 100 even when the attacker fully controls the network parameters, and known upper bounds limit what any such method can recover. We establish a connection between gradient inversion and the theory of erasure-correcting codes, and use it to construct attacks that exceed these bounds. Our attacks recover batches exactly, together with every sample's label, from a single FedSGD round, and certify each recovery without ground-truth data. On eight image and tabular benchmarks they outperform prior single-round attacks by a wide margin. Even a passive attacker who only observes an honestly trained network recovers 94–100% of ImageNet batches at sizes up to 128, more than prior single-round attacks achieve even with active manipulation of the model, and in the active setting more than 90% is recovered at batch sizes of several hundred. These results show that the privacy leakage of federated learning has been underestimated.

Index Terms—Gradient inversion, federated learning, FedSGD, analytic attack, Luby transform codes, privacy leakage

I. INTRODUCTION

Federated learning (FL) enables collaborative training of machine learning models without requiring participants to share their raw data [1], [2]. In each communication round, a central server distributes the current global model to a subset of clients; each client computes an update on its private local data and returns only the update, typically a gradient or model difference, to the server. Two widely studied algorithms are FedSGD, in which clients return the gradient of a local batch, and FedAvg, in which clients perform multiple local stochastic gradient steps before returning the net model update [1]. FL deployments are further divided into cross-silo and cross-device settings [2]: cross-silo clients are organizations that remain available throughout training, whereas cross-device clients are numerous mobile or IoT devices, only a fraction of which participate in each round and any of which may appear only once.

Although FL was designed with privacy in mind, numerous studies have shown that the shared updates can leak substantial information about clients' training data. Such leakage has given rise to a variety of privacy attacks, which are commonly grouped into three categories: data reconstruction [3], [4], [5], [6], [7], [8], membership inference [9], [10], and property inference [11], [10]. These attacks may be either active,

where the server deliberately modifies weights, biases, or even the model architecture to facilitate reconstruction [12], [13], [14], or passive, where an honest-but-curious server attempts to recover information solely by inspecting the received updates [15], [16]. In response, several defenses have been proposed, most notably differential privacy (DP) [17] and secure aggregation (SA) [18], [19]. However, secure aggregation alone has been shown to be insufficient against certain privacy attacks, such as membership inference, and is therefore typically combined with differential privacy [20].

This paper focuses on data reconstruction attacks. Within this family one can further distinguish optimization-based [3], [4], [5], [21], [22], generative [23], [24], and analytic [6], [7], [25], [8], [26], [14] methods. Analytic attacks exploit explicit mathematical relationships between model gradients and the underlying training data. A prominent class of such attacks exploits closed-form relationships involving the first-layer gradients and input samples, typically for networks whose first layer is fully connected and followed by a ReLU activation. When a neuron is activated by only a single sample in the batch, that sample can be recovered exactly by a simple ratio of the corresponding weight and bias gradients [6]. Active analytic attacks are often easily detectable due to modifications of the model architecture [12], [27] or conspicuous changes in model parameters [7], [26], [14], while passive analytic attacks have so far struggled with large batch sizes [15].

Analytic attacks that rely on isolating individual samples, however, are fundamentally limited. Because they recover only isolated samples, the number of recoverable inputs is upper-bounded by the number of vertices of the convex hull formed by the batch [7]. This bound applies to isolation-based methods; it does not cover analytic attacks that recover batches through other mechanisms, such as the low-rank gradient structure exploited by SPEAR [15]. For data drawn from continuous distributions, the bound grows slowly with batch size and becomes particularly restrictive for low-dimensional (e.g., tabular) inputs. Consequently, single-round isolation-

Figure

Fig. 1: Original (top) and recovered (bottom) ImageNet samples from a single round of FedSGD.

Both authors are with the Department of Applied Mathematics and Computer Science, Faculty of Mathematics and Statistics, University of Isfahan, Isfahan 81746-73441, Iran (e-mail: saeed.shariati1380@gmail.com; m.alambardar@sci.ui.ac.ir).

Corresponding author: Mohsen Alambardar Meybodi.

based methods recover only a fraction of larger batches even under active model manipulation: with trap weights and 1000 neurons, Boenisch et al. [6] recover roughly half of a batch of 100 samples, and the fraction decreases as the batch grows. Multi-round variants [7], [8] recover full batches, but require repeated interaction with the client under carefully controlled per-round coefficients; this rules them out in the cross-device setting, where a client may be present in only a single round.

In this work we show that the limitation is not intrinsic. Once an isolated sample is recovered, its contribution can be subtracted from the observed gradient. The residual gradient is again of the same analytic form, but now computed over the remaining unrecovered samples. This subtraction can create new isolated samples, which can themselves be recovered and subtracted, producing an iterative cascade. The process is formally analogous to the peeling decoder of Luby Transform (LT) codes [28] (Section II-C).

To increase the length and success probability of the cascade, we further control the neuron degrees (Definition 1) of the first-layer neurons. Adapting the degree distribution of LT codes, we shape these degrees toward the robust soliton distribution. We introduce two novel constructions: Soliton-Free, which requires no auxiliary data and relies on a Gaussian approximation of pre-activations, and Soliton-Data, which uses a single auxiliary batch to set exact degree thresholds. Both constructions primarily adjust the first-layer biases to control neuron degrees.

Our attacks recover large batches exactly, together with their labels, from a single FedSGD communication round. The label of each recovered sample is obtained from the residual bias via a closed-form fit that also serves as a certificate of authenticity (Section V-C); no ground-truth data are required. The methods apply to any classification network whose first layer is a fully connected layer with ReLU activation, trained with cross-entropy loss (though they can be extended to a broader class of networks [6], [25]), and they succeed on both image and tabular data.

• We introduce a cascading recovery procedure for analytic gradient inversion that iteratively recovers and subtracts isolated samples, overcoming the upper bound that limits prior isolation-based attacks (Section III).

• We propose two parameter-manipulation techniques, Soliton-Free and Soliton-Data, that shape neuron activation degrees according to the robust soliton distribution, substantially increasing the fraction of recoverable samples. Soliton-Data recovers more than 90% of samples at batch sizes of several hundred on many data sets, and Soliton-Free recovers 98% of samples at B = 300 without auxiliary data (Table II).

• In the passive (honest-but-curious) setting, the attack achieves near-complete recovery (94–100%) at batch sizes up to 128 on image benchmarks and recovers a complete tabular batch at B = 64. For comparison, the passive state of the art SPEAR++ [16] reconstructs batches of at most about 65 samples at the same network width (N = 1000) and fails at B = 150, while prior single-round attacks failed to recover a batch size of 128 even in active settings [6].

  • Recovered samples are exact and paired with their correct labels, with perfect label accuracy across eight data sets, and every recovery is certified without access to ground-truth data.

References (40)