atlas

Research map / Federated learning and privacy / Communication-efficient FL

Thinking Forward: Memory-Efficient Federated Finetuning of Language Models

NeurIPS 2024 · Federated learning and privacy › Communication-efficient FL · approach: Efficient local training in FL · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Spry, a federated LLM finetuning algorithm that splits LoRA trainable layers across clients and has each client estimate gradients with forward-mode AD, cutting memory versus backpropagation and improving accuracy over zero-order federated methods.

Problem

Federated finetuning of LLMs with backpropagation needs excessive memory, mainly for intermediate activations, which overwhelms edge devices; existing zero-order alternatives converge slowly and lose accuracy.

Approach

Assign each client a small subset of trainable LoRA layers so forward-mode AD (a single jvp per batch with random perturbations) gives gradient estimates closer to the true gradient; server aggregates the per-layer weights and applies FedYogi.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Spry instead of the strongest zero-order baselineRoBERTa Large and LLMs · Heterogeneous classification and SQuADv2 tasksgeneralized accuracy / F1 score: 5.15--13.50%Helped
Use Spry instead of backpropagation-based federated optimizersRoBERTa Large and LLMs · Heterogeneous classification and SQuADv2 tasksgeneralized accuracy / F1 score: 0.60--6.16%Hurt
Use Spry forward-mode AD instead of backpropagationRoBERTa Large, Llama2-7B, OPT6.7B, OPT13B · Training peak memorypeak memory consumption: 27.90--86.26%Helped
Use Spry instead of zero-order methodsRoBERTa Large and LLMs · Time to convergencetime to convergence: 1.15-1.59×, 6.16-20.28×, and 1.34-2.98×Helped
Increase communication frequency from per-epoch to per-iteration (ablation)Spry · Accuracy performanceaccuracy: 4.47%Helped
Increase perturbations per batch from K=1 to K=100 (ablation)Spry · Generalized test accuracyaccuracy: 1.1%Helped
Increase perturbations per batch from K=1 to K=10 (ablation)Spry · ConvergenceFL rounds to steady state: 200; 500Helped
Increase participating clients from C=10 to C=50 to C=100 (ablation)Spry on SST2 · SST2accuracy: 85.14%; 86.56%; 88.08%Helped
Increase participating clients from C=10 to C=50 to C=100 (ablation)Spry on SST2 · SST2rounds to approximately 85% accuracy: 500, 450, and 150 roundsHelped
Split trainable layers across clients in FedAvg (ablation)FedAvgSplit · Federated finetuningaccuracy: 2.60-10.00%Hurt
Remove weight splitting from forward-mode AD (ablation)FedFgd · RoBERTa Large with LoRAconvergenceHurt
Use LoRA instead of IA3, BitFit, or classifier-only finetuning (ablation)Spry · Language-model finetuningaccuracy: 10.60-16.53%Helped

Surprising findings

Limitations

Experimental setup

Datasets: AG News SST2 Yelp Yahoo SNLI MNLI SQuADv2 MultiRC

Benchmarks: AG News SST2 Yelp Yahoo SNLI MNLI SQuADv2 MultiRC

Metrics: generalized accuracy personalized accuracy exact match F1 peak memory consumption time to convergence

Baselines: FedAvg FedYogi FedSgd FwdLLM FedMeZO Baffle

Builds on: LoRA FedAvg FedYogi MeZO forward gradients

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy