Memory-Efficient Federated Fine-Tuning of LLMs via Block-wise Progressive Training

Qianyue Cao, Zongwei Zhu, Boyu Li, Yi Xiong, Zirui Lian, Xuehai ZhouNeurIPS 2026

TL;DR

Fine-tuning Large Language Models (LLMs) on private, decentralized edge devices usually hits a brutal "memory wall"—even lightweight adapters like LoRA require loading the entire frozen LLM into memory just to run a forward pass. BP-FedPEFT shatters this wall by chopping the LLM into bite-sized, overlapping blocks and training them progressively, one piece at a time. By cleverly synthesizing missing activations via the Transformer's residual stream, it lets tiny devices train massive models without running out of memory—slashing peak RAM by up to 76% and speeding up training by nearly 19×.

What Problem Does This Paper Address?

Suppose hospitals or financial institutions want to collaboratively fine-tune an LLM without sharing sensitive data. That is the promise of Federated Learning (FL). Because sending billions of weights over Wi-Fi is a non-starter, standard practice combines FL with Parameter-Efficient Fine-Tuning (PEFT)—freezing the massive LLM backbone and only updating tiny plug-in modules like LoRA.

Problem solved? Not quite. While PEFT shrinks optimizer states and network traffic, computing gradients for those tiny adapters still requires a full forward pass through the entire frozen LLM to generate intermediate activations.

Figure 1: (Left) Mmodel and Mact lead to OOM issues on edge devices, forming the memory wall. (Right) The memory wall poses a dilemma in balancing model capacity and data coverage.

As shown above, frozen weights ($\mathcal{M}_{model}$) and activations ($\mathcal{M}_{act}$) easily exceed the 4GB–16GB RAM of consumer edge hardware. Scaling up to a 14B model causes out-of-memory crashes on most devices, dropping participation below 25% and starving the model of data—so much so that a 14B model actually underperforms a 1.7B model! Compressing or pruning the backbone to fit doesn't quite save us either, as it degrades the LLM's reasoning capabilities.

Methods

To train full-sized LLMs on tiny devices, the authors propose BP-FedPEFT, which replaces end-to-end backpropagation with block-wise progressive training. Naively training one block at a time usually fails: shallow blocks have no loss signal (supervision gap), deeper blocks still need predecessors run first to get their inputs (reintroducing memory bloat), and training blocks sequentially takes forever.

Figure 2: Overview of BP-FedPEFT.

BP-FedPEFT introduces three novel mechanisms over standard FedPEFT:

  1. Overlapping Block Planning (Server-side): Using a public proxy dataset and Centered Kernel Alignment (CKA)—a metric measuring how similar two layers' representations are—the server partitions the LLM into $K$ blocks that fit device memory budgets. It cuts where layers are least coupled, leaving a single overlapping layer between adjacent blocks to act as a smooth representational "handshake."
  2. Retroactive Anchoring with Input Synthesis: Before forward training, devices run a single-epoch reverse pass ($B_K \to \dots \to B_1$). The final block trains on actual labels, and each preceding block aligns its overlapping boundary to the block ahead of it. Crucially, to feed an isolated middle block $B_m$ without loading blocks $B_1 \dots B_{m-1}$, the server pre-computes a lightweight layer identity vector ($\mathbf{v}_m$)—the average residual drift across those earlier blocks. Devices simply add this vector to raw token embeddings ($\mathbf{E} + \mathbf{v}_m$) to synthesize a remarkably accurate proxy input!
  3. Progressive Adaptation & Dual-Scale Stability: Next, blocks train sequentially ($B_1 \to \dots \to B_K$), using a similar pre-computed residual vector to jump straight from the current block's output to the final classification head. Instead of wasting fixed rounds on every block, devices halt local steps early when consecutive outputs stabilize (measured via CKA), and the server freezes the block globally once cross-device updates plateau.

Datasets

No new benchmarks are introduced; the authors use standard datasets partitioned via latent semantic topics (Dirichlet distribution) to simulate realistic non-IID client data:

  • Fine-tuning: CodeAlpaca-20k (coding), Finance-en (finance), and medical-o1-reasoning-SFT (medical).
  • Evaluation: HumanEval, FinQA, and MedQA-USMLE.
  • Motivational & Ablation Studies: QQP, Alpaca-52k, and Evol-Inst-Code.

Key Insights and Ideas

  • The Residual Stream is a Shortcut: Because Transformers add layer outputs onto a continuous residual highway, the cumulative effect of 20 frozen layers can be approximated surprisingly well by a single static shift vector ($\mathbf{v}_m$) computed on out-of-distribution public data. This completely decouples blocks in memory and even lets devices pipeline different blocks in parallel.
  • Shallow Layers Settle Fast, Deep Layers Work Hard: Guided by the CKA stability criterion, shallow blocks converge in just a handful of steps (since they handle general syntax), whereas deep blocks automatically receive the lion's share of compute to learn task-specific reasoning.
  • One Layer of Overlap is the Magic Number: Zero overlap causes severe feature misalignment between isolated blocks, while two layers waste compute. A single shared boundary layer hits the sweet spot.

Key Results

Tested on a real 14-device heterogeneous edge cluster (Jetson TX2, Xavier NX, AGX Xavier, Orin) across five LLMs (Qwen3-0.6B, Phi2-2.7B, LLaMA3-8B, Qwen2.5-32B, and Mixtral-8x7B):

  • Memory & Traffic: Cuts average peak memory by 44.7%–76.2% and reduces network traffic by 69.4%–82.6% (since only the active block's PEFT weights are uploaded).
  • Speedup: Accelerates Time-to-Accuracy by 5.81× to 18.94×; plugging BP-FedPEFT into existing methods like AdaFL shrinks Qwen2.5-32B training from 528.4 hours down to 27.9 hours.
  • Accuracy: Ranks first in 12 of 15 model-task pairs. On dense LLMs, unlocking data on low-memory devices boosts accuracy by 3.7%–8.7% over the best baselines.

Limitations and Future Work

  • MoE Struggles: On Mixture-of-Experts models (Mixtral-8x7B), BP-FedPEFT trails behind the strongest baseline (AdaFL), likely because dynamic expert routing across blocks disrupts static CKA partitioning and residual approximations.
  • Incompatibility with Lossy Compression: Plugging BP-FedPEFT into quantized/pruned baselines (HAFLQ, FedSpaLLM) fails to reach target accuracy; isolated block training cannot globally compensate for backbone compression errors.
  • Heuristics & Zero-Shot Risks: Both the residual proxy vectors and CKA stopping thresholds are empirical heuristics rather than closed-form optimal rules. Moreover, training isolated blocks on synthetic inputs might subtly warp the pretrained manifold and hurt zero-shot generalization on unseen tasks. Future work aims to build a depth-resolved theory of Transformer learning dynamics and integrate block-wise quantization.

Summary updated

BibTeX
@inproceedings{cao2026memory,
  author = {Qianyue Cao and Zongwei Zhu and Boyu Li and Yi Xiong and Zirui Lian and Xuehai Zhou},
  title = {{Memory-Efficient Federated Fine-Tuning of LLMs via Block-wise Progressive Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=mVZvgjYadQ},
}
Figure