为数据科学家打造的聚合计算Python框架,无缝对接机器学习生态
Phyelds: A Pythonic Framework for Aggregate Computing
- 基于场演算模型设计,提供类Python语法的轻量级编程接口
- 支持联邦学习、多智能体强化学习等前沿应用场景
- 专为数据科学和机器人领域优化,兼容主流ML工具链
聚合编程是一种基于场的协调范式,在传感器网络、机器人和物联网等领域已探索十余年并取得成功应用,已有多种语言实现,如Protelis、ScaFi(Scala)和FCPP(C++)。近期研究方向将机器学习与聚合编程结合,旨在支持大规模分布式学习,并为算法实现提供新抽象。然而,现有实现未面向数据科学从业者——他们主要使用Python,该语言是数据科学与机器学习的通用语言,拥有成熟生态系统。本文提出Phyelds,一个面向聚合编程的Python库。Phyelds提供完整但轻量的场演算计算模型实现,具有符合Python风格的API及可无缝集成至Python机器学习生态的架构设计。我们阐述了Phyelds的设计与实现,并展示了其在多个领域的适用性,从经典聚合计算模式到联邦学习协调,以及与广泛使用的多智能体强化学习仿真器的整合。
原文摘要 · Abstract (English)
Aggregate programming is a field-based coordination paradigm with over a decade of exploration and successful applications across domains including sensor networks, robotics, and IoT, with implementations in various programming languages, such as Protelis, ScaFi (Scala), and FCPP (C++). A recent research direction integrates machine learning with aggregate computing, aiming to support large-scale distributed learning and provide new abstractions for implementing learning algorithms. However, existing implementations do not target data science practitioners, who predominantly work in Python--the de facto language for data science and machine learning, with a rich and mature ecosystem. Python also offers advantages for other use cases, such as education and robotics (e.g., via ROS). To address this gap, we present Phyelds, a Python library for aggregate programming. Phyelds offers a fully featured yet lightweight implementation of the field calculus model of computation, featuring a Pythonic API and an architecture designed for seamless integration with Python's machine learning ecosystem. We describe the design and implementation of Phyelds and illustrate its versatility across domains, from well-known aggregate computing patterns to federated learning coordination and integration with a widely used multi-agent reinforcement learning simulator.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。