从批处理到流处理:在线算法的自动生成
From Batch to Stream: Automatic Generation of Online Algorithms
AI总结:
本文提出基于关系函数签名(RFS)的方法与工具 Opera,将离线算法分解并结合符号推理和搜索自动综合为在线流算法,在 50 多个任务上达到 98% 成功率并优于基线。
摘要:
专为连续数据处理量身定制的在线流算法可带来显著优势,但其设计通常比离线对应算法更为复杂。本文介绍了一种从离线版本自动综合在线流算法的新颖方法。具体而言,我们提出一种基于关系函数签名(relational function signature,RFS)概念的新颖方法论,用于在给定离线版本的情况下推导在线算法。随后,我们提出一种具体的综合算法,作为所提方法论的实例化。该算法利用 RFS 将综合问题分解为一组独立子任务,并结合符号推理与搜索来求解每个子问题。我们在名为 Opera 的新工具中实现了所提出的技术,并在涵盖统计计算和在线拍卖两个领域的 50 多个任务上进行评估。结果表明,Opera 能够为 98% 的任务自动推导原始算法的在线版本。实验还表明,Opera 显著优于其他替代方法,包括针对该问题改造的 SyGuS 求解器,以及 Opera 自身的两种消融版本。
英文摘要:
Online streaming algorithms, tailored for continuous data processing, offer substantial benefits but are often more intricate to design than their offline counterparts. This paper introduces a novel approach for automatically synthesizing online streaming algorithms from their offline versions. In particular, we propose a novel methodology, based on the notion of relational function signature (RFS), for deriving an online algorithm given its offline version. Then, we propose a concrete synthesis algorithm that is an instantiation of the proposed methodology. Our algorithm uses the RFS to decompose the synthesis problem into a set of independent subtasks and uses a combination of symbolic reasoning and search to solve each subproblem. We implement the proposed technique in a new tool called Opera and evaluate it on over 50 tasks spanning two domains: statistical computations and online auctions. Our results show that Opera can automatically derive the online version of the original algorithm for 98% of the tasks. Our experiments also demonstrate that Opera significantly outperforms alternative approaches, including adaptations of SyGuS solvers to this problem as well as two of Opera's own ablations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。