Federated Distillation of Natural Language Understanding with Confident Sinkhorns

Rishabh Bhardwaj, Tushar Vaidya, Soujanya Poria

Abstract

Federated Distillation (FD) is a communication-efficient alternative to Federated Learning, yet it typically relies on entropy-based losses that ignore inter-class semantic relationships. We introduce KNOT (Knowledge Distillation using Optimal Transport), which employs Sinkhorn distances to account for label geometry and a novel $L^2$ confidence weighting scheme to address teacher bias in non-IID settings. Our results show that KNOT significantly improves semantic alignment in NLP tasks without compromising overall accuracy.

Introduction

In privacy-preserving AI, Federated Learning (FL) often faces challenges regarding bandwidth and architectural constraints. Federated Distillation (FD) mitigates these by exchanging logits rather than full model weights. However, current FD methods suffer from a "Semantic Blind Spot"—using losses like KL-divergence that treat all errors as equidistant—and "Teacher Bias" arising from non-IID data distributions.

Methodology

The KNOT framework introduces two core components to resolve these issues:

1. Sinkhorn-based Distillation

Unlike standard entropy-based losses, KNOT utilizes Optimal Transport (OT) via the Sinkhorn distance. By defining a cost matrix that reflects the semantic distance between labels, the model learns that certain errors (e.g., confusing "Positive" with "Strongly Positive") are more acceptable than others (e.g., "Positive" with "Negative").

The geometric representation of label spaces for sentiment, emotion, and NLI tasks.

2. $L^2$ Confidence Weighting

To counter population bias in local teachers, KNOT employs a confidence-weighting mechanism. By comparing a teacher's prediction on real data against its "intrinsic bias" (response to random noise), the global student can prioritize teachers who demonstrate genuine task-specific knowledge over those merely reflecting their local data bias.

Experimental Evaluation

KNOT was evaluated on Fine-grained Sentiment Analysis (Amazon reviews), Emotion Recognition (DailyDialog, IEMOCAP, MELD), and Natural Language Inference (SNLI, MNLI). Beyond standard Accuracy and F1, the authors introduced Semantic Distance (SD), measuring the Euclidean distance between predicted expected values and ground truth in the defined semantic space.

Results and Discussion

KNOT (Sinkhorn-E) consistently outperformed entropy-based baselines in semantic accuracy. As shown in the comparison of predicted semantic values, the Sinkhorn approach yields predictions that more closely track the ordinal nature of labels.

Comparison of predicted semantic values between Entropy and Sinkhorn distillation across sentiment labels.

While Sinkhorn distillation introduces some computational overhead, it provides superior semantic grounding. t-SNE visualizations further confirm that KNOT produces more distinct and semantically meaningful embedding clusters compared to the "mushy" boundaries found in KL-divergence models.

Conclusion

KNOT demonstrates that incorporating label geometry into Federated Distillation significantly enhances the semantic quality of global models. By untangling the complexities of teacher bias and inter-class relationships, KNOT sets a new standard for privacy-preserving natural language understanding.

Summary updated

BibTeX
@misc{bhardwaj2021federated,
  author = {Rishabh Bhardwaj and Tushar Vaidya and Soujanya Poria},
  title = {{Federated Distillation of Natural Language Understanding with Confident Sinkhorns}},
  year = {2021},
  eprint = {2110.02432},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.02432},
}
Figure