FEDERATED LEARNING: MODELS BASED ON TRANSFORMER ARCHITECTURE
DOI:
https://doi.org/10.32014/2026.2518-1726.440Keywords:
natural language processing, federated learning, transformer models, uniform dataset, non-uniform dataset, number of clients, training speedAbstract
During the study, the federated learning approach and the performance of the BERT, ALBERT, and DistilBERT models were examined. In the experiment, the dataset was divided among 3, 5, 7, and 11 clients, allowing the consideration of two different data distribution methods. The first method is IID, which is based on the uniform distribution of the dataset. The second method is Non-IID, which, on the contrary, represents a non-uniform distribution of the data.
The main objective of the research is to detect and classify aggressive content using the federated learning approach. The English Profanity Words dataset was used to train the given models. The description of the dataset is presented in section «Methods and materials». During the experiment, an analysis of the models’ accuracy and training speed was conducted. In addition, the dataset was divided using two different methods, and the changes in model accuracy were studied as the number of clients gradually increased.
As a result, the ALBERT model showed better performance as the number of clients increased. The BERT model demonstrated stable results, while the DistilBERT model, although having a higher training speed compared to the other models, showed lower accuracy. The obtained results can help in selecting an appropriate model when working with confidential data and applying federated learning models.




