paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Modular quantitative monitoring

模块化定量监控
POPL 3(POPL)2019匹配度 2/10 · 该论文属于运行时监控/流数据查询的形式化与编译工作(数据转换器、QRE-Past),其理论基础与形式化偏好虽与用户口味相符,但主题是运行时验证与流式查询编译,既不涉及 LLM/Agent 与静态分析的交叉,也与浮点程序分析或贝叶斯程序分析无关,仅属广义形式化方法邻域。引用 20 inbox
Rajeev Alur, Konstantinos Mamouras, Caleb Stanford
crossref: 2026-09-10

AI 速览

一句话:提出数据转换器模型以实现流数据查询的模块化编译,并定义 QRE-Past 定量监控语言。

实时决策与运行时监控需要可模块化的声明式流数据查询。论文提出数据转换器(data transducer)模型:维护有限数据变量,按标签数据值更新变量,支持无歧义非确定性、指数级简洁控制和并行值合并,语义直接给出高效流式求值。其表达力等价于可流式正则转换(streamable regular transductions),即无后向边的 MSO 字符串到 DAG 变换;且比已有转换器更简洁,接近命令式代码,并支持并行组合、并、前缀和及无歧义解析组合子等模块化构造。作者据此定义 QRE-Past,融合过去时态逻辑与定量正则表达式,可免费编译为高效监控器。

问题
如何为流数据上的声明式查询提供既简洁又可模块化编译,并能高效增量求值的模型与语言。
方法
提出数据转换器模型,利用其模块化构造定义 QRE-Past,将过去时态逻辑与定量正则表达式结合。
评估
通过表达力等价性证明(与 streamable regular transductions 对应)及心律失常检测案例展示编译与监控效果。
原文摘要(Abstract)

In real-time decision making and runtime monitoring applications, declarative languages are commonly used as they facilitate modular high-level specifications with the compiler guaranteeing evaluation over data streams in an efficient and incremental manner. We introduce the model of Data Transducers to allow modular compilation of queries over streaming data. A data transducer maintains a finite set of data variables and processes a sequence of tagged data values by updating its variables using an allowed set of operations. The model allows unambiguous nondeterminism, exponentially succinct control, and combining values from parallel threads of computation. The semantics of the model immediately suggests an efficient streaming algorithm for evaluation. The expressiveness of data transducers coincides with streamable regular transductions , a robust and streamable class of functions characterized by MSO-definable string-to-DAG transformations with no backward edges. We show that the novel features of data transducers, unlike previously studied transducers, make them as succinct as traditional imperative code for processing data streams, but the structuring of the transition function permits modular compilation. In particular, we show that operations such as parallel composition, union, prefix-sum, and quantitative analogs of combinators for unambiguous parsing, can be implemented by natural and succinct constructions on data transducers. To illustrate the benefits of such modularity in compilation, we define a new language for quantitative monitoring, QRE-Past, that integrates features of past-time temporal logic and quantitative regular expressions. While this combination allows a natural specification of a cardiac arrhythmia detection algorithm in QRE-Past, compilation of QRE-Past specifications into efficient monitors comes for free thanks to succinct constructions on data transducers.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot693,
  title = {Modular quantitative monitoring},
  author = {Rajeev Alur and Konstantinos Mamouras and Caleb Stanford},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {3},
  number = {POPL},
  year = {2019},
  doi = {10.1145/3290363}
}