Manuscript Offprint
arXiv:2611.09652Breaking the Privacy Promise: Gradient Inversion Attacks on Federated Low-Rank Adapted Vision Transformers
Abstract
Parameter-efficient fine-tuning (PEFT) has been increasingly adopted to fine-tune pretrained models with low computational cost and is therefore also preferred in the federated learning paradigm to reduce computational and communication overhead. In this work, we investigate the sparsely explored problem of the risk of private data leakage in LoRA-adapted Vision Transformers (ViTs), where low-rank updates weaken the gradient signal available to a server with access to individual client updates. We show that quality of reconstruction is limited by two coupled ambiguities: reduced information in LoRA gradients and missing spatial cues from frozen positional embeddings. To address this, we propose a spatially anchored generative inversion framework that incorporates server-prescribed trainable positional embeddings into ViT blocks during fine-tuning at clients. The resulting positional gradients act as layer-wise spatial anchors, providing additional positional cues, while the generative prior keeps reconstructions on a realistic image manifold, reducing duplicate-data and patch-permutation artifacts, which produce similar gradients as those produced when the target client images are used. Adding our proposed spatial anchoring to GIAS improves PSNR by 10.14 dB, SSIM by 0.45, and LPIPS by 0.098 on CIFAR-10, as well as PSNR gains of 7.83 and 11.74 dB on high-resolution CelebA and CARS datasets, respectively, in the FedSGD setting. Such gains in reconstructed image quality metrics are also maintained at higher batch sizes and in FedAvg settings. These results indicate that LoRA-based PEFT does not, by itself, prevent data leakage in FL, and carefully incorporated positional embeddings can help in exposing private information.
1. Introduction
Federated Learning (FL) enables privacy-preserving decentralized training by keeping individual users' training data private and by training a global model by sharing users' lo-

Figure 1. Conceptual illustration of duplicate sample issue in GIAs. Multiple local minima in the gradient-matching objective lead to reconstruction ambiguity, where multiple images yield nearly identical gradients to the target sample. All initializations and reconstructed images are real samples from our experiments.
cal gradients [41, 56]. However, recent studies have shown that it is possible to breach the user data privacy through several types of data privacy attacks, such as Gradient Inversion Attacks (GIAs) [20, 23, 62], which focus on reconstructing the user data, either through an honest-but-curious server interested in recovering user data in the FL system [20, 62], or by modifying the model architecture or model weights [18, 19, 60] and sending the compromised model to the users through a malicious server.
Early works on GIAs targeted fully connected and convolutional networks [9, 20, 61, 62], while subsequent work extended these attacks to Vision Transformers (ViTs), revealing the critical role of positional encodings in reconstruction quality [23, 40]. However, these works assumed full fine-tuning. In contrast, modern federated systems increasingly adopt parameter-efficient fine-tuning (PEFT), particularly LoRA [24], which updates only a small low-rank subset of parameters. This weakens the gradient signal, making inversion harder and providing stronger privacy guarantees [58]. A similar phenomenon is also observed for 'Membership Inference Attacks' (MIAs) in Liu et al. [37], where decreasing effective rank decreases the attack success rate.
The feasibility of a gradient inversion attack closely depends on the number of trainable parameters exposed by the client model [20, 61]. As the number of trainable parameters decreases, the effective manifold on which the shared gradients lie also shrinks [3, 35]. Consequently, the inversion problem becomes more challenging, since the observed gradient no longer uniquely determines the private input. This results in different initializations of the candidate solutions converging to different optima, as shown in Fig. 1. This issue is further exacerbated in PEFT settings, where LoRA-based fine-tuning updates only a small fraction of the base model's total parameters and the intrinsic gradient dimension decreases too, as evident from Fig. 2. Drawing inspiration from gradient inversion attacks on language models like DAGER [43], LAMP [4], and GRAB [16], which use a token vocabulary to filter the plausible set of tokens, we adopt a generative prior trained on images drawn from a distribution similar to, but non-overlapping with, that of the target data. This prior constrains reconstruction to an overlapping image manifold [36], discouraging non-identifiable solutions that match the gradient signal.

(a) Intrinsic dimension estimators
(b) Rank-based metrics
Figure 2. Comparison of intrinsic dimensionality of the gradients obtained from full fine-tuning and the low-rank-adapted base model (ViT-Small), which supports our hypothesis that the dimensionality of the manifold on which the shared gradient lies decreases with reduction in the number of trainable parameters. The metrics are discussed in detail in Supp. Sec. A.
In LoRA-based PEFT, the non-identifiability of gradient inversion is also reflected in the occurrence of duplicate data samples, where spatially misaligned patches or distorted and noisy inputs can induce the same gradients as the true private sample [40, 61], as shown in Fig. 3. Since positional embeddings encode spatial information, their ambiguity can permit such misaligned, distorted, or noisy reconstructions to satisfy the same gradient constraints. From Fig. 3, we observe that this non-identifiability is also observed in generative gradient inversion attacks, such as GIAS [25], where the use of a learned image prior reduces the search space but does not guarantee a unique reconstruction.
These observations suggest that successful gradient inversion under LoRA-based PEFT requires addressing two interacting sources of ambiguity: (i) reduced information from low-rank parameter updates and (ii) lost positional in-

Figure 3. Examples of jumbled patches in both optimization and generative GIAs for different initializations on low rank-adapted () ViT-Small on the CIFAR-10 dataset.
formation from frozen positional embeddings, leading to unstable reconstructions across optimization restarts.
Motivated by these observations, we propose a generative gradient inversion framework that combines LoRA fine-tuning with layer-wise trainable positional embeddings. Although standard ViT architectures do not include layer-wise positional embeddings, adding them enables efficient recovery of positional details without hurting model performance (see Supp. Sec. B). This design allows the attacker to reconstruct spatial data while respecting the generative prior's realism constraints. Experimental results demonstrate substantial improvements in reconstruction fidelity, attack stability, and resistance to duplicate artefacts across low-rank and training configurations. In summary, our main contributions are as follows:
-
We show that LoRA-induced parameter sparsity increases the non-identifiability of GIA by reducing the information content available to the attacker.
-
We identify the ambiguity of frozen positional embeddings as a fundamental source of duplicate reconstructions, revealing that spatially distinct or distorted inputs can satisfy identical gradient constraints under PEFT.
-
We design a layer-wise trainable positional embedding mechanism for ViTs that exposes positional gradients during federated PEFT, providing spatial supervision that resolves positional ambiguity and consistently improves reconstruction quality.
-
We extensively evaluate the approach across multiple ranks and training configurations, demonstrating substantial improvements over prior GIA methods.
Generative Methods for Gradient Leakage. GAN-based priors [21] are widely used for gradient inversion because they can model realistic image distributions. GGL [36] optimizes only the latent code, often missing fine details. GIAS [25] optimizes the latent code and the generator parameters in two steps, while GIFD [14] progressively optimizes intermediate generator embeddings.
Gradient inversion in Transformers and Language Models. With the adoption of Vision Transformers (ViTs) [12], gradient inversion methods began exploiting transformer-specific characteristics. APRIL [40] showed that positional embeddings strongly influence reconstruction quality through patch alignment and demonstrated the twin-data phenomenon, where spatially plausible but misarranged reconstructions can arise, while GradViT [23] further improved inversion fidelity using multiple regularizers. Beyond image classification, TAG [10], LAMP [4], DAGER [43], GRAB [16], and FILM [22] demonstrated gradient leakage in text and multimodal models.
Gradient leakage under parameter-efficient fine-tuning. Unlike full fine-tuning, parameter-efficient fine-tuning (PEFT) shares gradients over only a small subset of parameters, reducing the information available to an attacker. PEFTLeak [46] studies leakage from adapter-based PEFT, while MineGRAD [47] targets LoRA-based PEFT. However, both rely on maliciously modifying model weights, and DAGER further requires the number of tokens to be no greater than the LoRA rank. Although these works demonstrate that PEFT does not eliminate privacy risks, their attacks are easier to detect and may interfere with normal federated learning [15].
In contrast, gradient inversion for visual data in LoRA-adapted ViTs remains largely unexplored, particularly for pixel-level reconstruction without weight modification. This setting matters for vision encoders in modern VLMs, motivating our study of trainable positional embeddings to resolve patch misalignment.
3. Methodology
3.1. Threat Model
We consider an honest-but-curious server whose goal is to infer private user data from the information exchanged during federated learning (FL) without interfering with the training process [20, 40]. The server is allowed to store
and independently analyze updates received from individual clients, following the FL protocol. In particular, the server defines and distributes the global model architecture to all clients before training [7, 41]. Our threat model allows the server to prescribe the architecture, including trainable positional embeddings. But unlike model poisoning attacks like PEFTLeak [46], it does not modify the clients' local training procedure or introduce undisclosed malicious parameters. Because the server-broadcast model improves task performance, it also builds trust with clients. Since model quality (See Sec. B of the supplementary material) and robustness are key considerations in deploying trustworthy FL systems [39, 48, 49], such architectures are likely to be adopted in practice. Thus, our proposed architecture represents a practically relevant design rather than an artificial modification introduced solely to facilitate an attack. We show in Sec. 4 that these additional positional embeddings with insignificant computational overhead lead to ease in retrieval of the client data without sacrificing performance.
3.2. Problem Formulation
In this section, we formally describe the gradient inversion (GI) problem. Consider a standard supervised classification task that optimizes a neural network parameterized by :
where denotes a point-wise loss function and is a dataset consisting of inputs and labels represented as one-hot vectors.
In the federated learning setting, clients communicate gradients of the loss rather than transmitting raw training data. The goal of gradient inversion is to reconstruct the training samples that generated the observed gradients. Suppose a client computes a gradient,
from a mini-batch . The gradient inversion problem can then be formulated as
where measures the discrepancy between two gradients, such as the distance or negative cosine similarity.
Following prior work [52, 59] that shows that labels y can often be recovered directly from the gradients of the final layer, we focus on recovering the inputs assuming the labels are available. This leads to the optimization problem
(4) where denotes the objective in Equation (3) with for all .
Generative GIA. Given a pre-trained generative model trained on a public dataset, a natural approach is to use the generator as an image prior during gradient inversion. Instead of directly optimizing over the input space , we constrain the reconstruction to the image manifold induced by the generator, i.e., . Since the latent dimension is typically much smaller than the image dimension , searching in the latent space significantly reduces the solution space and alleviates the under-determined nature of the inversion problem. Consequently, the inversion objective can be reformulated as an optimization over the latent code,
where measures the discrepancy between generated and observed gradients, is the label inferred by the server and enforces consistency with the generative model.
In this work, we adopt GIAS [25], one of the earliest generative GIA frameworks, as our primary baseline. Fig. 4 provides a high-level overview of the method used here.

Figure 4. A high-level overview of our method showing how the baseline generative GIA framework works. and denote gradients from the client and server models.
3.3. Generative vs. Optimization-Based Gradient Inversion under LoRA
Recovering an input sample from its gradient constitutes an inverse problem whose difficulty depends on the amount of information contained in the observed gradients. When , the problem is under-determined due to incomplete observations [5, 8]. Even when , reconstruction remains challenging because the gradient mapping is highly non-linear and often ill-conditioned [20, 40, 61]. To mitigate these issues, gradient inversion methods incorporate regularization and priors [23, 27, 52] to restrict the search space and encourage realistic solutions.
Optimization-based GIAs start from a randomly initialized dummy input , typically far from the target image in the image space. As the number of observed parameters decreases, the inverse problem becomes increasingly
underdetermined because less gradient information is available for reconstruction [5, 8]. In LoRA-adapted fine-tuning, only a small subset of gradients is available, substantially increasing reconstruction ambiguity.
Generative GIAs address this challenge by introducing a strong image prior through a pretrained generator [36]. Consequently, the optimization starts from a plausible image estimate rather than an arbitrary random initialization. Furthermore, optimizing the latent code allows the reconstruction to move within this manifold toward regions more consistent with the observed gradients [25]. By restricting the solution space to realistic images and providing a favourable initialization, generative priors reduce the likelihood of convergence to poor local minima.
3.4. Spatial Anchoring through Layer-wise Trainable Positional Embedding
While generative priors substantially reduce the inversion search space, they do not fully resolve the ambiguities introduced by LoRA fine-tuning, as shown in Fig. 3. Self-attention contextualizes token representations through interactions among all tokens [1, 17], causing the shared LoRA gradients to accumulate contributions from multiple contextualized patch representations rather than corresponding to any single spatial location. We hypothesize that this aggregation reduces the explicit spatial cues available for gradient inversion. Furthermore, ViTs rely on positional embeddings to encode patch order, while adding positional information only at the input limits expressiveness, motivating the layer-wise propagation of positional embeddings [33, 54].
To alleviate this issue, we modify the target ViT by adding trainable positional embeddings to the input of each transformer encoder layer, exposing richer spatial cues through its gradients. This design enhances positional expressiveness and improves model performance and robustness, with empirical evidence supporting the suitability of the proposed architecture provided in supplementary Sec. B. We further investigate whether it also exposes richer spatial information through the shared gradients, enabling more accurate gradient inversion attacks.
Specifically, we augment the token representation in each Transformer block except the first with additional positional information. Given the input tokens to layer , the modified encoder computes
x_{l+1}=\tilde{x}_l+\mathrm{MLP}\left(\mathrm{LN}^{\prime}\left(\underbrace{\mathrm{MHSA}\left(\mathrm{LN}\left(\overbrace{x_l+p_l}\right)}_{\tilde{x}_l}\right)+x^{\prime}\right)\right) \tag{6}where MLP, LN, MHSA, denote Multi-Layer Perceptron, Layer Normalization, Multi-Head Self-Attention layers and the positional embedding at layer as shown in Fig. 5. This modification is intentionally introduced by the server at the time of initialization of local models before FL fine-tuning starts. Consequently, the gradients shared by the client now contain explicit spatial information at each layer and further constrain the space of possible inputs . This substantially reduces patch permutation artefacts and leads to more faithful reconstructions, particularly in settings where LoRA gradients alone are insufficient to uniquely determine the spatial structure of the image. Furthermore, adding trainable positional embedding to ViT-Small results in a minor increase of 0.016% in GFLOPS.

Figure 5. Schematic of the proposed GIA. The overall optimization proceeds in two stages, from client gradients to image reconstruction and subsequent updates of the latent code and generator parameters. The gradients of the trainable positional embeddings enable improved reconstruction quality.
3.5. Training Objectives and Regularization
During reconstruction, the attacker optimizes a candidate image produced by a generator, , so that the gradients induced by match the gradients shared by the client. Let , , denote the observed gradients of the classification layer, LoRA and positional embedding parameters, respectively, corresponding to , , . Corresponding parameters and their gradients on the server are denoted by , , , and , , . For image-label pair , we minimize the objective
where is the negative cosine similarity between two gradient vectors, and . The final objective is
where and denote the regularization terms used by the corresponding generative baseline and the regularization coefficient, respectively. For a fair comparison, we use the same regularization choices as the baseline method GIAS [25]. In addition to the standard regularizers from GIAS, we employ the group lazy regularization framework of GradViT [23] for evaluations conducted both with and without our proposed modification (refer to Supp. Sec. C for further discussion). Thus, performance differences reflect the effect of exposing positional information under LoRA-based PEFT.
4. Experiments and Results
4.1. Experimental Details
To evaluate the effectiveness of our proposed approach, we conduct gradient inversion experiments on the CIFAR-10, CelebA, and CARS datasets. Following prior work, all images from the CIFAR, CelebA and CARS datasets are kept at resolutions , and , respectively.
For the generator, we use a pre-trained DCGAN generator following the strategy used in GIAS [25]. Since our objective is to investigate the effectiveness of generative GIAS on LoRA-adapted ViT, the client model is initialized with an ImageNet-pretrained ViT-Small. Unless otherwise specified, we consider a single local optimization step with batch size (B=1). The details for other datasets are provided in the Appendix Sec. D in the supplementary. We additionally evaluate the attacks under larger batch sizes for single-step FedSGD and small-batch multi-step FedAvg settings.
Evaluation Metrics: We assess reconstruction quality using three standard image similarity metrics: Peak Signal-to-Noise Ratio (PSNR), Structural Similarity Index Measure (SSIM), and Learned Perceptual Image Patch Similarity (LPIPS). Higher PSNR and SSIM values indicate better reconstruction fidelity, whereas lower LPIPS values correspond to smaller discrepancies between reconstructed images and the ground-truth private samples.
4.2. Experimental Results
4.2.1. Attack on Single Step Update Gradient
We first evaluate single-step FedSGD (), isolating per-sample leakage for controlled comparison of inversion methods. Results are averaged over 10 users, with three independent reconstructions per sample for multiple trials; standard deviations are reported in parentheses.
Tab. 1 shows that Low rank-adapted ViTs remain vulnerable even when the attacker observes only low-rank gradients. The proposed positional-gradient anchoring provides the largest gains for the generative baseline: GIAS+Ours improves PSNR from 15.77 to 25.91 and SSIM from 0.34 to 0.79, while reducing LPIPS from 0.12 to 0.022. GradViT also benefits from the additional spatial signal, while
Table 1. Performance on CIFAR-10 for Batch Size (BS) = 1. indicates the change brought by (+Ours). In the case of LPIPS (L), a negative difference means improvement, while a positive difference indicates improvement for PSNR (P) and SSIM (S).
| Met. | APRIL | +Ours | GradViT | +Ours | GIAS | +Ours | |||
|---|---|---|---|---|---|---|---|---|---|
| P ↑ | 12.75(2.19) | 12.03(2.39) | -0.72 | 15.03(4.68) | 16.62(4.5) | +1.59 | 15.77(4.52) | 25.91(6.29) | +10.14 |
| S ↑ | 0.40(0.152) | 0.45(0.11) | +0.05 | 0.397(0.226) | 0.48(0.266) | +0.083 | 0.34(0.221) | 0.79(0.17) | +0.45 |
| L ↓ | 0.24(0.077) | 0.19(0.224) | -0.05 | 0.124(0.05) | 0.12(0.051) | -0.004 | 0.12(0.075) | 0.022(0.033) | -0.098 |
APRIL shows improved SSIM and LPIPS. These results suggest that positional-embedding gradients are most effective when combined with a generative prior. Qualitative examples in Fig. 6 further demonstrate reduced patch-permutation and duplicate-data artifacts. In supplementary Sec. E, we present qualitative results on optimization-based GIAs too. We also present a few visual results from a single-step gradient with larger batch sizes in Fig. 7, which show that even for larger batch sizes, the proposed strategy helps in recovering high-quality reconstructions (More samples in Supplementary Sec. F). Quantitative results for larger batch sizes are reported in Sec. 4.3.2.
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours |
Figure 6. Qualitative comparison on the CIFAR-10 dataset. We can observe that the spatial information obscuration issue is solved after applying the proposed modification in the ViT-Small model.
| Method | 4 samples from a batch of 4 | 4 samples from a batch of 16 |
|---|---|---|
| GT | ||
| GIAS | ||
| GIAS + Ours |
Figure 7. Qualitative comparison for GIAS and GIAS+Ours for batch sizes 4 and 16 in the single-step setting with rank 128.
We further present additional qualitative results on the CelebA and Stanford CARS datasets in the single-step gradient update setup in Fig. 8, where we observe that the proposed method is capable of recovering the client data
with better clarity than the baseline method. Furthermore, from Tab. 2, we observe that the proposed method achieves higher scores in terms of PSNR, SSIM, and lower LPIPS on both datasets. The performance on the CARS dataset also reflects the effect of the distribution gap between the generator and the client data. More empirical evidence is presented in Secs. G and H of the supplementary material.
| Method | CelebA (128 × 128) | CARS (64 × 64) |
|---|---|---|
| GT | ||
| GIAS | ||
| GIAS+Ours |
Figure 8. Qualitative comparison on CelebA and CARS datasets. We observe significant improvements in reconstruction quality with trainable positional embeddings applied to GIAS, resolving distorted patches in high-resolution images. Notably, instance-level identities of humans and cars are accurately retrieved, unlike competing techniques, highlighting the attack's potential impact with minimal computational overhead.
Table 2. Quantitative comparison on CelebA and CARS datasets. Evidently, we can observe the significant jump in performance when trainable positional embedding is applied to GIAS.
| Datasets | CelebA | CARS | ||||
|---|---|---|---|---|---|---|
| Method | PSNR ↑ | SSIM↑ | LPIPS↓ | PSNR↑ | SSIM↑ | LPIPS↓ |
| GIAS | 11.71(2.8) | 0.24(0.10) | 0.31(0.08) | 9.04(1.90) | 0.07(0.08) | 0.36(0.07) |
| GIAS+Ours | 19.54(3.72) | 0.585(0.125) | 0.125(0.082) | 20.783(3.166) | 0.72(0.128) | 0.089(0.058) |
4.2.2. Attack on Multi-Step Update Gradient
We next evaluate the multi-step setting, where the server observes the accumulated client update after multiple local optimization steps instead of a single gradient update. Since LoRA-based PEFT updates only a small subset of parameters, each client is assumed to hold 16 private samples per communication round to provide sufficient reconstruction information. We vary the local batch size () and local epochs (), resulting in local update steps before communication. Compared with the single-step setting, the accumulated updates contain information from multiple samples and optimization steps, making gradient inversion more challenging.
Tab. 3 summarizes the results. Adding trainable positional embeddings provides the largest improvement for GIAS (), and the gain is statistically significant (Welch's t-test, ), whereas the differences for APRIL and GradViT are not (; Supp. Sec.
I). Unlike the optimization-based attacks, GIAS combined with the proposed spatial anchoring continues to improve with more local updates, suggesting that the additional spatial cues become increasingly beneficial over longer optimization trajectories.
GradViT shows a slight, statistically insignificant performance decrease in the multi-step (FedAvg) setting, converging to a marginally higher gradient-matching loss. Overall, the proposed architecture consistently benefits generative gradient inversion while maintaining comparable performance for optimization-based methods.
Table 3. Evaluation of performance on CIFAR-10 for multiple local updates. Parentheses denote standard deviation. tracks difference in performance. Metrics (Met.) P, S, and L refer to PSNR, SSIM, and LPIPS, respectively.
| E B | Met. | APRIL | GradViT | GIAS | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| w/o Ours | +Ours | w/o Ours | +Ours | w/o Ours | +Ours | |||||
| 1 8 | P | +0.15 | -0.1 | +2.08 | ||||||
| S | +0.023 | 0.0 | +0.15 | |||||||
| L | -2e-3 | 0.0 | -0.027 | |||||||
| P | +0.45 | -0.23 | +2.39 | |||||||
| 1 4 | S | +0.03 | -0.013 | +0.15 | ||||||
| L | -7e-3 | 0.0 | -0.029 | |||||||
| 2 8 | P | +0.22 | -0.16 | +2.39 | ||||||
| S | +0.025 | -0.027 | +0.15 | |||||||
| L | -4e-3 | 0.0 | -0.029 | |||||||
| P | +0.06 | -0.2 | +2.79 | |||||||
| 2 4 | S | +0.021 | -0.03 | +0.16 | ||||||
| L | -0.013 | -0.011 | -0.034 | |||||||
4.3. Ablation Studies
We study factors impacting attacker information using ablations on CIFAR-10 with a LoRA-adapted ViT-Small.
4.3.1. Impact of LoRA Rank
A smaller LoRA rank increases ambiguity by reducing gradient observations, while a larger rank offers more data without resolving spatial uncertainty. As shown in Fig. 9, adding our positional-gradient anchors improves reconstruction most strongly for the generative baseline. Even at low rank, r = 16, GIAS+Ours improves PSNR by 10.67 dB and SSIM by 0.507, while reducing LPIPS by 0.109. APRIL benefits more modestly, improving SSIM and LPIPS but showing only a small PSNR gain. Nevertheless, the spatial anchoring strategy improves performance for all the methods. Across ranks, GIAS+Ours remains consistently stronger than vanilla GIAS, which suggests that decreasing LoRA rank alone does not guarantee elimination of privacy risks.

Figure 9. Performance comparison across multiple ranks for GIAS, GradViT and APRIL.
4.3.2. Impact of Batch Size
Larger batches make inversion harder because each observed gradient is a mixture of multiple images, which weakens the correspondence between any reconstructed sample and the update. Fig. 10 shows that our spatial anchoring is most effective at small and moderate batch sizes. For GIAS, the improvement is large at batch size 1 and remains substantial at batch size 4, where applying our proposed spatial anchoring strategy provides a PSNR increase from 12.10 to 20.97, whereas SSIM increases from 0.126 to 0.628, and LPIPS decreases from 0.153 to 0.042. At batch sizes 16 and 32, the gains become smaller because batch averaging dominates the spatial signal; nevertheless, LPIPS remains lower for GIAS+Ours, showing that positional gradients improve perceptual consistency and pose greater privacy risks even at large batch sizes. Similar trends in change are also observed for APRIL and GradViT. We also provide empirical results for multiple batch sizes on the high-resolution CelebA dataset in supplementary Sec. J.

Figure 10. Performance comparison across multiple batch sizes for GIAS, GradViT and APRIL.
We provide further ablations on group lazy regularization, initialization strategies, and server steps, alongside low-rank analyses (Supp. Sec. C.1, K, L, M, N). We also evaluate performance under secure aggregation, PEFTLeak, VLM vision encoders, and generator-client distribution gaps (Supp. Sec. O, P, Q, H, S). Overall, our method maintains high-fidelity reconstructions at lower LoRA ranks and minimal compute, as well as under secure aggregation, distribution gaps, and VLM encoders.
5. Performance Against Defence Strategies
We further evaluate reconstruction robustness under lossy gradient-level privacy defences [50, 62], comparing against the generative baseline GIAS. We consider three defence settings applied to the shared gradients: additive Gaussian noise ( ) [62], gradient clipping [50], and their combination. Gaussian noise with standard deviations and is added to the gradients, while clipping limits the gradient norm to [36]. In the combined setting, noisy gradients are clipped before reconstruction.
| Method | GIAS | GIAS+Ours | ||||
|---|---|---|---|---|---|---|
| GT | GC | |||||
Figure 11. Qualitative comparison of GIAS and GIAS+Ours under gradient-level defence strategies. Numbers within parentheses denote the standard deviation of the noise applied to the gradients.
As shown in Fig. 11, under mild perturbations and gradient clipping, GIAS+Ours achieves superior semantic fidelity over GIAS due to our spatial anchoring strategy. However, under strong perturbations, the recoverable information in the shared gradients is substantially reduced, resulting in noticeable degradation in reconstruction quality for both methods. The quantitative results in Tab. 4 further confirm that strong lossy gradient perturbations effectively mitigate reconstruction attacks on low-rank adapted ViTs.
Table 4. Quantitative comparison of GIAS and GIAS+Ours under gradient-level defence strategies. , GC, P, S and L denote additive noise, gradient clipping, PSNR, SSIM and LPIPS, respectively. Numbers within brackets indicate the standard deviation.
| Metric | GIAS | GIAS+Ours | ||||||
|---|---|---|---|---|---|---|---|---|
| (0.01) | (0.1) | GC | (0.01) | (0.1) | GC | |||
| P | 13.11 (3.73) | 9.86 (1.92) | 13.9 (4.12) | 9.72 (1.88) | 14.19 (4.33) | 9.28 (1.38) | 25.39 (4.81) | 9.31 (1.41) |
| S | 0.23 (0.19) | 0.04 (0.06) | 0.30 (0.24) | 0.05 (0.06) | 0.31 (0.21) | 0.03 (0.05) | 0.77 (0.13) | 0.03 (0.06) |
| L | 0.13 (0.08) | 0.17 (0.06) | 0.13 (0.06) | 0.15 (0.07) | 0.11 (0.07) | 0.19 (0.06) | 0.02 (0.02) | 0.19 (0.06) |
6. Empirical Privacy-Utility Trade-Off
In this section, we investigate whether perturbing client gradients through clipping and Gaussian noise reduces reconstruction fidelity while preserving the global model's predictive utility. We train the model throughout the complete FedAvg process, where the data is distributed among the clients following a Dirichlet distribution with parameter , under different gradient perturbation strengths. For each configuration, we evaluate utility using test ac-
curacy and quantify empirical leakage using the PSNR between the reconstructed and original samples obtained under a fixed gradient inversion attack, along with PEFTLeak [46] (see Supp. Sec. P for comparison of the proposed method with PEFTLeak). In Fig. 12, we observe that in-

Figure 12. Lower PSNR indicates reduced privacy leakage, while higher test accuracy reflects better model utility. PEFTLeak drops to zero in both attack and utility as the poisoned weight changes, and it fails to reconstruct any information. See Supp. Sec. R for SSIM and LPIPS plots.
increasing the perturbation strength reduces the gradient information available to the server and reconstruction quality, as indicated by a lower PSNR; it distorts the optimization signal too, reducing downstream accuracy, highlighting the inherent privacy-utility trade-off.
7. Limitations
While differential-privacy induced gradient perturbation effectively mitigates gradient leakage under standard reconstruction attacks, it introduces an inherent trade-off by reducing downstream task performance. Furthermore, ensuring robustness against adaptive adversaries and complex multimodal architectures (like VLMs) in heterogeneous federated settings remains a key research direction.
8. Conclusion
From our analysis, we find that LoRA-based PEFT reduces the number of trainable parameters exposed to the server but does not eliminate privacy leakage. Instead, frozen positional embeddings weaken spatial cues, increasing inversion ambiguity and non-identifiability. To address this, we propose a spatially anchored generative inversion framework that makes positional embeddings trainable across transformer blocks, providing additional spatial constraints while leveraging a generative prior for realistic reconstructions. Experiments on CIFAR-10, CelebA, and CARS demonstrate substantial improvements in reconstruction quality, including under aggregated multi-step updates and multiple client samples on CIFAR-10. These results highlight that PEFT-aware privacy defences should consider not only the number of trainable parameters but also the type of information they expose, particularly spatial information in federated ViTs.
Acknowledgement
This work is supported by the P3DX project, seed-funded by the Ministry of Electronics and Information Technology (MeitY), GoI. The authors would also like to acknowledge compute support received from Kotak-IISc AI-ML Centre (KIAC), IISc.
References
[1] Samira Abnar and Willem Zuidema. Quantifying attention flow in transformers. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4190–4197, Online, 2020. Association for Computational Linguistics. 4
[2] Dimitris Achlioptas. Database-friendly random projections: Johnson-lindenstrauss with binary coins. Journal of Computer and System Sciences, 66(4):671–687, 2003. 13
[3] Armen Aghajanyan, Sonal Gupta, and Luke Zettlemoyer. Intrinsic dimensionality explains the effectiveness of language model fine-tuning. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 7319–7328, Online, 2021. Association for Computational Linguistics. 2
[4] Mislav Balunovic, Dimitar I. Dimitrov, Nikola Jovanovic, and Martin T. Vechev. LAMP: extracting text from gradients with language model priors. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems, 2022. 2, 3, 21
[5] Martin Benning and Martin Burger. Modern regularization methods for inverse problems. Acta Numer., 27:1–111, 2018. 4
[6] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. Practical secure aggregation for privacy-preserving machine learning. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, page 1175–1191, New York, NY, USA, 2017. Association for Computing Machinery. 19
[7] Kallista A. Bonawitz, Hubert Eichner, Wolfgang Grieskamp, Dzmitry Huba, Alex Ingerman, Vladimir Ivanov, Chloé Kiddon, Jakub Konečný, Stefano Mazzocchi, Brendan McMahan, Timon Van Overveldt, David Petrou, Daniel Ramage, and Jason Roselander. Towards federated learning at scale: System design. In Proceedings of the Second Conference on Machine Learning and Systems, SysML 2019, Stanford, CA, USA, March 31 - April 2, 2019. mlsys.org, 2019. 3
[8] Emmanuel J. Candès, Justin K. Romberg, and Terence Tao. Robust uncertainty principles: exact signal reconstruction from highly incomplete frequency information. IEEE Transactions on Information Theory, 52(2):489–509, 2006. 4
[9] Yuvraj Singh Chaudhry and Rammohan Mallipeddi. E-gap: Evolutionary gradient attack on privacy. Computers and Electrical Engineering, 124:110399, 2025. 1
[10] Jieren Deng, Yijue Wang, Ji Li, Chenghong Wang, Chao Shang, Hang Liu, Sanguthevar Rajasekaran, and Caiwen Ding. TAG: gradient attack on transformer-based language
models. In Findings of the Association for Computational Linguistics: EMNLP, pages 3600–3610. Association for Computational Linguistics, 2021. 3
[11] Dimitar I. Dimitrov, Maximilian Baader, Mark Niklas Müller, and Martin Vechev. Spear: exact gradient inversion of batches in federated learning. In Proceedings of the 38th International Conference on Neural Information Processing Systems, Red Hook, NY, USA, 2024. Curran Associates Inc. 3
[12] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021. 3
[13] Elena Facco, Maria d'Errico, Alex Rodriguez, and Alessandro Laio. Estimating the intrinsic dimension of datasets by a minimal neighborhood information. Scientific Reports, 7(1), 2017. 12
[14] Hao Fang, Bin Chen, Xuan Wang, Zhi Wang, and Shu-Tao Xia. Gifd: A generative gradient inversion method with feature domain optimization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4967–4976, 2023. 3
[15] Shanglun Feng and Florian Tramèr. Privacy backdoors: stealing data with corrupted pretrained models. In Proceedings of the 41st International Conference on Machine Learning. JMLR.org, 2024. 3
[16] Xinguo Feng, Zhongkui Ma, Zihan Wang, Eu Joe Chegne, Mengyao Ma, Alsharif Abuadbba, and Guangdong Bai. Uncovering gradient inversion risks in practical language model training. In Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, page 3525–3539, New York, NY, USA, 2024. Association for Computing Machinery. 2, 3, 21
[17] Javier Ferrando, Gerard I. Gállego, and Marta R. Costa-jussà. Measuring the mixing of contextual information in the transformer. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8698–8714, Abu Dhabi, United Arab Emirates, 2022. Association for Computational Linguistics. 4
[18] Liam H Fowl, Jonas Geiping, Wojciech Czaja, Micah Goldblum, and Tom Goldstein. Robbing the fed: Directly obtaining private data in federated learning with modified models. In International Conference on Learning Representations, 2022. 1
[19] Liam H Fowl, Jonas Geiping, Steven Reich, Yuxin Wen, Wojciech Czaja, Micah Goldblum, and Tom Goldstein. Deceptions: Corrupted transformers breach privacy in federated learning for language models. In The Eleventh International Conference on Learning Representations, 2023. 1
[20] Jonas Geiping, Hartmut Bauermeister, Hannah Dröge, and Michael Moeller. Inverting gradients - how easy is it to break privacy in federated learning? In Proc. of the 34th International Conference on Neural Information Processing Systems, 2020. 1, 2, 3, 4
[21] Ian J. Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 2, page 2672–2680, 2014. 3
[22] Samyak Gupta, Yangsibo Huang, Zexuan Zhong, Tianyu Gao, Kai Li, and Danqi Chen. Recovering private text in federated learning of language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems, 2022. 3
[23] Ali Hatamizadeh, Hongxu Yin, Holger Roth, Wenqi Li, Jan Kautz, Daguang Xu, and Pavlo Molchanov. GradViT: Gradient Inversion of Vision Transformers. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10011–10020. IEEE Computer Society, 2022. 1, 3, 4, 5, 15
[24] Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022. 1
[25] Jinwoo Jeon, Jaechang Kim, Kangwook Lee, Sewoong Oh, and Jungseul Ok. Gradient inversion with generative image prior. In Proceedings of the 35th International Conference on Neural Information Processing Systems, 2021. 2, 3, 4, 5, 18
[26] William B. Johnson and Joram Lindenstrauss. Extensions of lipschitz mappings into a hilbert space. Conference on Modern Analysis and Probability, page 189–206, 1984. 13
[27] Sanjay Kariyappa, Chuan Guo, Kiwan Maeng, Wenjie Xiong, G. Edward Suh, Moinuddin K Qureshi, and Hsien-Hsin S. Lee. Cocktail party attack: breaking aggregation-based privacy in federated learning using independent component analysis. In Proceedings of the 40th International Conference on Machine Learning. JMLR.org, 2023. 4
[28] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017. 15
[29] Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8110–8119, 2020. 15
[30] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Celeba-hq, 2026. 15
[31] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In Proceedings of the IEEE International Conference on Computer Vision (ICCV) Workshops, 2013. 15
[32] Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural Computation, 1(4):541–551, 1989. 2
[33] Wonjun Lee, Bumsub Ham, and Suhyun Kim. Maximizing the position embedding for vision transformers with global average pooling. In Thirty-Ninth AAAI Conference on Ar-
tificial Intelligence, Thirty-Seventh Conference on Innovative Applications of Artificial Intelligence, Fifteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2025, Philadelphia, PA, USA, February 25 - March 4, 2025, pages 18154–18162. AAAI Press, 2025. 4, 13
[34] Elizaveta Levina and Peter Bickel. Maximum likelihood estimation of intrinsic dimension. In Advances in Neural Information Processing Systems. MIT Press, 2004. 12
[35] Chunyuan Li, Heerad Farkhoor, Rosanne Liu, and Jason Yosinski. Measuring the intrinsic dimension of objective landscapes. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. 2
[36] Zhuohang Li, Jiaxin Zhang, Luyang Liu, and Jian Liu. Auditing privacy defenses in federated learning via generative gradient leakage. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10122–10132, 2022. 2, 3, 4, 8
[37] Sheng Liu, Xuefeng Zhang, Tao Huang, Guolong Zheng, Wencheng Yang, and Ji Zhang. Probing privacy risks in deep neural networks: A jacobian rank-based analysis of intermediate layers. Intelligent Computing, 5, 2026. 1
[38] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), 2015. 15
[39] Zelei Liu, Yuanyuan Chen, Yansong Zhao, Han Yu, Yang Liu, Renyi Bao, Jinpeng Jiang, Zaiqing Nie, Qian Xu, and Qiang Yang. Contribution-aware federated learning for smart healthcare. Proceedings of the AAAI Conference on Artificial Intelligence, 36(11):12396–12404, 2022. 3
[40] Jiahao Lu, Xi Sheryl Zhang, Tianli Zhao, Xiangyu He, and Jian Cheng. April: Finding the achilles' heel on privacy for vision transformers. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10041–10050, 2022. 1, 2, 3, 4
[41] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-Efficient Learning of Deep Networks from Decentralized Data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, pages 1273–1282. PMLR, 2017. 1, 3, 21
[42] Eng-Jon Ong, Omer Bobrowski, Gesine Reinert, and Primoz Skraba. A universal nearest-neighbor estimator for intrinsic dimensionality. CoRR, abs/2603.10493, 2026. 12
[43] Ivo Petrov, Dimitar I. Dimitrov, Maximilian Baader, Mark Niklas Müller, and Martin Vechev. Dager: exact gradient inversion for large language models. In Proceedings of the 38th International Conference on Neural Information Processing Systems, 2024. 2, 3
[44] Olivier Roy and Martin Vetterli. The effective rank: A measure of effective dimensionality. In 15th European Signal Processing Conference, EUSIPCO 2007, Poznan, Poland, September 3-7, 2007, pages 606–610. IEEE, 2007. 12
[45] David E. Rumelhart, Geoffrey E. Hinton, and Ronald J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533–536, 1986. 2
[46] Hasin Us Sami, Swapneel Sen, Amit K. Roy-Chowdhury, Srikanth V. Krishnamurthy, and Basak Guler. Gradient inversion attacks on parameter-efficient fine-tuning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2025, Nashville, TN, USA, June 11-15, 2025, pages 10224–10234. Computer Vision Foundation / IEEE, 2025. 3, 8, 20
[47] Hasin Us Sami, Swapneel Sen, and Basak Guler. Minegrad: Gradient inversion attacks on IoRA fine-tuning. In The 29th International Conference on Artificial Intelligence and Statistics, 2026. 3
[48] Pedro Miguel Sánchez Sánchez, Alberto Huertas Celdrán, Ning Xie, Gérôme Bovet, Gregorio Martínez Pérez, and Burkhard Stiller. Federatedtrust: A solution for trustworthy federated learning. Future Generation Computer Systems, 152:83–98, 2024. 3, 13
[49] Asadullah Tariq, Mohamed Adel Serhani, Farag M. Salabi, Ezedin S. Barka, Tariq Qayyum, Heba M. Khater, and Khaled A. Shuaib. Trustworthy federated learning: A comprehensive review, architecture, key challenges, and future research prospects. IEEE Open Journal of the Communications Society, 5:4920–4998, 2024. 3, 13
[50] Wenqi Wei, Ling Liu, Yanzhao Wu, Gong Su, and Arun Iyengar. Gradient-Leakage Resilient Federated Learning. In 2021 IEEE 41st International Conference on Distributed Computing Systems (ICDCS), pages 797–807, Los Alamitos, CA, USA, 2021. IEEE Computer Society. 8
[51] Zipeng Ye, Wenjian Luo, Qi Zhou, and Yubo Tang. High-fidelity gradient inversion in distributed learning. Proceedings of the AAAI Conference on Artificial Intelligence, 38 (18):19983–19991, 2024. 3
[52] Hongxu Yin, Arun Mallya, Arash Vahdat, Jose M. Alvarez, Jan Kautz, and Pavlo Molchanov. See through Gradients: Image Batch Recovery via GradInversion. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16332–16341, Los Alamitos, CA, USA, 2021. IEEE Computer Society. 3, 4, 14
[53] Fisher Yu, Yinda Zhang, Shuran Song, Ari Seff, and Jianxiong Xiao. LSUN: construction of a large-scale image dataset using deep learning with humans in the loop. CoRR, abs/1506.03365, 2015. 15
[54] Runyi Yu, Zhennan Wang, Yinhuai Wang, Kehan Li, Chang Liu, Haoyi Duan, Xiangyang Ji, and Jie Chen. Lape: Layer-adaptive position embedding for vision transformers with independent layer normalization. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 5863–5873, 2023. 4, 13
[55] Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pre-training. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 11975–11986, 2023. 21
[56] Junyuan Zhang, Shuang Zeng, Miao Zhang, Runxi Wang, Feifei Wang, Yuyin Zhou, Paul Pu Liang, and Liangqiong Qu. Flhetbench: Benchmarking device and state heterogeneity in federated learning. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 12098–12108, 2024. 1
[57] Yuanhe Zhang, Fanghui Liu, and Yudong Chen. Lora-one: One-step full gradient could suffice for fine-tuning large language models, provably and efficiently. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025. PMLR / OpenReview.net, 2025. 18
[58] Zhuo Zhang, Yuanhang Yang, Yong Dai, Qifan Wang, Yue Yu, Lizhen Qu, and Zenglin Xu. FedPETuning: When federated learning meets the parameter-efficient tuning methods of pre-trained language models. In Findings of the Association for Computational Linguistics: ACL 2023, pages 9963–9977, Toronto, Canada, 2023. Association for Computational Linguistics. 1
[59] Bo Zhao, Konda Reddy Mopuri, and Hakan Bilen. idlg: Improved deep leakage from gradients. CoRR, abs/2001.02610, 2020. 3
[60] Joshua C. Zhao, Atul Sharma, Ahmed Roushdy Elkordy, Yahya H. Ezzeldin, Salman Avestimehr, and Saurabh Bagchi. Loki: Large-scale Data Reconstruction Attack against Federated Learning through Model Manipulation. In 2024 IEEE Symposium on Security and Privacy (SP), pages 1287–1305, Los Alamitos, CA, USA, 2024. IEEE Computer Society. 1
[61] Junyi Zhu and Matthew B. Blaschko. R-GAP: recursive gradient attack on privacy. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net, 2021. 1, 2, 4
[62] Ligeng Zhu and Song Han. Deep leakage from gradients. In Federated Learning - Privacy and Incentive, pages 17–31. Springer, 2020. 1, 2, 8
Supplementary Material for: Breaking the Privacy Promise: Gradient Inversion Attacks on Federated Low-Rank Adapted Vision Transformers
A. Dimension Estimation for Sample-Wise Gradients
This section summarizes the estimators used to quantify the dimensionality of sample-wise gradients. For each private example , we compute the observed per-sample gradient
where denotes the parameters exposed to the server, such as all fine-tuned parameters, LoRA parameters, positional embeddings, or their union. The resulting gradient vectors is analyzed after applying the same preprocessing across all compared settings. Unless otherwise specified, we flatten and concatenate the selected gradient tensors and centre the resulting vectors.
A.1. Nearest-neighbour intrinsic dimension
Let denote the distance from to its -th nearest neighbour in . The maximum-likelihood estimator (MLE) of intrinsic dimension uses local neighbour-distance ratios under a Poisson-process approximation [34]:
We report MLE for as suggested in the work [34], because a small emphasizes local manifold geometry, whereas a larger can mix different semantic or class-dependent regions of the gradient volume.
TwoNN estimates intrinsic dimension using only the first two nearest neighbours [13]. For each point, define . Under local uniformity, the empirical cumulative distribution satisfies . Thus, plotting against yields an approximately linear relation whose slope estimates . TwoNN is useful for sample-wise gradients because it uses the smallest possible neighbourhood and is therefore less sensitive to curvature and density changes at larger scales.
L2N2 [42] is also based on nearest-neighbour distance ratios, but aggregates log-log transformed ratio statistics instead of fitting the empirical cumulative distribution directly [42]. In practice, we compute statistics of the form
and convert their empirical average into an intrinsic-dimension estimate using the L2N2 calibration for the chosen pair. This provides a complementary nearest-neighbour estimate whose assumptions differ from MLE and TwoNN, making it a useful robustness check when the gradient vectors are spread non-uniformly.
A.2. Jacobian-based effective ranks
Nearest-neighbour estimators are bounded by the neighbourhood of the gradient vectors, as they are heavily dependent upon the value of . We additionally measure the local dimension of the gradient map around each sample with label . Let
where is the input dimension and the label is held fixed. The singular values of , denoted , describe the independent input-space directions that induce observable changes in the shared gradient. We compute the entropy-based effective rank [44]
where
and the cumulative-energy ranks
We also compute the ranks at different energy levels (90%, 95%, 99%), by thresholding at
and these thresholds are denoted as , , and . Low values indicate that only a few input directions control most of the observable gradient variation, while larger values indicate a richer local gradient response. In LoRA-only settings, the projection onto a small trainable parameter subspace can collapse the spectrum of ; adding trainable positional embeddings can increase the number of spatially meaningful directions visible to the server.
Interpretation. The four families of measurements are complementary. MLE, TwoNN, and L2N2 estimate the non-linear intrinsic dimension of the empirical gradient vectors , while Jacobian effective rank and estimate local linear dimensionality around individual samples. For fair comparisons, all estimates should be computed with the same data subset, observed parameter set, distance metric, normalization, and random seed. We report the mean and standard deviation across bootstrap resamples for both types of measurements in Fig. 2.
A.3. Random Projection Preprocessing
The raw sample-wise gradient vectors are extremely high-dimensional: even for ViT-Small, full fine-tuning exposes roughly 21 million gradient coordinates, while rank-128 LoRA exposes only about 3.5 million coordinates. To make nearest-neighbour search and bootstrap evaluation tractable, we first project each centred gradient vector to dimensions using the Achlioptas random projection scheme [2], following the Johnson-Lindenstrauss (JL) lemma [26]. For a gradient vector , we compute with
The projected vectors are then used as inputs to MLE, TwoNN, L2N2, and the Jacobian-based spectrum analyses. In the formulas below, we write and for the projected vectors and for notational simplicity.
For each bootstrapped run, we randomly select at most sample-wise gradients. Using the standard JL sufficient condition
choosing gives
Thus, 8192 projected dimensions satisfy the JL bound for 20000 sampled gradients, preserving pairwise distances up to approximately a multiplicative distortion before applying the dimension estimators.
B. Comparison of Performance of the Broad-casted Backbone
In this section, we evaluate the proposed backbone across multiple benchmark datasets to assess its suitability with respect to our trustworthiness criteria. As discussed previously, accuracy and robustness constitute two fundamental pillars of trustworthy learning [48, 49]. We therefore evaluate the proposed backbone along these dimensions before it is broadcast by the server to the participating clients. This evaluation ensures that the backbone provides meaningful utility to the clients while maintaining sufficient robustness for the intended learning task.
Importantly, this evaluation is also necessary to distinguish the proposed honest-but-curious setting from a malicious server. A server could deliberately assign a poorly performing backbone to the clients, thereby degrading their learning performance while still exploiting the resulting client updates to facilitate data reconstruction. Such behaviour provides little or no utility to the clients while benefiting the server's reconstruction objective, and can therefore be regarded as malicious. Consequently, before broadcasting the backbone to the clients, we establish that it satisfies the required accuracy and robustness criteria, ensuring that the server's objective of reconstructing client data does not come at the expense of the clients' learning utility.
Table 5. Comparison of the performance of the proposed backbone used in our experiments.
| Backbone | LoRA | PE Present (Layers)1st | PE Trainable (Layers)2nd-1th | Patch Size | Full ParamsTrainable | Accuracy (%)μ(σ) | ||
|---|---|---|---|---|---|---|---|---|
| Trained From Scratch | ||||||||
| CIFAR-10 | ||||||||
| ViT | No | Yes | No | Yes | N/A | 4 | Yes | 95.6 (0.1) |
| Ours | No | Yes | Yes | Yes | 4 | Yes | 95.7 (0.2) | |
| Finetuned on ImageNet Pre-trained weights | ||||||||
| CIFAR-10 | ||||||||
| ViT | Yes | Yes | No | No | N/A | 4 | No | 97.7 (0.1) |
| Ours | Yes | Yes | Yes | Yes | 4 | 4 | No | 97.8 (0.1) |
| Ours | Yes | Yes | Yes | No | 4 | 4 | No | 97.7 (0.1) |
| Stanford CARS | ||||||||
| Finetuned on ImageNet pre-trained weights | ||||||||
| ViT | Yes | Yes | No | No | N/A | 4 | No | 84.4 (0.3) |
| Ours | Yes | Yes | Yes | Yes | Yes | 4 | No | 85.0 (0.4) |
| Ours | Yes | Yes | Yes | No | No | 4 | No | 81.5 (0.9) |
In Tab. 5, we observe that the proposed backbone, when equipped with trainable positional embeddings, outperforms the baseline ViT. This observation is consistent with the findings of LaPE [54] and MPVG [33], which also demonstrate the benefits of adapting positional embeddings during training. These results justify the use of the proposed architecture, illustrated in Fig. 5, within our FL training protocol. Importantly, by establishing that the backbone provides competitive or improved performance to the clients, we ensure that the server's use of this architecture does not constitute malicious behaviour by deliberately distributing a poor-performing model. Instead, the proposed protocol benefits the participating clients while supporting a trust-worthy server-client interaction.
C. Group Lazy Regularization
Gradient inversion is a highly non-convex optimization problem, and reconstructions obtained from different random initializations often converge to distinct local optima despite corresponding to the same underlying image. Consequently, different optimization trajectories typically preserve the same semantic content while exhibiting slight spatial variations. Group lazy regularization [52] introduces a consensus reconstruction that serves as a common optimization target for all trajectories.
Given a set of reconstructed images , the consensus image is computed as the pixel-wise average
The group consistency regularizer is defined as
where controls the regularization strength. For our work, we observed that using yielded the best results. The consensus image acts as a soft spatial prior, guiding each reconstruction toward a semantically consistent solution and improving optimization stability.
C.1. Impact of Group Lazy Regularization
Effect of Group Lazy Regularization. In Tab. 6, we assess the effects of turning on Group Lazy Regularization (GLR) with a coefficient of . We observe that enabling GLR marginally enhances reconstruction quality for both the baseline GIAS and GIAS paired with our trainable positional embeddings. These findings imply that group lazy regularization offers benefits in the baseline environment as well as with trainable positional embeddings, although the improvements are not statistically significant (Welch's t-test with ). Nevertheless, we retain GLR in our framework because it serves as a regularizer that encourages coherent updates within each parameter group, leading to a more stable optimization process. Since it incurs negligible computational overhead and never degrades reconstruction quality in our experiments, we include it in all subsequent evaluations.
Effect of the value. Tab. 7 investigates the effect of the group lazy regularization coefficient . Increasing from to improves the average reconstruction quality of our method, raising PSNR from 25.91 to 27.64 dB, SSIM from 0.79 to 0.85, and reducing LPIPS from 0.022 to 0.011. This trend suggests that our optimization can benefit from a stronger group lazy regularization term. However, Welch's t-test with yields
Table 6. Effect of enabling group lazy regularization (). Parentheses denote standard deviation. Welch's t-test () compares enabling group lazy regularization for both methods.
| Method | GLR | PSNR ↑ | SSIM ↑ | LPIPS ↓ |
|---|---|---|---|---|
| GIAS | False | 15.22(4.78) | 0.313(0.226) | 0.094(0.056) |
| True | 15.77(4.52) | 0.340(0.221) | 0.120(0.075) | |
| p-value | 0.649 | 0.642 | 0.134 | |
| GIAS + Ours | False | 25.35(8.00) | 0.784(0.235) | 0.021(0.033) |
| True | 25.91(6.29) | 0.790(0.170) | 0.022(0.033) | |
| p-value | 0.764 | 0.910 | 0.907 | |
| Method | GLR | 1 | 2 | 3 |
|---|---|---|---|---|
| Ground Truth | ||||
| GIAS | False | |||
| True | ||||
| GIAS + Ours | False | |||
| True | ||||
Figure 13. Visual comparison of reconstructions with and without group lazy regularization (GLR) using . Results are shown for both the baseline GIAS and GIAS+Ours. Enabling GLR produces comparable reconstruction quality for the baseline while yielding slightly improved visual fidelity for GIAS+Ours, consistent with the quantitative results in Tab. 6.
, , and , indicating that these improvements are not statistically significant ( for all metrics). Consequently, although achieves slightly better mean performance for our method, we adopt in all subsequent experiments because it yields the best performance for the baseline GIAS. Using the same regularization coefficient for both methods ensures identical optimization settings and enables a fair comparison between the proposed method and the baseline.
Table 7. Effect of the group lazy-regularization coefficient value when GLR optimization is enabled. Parentheses denote standard deviation. Welch's t-test () compares the two values.
| Method | PSNR | SSIM | LPIPS | |
|---|---|---|---|---|
| GIAS | 15.77 | 0.340 | 0.120 | |
| (4.52) | (0.221) | (0.075) | ||
| 14.01 | 0.268 | 0.102 | ||
| (3.29) | (0.164) | (0.052) | ||
| -value | 0.090 | 0.158 | 0.285 | |
| GIAS + Ours | 25.91 | 0.790 | 0.022 | |
| (6.29) | (0.170) | (0.033) | ||
| 27.64 | 0.850 | 0.011 | ||
| (6.31) | (0.163) | (0.016) | ||
| -value | 0.292 | 0.168 | 0.108 | |
| Method | 1 | 2 | 3 | |
|---|---|---|---|---|
| Ground Truth | ||||
| GIAS | ||||
| GIAS + Ours | ||||
Figure 14. Visual comparison of reconstructions obtained using different group lazy regularization coefficients, . While a larger coefficient () produces slightly sharper reconstructions for GIAS+Ours, the qualitative differences are modest. We therefore adopt in the remaining experiments to maintain identical optimization settings with the baseline GIAS.
D. Experimental Details for CelebA and CARS Datasets
For the CelebA [38] and Stanford CARS [31] datasets, we use StyleGAN2 [29] models pretrained on the CelebA-HQ [28, 30] and LSUN Cars [53] datasets, respectively. For the CelebA experiments, we randomly select 20 celebrities to construct a 20-class classification task, whereas the Stanford CARS dataset comprises 196 unique classes. While the face generator is pretrained on the CelebA-HQ domain, the generator used for Stanford CARS is pretrained on LSUN Cars. Consequently, the CARS dataset setting exhibits a
larger difference between the distribution of the generator training data and that of the client data. For our experiments, we keep the image resolution at for the CelebA dataset and for the Stanford CARS dataset. The optimization steps for the latent vector and the generator parameters were run for 2000 and 8000 iterations, respectively.
E. Qualitative Evidence on Applying Trainable Positional Embeddings to Optimization-Based GIA
In this section, we present qualitative evidence on the effect of applying trainable positional embeddings to optimization-based gradient inversion attacks (GIAs), such as GradViT [23]. Since positional embeddings provide spatial information that is essential for correctly aligning the reconstructed image patches, we investigate whether making them trainable can also improve the reconstruction performance of conventional optimization-based GIA methods.
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| GT | ||||||||
| GradViT | ||||||||
| GradViT + Ours |
Figure 15. Qualitative reconstruction for GradViT [23] comparison across 8 samples on the CIFAR-10 dataset. We can observe that the proposed framework also improves the spatial information obscuration issue for optimization-based gradient inversion attacks too, on the backbone ViT-Small model.
We present qualitative results in Fig. 15 to analyze the effect of trainable positional embeddings on the clarity and spatial consistency of the reconstructed samples. We observe that the proposed method can correct the patch misalignment that occurs in GradViT when the client model is fine-tuned using low-rank adapters. This further demonstrates the capability of our method to address the duplicate data issue caused by missing spatial information in the gradients, extending its applicability to optimization-based GIAs as well.
F. More Qualitative Results on Larger Batch Sizes
In this section, we present more results for qualitative comparison of GIAS and the proposed method for batch sizes of 4 and 16 in Fig. 16 in the single-step gradient setting with LoRA rank .
| Method | 4 Samples from a batch of 4 | 4 samples from a batch of 16 |
|---|---|---|
| GT | ||
| GIAS | ||
| GIAS + Ours |
Figure 16. Qualitative reconstruction comparison for GIAS and GIAS+Ours for batch sizes 4 and 16 in the single-step gradient setting with rank 128.
G. More Qualitative Results on High-Resolution (128 × 128) CelebA
In this section, we present more reconstruction results on high-resolution images from the CelebA dataset in Fig. 17.
| Method | CelebA | |||||
|---|---|---|---|---|---|---|
| GT | ||||||
| GIAS | ||||||
| GIAS + Ours | ||||||
| GT | ||||||
| GIAS | ||||||
| GIAS + Ours | ||||||
Figure 17. Qualitative comparison on samples from the CelebA dataset with image resolution 128 × 128.
H. Empirical Analysis of Effect of Difference in Distribution on Reconstruction Quality
In this section, we evaluate whether a difference in distribution between the pre-training data of the generator (say, ) and the local data of the victim client (say, ) has any effect on the attack performance of the proposed method. For this empirical analysis, we simulate the attack on the CIFAR-100 dataset with DCGAN pretrained on CIFAR-10, and also on the Stanford CARS dataset with StyleGAN pretrained on the LSUN Cars dataset. As we have mentioned previously in the main manuscript, the dataset on which the GAN is pre-trained and the data of the client are similar but
do not have overlapping data; we consider this to be an adequate setup to evaluate the aforementioned idea.
H.1. Quantitative Comparison
Although we have already provided empirical results in Sec. 4.2.1 for the Stanford CARS dataset, we will reproduce the same here again for the continuation of the flow of the manuscript. In Tab. 8, we observe from the PSNR, SSIM and LPIPS metric values that, compared to the baseline GIAS, the proposed method is capable of bridging the gap between the two data distributions and , consequently improving attack performance.
Table 8. Quantitative comparison on CIFAR-100 and CARS datasets.
| CARS | CIFAR-100 | |||||
|---|---|---|---|---|---|---|
| Method | PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS |
| GIAS | 9.04(1.90) | 0.07(0.08) | 0.357(0.074) | 13.90(4.64) | 0.307(0.238) | 0.099(0.073) |
| GIAS+Ours | 20.783(3.166) | 0.72(0.128) | 0.089(0.058) | 24.16(5.293) | 0.794(0.201) | 0.024(0.041) |
H.2. Qualitative Comparison
We further present the qualitative results in Fig. 18 and Fig. 19, illustrating the reconstruction quality on the Stanford CARS and CIFAR-100 datasets, respectively. We observe that, although the proposed attack is capable of reconstructing several samples from the Stanford CARS dataset with recognizable visual content, it can produce somewhat noisy reconstructions in a few cases. Nevertheless, these results demonstrate the out-of-distribution reconstruction capability of the proposed method. In contrast, for the CIFAR-100 dataset, the proposed attack can effectively reconstruct almost all samples with high visual fidelity. These qualitative results further highlight the effect of distributional differences on the attack performance, suggesting that greater similarity between the underlying data distributions facilitates more effective reconstruction.
Discussion: Stanford CARS contains 196 classes, whereas LSUN Cars is treated as a single-class dataset, despite both datasets containing car images. Consequently, the two datasets exhibit a substantial distributional difference due to their distinct data sources, visual content characteristics, and semantic diversity. In contrast, CIFAR-10 and CIFAR-100 contain 10 and 100 classes, respectively, but share a more closely related underlying image distribution. Although the proposed attack outperforms the baseline on the Stanford CARS datasets, the performance improvement is considerably more pronounced for the CIFAR datasets. This observation provides empirical evidence that the distributional relationship between the target data and the data used by the attack can substantially influence reconstruction
| Method | CARS | ||||
|---|---|---|---|---|---|
| GT | |||||
| GIAS | |||||
| GIAS + Ours | |||||
| GT | |||||
| GIAS | |||||
| GIAS + Ours | |||||
Images at larger scale
| Method | CIFAR-100 | ||||
|---|---|---|---|---|---|
| GT | |||||
| GIAS | |||||
| GIAS + Ours | |||||
| GT | |||||
| GIAS | |||||
| GIAS + Ours | |||||
Figure 19. Qualitative comparison on the CIFAR-100 datasets.
methods.
Table 9. Statistical significance analysis of the improvements reported in Tab. 3. P-values are computed using a two-sided Welch's t-test over nine independent random initializations. Bold values denote statistically significant differences (). Metrics P, S, and L refer to PSNR, SSIM, and LPIPS, respectively.
| E | B | Metric | APRIL | GradViT | GIAS |
|---|---|---|---|---|---|
| 1 | 8 | P | 0.548 | 0.622 | 0.004 |
| 1 | 8 | S | 0.064 | 1.000 | 0.003 |
| 1 | 8 | L | 0.758 | 1.000 | 0.011 |
| 1 | 4 | P | 0.069 | 0.536 | 0.002 |
| 1 | 4 | S | 0.016 | 0.541 | 0.001 |
| 1 | 4 | L | 0.272 | 1.000 | 0.003 |
| 2 | 8 | P | 0.379 | 0.400 | 0.002 |
| 2 | 8 | S | 0.101 | 0.085 | 0.001 |
| 2 | 8 | L | 0.602 | 1.000 | 0.005 |
| 2 | 4 | P | 0.799 | 0.464 | 5.19e-04 |
| 2 | 4 | S | 0.162 | 0.267 | 2.92e-04 |
| 2 | 4 | L | 0.100 | 0.130 | 0.003 |
Figure 18. Qualitative comparison on the Stanford CARS datasets.
performance, with greater distributional similarity facilitating a larger improvement over the baseline.
Furthermore, the car datasets contain images with substantially higher spatial resolution than the CIFAR datasets, whereas in our experiments we use a ViT-Small backbone. Using a larger backbone may improve the attack performance further by increasing the number of trainable parameters and, consequently, the amount of gradient information available to the attacker, as discussed previously in Sec. 1.
I. Statistical Guarantees in the FedAvg Setting
In the multi-step gradient update setting, each reported result in Tab. 3 is averaged over nine independent runs with different random initializations. Statistical significance is assessed using a two-sided Welch's t-test (), which does not assume equal variances between the compared
J. More Results on Large Batch Sizes on CelebA dataset
In this section, we present empirical quantitative results for batch sizes 1, 4, 16 and 32 in Tab. 10 and also qualitative reconstruction results on larger batch sizes of 4 and 16 in Fig. 20. For this ablation, we used CelebA images of resolution . We observe that even on these larger resolution images, the proposed modification to the transformer architecture, that is, incorporation of trainable positional embedding improves performance for large batch sizes over the baseline GIAS.
K. Impact of Low Rank Adapter Initialization
We further study the effect on initialization of the Low Rank adapters, for which we have three choices: (1) standard, that is, initializing , and with zeros, (2)
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Batch Size B = 4 | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| Batch Size B = 16 | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
Figure 20. Qualitative reconstruction comparison on the CelebA dataset. Top: Batch Size B = 4. Bottom: Batch Size B = 16.
Table 10. Comparison of performance for multiple batch sizes on 64 × 64 CelebA dataset.
| Method | Batch Size | |||||
|---|---|---|---|---|---|---|
| 1 | 4 | |||||
| PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | |
| GIAS | 12.48 | 0.300 | 0.198 | 11.00 | 0.192 | 0.238 |
| GIAS+Ours | 22.44 | 0.752 | 0.064 | 17.25 | 0.470 | 0.139 |
| 16 | 32 | |||||
| PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | |
| GIAS | 10.80 | 0.181 | 0.236 | 10.63 | 0.178 | 0.225 |
| GIAS+Ours | 12.79 | 0.239 | 0.203 | 11.89 | 0.190 | 0.221 |
initializing both , (3) initializing and following the strategy described in LoRA-One [57]. Tab. 11 presents the effect of LoRA initialization on the attack metrics for the single-step update scenario with batch size 1 for LoRA rank 128. We observe that while apply-
ing uniform initialization for both the adapters definitely improves performance for both GIAS and GIAS+Ours, the same is not true for LoRA-One initialization. In fact, we observe that using LoRA-One initialization in our case yields sub-optimal performance for both cases.
Table 11. Effect of different initialization strategies on reconstruction performance of GIAS.
| Initialization | GIAS | GIAS+Ours | ||||
|---|---|---|---|---|---|---|
| PSNR ↑ | SSIM ↑ | LPIPS ↓ | PSNR ↑ | SSIM ↑ | LPIPS ↓ | |
| Standard | 13.48 (3.74) | 0.24 (0.19) | 0.126 (0.077) | 23.47 (6.04) | 0.77 (0.20) | 0.025 (0.031) |
| Uniform | 15.77 (4.52) | 0.34 (0.221) | 0.12 (0.075) | 25.91 (6.29) | 0.79 (0.17) | 0.022 (0.033) |
| LoRA-One [57] | 10.32 (1.62) | 0.08 (0.05) | 0.198 (0.064) | 10.32 (1.44) | 0.07 (0.05) | 0.197 (0.064) |
L. Ablation on ViT Backbone Initialization
In this section, we investigate the effect of model initialization on attack efficacy. Tab. 12 studies the influence of the ViT backbone initialization on reconstruction quality. When initialized from a CIFAR-pretrained checkpoint, both GIAS [25] and GIAS+Ours achieve relatively modest reconstruction performance, with our method providing only a limited improvement over the baseline. In contrast, initializing the backbone from an ImageNet-pretrained checkpoint substantially improves the performance of GIAS+Ours, increasing PSNR from 17.67 to 25.91 dB and SSIM from 0.468 to 0.79 while reducing LPIPS from 0.174 to 0.022. Although the baseline GIAS also benefits from ImageNet pretraining, the gain is considerably smaller. These results suggest that richer semantic representations learned through large-scale pretraining provide a more informative optimization landscape for our trainable positional embeddings, allowing the proposed method to exploit pretrained features more effectively than the baseline.
Table 12. Ablation on the ViT backbone initialization. The generator initialization is kept fixed across all experiments.
| ViT Init. | Method | PSNR ↑ | SSIM ↑ | LPIPS ↓ |
|---|---|---|---|---|
| CIFAR | GIAS | 15.08 | 0.356 | 0.187 |
| (7.51) | (0.312) | (0.145) | ||
| GIAS+Ours | 17.67 | 0.468 | 0.174 | |
| (9.195) | (0.382) | (0.161) | ||
| ImageNet | GIAS | 15.77 | 0.34 | 0.12 |
| (4.52) | (0.221) | (0.075) | ||
| GIAS+Ours | 25.91 | 0.79 | 0.022 | |
| (6.29) | (0.17) | (0.033) |
M. Impact of Number of Steps in Server on Attack Performance
In this section, we ablate the effect of performing single-step versus multi-step optimization in the server-side attacker. Here, single-step (s) and multi-step (m) denote the number of optimization steps performed by the attacker to emulate the client's local updates. From Fig. 21, we observe that moving from (s) to (m) consistently improves all metrics for GIAS: PSNR increases by 2.27-2.75 dB, SSIM increases by 0.144-0.173, and LPIPS decreases by 0.03-0.037. The improvement is stable across both one and two local epochs, and across batch sizes 4 and 8. Similar improvements are also observed for APRIL and GradViT. This indicates that multi-step updates provide better estimation of the target client gradients.

Figure 21. Ablation on the effect of the number of steps in the server. Parentheses denote standard deviation. tracks performance change from (s) to (m). "Ep x BS y" denotes that the optimization in the user was conducted for x epochs with a batch size of y, before the gradient was sent to the server.
N. Qualitative Evidence of the Effectiveness of the Trainable Positional Embeddings for Different LoRA Ranks
In this section, we present qualitative empirical evidence of the attack performance when the backbone ViT is fine-tuned using LoRA with ranks r = 32 and r = 64 in Fig. 22. Consistent with the quantitative results presented in Sec. 4.3.1, the proposed method demonstrates improved reconstruction performance over the baseline GIAS method. In particular, the incorporation of trainable positional embeddings provides additional spatial information, enabling more accurate spatial reconstruction in cases where the baseline method fails to recover the underlying structure.
O. Comparison of Performance under Secure Aggregation
Secure Aggregation is a commonly used privacy-preserving mechanism in federated learning that prevents the server from directly observing the individual updates from each client. Instead, the server only receives the aggregated updates from multiple participating clients, making conven-
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| LoRA Rank r = 64 | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS+Ours | ||||||||
| LoRA Rank r = 32 | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS+Ours | ||||||||
Figure 22. Qualitative reconstruction comparison across 8 samples on the CIFAR-10 dataset with LoRA rank r = 64 and r = 32. We can observe that the proposed method is effective even at lower ranks and is capable of solving the spatial information obscuration issue for the backbone ViT-Small model.
tional gradient inversion attacks considerably more challenging. In this section, we evaluate the effectiveness of the proposed attack under the Secure Aggregation setting, where the objective is to reconstruct the data of the participating clients from the aggregated updates. We compare the performance of the proposed method with the baseline approaches on the CIFAR-10 dataset to investigate whether the proposed attack can effectively reconstruct client data despite the information loss introduced by aggregation, and provide the quantitative results in Tab. 13, supported by qualitative evidence in Fig. 23. For the experiments concerning Secure Aggregation, we consider the number of clients to be 4, and we ablate our investigation over two values of batch sizes, 1 and 4, in the single-step gradient update setup (FedSGD).
The most basic form of Secure Aggregation is implemented using pairwise masking [6], where each pair of par-
Table 13. Quantitative comparison on CIFAR-10 under Secure Aggregation. The proposed trainable positional embeddings clearly benefit reconstruction even under secure aggregation.
| Batch Size 1 | Batch Size 4 | |||||
|---|---|---|---|---|---|---|
| Method | PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS |
| GIAS | 11.56(1.49) | 0.132(0.063) | 0.135(0.029) | 11.08(0.598) | 0.08(0.022) | 0.136(0.012) |
| GIAS+Ours | 19.44(4.28) | 0.593(0.222) | 0.046(0.036) | 13.516(1.72) | 0.247(0.106) | 0.1(0.023) |
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Batch Size (4 Clients) | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
| Method | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| Batch Size (4 Clients) | ||||||||
| GT | ||||||||
| GIAS | ||||||||
| GIAS + Ours | ||||||||
Figure 23. Qualitative reconstruction comparison for Secure Aggregation scenarios. Top: Batch Size (in each client). Bottom: Batch Size (in each client).
ticipating clients generates a shared random mask using a common random seed. Before transmitting their local gradients, each client adds or subtracts the corresponding pairwise masks from its gradient update. The masks are constructed such that, when the updates from all participating clients are aggregated at the server, the pairwise masks can-
cel each other out, leaving only the sum of the original client gradients. As a result, the server can obtain the aggregated update required for model training without directly observing the individual gradient updates of the participating clients.
On the CIFAR-10 dataset, we observe that the proposed method remains capable of recovering recognizable client samples from the aggregated updates, while achieving better reconstruction performance compared to the baseline methods. Although Secure Aggregation introduces additional ambiguity by combining the updates from multiple clients, the proposed method is able to leverage the learned generative model before constraining the reconstruction towards plausible data samples. As the number of aggregated client updates increases, the reconstruction problem becomes increasingly challenging due to the contribution of multiple client samples to the observed update. Nevertheless, the results demonstrate that the proposed method can still recover meaningful information from the aggregated gradients, highlighting that Secure Aggregation alone may not completely prevent data leakage under gradient inversion attacks.
P. Comparison with Model Poisoning-based Attacks on Federated PEFT Scenario
In this section, we compare our method with model poisoning methods that deliberately broadcast malicious weights to clients with the specific intention of reconstructing client data. A recent method that applies this objective to bottleneck-adapted Vision Transformers is PEFTLeak [46]. PEFTLeak achieves this objective by specifically designing the bias and weights to facilitate the recovery of individual patches. However, such methods cannot maintain their attack performance when clients are allowed to update the transmitted weights, as evidenced by our experiments in Sec. 6. In this section, we compare the performance of PEFTLeak with our proposed method on CIFAR datasets.
Table 14. Comparison of performance with PEFTLeak on the CIFAR-10 dataset for multiple batch sizes in the single-step update setting.
| Method | Batch Size | |||||
|---|---|---|---|---|---|---|
| 1 | 4 | |||||
| PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | |
| PEFTLeak | 16.25 | 0.798 | 0.241 | 15.57 | 0.765 | 0.252 |
| GIAS+Ours | 25.91 | 0.79 | 0.022 | 20.97 | 0.628 | 0.042 |
| 16 | 32 | |||||
| PSNR | SSIM | LPIPS | PSNR | SSIM | LPIPS | |
| PEFTLeak | 14.90 | 0.66 | 0.329 | 14.36 | 0.585 | 0.384 |
| GIAS+Ours | 13.71 | 0.244 | 0.103 | 11.83 | 0.110 | 0.121 |
From Tab. 14, we observe that the proposed method significantly outperforms PEFTLeak at low batch sizes in terms of PSNR and LPIPS in the single-step update setting, whereas PEFTLeak marginally outperforms the proposed method at higher batch sizes. However, PEFTLeak remains a less practical choice in such scenarios due to its detectability through the progression of the utility. This makes it difficult for PEFTLeak to maintain the observed attack performance throughout the entire federated training process.
| GT | GIAS | GIAS+Ours | GT | GIAS | GIAS+Ours |
|---|---|---|---|---|---|
remains limited. Since our focus is primarily on the vision domain, we explore whether the proposed attack is also effective when used in conjunction with a language model.
In this case as well, we assume that the server knows the language tokens fed to the language model at the client, either by knowing the class label along with the prompt template or by using an attack such as GRAB [16] or LAMP [4]. Furthermore, we use SigLIP [55] as the multimodal model for training at the clients with a batch size of 4, resulting in 4 positive pairs and 12 negative pairs. For the attack simulation, we use the prompt "This is an image of {class_name}" as the input to the text encoder, which gives us the text embeddings to compute the SigLIP loss. We can observe from the results presented in Fig. 24 that the proposed method performs significantly better compared to the baseline method GIAS on the CIFAR-10 dataset.
R. More Empirical Evidence of Privacy-Utility Trade-Off
In Sec. 6, we had already provided empirical evidence through PSNR vs. Communication round and Server test accuracy plot. In this section, we present the plots of SSIM and LPIPS over the FedAvg [41] training duration at the , , and rounds.

Figure 24. Qualitative evidence of reconstructions using LoRA gradients from ViT in SigLIP VLM client models.
Q. Comparison of Attack Performance on VLMs
In this work, we primarily focus on vision transformer models, although there has also been substantial work in the language domain. However, work in the multimodal domain

Figure 25. Higher SSIM and lower LPIPS indicate better reconstruction. We can observe that as the FedAvg training progresses, the attack performance with no defence actually drops, while the LPIPS remains the same over the training duration. The behaviour of PEFTLeak remains the same as PSNR and Accuracy for both SSIM and LPIPS over the whole training duration.
S. Results on FEMNIST Dataset from LEAF benchmark
We further evaluate the proposed spatial anchoring mechanism on the FEMNIST dataset from the LEAF benchmark. FEMNIST is a handwritten-character dataset that differs substantially from the natural image distribution used to train the DCGAN, making this setting a challenging out-of-distribution reconstruction task. We use a ViT-Small backbone adapted with low-rank matrices with rank as the network shared by the server and the clients. In addition to that, we use a CIFAR-pretrained DCGAN generator as a prior. Qualitative comparisons of the reconstructions can be observed in Fig. 26, where we present multiple reconstruction samples from our experiments, showing clear evidence of reconstruction superiority compared to GIAS.
| GT | GIAS | GIAS+Ours | GT | GIAS | GIAS+Ours |
|---|---|---|---|---|---|
| L | L | 2 | 2 | ||
| 0 | 0 | A | A | ||
| 0 | 0 | T | T | ||
| 4 | 4 | P | P | ||
| 3 | 3 | 7 | 7 | ||
| 6 | 6 | 6 | |||
| 8 | 8 | 9 | 9 | ||
| 4 | 4 | f | f | ||
| s | s | 4 | 4 | ||
| 0 | 0 | h | h | ||
| F | f | 4 | 4 | ||
| n | n | + | + | ||
| e | e | d | d | ||
| 9 | 9 | 1 | 1 |
Figure 26. Qualitative comparison of reconstruction on FEMNIST dataset between GIAS and GIAS + Ours.
In addition to the qualitative results, the quantitative re-
sults in Tab. 15 show that the proposed method outperforms the baseline GIAS in the FedSGD setting in this challenging out-of-distribution task as well. The substantial improvement across PSNR, LPIPS, and SSIM indicates that the additional positional gradients remain useful even under a strong generator-data distribution mismatch.
Table 15. Comparison of performance on the FEMNIST dataset in the FedSGD setting.
| Method | PSNR ↑ | SSIM ↑ | LPIPS ↓ |
|---|---|---|---|
| GIAS | 11.31(3.27) | 0.180(0.149) | 0.211(0.082) |
| GIAS + Ours | 22.11(5.31) | 0.662(0.201) | 0.033(0.045) |