arXiv:2608.27836cs.CRAug 2026

Manuscript Offprint

arXiv:2608.27836

FISGuard: Defending Against Membership Inference via Fixed Input Subspaces

Haocheng Jiang, Hua Shen

Haocheng Jiang

Hubei University of Technology

jianghaocheng@hbut.edu.cn

Hua Shen

Hubei University of Technology

nancy78733@126.com

Abstract—As large language models are increasingly adopted in federated learning, protecting user privacy while performing parameter-efficient fine-tuning on distributed private data has become an important challenge. Although clients only share gradients instead of directly uploading raw data, the shared gradients may still leak membership information about training samples. ProjRes (S&P, 2026) further increases this risk: with less information and without accessing model outputs, an attacker can effectively distinguish members from non-members solely based on the projection residual between a candidate representation and the subspace induced by server-observable gradients. Existing defenses against membership inference mostly rely on gradient perturbation or regularization, which can not only degrade model utility but also fail to effectively defend against the membership inference attack introduced by ProjRes, which exploits the geometric structure of gradients.

To address this issue, we propose FISGuard, a lightweight defense. Its key idea is to construct and fix a low-dimensional representation subspace using independent public data, thereby restricting the space through which private representations are exposed via gradients while preserving the primary information required for downstream tasks. This substantially reduces the projection-residual discrepancy between members and non-members.

We evaluate FISGuard against five representative defense methods across three NLP datasets, two LLMs, and two fine-tuning strategies, Adapter and LoRA. The results show that FISGuard reduces the ProjRes attack AUC to near the random-guessing level of 0.5 in most settings, while maintaining downstream task performance close to that of the undefended model and introducing only limited computational overhead, thereby achieving a favorable privacy–utility trade-off.

Index Terms—Federated Learning, Large Language Models, Fine-tuning, Membership Inference Attacks.

I. INTRODUCTION

Federated large language models enable multiple clients to collaboratively fine-tune a pretrained model without sharing their local data [9], [15]. To reduce the training and communication costs on clients, existing systems commonly adopt parameter-efficient fine-tuning methods, such as Adapters and LoRA, which update only a small number of additional parameters [6]. However, despite their compact size and structured form, the gradients of these parameters may still reveal information about clients' training data[7]. Membership inference attacks aim to determine whether a candidate record was used to train a target client's model. Membership itself may constitute sensitive information, as it can reveal whether a user appears in a medical, financial, or other privacy-sensitive dataset [25].

ProjRes performs membership inference against federated large language models by exploiting the gradient structure of trainable linear layers. Its key observation is that the gradient of a linear layer is jointly determined by local sample representations and backpropagated error signals. Consequently, the representations of training samples contribute to the construction of the gradient row space. ProjRes [6] extracts this space from server-visible gradients and infers membership based on the projection residual of a candidate representation with respect to the gradient space. Because member samples directly participate in gradient computation, their representations can typically be explained more accurately by the gradient space. In contrast, non-member representations are more likely to retain larger components outside that space.

This attack is not limited to Adapters. Any fully connected mapping that directly receives private representations, is trained by the client, and exposes its gradients to the server may create a similar input-side gradient attack surface. The Down projection in a standard Adapter, the input-side low-rank factor in LoRA, and ordinary fully connected layers involved in private fine-tuning all exhibit this basic structure. The original ProjRes attack achieves strong membership discrimination across all evaluated model–dataset combinations. Nevertheless, existing research still lacks a defense specifically designed around the general linear-gradient structure exploited by ProjRes.

Existing defenses against membership inference primarily include output protection, training regularization, gradient perturbation, and secure aggregation [11]. Methods such as output perturbation, confidence modification, and knowledge distillation mainly restrict an attacker's ability to extract membership information from prediction probabilities or loss values. ProjRes, however, does not rely on final model outputs and instead directly analyzes client-uploaded gradients. Even when a model produces similar predictions for members and non-members, the structural relationship exploited by ProjRes may persist as long as private representations continue to participate in the construction of the visible gradient space.

Training regularization [18] and early stopping [21] generally reduce membership leakage by mitigating overfitting. However, the basis of ProjRes is not entirely attributable to model memorization. Once a private sample participates in even a single gradient computation, its representation may become embedded in the resulting gradient structure. Therefore, reducing overfitting alone cannot fundamentally prevent private representations from forming a gradient space observable to the server.

Gradient clipping [5] and differential privacy [8] provide more general privacy protection, but they operate primarily by perturbing client updates. To disrupt the gradient directions and subspace structure exploited by ProjRes, the added noise must substantially alter the geometry of the gradients, which may further intensify the privacy–utility trade-off in federated large language models. Secure aggregation [4] changes the attacker's observation model by hiding individual client updates. However, it relies on the additional protocol assumption that the server can observe only the aggregate of multiple client updates, and it does not alter the leakage structure inherent in an individual client's gradient. Overall, existing defenses either fail to directly address the gradient structure observed by ProjRes or require random perturbation or additional system assumptions.

These limitations motivate a different question: instead of concealing information after gradients have already been generated, can we redesign the parameterization of linear layers before private training begins, such that the system no longer produces the gradient structure required by ProjRes?

This question follows directly from the mechanism of ProjRes. ProjRes can distinguish members from non-members because a client uses a limited number of local samples to form an incomplete gradient subspace within a high-dimensional representation space. Member representations participate in constructing this subspace and are therefore more likely to lie within it, whereas non-member representations are more likely to occupy uncovered directions. Accordingly, the effectiveness of ProjRes depends on two conditions. First, the original private representations must directly enter server-visible gradients. Second, the gradient space must cover only part of the candidate representation space, thereby producing different projection residuals for members and non-members.

An effective defense must therefore address both conditions. First, it should prevent the original high-dimensional private representations from directly generating server-visible input-side gradients. Second, after removing this direct attack surface, it should constrain the remaining gradients to a sufficiently low-dimensional and fixed space that can be fully covered by the gradient span. In this setting, both member and non-member representations can be fully represented within the remaining gradient space, leaving the original ProjRes attack without projection residuals that can be used for membership ranking.

Based on this insight, we propose a fixed input-subspace reparameterization framework for trainable linear mappings. A task-specific linear update is expressed as ΔW=UQ\Delta W = UQ, where Q is an input-side projection determined before private training begins and permanently frozen thereafter, while U is the only output-side mapping trained by the client. The original representation is first transformed by Q into a fixed low-dimensional coordinate space, and private client data are used only to learn how these coordinates should be mapped to the output space.

The framework reconstructs the attack surface of ProjRes through three consecutive steps. First, it freezes the input-side projection, preventing the original high-dimensional private representations from directly producing observable input-side weight gradients. Second, it moves the remaining server-visible gradients from the original high-dimensional representation space into a fixed low-dimensional space. Third, it ensures that this low-dimensional space can be fully covered by the remaining gradient span, thereby eliminating the out-of-space residuals used by the original ProjRes attack to distinguish members from non-members.

This design is not a local modification specific to a particular Adapter parameter. Rather, it is a general principle applicable to trainable fully connected mappings. For a bottleneck Adapter, the framework can be instantiated as a Fixed-Down Adapter, in which the Down projection is frozen and only the Up projection is trained. For LoRA, the input-side low-rank factor can be fixed while only the output-side factor is trained. For a general fully connected layer, the gradient space can be reconstructed in the same way by introducing a low-rank residual branch with a fixed input projection. We use the Fixed-Down Adapter and LoRA as the primary implementations and experimental vehicles, but the theoretical formulation and scope of the method are not limited to these two architectures.

To preserve useful representation information within the fixed subspace, we construct the input projection using an independent public dataset rather than an arbitrary random matrix. The public data determine which input directions the model is allowed to use, while the private data are used only to learn how these directions should be combined for the downstream task. This separation ensures that the input-side geometry is determined before private training begins and does not adapt to client samples. We also employ function-preserving initialization so that the newly introduced low-rank branch does not alter the original forward behavior of the pretrained model at the start of training.

Compared with existing defenses, the proposed framework offers three advantages. First, it directly targets the gradient attack surface exploited by ProjRes, rather than modifying model outputs or attack scores after the leakage signal has already formed. Second, it does not rely on random gradient noise, thereby avoiding the need to select a noise magnitude and the corresponding utility degradation caused by perturbation. Third, it changes only the organization of trainable parameters and does not require modifications to the client-side task loss, the server aggregation rule, or the model inference interface. In the Adapter instantiation considered in this work, public data are used to construct a fixed Down projection, while only the Up projection and task head are trained, making the method compatible with existing federated training pipelines.

The main contributions of this work are as follows:

  • We provide a unified analysis of ProjRes from the perspective of general trainable fully connected layers and show that its attack capability originates from private input representations directly participating in the construction of a server-observable gradient space. Based on this analysis, we identify two key conditions required for the original ProjRes attack to achieve membership discrimination: direct gradient exposure of the original private representations and incomplete coverage of the candidate representation space by the gradient space.

  • We propose a fixed input-subspace reparameterization framework that decomposes a linear update into a fixed input projection and a trainable output mapping. The framework first removes the original high-dimensional input-side gradient and then constrains the remaining gradient to a fixed low-dimensional space that can be fully covered. We further instantiate the framework as a Fixed-Down Adapter and provide a unified formulation for extending it to LoRA and general fully connected residual updates.

• Using the Fixed-Down Adapter as a representative implementation, we conduct experiments on BERT, GPT-2, and multiple text classification tasks to evaluate the proposed framework in terms of membership privacy protection, task performance, and applicability across different models and datasets.

References (28)