TL;DR
Logic Gate Networks (LGNs) are ultra-fast, tiny circuits of pure Boolean gates designed for edge hardware, but they break completely under standard federated learning because you can't meaningfully "average" discrete logic operations like AND and XOR. To fix this, the authors introduce Federated Boolean Feature Selection (FBFS)—an algorithm that cherry-picks the best-performing logic subcircuits from distributed clients and wires them together into a single, compact global circuit without ever exposing raw local data.
What Problem Does This Paper Address?
If you want to run machine learning on microcontrollers or FPGAs with strict power budgets, floating-point matrix multiplications are an expensive luxury. Enter Logic Gate Networks (LGNs): instead of continuous weights, they learn circuits of two-input Boolean gates (AND, OR, XOR, etc.). During training, each gate is a smooth probability mixture over all 16 possible two-input Boolean operations; for deployment, each gate "hardens" by snapping to its single highest-probability operation.
Now, imagine training LGNs across distributed devices where data must stay local—like medical sensors or industrial telemetry. Standard federated learning (like FedAvg) merges models by averaging their continuous parameters. In an LGN, this triggers what the authors call the categorical-merge pathology.
If Client 1 learns an AND gate and Client 2 learns an XOR gate, averaging their underlying parameters creates a tie. When the circuit hardens for inference, tie-breaking keeps AND and throws XOR in the trash. Even worse, when clients only see a subset of classes (label skew), they tend to learn constant FALSE gates for the classes they don't have. Averaging across clients lets the majority of non-owners drown out the single client that actually knows the class, erasing entire class scores and collapsing accuracy to near-chance.
Methods
Instead of averaging continuous parameters, the authors treat federated aggregation as a discrete circuit-selection problem.
- Local Training & Hardening: Each client reserves a small held-out selection split from its local data, trains its LGN on the rest, and hardens it into a deterministic Boolean circuit. Clients then swap these hardened circuits.
- Federated Boolean Feature Selection (FBFS): Every client runs all peer circuits on its own private held-out data. For each final-layer output gate, clients count how often that gate fires (
1) for each class, uploading only these aggregate firing sums and class counts to the server. Because averages decompose linearly, the server can reconstruct the exact global discriminative score—how much more often a gate fires on class $c$ versus all other classes—as if all held-out data were pooled centrally. The server picks the top-$n$ gates per class and retains their complete upstream logic cones to form the global circuit. - Diverse FBFS: Basic selection might grab ten nearly identical gates from clients with overlapping data. In a second communication round, clients upload pairwise co-firing counts for a shortlist of top gates. The server computes Pearson correlations and greedily penalizes redundant gates.
Crucially, because FBFS evaluates gate outputs rather than matching parameter positions, clients don't even need to share the same network wiring, depth, or width.
Datasets
No new datasets are introduced; the authors evaluate on existing image and real-world federated benchmarks:
- Controlled Label Skew (Images): Binarized MNIST, Fashion-MNIST, and threshold-encoded CIFAR-10 (using Dirichlet distributions to dial client heterogeneity from extreme skew to uniform).
- Natural Client Partitions: FEMNIST (handwritten characters partitioned by writer), UCI HAR (smartphone activity by subject), HHAR (activity across different physical sensor devices), ExtraSensory (in-the-wild user behavioral sensing), and Fed-ISIC2019 (melanoma classification across clinical centers).
Key Insights and Ideas
- Exact Equivalence Without Raw Data: By sharing simple integer firing counts, the server mathematically mirrors centralized feature selection gate-for-gate. Missing classes on individual clients don't break the math, so long as the class exists somewhere across the federation.
- Topology Independence for Free: Federating heterogeneous architectures usually requires complex weight-alignment or distillation tricks. Because Boolean subcircuits are self-contained functions mapping binary inputs to binary outputs, you can pluck a subcircuit from a 2-layer client and wire it right next to one from a 6-layer client.
- A Clear Regime Trade-off: Selection shines brightest when clients learn complementary pieces of a puzzle (severe label skew). When every client already has balanced, representative data, running a full ensemble of client circuits or multi-round parameter merges can beat FBFS in raw accuracy—though FBFS still wins handily on circuit compactness.
Key Results
- Surviving Extreme Skew: On MNIST under severe label skew ($\alpha = 0.01$, where each client sees ~1–2 digits), Diverse FBFS hits 70.8% hard-gate accuracy—a massive 43 percentage point leap over the best parameter-space merge (TIES at 27.8%, FedAvg at 11.5%).
- Real-World Partitions: Diverse FBFS outperforms matched FedAvg baselines across natural partitions, gaining +22.34 pp on 100-writer FEMNIST digits, +5.66 pp on HHAR device shift, and +3.93 pp on ExtraSensory.
- Scaling Up: Tested via centralized probes on convolutional LGNs up to 16M gates (LogicTreeNet-B on CIFAR-10), streaming Diverse BFS reaches 42.56% at $\alpha=0.1$, beating both the client average (27.92%) and the full ensemble (33.25%).
- Hardware Synthesis: The selected circuits lower directly to C and synthesizable Verilog (verified bit-exact against PyTorch). Compiled C inference on MNIST takes 4.7 $\mu$s on an Apple M-series laptop. Post-synthesis gate/cell counts are 2.31$\times$ to 3.24$\times$ smaller than ensembles on image models, and 25.33$\times$ smaller (and ~5.5$\times$ faster) on UCI HAR sensor models.
Limitations and Future Work
- Mild Heterogeneity Ceiling: As client data becomes more uniform (e.g., CIFAR-10 at $\alpha \ge 0.5$), client ensembles—and at $\alpha = 1$, even the average standalone client—surpass FBFS in accuracy, turning FBFS primarily into a model-compression tool in those regimes.
- Communication & Instability: Sharing all peer models plus quadratic pairwise counts in Diverse FBFS increases single-round bandwidth (up to 120–129 MiB/client on 62-class FEMNIST). Furthermore, Diverse FBFS becomes unstable when combining extreme label skew with differing client topologies.
- Privacy: Raw examples stay local, but sharing hardened circuits and firing statistics is not a formal privacy guarantee. Integrating secure aggregation or differential privacy across circuits and second-order moments remains open work, as does assigning class-specific gate budgets.
Summary updated