arXiv:2610.25712cs.AIOct 2026

Manuscript Offprint

arXiv:2610.25712

PFedQFT: Personalized Federated Quantum-Inspired Fine-Tuning for Medical Large Language Models

Qihan Huang, Lingxia Zhang, Guye Zhang, Zizhu Wang, Xiaowei Mao

Qihan Huang 1,†^{1,\dagger}, Lingxia Zhang 1,3,†^{1,3,\dagger}, Guye Zhang 1,3^{1,3}, Zizhu Wang 1,3,∗^{1,3,*}, Xiaowei Mao 1,2,3,4,∗^{1,2,3,4,*},

1^{1}Institute of Fundamental and Frontier Sciences,

University of Electronic Science and Technology of China, Chengdu, Sichuan, China

2^{2}Sichuan Provincial Key Laboratory for Human Disease Gene Study and the Center for Medical Genetics, Department of Laboratory Medicine, Sichuan Academy of Medical Sciences and Sichuan Provincial People's Hospital, University of Electronic Science and Technology of China, Chengdu, Sichuan, China

3^{3}Key Laboratory of Quantum Physics and Photonic Quantum Information, Ministry of Education, University of Electronic Science and Technology of China, Chengdu, Sichuan, China

4^{4}Sichuan Quantum Science and Technology Institute, Chengdu, Sichuan, China

xiaowei.mao@uestc.edu.cn

Abstract—Medical data remain fragmented across institutional silos because of privacy, governance, and ownership constraints. Federated learning enables medical institutions to adapt large language models (LLMs) collaboratively without transferring raw records. However, independently parameterized low-rank adapters incur repeated parameter and communication costs across Transformer projections, while uniform aggregation may limit adaptation to heterogeneous institutional data. We propose PFedQFT, a quantum-inspired framework for personalized federated fine-tuning with a compact shared adapter. Specifically, PFedQFT constructs reusable orthonormal adaptation bases from compact skew-symmetric generators using a truncated matrix-exponential approximation followed by QR orthonormalization. Compatible projections reuse these bases, while a globally shared full core preserves the flexibility of each projection. Each client further maintains a lightweight private residual operator, whose directions are learned globally and whose coefficients remain local. Experiments on seven public medical tasks and multiple LLM backbones show substantial reductions in trainable parameters and per-round adapter upload volume, with competitive predictive performance on most tasks.

Index Terms—Federated Learning, Parameter-Efficient Fine-Tuning, Quantum-Inspired Adaptation, Large Language Models.

I. INTRODUCTION

Medical institutions continuously generate large and heterogeneous volumes of clinical text, diagnostic records, annotated medical documents, and question answering data. These distributed resources provide valuable evidence for adapting large language models (LLMs) to a wide range of clinical and biomedical language processing tasks [1]. However, consolidating medical records into a centralized training repository

Figure

(a) Data Silos

Figure

(b) High Comm. Cost

Figure

(c) Data Heterogeneity

Fig. 1. Challenges in FFT of medical LLMs: (a) institutional data silos, (b) high communication costs from repeated model update exchanges, and (c) heterogeneous data across institutions.

is often impractical because of privacy regulations, data governance requirements, and institutional ownership constraints [2]. Federated learning (FL) offers a practical alternative by enabling multiple institutions to collaborate while retaining sensitive records locally [2], [3]. We refer to adapting pretrained models under this distributed protocol as federated fine-tuning (FFT). Nevertheless, hospital servers and clinical edge devices often vary in computing power, memory capacity, and network bandwidth, making repeated optimization and transmission of LLMs prohibitively expensive [4], [5]. As illustrated in Fig. 1, institutional data silos motivate FFT, while high communication costs and heterogeneous local data call for efficient personalized federated adaptation.

In a typical FL workflow, the server distributes the current global parameters, clients optimize them on private local data, and the resulting updates are aggregated to improve the global model [3]. Directly adapting all parameters of an LLM is often impractical because of the associated computation, memory, and communication costs. Parameter-efficient fine-tuning (PEFT) addresses this limitation by freezing the pretrained backbone and optimizing only a compact set of task parameters [6], [7]. Within FFT, PEFT allows clients to train and exchange lightweight adaptation modules rather than the

†^{\dagger}These authors contributed equally.

∗^{*}Corresponding authors.

‡^{\ddagger}Lead contact.

This work was supported by the National Natural Science Foundation of China (T2322002), the National Science and Technology Major Project (2024ZD0523900), and the Sichuan Science and Technology Program (2024ZYD0006, 2024NSFTD0032, and 2025ZNSFSC0003) to X.M.

entire model, reducing local resource consumption and communication overhead while leaving the pretrained backbone weights unchanged [5]. Low-Rank Adaptation (LoRA), for example, represents each weight update with two trainable low-rank factors [7]. However, these factors are typically learned independently for individual projection layers, and their trainable and communicated parameter counts still scale with the dimensions of the adapted modules. Moreover, the adapter payload is exchanged repeatedly over communication rounds, so even a relatively small fraction of the backbone parameters can accumulate into a substantial transmission volume. Reducing this recurring cost requires attention to how adaptation parameters are organized and reused across the model, in addition to how many parameters are trained in each individual module.

Despite these advantages, standard FFT with independently parameterized low-rank modules and fully shared aggregation presents two technical limitations. Conventional low-rank adapters learn a separate pair of projection factors for each adapted layer, requiring approximately r(din+dout)r(d_{\text{in}} + d_{\text{out}}) trainable parameters per weight matrix, where rr is the adaptation rank and dind_{\text{in}} and doutd_{\text{out}} are the input and output dimensions [7]. Independently parameterizing these factors across Transformer layers incurs repeated parameter costs, with limited reuse of adaptation directions across compatible projections. Simply lowering the adaptation rank reduces the parameter budget but also restricts the dimension of the update space. An alternative is to reuse adaptation bases across compatible projections while retaining transformations specific to each projection within those bases. This separates the cost of specifying adaptation directions from the cost of combining them for each projection.

Conventional FL aggregation generally treats all adapter parameters as globally shareable. When medical data are not independently and identically distributed (non-IID), client updates can contain both transferable clinical knowledge and institution specific information, leading to conflicting local objectives and unstable aggregation [4], [8]. Aggregating both components can weaken local specialization, whereas keeping complete adapters private restricts knowledge transfer across institutions [9]. A lightweight private component offers a middle ground: clients can share the main adaptation parameters while retaining a small set of local corrections [9], [10]. The challenge is to provide useful local flexibility without introducing a complete private adapter for every institution. Together, these limitations motivate two related challenges: constructing reusable low-rank adaptation subspaces from compact intrinsic parameters and separating globally collaborative transformations from lightweight client specific adaptation without substantially increasing the communication payload.

Quantum-inspired parameterizations offer a structured perspective on constructing adaptation transformations [11]. In quantum computation, unitary transformations preserve inner products and norms and can be expressed as matrix exponentials of Hermitian generators, Q=exp⁡(−iH)\mathbf{Q} = \exp(-\mathrm{i}\mathbf{H}) [12]. For real-valued adaptation, a corresponding construction uses a real skew-symmetric generator A\mathbf{A}, whose exponential exp⁡(A)\exp(\mathbf{A}) is orthogonal; setting H=iA\mathbf{H} = \mathrm{i}\mathbf{A} establishes the connection to the unitary formulation [13]. Applying this orthogonal transformation to a set of standard basis vectors yields orthonormal directions that can serve as adaptation bases. The opportunity for parameter reduction comes from imposing a compact structure on the generator and reusing the resulting bases, rather than from orthogonality alone. This perspective motivates constructing shared adaptation subspaces through structured generator parameters while retaining separate core transformations for each projection and client-specific adjustments.

To address these challenges, we propose Personalized Federated Quantum-Inspired Fine-Tuning (PFedQFT), an efficient method for adapting medical LLMs in distributed environments. Inspired by generator-based unitary transformations, the method uses structured skew-symmetric generators and matrix exponential mappings to construct orthogonal adaptation subspaces [11]. A truncated Taylor approximation followed by thin QR orthonormalization produces the adaptation bases without explicitly forming a dense matrix exponential. Projections with matching module types and matrix shapes reuse these bases, while a full core matrix for each projection retains flexibility in combining the shared directions. All computations and optimization are performed on classical hardware.

For institutional personalization, PFedQFT combines a globally aggregated full core with a private residual operator for each client. Globally learned residual direction matrices map the client retained coefficient vector to a structured core correction, allowing each institution to adjust selected directions within the shared adaptation subspaces. This design introduces only rr private parameters per adapted projection, compared with r2r^2 for a full private core. Clients retain these coefficients across communication rounds and exchange only the shared adapter parameters. By coupling basis reuse with compact local corrections, the framework is designed to reduce the trainable parameter budget while supporting both collaborative learning and institution specific adaptation. The main contributions are summarized as follows:

• A quantum-inspired FFT framework is formulated to adapt medical LLMs across clients with heterogeneous data and constrained resources.

• Orthonormal adaptation bases are constructed from compact skew-symmetric generators using a truncated matrix-exponential approximation followed by thin QR orthonormalization, and are shared across compatible Transformer projections.

  • A shared and private core decomposition combines an aggregated full core with structured residual operators controlled by locally retained coefficients, preserving institutional adaptation without additional communication payload.

• Experiments on medical datasets demonstrate that PFedQFT substantially reduces trainable parameters while maintaining competitive performance.

References (39)