FedACK: Federated Adversarial Contrastive Knowledge Distillation for Cross-Lingual and Cross-Model Social Bot Detection

Yingguang Yang, Renyu Yang, Hao Peng, Yangyang Li, Tong Li, Yong Liao, Pengyuan Zhou · DOI

Abstract

Social bot detection is of paramount importance to the resilience and security of online social platforms. The state-of-the-art detection models are siloed and have largely overlooked a variety of data characteristics from multiple cross-lingual platforms. Meanwhile, the heterogeneity of data distribution and model architecture makes it intricate to devise an efficient cross-platform and cross-model detection framework. In this paper, we propose FedACK, a new federated adversarial contrastive knowledge distillation framework for social bot detection. We devise a GAN-based federated knowledge distillation mechanism for efficiently transferring knowledge of data distribution among clients. In particular, a global generator is used to extract the knowledge of global data distribution and distill it into each client's local model. We leverage local discriminator to enable customized model design and use local generator for data enhancement with hard-to-decide samples. Local training is conducted as multi-stage adversarial and contrastive learning to enable consistent feature spaces among clients and to constrain the optimization direction of local models, reducing the divergences between local and global models. Experiments demonstrate that FedACK outperforms the state-of-the-art approaches in terms of accuracy, communication efficiency, and feature space consistency.

Introduction

Social bots—automated programs designed to mimic human behavior—pose a significant threat to the integrity of online social networks. By spreading misinformation and manipulating public discourse, these bots can interfere with democratic processes and compromise platform security. While detection models have evolved, they typically operate in isolation, failing to leverage the diverse data characteristics present across different languages and platforms.

Existing detection frameworks face three primary hurdles: data silos created by privacy regulations, system heterogeneity where different platforms utilize different model architectures (e.g., GNNs vs. Transformers), and the "Non-IID" (not independently and identically distributed) nature of data across regions. This paper introduces FedACK (Federated Adversarial Contrastive Knowledge Distillation), a framework designed to enable collaborative, cross-lingual, and cross-model social bot detection without compromising data privacy.

The FedACK Framework

FedACK departs from traditional Federated Learning (FL) methods, such as FedAvg, which rely on averaging model weights. Instead, it utilizes Knowledge Distillation (KD) and Adversarial Learning to bridge the gap between heterogeneous clients.

1. Cross-Lingual Mapping

To address the language barrier, FedACK employs a Transformer-based encoder-decoder architecture paired with a specialized "Mapper." This module projects diverse languages (such as English and Chinese) into a unified context space. By doing so, the framework ensures that the underlying intent of a bot is captured regardless of the language used, allowing knowledge gained on one platform to benefit another.

2. GAN-based Knowledge Distillation

FedACK implements a Generative Adversarial Network (GAN) structure to facilitate knowledge transfer. A global generator acts as a "teacher," learning the global data distribution and producing pseudo-data. This pseudo-data is distributed to clients, who use it to distill global knowledge into their local models. This mechanism allows for model heterogeneity; because knowledge is transferred via generated samples rather than raw weights, one client can use a CNN while another uses a GNN.

3. Multi-Stage Adversarial and Contrastive Learning

To refine the decision boundaries between humans and bots, FedACK utilizes a dual-discriminator approach. Each client employs a globally shared discriminator and a unique local discriminator. Furthermore, the local generator is specifically trained to produce "hard-to-decide" samples near the decision boundary, forcing the local classifier to become more robust.

To combat "model drift"—where local models diverge too far from the global objective—FedACK incorporates contrastive loss. This ensures that the local feature extractors maintain a consistent representation of data, aligning the feature spaces across the entire federated network.

Experimental Evaluation

Datasets and Setup

The researchers evaluated FedACK using two prominent Twitter benchmarks:

  • Vendor-19: A dataset featuring bot accounts and verified human accounts.
  • TwiBot-20: A comprehensive benchmark including social relationship data.
  • NCLS: A cross-lingual summarization corpus used to pre-train the mapping module.

To simulate real-world conditions, the data was partitioned using a Dirichlet Distribution, creating highly heterogeneous (Non-IID) environments across simulated clients.

Performance Metrics

FedACK demonstrated significant improvements over baseline methods like FedAvg, FedProx, and FedGen:

  • Accuracy: In high-heterogeneity scenarios, FedACK improved detection accuracy by 10.03% to 15.19%.
  • Convergence Speed: FedACK reached target accuracy levels up to 4.5x faster than the leading baseline (FedGen), highlighting its communication efficiency.
  • Cross-Lingual Robustness: The mapping module allowed the model to maintain high performance even when trained on one language and tested on another, showing minimal degradation compared to non-mapped models.

Conclusion and Future Work

FedACK represents a significant advancement in decentralized social bot detection by successfully decoupling model architecture from the aggregation process and aligning feature spaces across languages. While the framework is robust, future research will focus on better incorporating complex graph-based follow-relationships and expanding the system to identify specific types of botnets and more diverse entity relations. By fostering a collaborative detection ecosystem, FedACK provides a scalable path forward for securing global social media platforms.

Summary updated

BibTeX
@inproceedings{yang2023fedack,
  author = {Yingguang Yang and Renyu Yang and Hao Peng and Yangyang Li and Tong Li and Yong Liao and Pengyuan Zhou},
  title = {{FedACK: Federated Adversarial Contrastive Knowledge Distillation for Cross-Lingual and Cross-Model Social Bot Detection}},
  booktitle = {The Web Conference},
  year = {2023},
  doi = {10.1145/3543507.3583500},
}
Figure