[Paper Review] Learning to Collaborate: An Orchestrated-Decentralized Framework for Peer-to-Peer LLM Federation
KNEXA-FL introduces a non-aggregating Central Profiler/Matchmaker that learns to orchestrate P2P LLM knowledge distillation, yielding stable convergence and significant gains over random or centralized baselines in a heterogeneous code-generation setting.
Fine-tuning Large Language Models (LLMs) for specialized domains is constrained by a fundamental challenge: the need for diverse, cross-organizational data conflicts with the principles of data privacy and sovereignty. While Federated Learning (FL) provides a framework for collaboration without raw data exchange, its classic centralized form introduces a single point of failure and remains vulnerable to model inversion attacks. Decentralized FL (DFL) mitigates this risk by removing the central aggregator but typically relies on inefficient, random peer-to-peer (P2P) pairings, forming a collaboration graph that is blind to agent heterogeneity and risks negative transfer. This paper introduces KNEXA-FL, a novel framework for orchestrated decentralization that resolves this trade-off. KNEXA-FL employs a non-aggregating Central Profiler/Matchmaker (CPM) that formulates P2P collaboration as a contextual bandit problem, using a LinUCB algorithm on abstract agent profiles to learn an optimal matchmaking policy. It orchestrates direct knowledge exchange between heterogeneous, PEFT-based LLM agents via secure distillation, without ever accessing the models themselves. Our comprehensive experiments on a challenging code generation task show that KNEXA-FL yields substantial gains, improving Pass@1 by approx. 50% relative to random P2P collaboration. Critically, our orchestrated approach demonstrates stable convergence, in stark contrast to a powerful centralized distillation baseline which suffers from catastrophic performance collapse. Our work establishes adaptive, learning-based orchestration as a foundational principle for building robust and effective decentralized AI ecosystems.
Motivation & Objective
- Address data sovereignty constraints while enabling cross-organizational LLM fine-tuning without raw data sharing.
- Overcome central aggregator vulnerabilities and inefficient random P2P pairings in decentralized FL.
- Propose a learning-based, privacy-preserving matchmaking mechanism to optimize P2P collaborations.
- Enable knowledge exchange via PEFT-compatible secure distillation while preserving model privacy.
Proposed method
- Propose KNEXA-FL, a hybrid framework with a non-aggregating Central Profiler/Matchmaker (CPM) that learns P2P pairings via contextual bandits.
- Formulate P2P collaboration as a contextual bandit; use LinUCB on abstract agent profiles to optimize matchmaking.
- Exchange knowledge through Adaptive Knowledge Distillation using text-based targets to handle heterogeneity.
- Agents upload privacy-preserving profiles; guardrail filters enforce data sovereignty during exchanges.
- CPM updates its policy based on observed rewards balancing local loss reduction and communication cost.

Experimental results
Research questions
- RQ1Does profiler-guided P2P collaboration improve task performance over isolated training and non-learning baselines?
- RQ2How effective is intelligent matchmaking versus heuristic or random pairing in KNEXA-FL?
- RQ3How does KNEXA-FL scale with federation size and heterogeneity among clients?
Key findings
- KNEXA-FL achieves highest Pass@1 (13.33%) versus baselines, a 50% gain over Random-P2P and 100% over a failing centralized baseline.
- Central KD baselines are volatile or collapsed under heterogeneity, while KNEXA-FL remains stable.
- CPM-guided pairings enable a peak student Pass@1 of 86.70% on a knowledge-transfer set, 2.6× higher than random pairing.
- LinUCB-guided matchmaking yields substantial, scalable gains, approaching oracle performance as federation grows.
- KNEXA-FL shows clear improvement across a heterogeneous six-client setup, with even the smallest model benefiting from collaboration.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.