arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.08591cs.DBcs.AIcs.LG
收藏

OpenMLDB:面向在线机器学习的实时关系型数据特征计算系统

OpenMLDB: A Real-Time Relational Data Feature Computation System for Online ML

Shanghai Jiao Tong Univ.(上海交通大学);Paradigm Inc.(第四范式公司);SF Express Inc.(顺丰速运公司);National Univ. of Singapore(新加坡国立大学);Tsinghua University(清华大学)

Xuanhe Zhou, Wei Zhou, Liguo Qi, Hao Zhang, Dihao Chen, Bingsheng He, Mian Lu, Guoliang Li, Fan Wu, Yuqiang Chen

AI总结:

针对在线机器学习离线与在线特征计算不一致、现有系统实时性不足的问题,提出OpenMLDB系统,通过统一查询计划、双引擎优化及高效存储索引实现一致高效的特征计算,已在百余个场景落地且社区活跃。

摘要:

高效且一致的特征计算对各类在线机器学习应用至关重要。通常特征计算分为两个不同阶段,即用于模型训练的离线阶段和用于模型服务的在线阶段。这些阶段往往依赖于接口语言和函数实现各不相同的执行引擎,会引发严重的一致性问题。此外,许多在线机器学习特征涉及复杂的时序计算(例如,针对可变长度表窗口的函数),这与标准的流式查询和分析查询存在差异。现有数据处理系统(如Spark、Flink、DuckDB)执行这类计算时往往会产生数秒的延迟,无法满足需要及时更新特征的实时在线机器学习应用需求。\n本文提出OpenMLDB,这是一款部署在第四范式SageOne平台及100多个真实场景中的特征计算系统。技术层面,首先,OpenMLDB采用统一查询计划生成器,确保离线和在线阶段的计算结果一致,大幅降低特征部署开销。其次,OpenMLDB提供在线执行引擎,通过预聚合解决长窗口计算带来的性能瓶颈,通过数据自调整解决多表窗口合并的性能问题;同时还提供高性能离线执行引擎,具备窗口并行优化和时间感知的数据倾斜解决能力。第三,OpenMLDB采用紧凑数据格式和面向流的索引,以最大化内存利用率并加速数据访问。测试负载和真实负载下的评估结果表明,与基线系统相比,该系统性能显著提升,资源消耗明显降低。目前OpenMLDB的开放社区拥有150多名贡献者,在GitHub上获得1.6k星标。

英文摘要:

Efficient and consistent feature computation is crucial for a wide range of online ML applications. Typically, feature computation is divided into two distinct phases, i.e., offline stage for model training and online stage for model serving. These phases often rely on execution engines with different interface languages and function implementations, causing significant inconsistencies. Moreover, many online ML features involve complex time-series computations (e.g., functions over varied-length table windows) that differ from standard streaming and analytical queries. Existing data processing systems (e.g., Spark, Flink, DuckDB) often incur multi-second latencies for these computations, making them unsuitable for real-time online ML applications that demand timely feature updates. This paper presents OpenMLDB, a feature computation system deployed in 4Paradigm's SageOne platform and over 100 real scenarios. Technically, OpenMLDB first employs a unified query plan generator for consistent computation results across the offline and online stages, significantly reducing feature deployment overhead. Second, OpenMLDB provides an online execution engine that resolves performance bottlenecks caused by long window computations (via pre-aggregation) and multi-table window unions (via data self-adjusting). It also provides a high-performance offline execution engine with window parallel optimization and time-aware data skew resolving. Third, OpenMLDB features a compact data format and stream-focused indexing to maximize memory usage and accelerate data access. Evaluations in testing and real workloads reveal significant performance improvements and resource savings compared to the baseline systems. The open community of OpenMLDB now has over 150 contributors and gained 1.6k stars on GitHub.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑