| Authors: | Djukic, Miodrag Prokić, Ivan Popovic, Miroslav Ghilezan, Silvia Popovic, Marko Prokić, Simona |
Affiliations: | Mathematics Mathematical Institute of the Serbian Academy of Sciences and Arts |
Title: | Correct orchestration of federated learning generic algorithms: Python translation to CSP and verification by PAT | Journal: | International Journal on Software Tools for Technology Transfer | Volume: | 27 | First page: | 21 | Last page: | 34 | Issue Date: | 2025 | Rank: | ~M22 | ISSN: | 1433-2779 | DOI: | 10.1007/s10009-025-00795-0 | Abstract: | Federated learning (FL) is a machine learning setting where clients keep the training data decentralized and collaboratively train a model either under the coordination of a central server (centralized FL) or in a peer-to-peer network (decentralized FL). Correct orchestration is one of the main challenges. In this paper, we formally verify the correctness of two generic FL algorithms, a centralized and a decentralized one, using the Communicating Sequential Processes (CSP) calculus and the Process Analysis Toolkit (PAT) model checker. The CSP models consist of CSP processes corresponding to generic FL algorithm instances. PAT automatically proves the correctness of the two generic FL algorithms by proving their deadlock freedom (safety property) and successful termination (reachability and liveness property). The CSP models are constructed as a faithful representation of the real Python code and are expressed directly in CSP# language that PAT uses. Then they are automatically checked top-down by PAT. The Python code follows a restricted actor-based programming model, and the construction of CSP# code from such Python code is performed systematically. The process is described in detail, ensuring that the models correspond to the actual code. It represents a basis for developing tools for automatic translation of certain classes of Python code to CSP models, expressed in CSP#. |
Keywords: | Actor model | CSP process calculus | Decentralized intelligence | Federated learning | Formal verification | PAT model checker | Python | Publisher: | Springer Link | Project: | This work was supported by Horizon EU project 101093006 TaRDIS, MSTDI (Contract No. 451-03-137/2025-03/200156) and FTS-UNS through the project Scientific and Artistic Research Work of Researchers in Teaching and Associate Positions at FTS-UNS 2025 (No. 01-50/295), COST CA20111 EuroProofNet, and EPSRC grants EP/T006544/2, EP/N027833/2,EP/T014709/2, EP/V000462/1, EP/X015955/1, EP/Y005244/1 and ARIA. |
Show full item record
SCOPUSTM
Citations
3
checked on Feb 11, 2026
Page view(s)
48
checked on Feb 13, 2026
Google ScholarTM
Check
Altmetric
Altmetric
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.