Federated Nearest Neighbor Classification with a Colony of Fruit-Flies
Parikshit Ram, Kaushik Sinha
Abstract
The mathematical formalization of a neurological mechanism in the olfactory circuit of a fruit-fly as a locality sensitive hash (FlyHash) and bloom filter (FBF) has been recently proposed and "reprogrammed" for various machine learning tasks such as similarity search, outlier detection and text embeddings. We propose a novel reprogramming of this hash and bloom filter to emulate the canonical nearest neighbor classifier (NNC) in the challenging Federated Learning (FL) setup where training and test data are spread across parties and no data can leave their respective parties. Specifically, we utilize FlyHash and FBF to create the FlyNN classifier, and theoretically establish conditions where FlyNN matches NNC. We show how FlyNN is trained exactly in a FL setup with low communication overhead to produce FlyNNFL, and how it can be differentially private. Empirically, we demonstrate that (i) FlyNN matches NNC accuracy across 70 OpenML datasets, (ii) FlyNNFL training is highly scalable with low communication overhead, providing up to 8× speedup with 16 parties.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3bc83f57-97d9-4e1c-9910-90f9b3513518Cited by top-tier papers3
- FlyLoRA: Boosting Task Decoupling and Parameter Efficiency via Implicit Rank-Wise Mixture-of-ExpertsHeming Zou, Yunliang Zang, Wutong Xu, Yao Zhu et al.NeurIPS 2025 · 38 citations
- Fly-CL: A Fly-Inspired Framework for Enhancing Efficient Decorrelation and Reduced Training Time in Pre-trained Model-based Continual Representation LearningHeming Zou, Yunliang Zang, Wutong Xu, Xiangyang JiICLR 2026 · 13 citations
- Non-parametric classification via expand-and-sparsify representationKaushik SinhaNeurIPS 2024 · 1 citation
Builds on2
Related papers
- Practical Near Neighbor Search via Group TestingJoshua Engels, Benjamin Coleman, Anshumali ShrivastavaNeurIPS 2021 · 14 citations
- Guiding The Last Layer in Federated Learning with Pre-Trained ModelsGwen Legate, Nicolas Bernier, Lucas Page-Caccia, Edouard Oyallon et al.NeurIPS 2023 · 31 citations
- Federated Class-Incremental Learning: A Hybrid Approach Using Latent Exemplars and Data-Free Techniques to Address Local and Global ForgettingMilad Khademi Nori, Il-Min Kim, Guanghui WangICLR 2025
- Federated Nearest Neighbor Machine TranslationYichao Du, Zhirui Zhang, Bingzhe Wu, Lemao Liu et al.ICLR 2023 · 3 citations
- Understanding the Bug Characteristics and Fix Strategies of Federated Learning SystemsXiaohu Du, Xiao Chen, Jialun Cao, Ming Wen et al.FSE 2023 · 6 citations
