Hannan Shah

Federated Learning

The question was simple to say and annoying to answer. If you train one model across a bunch of tiny devices that never share their data, how many of those devices can be lying before the model is useless?

Each device learns from what it sees, sends what it learned to a server, and the server averages everyone together and sends it back. Nothing private ever leaves the device, which is the whole appeal. The catch is that the server has to trust whatever comes in, and a device that lies gets averaged into everything.

My whole summer came down to a model with 512 numbers in it, small enough to fit on a chip with kilobytes of memory, and a setting for how many of the five devices were lying. I ran every attack I could find against every defense I could find and watched the accuracy.

With a few liars the model was fine. With a few more, most of the defenses fell apart and the model was guessing. The one defense that held was the simplest, it ignored everyone except the device that agreed most with the others.

Averaging is a trust decision. When the model is tiny, one bad update is a big part of everything it knows, so blending in a lie costs more than throwing away a truth.

I spent a summer in Miami breaking a very small model on purpose, and the defense that held was the one that trusted a single device.

Personal

A seminar room at FIU with a slide titled The Academic Research Model on the screen and students at a tableA Muscovy duck with nine ducklings on the grass beside a sidewalkA crowd outside a yellow mosque with a copper dome and palm trees under a cloudy sky
Four people standing in the sand on a beach under a bright blue sky with big cloudsA person aiming a crossbow inside a hunting store with a forest mural behind
Five people with arms around each other in a lobby with a waterfall feature and colored lightsA person smiling and holding a green surfboard on a sidewalk next to a palm treeTwo people at an outdoor dinner table under string lights with plates of food
A person bench pressing a barbell with FIU plates in a gym with floor to ceiling windowsSix people standing in front of a bouldering wall covered in colorful holds
Six people in a row on a beach at sunset with palm trees and an orange sky behind them