Erlang中的函数式联邦学习(ffl-erl)
Functional Federated Learning in Erlang (ffl-erl)
摘要:
函数式程序设计语言Erlang非常适合并发和分布式应用程序。然而,数值计算并不被视为其优势之一。最近引入的联邦学习(Federated Learning)是一个概念,根据这个概念,客户端设备被用于分散的机器学习任务,而中央服务器更新和分发全局模型,这为探索Erlang如何适合这个问题提供了动力。我们介绍了一个用Erlang编写的联邦学习框架ffl-erl,并探讨了它在两种情况下的表现:一种情况是整个系统都用Erlang编写,另一种情况是Erlang被降级为协调依赖于用程序设计语言C执行数值计算的客户端进程。每种情况都有并发和分布式实现。Erlang会导致性能损失,但对于某些用例,考虑到语言的简洁性和开发速度(Erlang)与性能(C)之间的权衡,这可能不会有害。因此,对于某些实际的机器学习任务,Erlang可能是C的可行替代方案。
英文摘要:
The functional programming language Erlang is well-suited for concurrent and distributed applications. Numerical computing, however, is not seen as one of its strengths. The recent introduction of Federated Learning, a concept according to which client devices are leveraged for decentralized machine learning tasks, while a central server updates and distributes a global model, provided the motivation for exploring how well Erlang is suited to that problem. We present ffl-erl, a framework for Federated Learning, written in Erlang, and explore how well it performs in two scenarios: one in which the entire system has been written in Erlang, and another in which Erlang is relegated to coordinating client processes that rely on performing numerical computations in the programming language C. There is a concurrent as well as a distributed implementation of each case. Erlang incurs a performance penalty, but for certain use cases this may not be detrimental, considering the trade-off between conciseness of the language and speed of development (Erlang) versus performance (C). Thus, Erlang may be a viable alternative to C for some practical machine learning tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。