paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Localized RETE for Incremental Graph Queries with Nested Graph Conditions

面向嵌套图条件的局部化 RETE 增量图查询
LMCS vol.Volume 22, Issue 12026匹配度 2/10 · 论文聚焦模型驱动工程中的图查询增量执行与RETE算法扩展,属于DSL/图查询优化方向,未涉及LLM/Agent、浮点程序分析、贝叶斯程序分析或静态分析/形式化验证的PL-AI交叉问题。引用 0 inbox
Matthias Barkowsky, Holger Giese
crossref: 2026-09-10

AI 速览

一句话:提出局部化 RETE,使图查询可在相关子图上局部增量执行并保持结果完备。

图基建模工件规模不断增大,需要高效执行图查询。基于 RETE 的增量方法虽能避免重复计算,但通常在整个图上搜索查询结果;当用户只关心大模型的局部子图时,全局执行会带来显著开销。本文提出一种 RETE 扩展,实现局部且完全增量的图查询执行,同时保证相对于相关子图的结果完备性。作者通过源自软件开发的场景以及独立社交网络基准中的查询和数据开展实验。结果表明,在有利情况下该方法能显著改善内存消耗和执行时间,但在不利情况下也会引入可见开销。

问题
大图模型上基于 RETE 的增量图查询通常采用全局执行语义,当用户只关心局部子图时会带来不必要的计算与内存开销。
方法
提出局部化 RETE 扩展,在相关子图上进行完全增量查询执行,并保持结果相对该子图的完备性。
评估
使用软件开发场景和独立社交网络基准进行实验,在有利情况下显著降低内存与执行时间,在不利情况下有可见开销。
原文摘要(Abstract)

The growing size of graph-based modeling artifacts in model-driven engineering calls for techniques that enable efficient execution of graph queries. Incremental approaches based on the RETE algorithm provide an adequate solution in many scenarios, but are generally designed to search for query results over the entire graph. However, in certain situations, a user may only be interested in query results for a subgraph, for instance when a developer is working on a large model of which only a part is loaded into their workspace. In this case, the global execution semantics can result in significant computational overhead. To mitigate the outlined shortcoming, in this article we propose an extension of the RETE approach that enables local, yet fully incremental execution of graph queries, while still guaranteeing completeness of results with respect to the relevant subgraph. We empirically evaluate the presented approach via experiments inspired by a scenario from software development and with queries and data from an independent social network benchmark. The experimental results indicate that the proposed technique can significantly improve performance regarding memory consumption and execution time in favorable cases, but may incur a noticeable overhead in unfavorable cases.

链接与引用

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

BibTeX
@article{abs-2412-13918,
  title = {Localized RETE for Incremental Graph Queries with Nested Graph Conditions},
  author = {Matthias Barkowsky and Holger Giese},
  journal = {Logical Methods in Computer Science},
  volume = {Volume 22, Issue 1},
  year = {2026},
  doi = {10.46298/lmcs-22(1:4)2026}
}