← Latest papers
💻 computer science

Exploring CKKS Parameter Trade-offs for Privacy-Preserving Personalized Federated Learning

This paper introduces pFedCKKS, a framework that integrates the CKKS homomorphic encryption scheme into Personalized Federated Learning and provides the first systematic guide for selecting its parameters to balance privacy, precision, and computational efficiency.

Original authors: Kamolchanok Saengtong, Phanwadee Sinthong, Norrathep Rattanavipanon

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

Original authors: Kamolchanok Saengtong, Phanwadee Sinthong, Norrathep Rattanavipanon

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 a group of doctors, each working in a different hospital, who want to build a super-smart AI to diagnose diseases. They all have patient data, but privacy laws (like GDPR) and ethical rules mean they can't send their patients' actual medical records to a central server.

Federated Learning (FL) is the solution they use: instead of sharing the data, they share the "lessons learned" (model updates) from their local AI. However, there's a catch. Even these "lessons" can sometimes be reverse-engineered to reveal private patient details.

Personalized Federated Learning (PFL) takes this a step further. In standard FL, everyone ends up with the exact same AI model. But in PFL, each doctor gets a model tailored specifically to their own hospital's patient mix, while still learning from the group.

The Problem: The "Honest-but-Curious" Server

In this setup, there is a central server that coordinates the training. The paper assumes this server is "honest-but-curious." It follows the rules and doesn't steal data, but it is curious. It might try to peek at the "lessons" sent by the doctors to figure out private details about their patients.

The Solution: The "Magic Envelope" (CKKS)

To stop the server from peeking, the authors introduce a "Magic Envelope" called CKKS (a type of Homomorphic Encryption).

  • How it works: Imagine you can put a letter inside a locked, transparent box. You can perform math on the outside of the box (adding or multiplying the contents) without ever opening it. The server aggregates these locked boxes. Only the doctors have the key to open the final box and read the result.
  • Why CKKS? Most encryption is great for whole numbers (like counting apples), but AI models use decimals (like 3.14159). CKKS is special because it can do math on these decimal numbers while they are still locked in the box.

The Big Discovery: The "Goldilocks" Settings

The paper's main contribution is figuring out how to configure these Magic Envelopes. The authors found that the "size" of the lock (called primes) creates a trade-off:

  1. Small Locks: Fast to lock/unlock and small to send over the internet, but the math inside gets "fuzzy" (low precision). The AI might get confused and make mistakes.
  2. Huge Locks: Very precise math, but they are heavy, slow to process, and take up a lot of internet bandwidth.

The authors tested this with three different AI strategies (FedFinetune, FedPer, and Ditto) on three different types of data (handwritten letters, celebrity faces, and tweet sentiments).

The "Sweet Spot" Finding:
They discovered that you don't need the biggest, heaviest locks to get good results.

  • If the lock is too small (18 bits), the AI breaks and performs terribly.
  • If the lock is huge (38+ bits), the AI works perfectly, but it's so slow and heavy that it's impractical for real-world use.
  • The Recommendation: They found a "Goldilocks" setting: 28-bit outer locks and 26-bit inner locks.

At this specific setting:

  • The AI is just as accurate as if no encryption were used at all.
  • The speed and internet usage are low enough to be practical.

The Takeaway

The paper presents a framework called pFedCKKS. It proves that you can have your cake and eat it too: you can train personalized AI models on private data without the central server ever seeing the raw data, and without slowing down the system too much.

The key lesson for anyone building this system is: Don't just pick the biggest, safest numbers you can find. Instead, pick the specific "28 and 26" numbers the authors found, which balance security, speed, and accuracy perfectly for this specific job.

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 →