NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Collaborative Learning via Prediction Consensus

Dongyang Fan, Celestine Mendler-Dünner, Martin Jaggi

Introduction

In the evolving landscape of decentralized machine learning, Federated Learning (FL) has emerged as a primary paradigm for training models on distributed data without centralizing sensitive information. However, traditional FL frameworks often struggle with three critical challenges: prohibitive communication costs associated with transmitting large model weights, the requirement for architectural homogeneity across all participating agents, and a lack of robustness against low-quality or adversarial data contributors.

This paper introduces a novel framework for collaborative learning that bypasses these limitations by shifting the focus from parameter-space synchronization to prediction-space consensus. By leveraging a shared unlabeled dataset and a dynamic trust-weighting mechanism, the proposed method enables heterogeneous agents to learn from one another effectively while naturally isolating noisy participants.

The Limitations of Parameter-Based Collaboration

Standard FL algorithms, such as FedAvg, typically require agents to share gradients or full model weights with a central server. This approach faces significant practical hurdles:

  1. Communication Overhead: Modern deep neural networks contain millions of parameters. Frequent transmission of these weights consumes substantial bandwidth.
  2. Model Heterogeneity: Traditional FL assumes a "one-size-fits-all" architecture. In reality, agents may have different hardware constraints, necessitating diverse models (e.g., a mobile device using MobileNet vs. a server using ResNet).
  3. Data Quality and Robustness: Naive weight averaging is highly susceptible to "bad" agents. A single participant with noisy labels or poor data quality can significantly degrade the global model's performance.

Methodology: Learning Through Consensus

The core of the proposed framework is Collaborative Learning via Prediction Consensus, inspired by the DeGroot model of social opinion dynamics. Instead of merging model weights, agents exchange "opinions"—class probabilities—on a shared, unlabeled auxiliary dataset ($X^*$).

The algorithm operates through an iterative four-step loop:

  1. Broadcast Predictions: Each agent applies its local model to the shared unlabeled data and broadcasts the resulting "soft labels" to its peers.
  2. Dynamic Trust Weighting: Agents do not trust all neighbors equally. Trust is calculated based on the cosine similarity between an agent’s own predictions and those of its neighbors. This is further refined by self-confidence: predictions with lower entropy (indicating higher certainty) are assigned greater weight.
  3. Collective Pseudo-labeling: Agents aggregate the weighted predictions of their neighbors to form a "consensus" pseudo-label for each entry in the unlabeled dataset.
  4. Local Update: Each agent updates its local model using a multi-part loss function. This function balances the loss on its private labeled data with a "disagreement loss" that penalizes deviations from the collective consensus on the unlabeled data.

Experimental Evaluation

The researchers validated the framework across three distinct environments to test theoretical convergence and practical utility:

  • Synthetic Benchmarks: Multivariate Gaussian distributions and cubic regression models were used to visualize decision boundaries.
  • Image Recognition (CIFAR-10 & CIFAR-100): These datasets were tested under "Dirichlet" non-IID settings, simulating real-world scenarios where data distributions vary significantly between agents.
  • Medical Imaging (FedISIC-2019): This dataset, containing dermoscopic lesion images from multiple hospitals, provided a realistic test case for data heterogeneity in a high-stakes domain.

Key Insights and Results

Prediction Space as a Universal Interface

Because agents only exchange predictions (the output layer), the internal architecture of their models becomes irrelevant. A simple linear model can collaborate with a complex Transformer, allowing each agent to contribute according to its capacity without requiring a unified architecture.

Asymmetric Trust and Robustness

Unlike traditional averaging, trust in this framework is directional and adaptive. A high-performing model with clean data may assign low trust to a noisy neighbor, effectively shielding itself from "poisoning." Conversely, a weaker model can still benefit from the high-quality predictions of its more capable peers. In tests involving "bad" nodes (agents with 100% flipped labels), the dynamic trust scheme successfully identified and marginalized the noisy participants, allowing "good" nodes to maintain high performance.

Performance and Efficiency

The proposed method (Ours-D) demonstrated superior performance across multiple benchmarks. On CIFAR-100, it achieved approximately 31% accuracy, significantly outperforming baselines like FedAvg (~26%) and FedProx. Furthermore, sharing predictions on a relatively small unlabeled dataset is often orders of magnitude more communication-efficient than sharing the weights of massive neural networks.

Limitations and Future Directions

While promising, the framework has certain dependencies. It requires a shared unlabeled dataset that is representative of the target task, which may be difficult to source in niche domains. Additionally, the current model assumes no concept shift—the underlying relationship between features and labels must be consistent across agents. Future work will explore personalization techniques to handle diverse local concepts and the integration of Differential Privacy (DP) to mitigate potential privacy leaks from prediction "memorization."

Summary updated

BibTeX
@inproceedings{fan2023collaborative,
  author = {Dongyang Fan and Celestine Mendler-Dünner and Martin Jaggi},
  title = {{Collaborative Learning via Prediction Consensus}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=SGKbHXoLCI},
}
Figure