Manuscript Offprint

arXiv:2611.02412

A Novel Federated Learning Framework for Defending Against Gradient Inversion Attacks

Pengxin Guo, Ziying Huang, Shuang Zeng, Xiaodan Zhang, Weihong Ren, Yuyin Zhou, Liangqiong Qu

Abstract

Federated Learning (FL) offers a paradigm for collaborative machine learning model training among clients, preserving data privacy by avoiding direct data sharing. However, the gradient information exchanged in FL has been shown to be vulnerable to Gradient Inversion Attacks (GIA), which can reconstruct sensitive user data. To counter these threats, various privacy-enhancing technologies like Secure Multi-party Computing (SMC), Homomorphic Encryption (HE), and Differential Privacy (DP) have been integrated into FL. While effective, these methods often introduce significant trade-offs between privacy and model utility. By revisiting the key to privacy exposure in FL under GIA, which lies in the frequent sharing of model gradients that contain private data, we take a new perspective by designing a novel privacy-preserving FL framework that effectively “breaks the direct connection” between the shared parameters and the local private data to defend against GIA. Our proposed framework, HyperFL++, leverages hypernetworks to generate local model parameters, where only the hypernetwork parameters are aggregated by the server. To ensure practicality, HyperFL++ incorporates

∗^{*}Corresponding author

Email address: liangqqu@hku.hk (Liangqiong Qu)

1^{1}Contribute equally.

a Row-wise Kronecker Decomposition (RKD) to mitigate the memory and communication overhead from the hypernetwork. Comprehensive theoretical analysis and extensive experiments validate our method's effectiveness in protecting data privacy while maintaining high model utility. Our code is available at https://github.com/Pengxin-Guo/HyperFL++.

Keywords:

Federated Learning, Gradient Inversion Attacks, Privacy Protection, Hypernetworks, Kronecker Decomposition

1. Introduction

Deep Neural Networks (DNNs) have demonstrated significant success in various computer vision tasks, primarily due to access to extensive training datasets [1, 2, 3]. However, in many real-world scenarios, training data is often distributed among different institutions, and sharing this data is commonly restricted by privacy and regulatory issues. To address these challenges, Federated Learning (FL) [4, 5, 6, 7, 8], which utilizes collaborative and decentralized training of AI models across multiple clients while keeping personal data private, has emerged as an effective solution. In the FL paradigm, during each training round, clients perform local model updates using the latest copy of the model received from the server. Then, they send the updates to the server for aggregation. The server aggregates these updates to update the global model, which is then broadcasted to all clients for further training. By enabling collaborative training without raw data sharing, FL ensures data privacy protection.

Despite its privacy-centric design, FL is vulnerable to Gradient Inversion Attacks (GIA) [9, 10, 11, 12], which can reconstruct private training data from shared gradients. To mitigate this, defense mechanisms like Secure Multi-party Computing (SMC) [13, 14], Homomorphic Encryption (HE) [15, 16], and Differential Privacy (DP) [17, 18, 19, 20] have been adopted. As shown in Figure 1 (left), these methods apply protections to the exchanged gradients without altering the fundamental FL framework. However, they introduce a significant privacy-utility dilemma.

For example, SMC and HE offer strong security but impose prohibitive computa-

Figure

Figure 1: Left. Current approaches focus on protective techniques for shared gradients, such as SMC, HE, and DP, which naturally entail significant privacy-utility trade-offs. Right. A new FL framework is introduced that “breaks the direct connection” between the shared parameters and the local private data, aiming to achieve an optimal balance between privacy and utility.

tional and communication overheads, especially for large-scale DNNs [14, 16]. Conversely, DP is more lightweight but often compromises model accuracy to achieve meaningful privacy guarantees [18, 21]. These limitations motivate us to explore a different path, leading to our central research question:

Can we develop a new FL framework that provides a favorable privacy-utility trade-off against GIA without depending on current defense mechanisms?

To achieve this, we revisit the key to privacy exposure in FL under GIA, which stems from the frequent sharing of model gradients containing private information. Most existing efforts focus on developing advanced defense mechanisms for the shared gradients to improve privacy in FL, as depicted in the left section of Figure 1. In contrast, our approach seeks to create a novel privacy-preserving FL framework that “breaks the direct connection” between shared parameters and local private data to guard against GIA. To accomplish this, we investigate the potential of hypernetworks—a type of deep neural network that generates weights for another network [22]—as a promising solution, as shown in the right section of Figure 1 and Figure 2.

To this end, we present HyperFL++, an innovative FL framework that employs a dual approach—network decomposition and hypernetwork sharing—to “break the direct connection” between shared parameters and local private data, as illustrated in Figure 2. Inspired by findings that FL models exhibit greater diversity in their final layers [23, 19], we partition each local model into a shared feature extractor and a private classifier. This design improves performance in heterogeneous settings and confines some data-sensitive components locally. To further enhance privacy, an auxiliary hypernetwork generates the feature extractor's parameters from a private, client-specific embedding. Instead of sharing the feature extractor's gradients, clients only transmit the hypernetwork's parameters to the server for aggregation. This auxiliary hypernetwork sharing approach effectively "breaks the direct connection" between shared parameters and local private data, preserving privacy while facilitating interaction and information exchange among clients. To make HyperFL++ efficient, we introduce a Row-wise Kronecker Decomposition (RKD) technique that compresses the hypernetwork's parameters, significantly reducing the associated memory and communication costs, as detailed in Figure 2 (right). This operation largely reduces the parameters associated with the hypernetwork, minimizing the communication overhead introduced by hypernetworks.

The HyperFL++ framework is designed to be both flexible and scalable. We propose two main configurations: (1) the Main Configuration, which generates the entire feature extractor and is suited for smaller networks, and (2) HyperFL++ for Large Pre-trained Models (HyperFL++-LPM), which uses a hypernetwork to generate parameters for lightweight adapters [24] to fine-tune large, fixed pre-trained models for more complex tasks (see Figure 3). Our theoretical and empirical results confirm that HyperFL++ robustly defends against GIA while delivering model performance and convergence rates comparable to the standard FedAvg [4]. We hope this work encourages a shift in focus toward designing inherently private FL frameworks rather than relying solely on external defense mechanisms.

Our main contributions are:

We propose HyperFL++, a novel privacy-preserving FL framework that defends against GIA by “breaking the direct connection” between shared parameters and local data, offering a new perspective on FL privacy.

We introduce a Row-wise Kronecker Decomposition (RKD) method to make the hypernetwork-based approach practical by minimizing its communication and memory footprint.

We present two key configurations of HyperFL++: (1) the Main Configuration, which is designed for simpler tasks with smaller networks and learns the full parameters of the feature extractor directly; (2) HyperFL++-LPM, which is aimed at complex tasks by utilizing pre-trained models as fixed feature extractors while generating trainable adapter parameters through a hypernetwork.

  • Our theoretical analysis and extensive experimental results show that HyperFL++ provides strong privacy protection against GIA while achieving competitive model utility and convergence.

References (40)