云-边-物联网应用的开发需要稳健的编程模型。现有模型通常难以有效管理这类应用的动态性和有状态特性。本文提出协作状态机(Collaborative State Machines,CSM)编程模型以应对这些复杂性。CSM为面向云-边-物联网连续体的反应式、事件驱动型有状态应用的开发提供支持。基于CSM构建的应用由多个状态机构成,这些状态机可自主协作,且能分布在连续体的不同层级中。CSM的核心特性包括:(1)借助事件与持久数据实现的状态机间精细化协作机制;(2)通过状态机的固有状态与持久数据完成状态封装;(3)将动作与服务调用集成在状态和状态转换过程中,从而将复杂应用逻辑与计算、数据处理服务解耦;(4)支持处理具有明确作用域和生命周期的本地、静态及持久数据的高级数据模型。除提出CSM编程模型外,本文还介绍了一套运行时系统,并对所提方法开展了全面评估。本次评估基于三个用例展开:大规模基础设施压力测试、监控系统应用、复杂智能工厂场景,所有用例均部署在Grid'5000测试平台上。实验结果表明,在压力测试中,凭借全新的语言特性,吞吐量提升了12倍。与当前最先进的基准系统Serverless Workflow相比,在监控系统用例中,单张图像处理耗时提升2.3倍;在智能工厂用例中,总处理时间降低了55倍;且在所有用例中整体开发效率均有所提升。
英文摘要:
The development of Cloud-Edge-IoT applications requires robust programming models. Existing models often struggle to manage the dynamic and stateful nature of these applications effectively. This paper introduces the Collaborative State Machines (CSM) programming model to address these complexities. CSM facilitates the development of reactive, event-driven, and stateful applications targeting the Cloud-Edge-IoT continuum. Applications built with CSM are composed of state machines that collaborate autonomously and can be distributed across different layers of the continuum. Key features of CSM include (i) a sophisticated collaboration mechanism among state machines utilizing events and persistent data; (ii) encapsulation of state through the inherent state of state machines and persistent data; (iii) integration of actions and service invocations within states and state transitions, thereby decoupling complex application logic from compute and data processing services; and (iv) an advanced data model that supports the processing of local, static, and persistent data with defined scope and lifetime. In addition to introducing the CSM programming model, we present a runtime system and a comprehensive evaluation of our approach. This evaluation is based on three use cases: a stress test on a large-scale infrastructure, a surveillance system application, and a complex smart factory scenario, all deployed on the Grid'5000 testbed. Our results demonstrate a 12x increase in throughput through novel language features in the stress test. Compared to Serverless Workflow, a state-of-the-art baseline system, we show a 2.3x improvement in processing time per processed image in a surveillance system use case, a 55x reduction in total processing time for a smart factory use case, and an overall improvement in productivity across these use cases.
Knowledge-Enhanced Semi-Supervised Federated Learning for Aggregating Heterogeneous Lightweight Clients in IoT
Pennsylvania State University(宾夕法尼亚州立大学);University of Electronic Science and Technology of China(电子科技大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Purdue University(普渡大学);Georgia State University(佐治亚州立大学)
Combined Federated and Split Learning in Edge Computing for Ubiquitous Intelligence in Internet of Things: State of the Art and Future Directions
Pennsylvania State University(宾夕法尼亚州立大学);Fudan University(复旦大学)
联合学习(Federated Learning,FL)和分裂学习(Split Learning,SL)是两种新兴的协作学习方法,可以极大地促进物联网(Internet of Things,IoT)中的泛在智能。联邦学习使使用私有数据本地训练的机器学习(ML)模型能够聚合成全局模型。拆分学习允许ML模型的不同部分在学习框架中的不同工作者上进行协作训练。联邦学习和分裂学习各有其独特的优势和各自的局限性,可以相互补充,共同实现物联网中的泛在智能。因此,联邦学习和分裂学习的结合成为近年来一个活跃的研究领域,引起了广泛的兴趣。在本文中,我们回顾了联邦学习和分离学习的最新发展,并对在基于边缘计算的物联网环境中结合这两种学习方法的最新技术进行了调查。我们还确定了一些开放的问题,并讨论了在这一领域的未来研究的可能方向,希望进一步引起研究界对这一新兴领域的兴趣。