Manuscript Offprint

arXiv:2611.07598

Align Before Aggregation: Basis-Consistent Federated LoRA under Heterogeneous Ranks

Pengpeng Qiao, Yang Cao, Lingling Zhang, Guo Cheng, Junwei Chen, Manjiang Yu, Wei Yang Bryan Lim, Masatoshi Yoshikawa

Abstract

Federated fine-tuning of large language models (LLMs) under heterogeneous client capacities is increasingly important, and low-rank adaptation (LoRA) with heterogeneous ranks makes it practical. Existing server-side aggregators compose local matrix updates ΔWi\Delta W_i from client-specific LoRA factors (Ai,Bi)(A_i, B_i) before aggregating them. Although these matrix updates lie in the same weight space Rm×n\mathbb{R}^{m \times n} and can be averaged directly, the LoRA factors that generate them may expressed client-specific local basis. In the typical compose–aggregate–factorize–dispatch loop, this basis inconsistency can make the rank-rir_i reference prefix dispatched to lower-rank clients unstable after server-side refactorization. In this work, we propose FedAbA, a basis-consistent federated LoRA aggregation framework for heterogeneous ranks. FedAbA first extracts each client's local basis, aligns it to the corresponding prefix of the global reference basis, and constructs a basis-consistent reconstruction of each local matrix update before aggregation. It then aggregates these reconstructions with weights that combine client data size and consistency score, followed by exact coefficient-space SVD refactorization and gauge fixing before rank-prefix dispatch. Our theoretical analysis clarifies the role of basis consistency and supports the proposed consistency-aware aggregation mechanism. Extensive experiments show that FedAbA outperforms representative federated LoRA baselines, with the largest gains under the strongest rank heterogeneity.

1 Introduction

Large pretrained models, especially large language models (LLMs) [9, 8, 14], have become a central backbone for a wide range of downstream applications [25, 34]. In many realistic deployments, however, the data needed to adapt these models is decentralized and privacy-sensitive. Federated learning (FL) offers a natural solution by allowing distributed clients to collaboratively fine-tune a shared model without exposing raw local data [30, 29, 31, 46, 37, 39, 2]. Since full-parameter federated fine-tuning is prohibitively expensive in both communication and on-device computation, low-rank adaptation (LoRA) [17] has emerged as a practical parameter-efficient choice for federated fine-tuning of LLMs. In practice, clients also differ substantially in resources [1, 12, 20, 35], which naturally leads them to adopt different ranks rir_i, yielding heterogeneous-rank federated LoRA.

Why heterogeneous ranks are difficult. A typical server-side aggregation pipeline in federated LoRA follows a compose–aggregate–factorize–dispatch loop, as shown in Figure 1. Client ii uploads LoRA factors (Ai,Bi)(A_i, B_i). The server composes the local matrix update ΔWi=sBiAi∈Rm×n\Delta W_i = sB_i A_i \in \mathbb{R}^{m \times n},

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: Illustration of federated LoRA under heterogeneous ranks. Compose–aggregate–factorize–dispatch training process (top). Two challenges: basis inconsistency and biased aggregation (bottom).

averages these local matrix updates across clients, factorizes the averaged matrix into new global LoRA factors, and dispatches the rank-rir_i reference prefix of those global factors back to client ii. The difficulty is not the size of ΔWi\Delta W_i: regardless of rir_i, every ΔWi\Delta W_i lies in the same matrix space and can be averaged as a matrix. The difficulty arises from what happens after this matrix average, because the server repeatedly moves between matrix updates and low-rank factors, while the factors uploaded by different clients can be learned in client-specific local basis. This mismatch comes from the non-uniqueness of low-rank factorization. For any invertible matrix R∈Rri×riR \in \mathbb{R}^{r_i \times r_i},

BiAi=(BiR)(R−1Ai),Ai∈Rri×n,Bi∈Rm×ri.B_{i}A_{i}=(B_{i}R)(R^{-1}A_{i}),\qquad A_{i}\in\mathbb{R}^{r_{i}\times n},\qquad B_{i}\in\mathbb{R}^{m\times r_{i}}.

Thus, even two clients that learn similar matrix updates can encode them in different local basis. This ambiguity is less harmful when all clients use the same rank, because each client receives the full global LoRA factors and no rank-prefix truncation is imposed. Under heterogeneous ranks, however, lower-rank clients receive only the rank-rir_i reference prefix of the global LoRA factors. After local training, the first uploaded direction of client ii need not correspond to the same reference direction as the first uploaded direction of client jj. When the server aggregates local matrix updates, refactorizes via SVD, and redistributes rank-rir_i reference prefixes, the prefix coordinates received by lower-rank clients may change their semantics across rounds. This makes it important to define aggregation relative to an explicit global reference basis. We refer to this phenomenon as basis inconsistency.

Furthermore, basis inconsistency also affects how clients should be weighted. The typical aggregation strategy uses data-size weighting. Under heterogeneous-rank LoRA, however, a client with many samples can still be poorly aligned with the global reference basis. Giving such a client a large weight may amplify components that are poorly compatible with the reference basis and are later affected by reconstruction or refactorization. This suggests that server aggregation should reflect not only how much data a client has, but also how consistent its local basis is with the global reference basis.

Motivation: Align before aggregation. To address these challenges, we propose FedAbA, a basis-consistent federated LoRA aggregation framework that aligns client updates to a shared global reference basis before aggregation. Using the orthonormal basis induced by the previous-round global right factor as the reference basis, the server extracts each client's local basis from its uploaded right factor, aligns it to the corresponding reference prefix via orthogonal Procrustes, and reconstructs the local matrix update on that prefix. This reconstruction is essential: merely rotating local LoRA factors leaves the composed update ΔWi\Delta W_i unchanged and therefore cannot alter server aggregation. The alignment step also produces a consistency score that measures how well the client's local basis matches the reference prefix. FedAbA then aggregates basis-consistent reconstructions using weights that combine client data size and consistency score. Finally, the averaged basis-consistent global update is refactorized by an exact coefficient-space SVD, avoiding a full m×nm \times n SVD, and a lightweight gauge-fixing step removes arbitrary sign flips and near-degenerate ordering changes before the first rir_i components are sent back to client ii. Our contributions are summarized as follows:

  • We identify that the main challenge in heterogeneous-rank federated LoRA is the lack of explicit basis reconciliation against a global reference basis in the compose–aggregate–factorize–

Figure

(a)

(b)

Figure 2: (a) Distribution of citc_{i}^{t} at t=10 shifts downward as rank heterogeneity grows. (b) Under strong heterogeneity, citc_{i}^{t} is weakly correlated with the data-size weight pip_{i}.

dispatch loop, rather than a dimensional mismatch in the local matrix updates. We also show that factor-space rotations alone cannot resolve this issue.

  • We propose FedAbA, a server-side aggregation framework that reconstructs each local matrix update under a shared global reference basis before aggregation, uses both data size and consistency score in aggregation, and enables an exact coefficient-space SVD refresh, rather than a full-update SVD, with gauge fixing before rank-prefix dispatch.

  • We provide theoretical analysis showing how the consistency score characterizes basis compatibility and supports consistency-aware aggregation under heterogeneous ranks. Experiments show that FedAbA consistently outperforms representative federated LoRA baselines.

References (45)

  • Federated fine-tuning of large language models under heterogeneous tasks and client resources
  • Fedsig: a federated graph augmentation for class-imbalanced node classification
  • Fedalt: Federated fine-tuning through adaptive local training with rest-of-world lora
  • Lora in lora: Towards parameter-efficient architecture expansion for continual visual instruction tuning
  • Privacy-preserving llm preference alignment: A systematic survey
  • Sensitivity-aware efficient fine-tuning via compact dynamic-rank adaptation
  • Heterogeneous lora for federated fine-tuning of on-device foundation models
  • Scaling language modeling with pathways
  • A systematic review of the limitations and associated opportunities of chatgpt
  • Free dolly: Introducing the world's first truly open instructiontuned llm
  • Make lora great again: Boosting lora with adaptive singular values and mixture-of-experts optimization alignment
  • Towards robust parameter-efficient fine-tuning for federated learning
  • Federated adaptive fine-tuning of large language models with heterogeneous quantization and lora
  • The Llama 3 Herd of Models
  • Selective aggregation for low-rank adaptation in federated learning (opens arXiv in a new tab)
  • Cl-lora: Continual low-rank adaptation for rehearsal-free class-incremental learning
  • Low-rank adaptation of large language models
  • Sola: Leveraging soft activation sparsity and low-rank decomposition for large language model compression
  • Ra-lora: Rank-adaptive parameter-efficient fine-tuning for accurate 2-bit quantized large language models
  • Towards robust and efficient federated low-rank adaptation with heterogeneous clients
  • Multimodal fusion for android malware detection based on large pre-trained models
  • Alora: Allocating low-rank adaptation for fine-tuning large language models
  • Conflict-aware federated fine-tuning of large language models with mixture-of-experts
  • Dora: Enhancing parameter-efficient fine-tuning with dynamic rank distribution
  • Evaluation and benchmarking of llm agents: A survey
  • A comprehensive overview of large language models
  • Federated fine-tuning on heterogeneous loras with error-compensated aggregation
  • Instruction tuning with gpt-4 (opens arXiv in a new tab)
  • Feed: Towards personalization-effective federated learning
  • z-signedavg: A unified stochastic sign-based compression for federated learning
  • Meta-pfl: Meta-based personalized federated learning against gradient inversion attacks
  • Glue: A multi-task benchmark and analysis platform for natural language understanding
  • Generalization via declarative instructions on 1600+ nlp tasks
  • Metaeval: Measuring the discrimination of benchmarks for efficient llm evaluation
  • Flora: Federated fine-tuning large language models with heterogeneous low-rank adaptations
  • Adaptive rank allocation for federated parameter-efficient fine-tuning of language models
  • One size fits all: Achieving generic and communication-efficient federated multi-task learning via bi-level sparsification
  • WizardLM: Empowering Large Pre-Trained Language Models to Follow Complex Instructions
  • Spattack: Subgroup poisoning attacks on federated recommender systems
  • Federated residual low-rank adaptation of large language models
  • Low-rank adaptation for multi-task learning
  • More: A mixture of low-rank experts for adaptive multi-task learning
  • Adalora: Adaptive budget allocation for parameter-efficient fine-tuning (opens arXiv in a new tab)
  • Autolora: Automatically tuning matrix ranks in low-rank adaptation based on meta learning
  • Heterogeneous federated fine-tuning with parallel one-rank adaptation