arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.11573cs.PL
收藏

高阶数据并行结构化演绎

Higher-Order, Data-Parallel Structured Deduction

Thomas Gilray, Arash Sahebolamri, Sidharth Kumar, Kristopher Micinski

摘要:

最先进的数据挖掘引擎包括表达功能,如ADT(结构化堆值),分层聚合和否定,各种原始操作,以及使用FFI进一步扩展的机会。当前用于现有技术的数据记录的并行化方法的目标是使用常规多线程的共享存储器锁定数据结构,或者使用用于分布式计算的映射缩减模型。此外,当前最先进的方法不能扩展到普遍操纵结构化数据的正式系统,因为它们缺乏对存储在堆中的结构化数据的索引。在本文中,我们描述了一种新的方法,数据并行结构化演绎,涉及一个关键的语义扩展的Datasheet允许第一类的事实和高阶关系,通过去功能化,实现方法,使并行性统一跨集的不相交的事实和嵌套结构的单个事实。我们详细介绍了一个核心语言,$DL_s$,其关键不变(子事实闭包),确保每个子事实被物化为顶级事实。我们将$DL_s$扩展为Slog,这是一种功能齐全的语言,其形式有助于利用子事实闭包来快速实现具有表达力的、高性能的形式化系统。我们通过从抽象机器中系统地构建一系列控制流分析来演示Slog,以及经典类型系统(如STLC和LF)的几种实现。我们在EC2、Azure和ALCF的Theta上进行了多达1000个线程的实验,显示了与竞争的最先进系统相比数量级的可扩展性改进。

英文摘要:

State-of-the-art Datalog engines include expressive features such as ADTs (structured heap values), stratified aggregation and negation, various primitive operations, and the opportunity for further extension using FFIs. Current parallelization approaches for state-of-art Datalogs target shared-memory locking data-structures using conventional multi-threading, or use the map-reduce model for distributed computing. Furthermore, current state-of-art approaches cannot scale to formal systems which pervasively manipulate structured data due to their lack of indexing for structured data stored in the heap. In this paper, we describe a new approach to data-parallel structured deduction that involves a key semantic extension of Datalog to permit first-class facts and higher-order relations via defunctionalization, an implementation approach that enables parallelism uniformly both across sets of disjoint facts and over individual facts with nested structure. We detail a core language, $DL_s$, whose key invariant (subfact closure) ensures that each subfact is materialized as a top-class fact. We extend $DL_s$ to Slog, a fully-featured language whose forms facilitate leveraging subfact closure to rapidly implement expressive, high-performance formal systems. We demonstrate Slog by building a family of control-flow analyses from abstract machines, systematically, along with several implementations of classical type systems (such as STLC and LF). We performed experiments on EC2, Azure, and ALCF's Theta at up to 1000 threads, showing orders-of-magnitude scalability improvements versus competing state-of-art systems.

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

↑