← Latest papers
💻 computer science

Efficient Zeroth-Order Federated Finetuning of Language Models on Resource-Constrained Devices

This paper proposes a novel zeroth-order federated learning method that splits models into blocks and strategically allocates perturbations to enable efficient reuse of intermediate activations, achieving a 3x reduction in computational demand for finetuning large language models on resource-constrained devices while maintaining the memory and communication benefits of federated learning.

Original authors: Mohamed Aboelenien Ahmed, Kilian Pfeiffer, Ramin Khalili, Heba Khdr, Jörg Henkel

Published 2026-06-19
📖 4 min read☕ Coffee break read

Original authors: Mohamed Aboelenien Ahmed, Kilian Pfeiffer, Ramin Khalili, Heba Khdr, Jörg Henkel

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a giant, incredibly smart robot brain (a Large Language Model) that you want to teach a new trick. Usually, to teach this brain, you need a massive supercomputer with huge amounts of memory and a lot of time. But what if you want to teach this brain using thousands of small, weak devices like smartphones or smart home gadgets, without ever sending their private data to a central computer? This is called Federated Learning.

The problem is that these small devices are too weak to handle the "backpropagation" method (the standard way of teaching AI), which requires storing a lot of temporary data. If they try, they run out of memory and crash.

The Old Solution: Zeroth-Order Optimization (ZO)

To solve the memory problem, researchers developed a method called Zeroth-Order Optimization (ZO).

  • The Analogy: Imagine you are trying to find the lowest point in a foggy valley (the best way to teach the robot) without seeing the map. The old way of teaching (backpropagation) is like having a GPS that tells you exactly which way is down. The ZO method is like feeling around with a stick. You poke the ground in random directions to see if it goes up or down.
  • The Catch: To get a good idea of which way is down, you have to poke the ground many, many times in different directions. While this saves memory (you don't need the GPS map), it is very slow and computationally expensive because you are poking the ground so often.

The New Solution: FedSPZO

The authors of this paper propose a new method called FedSPZO (Federated Split-Perturbation Zeroth-Order Optimization). They found a clever way to make the "poking" process much faster without losing accuracy.

Here is how they did it, using a Two-Stage Kitchen analogy:

  1. Splitting the Kitchen: Imagine the robot brain is a kitchen with two sections:

    • Section A (The Prep Station): A huge area where ingredients are chopped and mixed. This is the "first block" of the model.
    • Section B (The Oven): A smaller area where the final cooking happens. This is the "second block."
  2. The Old Way (Inefficient): To figure out how to improve the whole kitchen, the old method would randomly change the entire kitchen (both the prep station and the oven) and taste the food. Then it would change it again, and again. Because the kitchen is huge, tasting the food after every tiny change takes a long time.

  3. The FedSPZO Way (Efficient):

    • Step 1: They only change the Prep Station (Section A) slightly. They keep the Oven (Section B) exactly the same.
    • Step 2: They take the output of the Prep Station and run it through the Oven many, many times, making tiny random changes only to the Oven each time.
    • The Magic: Because the Prep Station didn't change, the kitchen doesn't have to "re-chop" the ingredients every time they test the Oven. They can just reuse the chopped ingredients (intermediate activations) and only focus on testing the Oven.
    • Result: They get a very accurate idea of how to improve the Oven (and the Prep Station indirectly) with far fewer total "tasting" steps than before.

What Did They Find?

The researchers tested this on several famous AI models (like RoBERTa, OPT, and LLaMA) and found:

  • Speed: Their new method was up to 3 times faster (in terms of computer calculations) than other similar "poking" methods.
  • Memory: It still uses very little memory, making it perfect for small devices like phones, just like the original "poking" method.
  • Communication: It sends very tiny amounts of data back to the central server (just numbers, not the whole brain), which is great for slow internet connections.
  • Accuracy: The robot learned the new tricks almost as well as the standard, heavy-duty methods, with only a tiny drop in performance.

The Bottom Line

Think of FedSPZO as a smart way to teach a giant robot using a swarm of small, weak devices. Instead of asking every device to do a massive, memory-hogging calculation, they break the task into two parts. They do the heavy lifting once, and then reuse that work to test many small changes quickly. This allows them to train powerful AI on devices that usually couldn't handle it, saving time, battery, and data.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →