Skip to main content
Back

HKU's HO-SFL Fine-Tunes LLMs on Edge Devices With Half the Memory

A new split learning framework lets edge clients skip backpropagation entirely while keeping first-order convergence speed and cutting network traffic to scalars.

Pro

  • HO-SFL lets edge clients skip backpropagation entirely by running zeroth-order optimization while the server does first-order updates.
  • A Lagrangian reformulation decouples client and server objectives, using the activation gradient as feedback between them.
  • Convergence rate is O(sqrt(d_c/PT)), depending only on client-side dimension, avoiding the full-model slowdown of ZO methods.
  • Client memory for fine-tuning LLaMA-3.2-1B drops from 8.78 GB (SFL) to 4.14 GB, essentially matching inference-only cost.
  • Shared random seeds enable dimension-free aggregation: clients upload scalars instead of full parameter vectors.
  • Code released at github.com/HKU-WILL-Lab/HO-SFL, tested on CIFAR-10/100 and models from 125M to 8B parameters.

Fine-tuning large language models on phones, cars, and other edge hardware runs into a wall well before compute becomes the issue: backpropagation demands so much memory for storing intermediate activations that even a few transformer layers can exceed what typical devices can hold. A paper from researchers at the University of Hong Kong proposes HO-SFL (Hybrid-Order Split Federated Learning), a framework that removes backpropagation from the client entirely while matching the convergence speed of first-order methods and slashing the bandwidth needed to synchronize models.

The memory trap in split federated learning

Split federated learning (SFL) was supposed to solve the memory problem by putting most of the model on a resource-rich server and leaving only a few layers on the client. Standard SFL and most variants still require clients to execute backpropagation on the client-side sub-model to compute gradients for updates, so the activation storage bottleneck follows you home. For modern large language models with billions or even trillions of parameters, the memory overhead of storing activations for BP far exceeds the capacity of typical edge hardware, even when the client-side sub-model consists of only a few layers.

Zeroth-order (ZO) optimization looks like the obvious escape hatch. Instead of computing gradients through backprop, ZO methods estimate them from function value differences using only forward passes, which means no activations need to be cached. The catch is convergence speed. Existing distributed ZO methods often suffer from slow convergence rates compared to first-order methods due to the high variance of gradient estimators and the lack of precise gradient information, particularly in high-dimensional parameter spaces. In a billion-parameter regime, that variance penalty is brutal.

A Lagrangian trick that decouples the two sides

HO-SFL's core insight is that the client and server do not need to use the same optimization method. The authors reformulate the split-learning objective as a constrained problem, treating the activations exchanged between client and server as an auxiliary variable that must equal the client's forward output. Applying a Lagrangian relaxation splits the loss into two sub-problems: one for the server, one for the client, connected only through a Lagrange multiplier.

That multiplier, it turns out, is exactly the gradient of the loss with respect to the input activations, which the server already computes during its normal backward pass. The server sends this vector back to the client as feedback. The client then uses it to define a scalar-valued local objective and estimates gradients for its own parameters using zeroth-order perturbations, all without ever running backpropagation.

HO-SFL framework diagram showing client zeroth-order perturbations, server backpropagation, and scalar-based aggregation

How a training step actually flows

Each round of HO-SFL involves four phases:

  1. Selected clients compute an activation through their local sub-model and send it plus the label to the server.
  2. The server runs standard backprop, updates its own weights, and returns the activation gradient to each client.
  3. Using shared random seeds broadcast by the server, each client generates P Gaussian perturbations, runs P perturbed forward passes, and projects the resulting activation differences onto the server's gradient to produce P scalar values.
  4. The server averages those scalars across clients and broadcasts the aggregates back. Every client uses the shared seeds to regenerate the same perturbation vectors and reconstructs an averaged gradient locally.

Because the perturbations are seed-derived, clients never upload weights or full gradients. Instead of transmitting high-dimensional model parameters, clients need only upload a few scalars to achieve client-side model aggregation, thereby significantly reducing communication overhead. The uplink cost drops from O(d_c) to O(P), where P is a small constant like 2 or 5.

Why the convergence rate holds up

The theoretical result is what separates this from prior ZO federated work. Standard ZO methods pay a slowdown proportional to the total model dimension. HO-SFL's rate depends only on the client's dimension, since the server side is still first-order. The dimension factor in the convergence rate depends only on the client-side dimension, where d_c is much smaller than the full model dimension in split learning settings. This effectively isolates the ZO optimization difficulty to a much smaller subspace, significantly mitigating the variance of the gradient estimator, which would otherwise be exacerbated by the massive server-side parameters.

Numbers from vision and language experiments

The team benchmarked HO-SFL against standard SFL, SplitLoRA, FSL-SAGE, ZO-SFL, and MU-SplitFed across ResNet-18 on CIFAR-10/100 and five language models ranging from OPT-125M up to Qwen3-8B on GLUE and SQuAD.

On language tasks with LLaMA-3.2-1B, HO-SFL hit 93.9% on SST-2 versus 94.4% for the first-order SplitLoRA, and actually beat SplitLoRA on RTE (73.3% vs 70.0%), while pure ZO-SFL failed to converge on most tasks. On SQuAD across a 64x scaling range from 125M to 8B parameters, HO-SFL exhibits no convergence degradation and matches the F1 score of the SplitLoRA.

The memory numbers are where the framework earns its keep. Profiling LLaMA-3.2-1B fine-tuning with LoRA on SST-2 with 8 client-side transformer layers:

  • Full local training: 20.81 GB
  • Standard SFL: 8.78 GB
  • HO-SFL: 4.14 GB
  • Pure inference: 4.01 GB

HO-SFL dramatically reduces this footprint to 4.14 GB. This is strikingly close to inference (4.01GB), confirming that HO-SFL effectively eliminates the memory bottleneck of BP. Communication cost on the CIFAR-10 IID run was 2.44 GB for HO-SFL versus 4.20 GB for SFL and ZO-SFL, mostly because HO-SFL never ships model parameters over the wire.

When it makes sense, and when it might not

HO-SFL is a good fit when memory, not compute time, is the binding constraint and when uplink bandwidth is limited. The client still runs P extra forward passes per step, but the authors argue those can be hidden inside the server's backward and communication latency under realistic 5G conditions. On a simulated edge accelerator paired with an A100, they show roughly four perturbation passes fit inside the idle window for a 4-layer client split.

The main tradeoffs are the sensitivity to the client-side dimension d_c (deeper client splits slow convergence, as ablations on LLaMA-3.2-1B confirm) and the tuning of the smoothing parameter μ, which must be small enough to keep bias low but large enough to avoid numerical noise. Increasing P monotonically improves accuracy at essentially no bandwidth cost, since only scalars are transmitted.

The code is available at the HKU-WILL-Lab/HO-SFL GitHub repo, and the paper offers a full convergence proof in its appendix for readers who want to dig into the Lagrangian derivation.