首页 > 最新文献

Journal of Logical and Algebraic Methods in Programming最新文献

英文 中文
Control-data separation and logical condition propagation for efficient inference on probabilistic programs 基于控制数据分离和逻辑条件传播的概率程序高效推理
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-10-05 DOI: 10.1016/j.jlamp.2023.100922
Ichiro Hasuo , Yuichiro Oyabu , Clovis Eberhart , Kohei Suenaga , Kenta Cho , Shin-ya Katsumata

We present a novel sampling framework for probabilistic programs. The framework combines two recent ideas—control-data separation and logical condition propagation—in a nontrivial manner so that the two ideas boost the benefits of each other. We implemented our algorithm on top of Anglican. The experimental results demonstrate our algorithm's efficiency, especially for programs with while loops and rare observations.

我们提出了一种新的概率规划抽样框架。该框架以一种非凡的方式结合了两种最新的思想——控制-数据分离和逻辑条件传播,从而使这两种思想相互促进。我们在英国国教的基础上实现了我们的算法。实验结果证明了该算法的有效性,特别是对于具有while循环和罕见观测值的程序。
{"title":"Control-data separation and logical condition propagation for efficient inference on probabilistic programs","authors":"Ichiro Hasuo ,&nbsp;Yuichiro Oyabu ,&nbsp;Clovis Eberhart ,&nbsp;Kohei Suenaga ,&nbsp;Kenta Cho ,&nbsp;Shin-ya Katsumata","doi":"10.1016/j.jlamp.2023.100922","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100922","url":null,"abstract":"<div><p>We present a novel sampling framework for probabilistic programs. The framework combines two recent ideas—<em>control-data separation</em> and <em>logical condition propagation</em>—in a nontrivial manner so that the two ideas boost the benefits of each other. We implemented our algorithm on top of Anglican. The experimental results demonstrate our algorithm's efficiency, especially for programs with while loops and rare observations.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100922"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91959643","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Certifying expressive power and algorithms of reversible primitive permutations with Lean 用Lean证明可逆基元置换的表达能力和算法
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-10-23 DOI: 10.1016/j.jlamp.2023.100923
Giacomo Maletto , Luca Roversi

Reversible primitive permutations (RPP) is a class of recursive functions that models reversible computation. We present a proof, which has been verified using the proof-assistant Lean, that demonstrates RPP can encode every primitive recursive function (PRF-completeness) and that each RPP can be encoded as a primitive recursive function (PRF-soundness). Our proof of PRF-completeness is simpler and fixes some errors in the original proof, while also introducing a new reversible iteration scheme for RPP. By keeping the formalization and semi-automatic proofs simple, we are able to identify a single programming pattern that can generate a set of reversible algorithms within RPP: Cantor pairing, integer division quotient/remainder, and truncated square root. Finally, Lean source code is available for experiments on reversible computation whose properties can be certified.

可逆基元置换(RPP)是一类模拟可逆计算的递归函数。我们提出了一个证明,并使用证明辅助Lean进行了验证,证明了RPP可以编码每个原始递归函数(prf完备性),每个RPP可以编码为一个原始递归函数(prf健全性)。我们的prf完备性证明更简单,修正了原证明中的一些错误,同时也引入了一种新的可逆RPP迭代方案。通过保持形式化和半自动证明的简单性,我们能够确定一个单一的编程模式,该模式可以在RPP中生成一组可逆算法:Cantor配对、整数除法商/余数和截断平方根。最后,提供了用于可逆计算实验的精益源代码,其特性可以得到验证。
{"title":"Certifying expressive power and algorithms of reversible primitive permutations with Lean","authors":"Giacomo Maletto ,&nbsp;Luca Roversi","doi":"10.1016/j.jlamp.2023.100923","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100923","url":null,"abstract":"<div><p>Reversible primitive permutations (<span>RPP</span>) is a class of recursive functions that models reversible computation. We present a proof, which has been verified using the proof-assistant <span>Lean</span>, that demonstrates <span>RPP</span> can encode every primitive recursive function (<span>PRF</span>-completeness) and that each <span>RPP</span> can be encoded as a primitive recursive function (<span>PRF</span>-soundness). Our proof of <span>PRF</span>-completeness is simpler and fixes some errors in the original proof, while also introducing a new reversible iteration scheme for <span>RPP</span>. By keeping the formalization and semi-automatic proofs simple, we are able to identify a single programming pattern that can generate a set of reversible algorithms within <span>RPP</span>: Cantor pairing, integer division quotient/remainder, and truncated square root. Finally, <span>Lean</span> source code is available for experiments on reversible computation whose properties can be certified.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100923"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2352220823000779/pdfft?md5=ad2af14a775f13438b00a61e5119077a&pid=1-s2.0-S2352220823000779-main.pdf","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91959656","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
A generic construction for crossovers of graph-like structures and its realization in the Eclipse Modeling Framework 用于类图结构交叉的通用构造及其在Eclipse建模框架中的实现
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-09-09 DOI: 10.1016/j.jlamp.2023.100909
Jens Kosiol , Stefan John , Gabriele Taentzer

In model-driven optimization (MDO), domain-specific models are used to define and solve optimization problems via meta-heuristic search, often via evolutionary algorithms. Models are typically evolved using mutations, which can be formally specified as graph transformations. So far, only mutations have been used to generate new solution models from existing ones; a crossover mechanism has not yet been developed. In this paper, we present a generic crossover construction for graph-like structures, which can be used to implement crossover operators for models in MDO. We prove basic properties of our construction and show how it can be used to implement a whole set of crossover operators that have been proposed for specific problems and situations on graphs. In particular, we present a specialization of our construction to models defined in the Eclipse Modeling Framework.

在模型驱动优化(MDO)中,特定于领域的模型通常通过进化算法通过元启发式搜索来定义和解决优化问题。模型通常是使用突变来发展的,这可以正式地指定为图转换。到目前为止,只有突变被用来从现有的解决方案模型生成新的解决方案模型;交叉机制尚未形成。在本文中,我们提出了一种类图结构的通用交叉构造,它可以用于实现MDO中模型的交叉算子。我们证明了我们的构造的基本性质,并展示了如何使用它来实现针对图上特定问题和情况提出的一整套交叉算子。特别是,我们将我们的构造专门化到Eclipse Modeling Framework中定义的模型。
{"title":"A generic construction for crossovers of graph-like structures and its realization in the Eclipse Modeling Framework","authors":"Jens Kosiol ,&nbsp;Stefan John ,&nbsp;Gabriele Taentzer","doi":"10.1016/j.jlamp.2023.100909","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100909","url":null,"abstract":"<div><p><span>In model-driven optimization (MDO), domain-specific models are used to define and solve optimization problems<span> via meta-heuristic search, often via evolutionary algorithms. Models are typically evolved using mutations, which can be formally specified as graph transformations. So far, only mutations have been used to generate new solution models from existing ones; a crossover mechanism has not yet been developed. In this paper, we present a generic crossover construction for graph-like structures, which can be used to implement </span></span>crossover operators for models in MDO. We prove basic properties of our construction and show how it can be used to implement a whole set of crossover operators that have been proposed for specific problems and situations on graphs. In particular, we present a specialization of our construction to models defined in the Eclipse Modeling Framework.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100909"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49875054","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
A dynamic logic with branching modalities 具有分支形式的动态逻辑
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-10-02 DOI: 10.1016/j.jlamp.2023.100921
Yuanrui Zhang , Zhiming Liu

We propose a dynamic logic DLb called “dynamic logic with branching modalities”, which extends the temporal dynamic logic DLT with a “branching modality” for specifying safety properties of regular programs with tests (simply “regular programs”). Compared to the trace modality of DLT for while programs that do not abort, branching modality of DLb does not exclude aborting traces introduced by regular programs, thus is able to capture a type of safety properties which are important for systems with failure behaviors. Moreover, it is congruent to the compositionality of regular programs so that the proof system naturally extended from that of DLT is proved to be complete for DLb. In this paper, we build the theory of DLb on both propositional and first-ordered levels, defining two logics: propositional DLb (PDLb) and first-ordered DLb (FODLb). PDLb forms the theoretical basis of DLb while FODLb is useful for practical verification. We propose the proof systems for PDLb and FODLb, and analyze their decidability, soundness and (relative) completeness in a formal way, through comparing their expressiveness and deduction capabilities with propositional dynamic logic (PDL) and first-order dynamic logic (FODL) respectively. We show that FODLb is actually an extension of DLT, and illustrate the motivations of using the branching modality through an example.

我们提出了一种动态逻辑DLb,称为“带分支模态的动态逻辑”,它扩展了具有“分支模态”的时态动态逻辑DLT,用于指定带测试的常规程序(简称“常规程序”)的安全属性。与不中止程序的DLT的跟踪模式相比,DLb的分支模式不排除常规程序引入的中止跟踪,因此能够捕获一种对具有故障行为的系统很重要的安全属性。此外,它与正则规划的组合性是一致的,从而证明了从DLT的证明系统自然延伸出来的DLT的证明系统是完备的。在本文中,我们在命题和一阶层次上建立了DLb理论,定义了两种逻辑:命题DLb (PDLb)和一阶DLb (FODLb)。PDLb是DLb的理论基础,而FODLb则可用于实际验证。我们提出了PDLb和FODLb的证明系统,并通过比较它们与命题动态逻辑(PDL)和一阶动态逻辑(FODL)的表达和演绎能力,从形式化的角度分析了它们的可判决性、稳健性和(相对)完备性。我们展示了FODLb实际上是DLT的扩展,并通过一个示例说明了使用分支模式的动机。
{"title":"A dynamic logic with branching modalities","authors":"Yuanrui Zhang ,&nbsp;Zhiming Liu","doi":"10.1016/j.jlamp.2023.100921","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100921","url":null,"abstract":"<div><p>We propose a dynamic logic <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> called “dynamic logic with branching modalities”, which extends the temporal dynamic logic DLT with a “branching modality” for specifying safety properties of regular programs with tests (simply “regular programs”). Compared to the trace modality of DLT for <em>while</em> programs that do not abort, branching modality of <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> does not exclude aborting traces introduced by regular programs, thus is able to capture a type of safety properties which are important for systems with failure behaviors. Moreover, it is congruent to the compositionality of regular programs so that the proof system naturally extended from that of DLT is proved to be complete for <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>. In this paper, we build the theory of <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> on both propositional and first-ordered levels, defining two logics: propositional <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> (<span><math><msub><mrow><mi>PDL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>) and first-ordered <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> (<span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>). <span><math><msub><mrow><mi>PDL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> forms the theoretical basis of <span><math><msub><mrow><mi>DL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> while <span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> is useful for practical verification. We propose the proof systems for <span><math><msub><mrow><mi>PDL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> and <span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span>, and analyze their decidability, soundness and (relative) completeness in a formal way, through comparing their expressiveness and deduction capabilities with propositional dynamic logic (PDL) and first-order dynamic logic (FODL) respectively. We show that <span><math><msub><mrow><mi>FODL</mi></mrow><mrow><mi>b</mi></mrow></msub></math></span> is actually an extension of DLT, and illustrate the motivations of using the branching modality through an example.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100921"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49875055","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Business processes resource management using rewriting logic and deep-learning-based predictive monitoring 业务流程资源管理使用重写逻辑和基于深度学习的预测监控
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-11-07 DOI: 10.1016/j.jlamp.2023.100928
Francisco Durán , Nicolás Pozas , Camilo Rocha

A significant task in business process optimization is concerned with streamlining the allocation and sharing of resources. This paper presents an approach for analyzing business process provisioning under a resource prediction strategy based on deep learning. A timed and probabilistic rewrite theory specification formalizes the semantics of business processes. It is integrated with an external oracle in the form of a long short-term memory neural network that can be queried to predict how traces of the process may advance within a time frame. Comparison of execution time and resource occupancy under different parameters is included for several case studies, as well as details on the construction of the deep learning model and its integration with Maude.

业务流程优化中的一项重要任务是简化资源的分配和共享。提出了一种基于深度学习的资源预测策略下的业务流程配置分析方法。定时和概率重写理论规范形式化了业务流程的语义。它以长短期记忆神经网络的形式与外部神谕相结合,可以通过查询来预测过程的痕迹在一个时间框架内可能会如何发展。比较了几个案例在不同参数下的执行时间和资源占用情况,并详细介绍了深度学习模型的构建及其与Maude的集成。
{"title":"Business processes resource management using rewriting logic and deep-learning-based predictive monitoring","authors":"Francisco Durán ,&nbsp;Nicolás Pozas ,&nbsp;Camilo Rocha","doi":"10.1016/j.jlamp.2023.100928","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100928","url":null,"abstract":"<div><p>A significant task in business process optimization is concerned with streamlining the allocation and sharing of resources. This paper presents an approach for analyzing business process provisioning under a resource prediction strategy based on deep learning. A timed and probabilistic rewrite theory specification formalizes the semantics of business processes. It is integrated with an external oracle in the form of a long short-term memory neural network that can be queried to predict how traces of the process may advance within a time frame. Comparison of execution time and resource occupancy under different parameters is included for several case studies, as well as details on the construction of the deep learning model and its integration with Maude.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100928"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91987265","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
The correctness of concurrencies in (reversible) concurrent calculi (可逆)并发演算中并发的正确性
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-10-20 DOI: 10.1016/j.jlamp.2023.100924
Clément Aubert

This article designs a general principle to check the correctness of the definition of concurrency (a.k.a. independence) of events for concurrent calculi. Concurrency relations are central in process algebras, but also two-sided: they are often defined independently on composable and on coinitial transitions, and no criteria exist to assess whether they “interact correctly”. This article starts by examining how reversibility can provide such a correctness of concurrencies criterion, and its implications. It then defines, for the first time, a syntactical definition of concurrency for CCSK, a reversible declension of the calculus of communicating systems. To do so, according to our criterion, requires to define concurrency relations for all types of transitions along two axes: direction (forward or backward) and concomitance (coinitial or composable). Our definition is uniform thanks to proved transition systems and satisfies our sanity checks: square properties, sideways diamonds, but also the reversible checks (reverse diamonds and causal consistency). We also prove that our formalism is either equivalent to or a refinement of pre-existing definitions of concurrency for reversible systems. We conclude by discussing additional criteria and possible future works.

本文设计了一个通用原则来检查并发演算的事件并发性(即独立性)定义的正确性。并发关系是过程代数的中心,但也是双面的:它们通常在可组合和共初转换上独立定义,并且没有标准来评估它们是否“正确交互”。本文首先研究可逆性如何提供这种并发性标准的正确性及其含义。然后,它首次定义了CCSK并发性的语法定义,这是通信系统演算的可逆衰落。要做到这一点,根据我们的标准,需要为沿两个轴的所有类型的转换定义并发关系:方向(向前或向后)和伴随性(共初始或可组合)。由于证明了过渡系统,我们的定义是统一的,并且满足我们的完整性检查:正方形属性,侧面菱形,以及可逆检查(反向菱形和因果一致性)。我们还证明了我们的形式等价于或改进了可逆系统的并发性的已有定义。最后,我们讨论了其他标准和可能的未来工作。
{"title":"The correctness of concurrencies in (reversible) concurrent calculi","authors":"Clément Aubert","doi":"10.1016/j.jlamp.2023.100924","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100924","url":null,"abstract":"<div><p><span>This article designs a general principle to check the correctness of the definition of concurrency (a.k.a. independence) of events for concurrent calculi. Concurrency relations are central in process algebras, but also two-sided: they are often defined independently on composable and on coinitial transitions, and no criteria exist to assess whether they “interact correctly”. This article starts by examining how reversibility can provide such a correctness of concurrencies criterion, and its implications. It then defines, for the first time, a syntactical definition of concurrency for </span><span>CCSK</span>, a reversible declension of the calculus of communicating systems. To do so, according to our criterion, requires to define concurrency relations for all types of transitions along two axes: direction (forward or backward) and concomitance (coinitial or composable). Our definition is uniform thanks to proved transition systems and satisfies our sanity checks: square properties, sideways diamonds, but also the reversible checks (reverse diamonds and causal consistency). We also prove that our formalism is either equivalent to or a refinement of pre-existing definitions of concurrency for reversible systems. We conclude by discussing additional criteria and possible future works.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100924"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91959655","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
Weighted automata extraction and explanation of recurrent neural networks for natural language tasks 自然语言任务中递归神经网络的加权自动机提取与解释
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-09-06 DOI: 10.1016/j.jlamp.2023.100907
Zeming Wei , Xiyue Zhang , Yihao Zhang , Meng Sun

Recurrent Neural Networks (RNNs) have achieved tremendous success in processing sequential data, yet understanding and analyzing their behaviours remains a significant challenge. To this end, many efforts have been made to extract finite automata from RNNs, which are more amenable for analysis and explanation. However, existing approaches like exact learning and compositional approaches for model extraction have limitations in either scalability or precision. In this paper, we propose a novel framework of Weighted Finite Automata (WFA) extraction and explanation to tackle the limitations for natural language tasks. First, to address the transition sparsity and context loss problems we identified in WFA extraction for natural language tasks, we propose an empirical method to complement missing rules in the transition diagram, and adjust transition matrices to enhance the context-awareness of the WFA. We also propose two data augmentation tactics to track more dynamic behaviours of RNN, which further allows us to improve the extraction precision. Based on the extracted model, we propose an explanation method for RNNs including a word embedding method – Transition Matrix Embeddings (TME) and TME-based task oriented explanation for the target RNN. Our evaluation demonstrates the advantage of our method in extraction precision than existing approaches, and the effectiveness of TME-based explanation method in applications to pretraining and adversarial example generation.

递归神经网络(RNNs)在处理序列数据方面取得了巨大的成功,但理解和分析其行为仍然是一个重大挑战。为此,人们做出了许多努力,从rnn中提取有限自动机,这更适合于分析和解释。然而,现有的模型提取方法,如精确学习和组合方法,在可扩展性和精度上都有局限性。在本文中,我们提出了一个新的加权有限自动机(WFA)提取和解释框架来解决自然语言任务的局限性。首先,为了解决我们在自然语言任务的WFA提取中发现的转换稀疏性和上下文丢失问题,我们提出了一种经验方法来补充转换图中缺失的规则,并调整转换矩阵以增强WFA的上下文感知。我们还提出了两种数据增强策略来跟踪RNN的更多动态行为,这进一步提高了提取精度。在提取模型的基础上,提出了一种RNN的解释方法,包括词嵌入方法-过渡矩阵嵌入(TME)和基于TME的目标RNN面向任务的解释。我们的评估证明了我们的方法在提取精度上比现有方法的优势,以及基于tme的解释方法在预训练和对抗性示例生成中的应用有效性。
{"title":"Weighted automata extraction and explanation of recurrent neural networks for natural language tasks","authors":"Zeming Wei ,&nbsp;Xiyue Zhang ,&nbsp;Yihao Zhang ,&nbsp;Meng Sun","doi":"10.1016/j.jlamp.2023.100907","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100907","url":null,"abstract":"<div><p><span>Recurrent Neural Networks (RNNs) have achieved tremendous success in processing sequential data, yet understanding and analyzing their behaviours remains a significant challenge. To this end, many efforts have been made to extract </span>finite automata<span><span><span> from RNNs, which are more amenable for analysis and explanation. However, existing approaches like exact learning and compositional approaches for model extraction have limitations in either scalability or precision. In this paper, we propose a novel framework of Weighted Finite Automata (WFA) extraction and explanation to tackle the limitations for natural language tasks. First, to address the transition sparsity and context loss problems we identified in WFA extraction for natural language tasks, we propose an empirical method to complement missing rules in the </span>transition diagram, and adjust </span>transition matrices<span><span> to enhance the context-awareness of the WFA. We also propose two data augmentation tactics to track more dynamic behaviours of RNN, which further allows us to improve the extraction precision. Based on the extracted model, we propose an explanation method for RNNs including a </span>word embedding<span> method – Transition Matrix Embeddings (TME) and TME-based task oriented explanation for the target RNN. Our evaluation demonstrates the advantage of our method in extraction precision than existing approaches, and the effectiveness of TME-based explanation method in applications to pretraining and adversarial example generation.</span></span></span></p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100907"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49875056","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Time distance-based computation of the DBM over-approximation of preemptive real-time systems 基于时间距离的抢占式实时系统DBM过逼近计算
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-11-04 DOI: 10.1016/j.jlamp.2023.100927
Abdelkrim Abdelli

The verification of preemptive real-time systems is a crucial aspect in ensuring their correctness and reliability to meet strict time constraints. Generally, the analysis of the behaviors of such systems requires the computation of the reachability graphs encoding their state space. However, the construction of the latter is computationally expensive and resource-consuming as it involves, for each graph node, managing and solving polyhedral constraints whose complexity is exponential.

In this paper, we explore a novel approach that builds an over-approximation of the state space of preemptive real-time systems. Our graph construction extends the expression of a node to the time-distance system that encodes the quantitative properties of past-fired subsequences. This makes it possible to restore relevant time information that is used to compute in a polynomial time a tighter difference bound matrix over-approximation of the polyhedral constraints. We show that the obtained graph is more appropriate to restore the quantitative properties of the model. The simulation results show that our graphs are almost of the same size as the exact graphs, while improving by far the times needed for their computation.

抢占式实时系统的验证是保证其正确性和可靠性满足严格时间约束的关键。一般来说,分析这类系统的行为需要计算编码其状态空间的可达性图。然而,后者的构建是计算昂贵和资源消耗,因为它涉及到,对于每个图节点,管理和解决复杂性指数的多面体约束。在本文中,我们探索了一种建立抢占式实时系统状态空间的过逼近的新方法。我们的图构造将节点的表达式扩展到时间距离系统,该系统编码了过去触发子序列的数量属性。这使得恢复相关的时间信息成为可能,这些信息用于在多项式时间内计算多面体约束的更严格的差分界矩阵过逼近。结果表明,得到的图更适合于恢复模型的定量性质。仿真结果表明,我们的图与精确图的大小几乎相同,同时大大提高了计算所需的时间。
{"title":"Time distance-based computation of the DBM over-approximation of preemptive real-time systems","authors":"Abdelkrim Abdelli","doi":"10.1016/j.jlamp.2023.100927","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100927","url":null,"abstract":"<div><p>The verification of preemptive real-time systems is a crucial aspect in ensuring their correctness and reliability to meet strict time constraints. Generally, the analysis of the behaviors of such systems requires the computation of the reachability graphs encoding their state space. However, the construction of the latter is computationally expensive and resource-consuming as it involves, for each graph node, managing and solving polyhedral constraints whose complexity is exponential.</p><p>In this paper, we explore a novel approach that builds an over-approximation of the state space of preemptive real-time systems. Our graph construction extends the expression of a node to the time-distance system that encodes the quantitative properties of past-fired subsequences. This makes it possible to restore relevant time information that is used to compute in a polynomial time a tighter difference bound matrix over-approximation of the polyhedral constraints. We show that the obtained graph is more appropriate to restore the quantitative properties of the model. The simulation results show that our graphs are almost of the same size as the exact graphs, while improving by far the times needed for their computation.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100927"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91987267","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Local confluence of conditional and generalized term rewriting systems 条件和广义项改写系统的局部合流
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-10-31 DOI: 10.1016/j.jlamp.2023.100926
Salvador Lucas

Reduction-based systems are used as a basis for the implementation of programming languages, automated reasoning systems, mathematical analysis tools, etc. In such inherently non-deterministic systems, guaranteeing that diverging steps can be eventually rejoined is crucial for a faithful use in most applications. This property of reduction systems is called local confluence. In a landmark 1980 paper, Gérard Huet characterized local confluence of a Term Rewriting System as the joinability of all its critical pairs. In this paper, we characterize local confluence of Conditional Term Rewriting Systems, where reduction steps may depend on the satisfaction of specific conditions in rules: a conditional term rewriting system is locally confluent if and only if (i) all its conditional critical pairs and (ii) all its conditional variable pairs (which we introduce in this paper) are joinable. Furthermore, the logic-based approach we follow here is well-suited to analyze local confluence of more general reduction-based systems. We exemplify this by (i) including (context-sensitive) replacement restrictions in the arguments of function symbols, and (ii) allowing for more general conditions in rules. The obtained systems are called Generalized Term Rewriting Systems. A characterization of local confluence is also given for them.

基于约简的系统被用作实现编程语言、自动推理系统、数学分析工具等的基础。在这种固有的不确定性系统中,保证分散的步骤最终可以重新连接对于大多数应用程序的忠实使用至关重要。约简系统的这种性质称为局部合流。在1980年的一篇具有里程碑意义的论文中,gsamrard Huet将术语重写系统的局部合流描述为其所有关键对的可接合性。本文刻画了条件项重写系统的局部合流,其中约简步骤可能依赖于规则中特定条件的满足:当且仅当(i)其所有条件临界对和(ii)其所有条件变量对(本文引入的)可接合时,一个条件项重写系统是局部合流的。此外,我们在这里遵循的基于逻辑的方法非常适合于分析更一般的基于约简的系统的局部合流。我们通过(i)在函数符号的参数中包括(上下文敏感的)替换限制以及(ii)在规则中允许更一般的条件来举例说明这一点。得到的系统称为广义项重写系统。并给出了它们的局部汇流特性。
{"title":"Local confluence of conditional and generalized term rewriting systems","authors":"Salvador Lucas","doi":"10.1016/j.jlamp.2023.100926","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100926","url":null,"abstract":"<div><p>Reduction-based systems are used as a basis for the implementation of programming languages, automated reasoning systems, mathematical analysis tools, etc. In such inherently non-deterministic systems, guaranteeing that diverging steps can be eventually rejoined is crucial for a faithful use in most applications. This property of reduction systems is called <em>local confluence</em>. In a landmark 1980 paper, Gérard Huet characterized local confluence of a <em>Term Rewriting System</em> as the joinability of all its <em>critical pairs</em>. In this paper, we characterize local confluence of <em>Conditional Term Rewriting Systems</em>, where reduction steps may depend on the satisfaction of specific conditions in rules: a conditional term rewriting system is locally confluent if and only if (i) all its <em>conditional critical pairs</em> and (ii) all its <em>conditional variable pairs</em> (which we introduce in this paper) are joinable. Furthermore, the logic-based approach we follow here is well-suited to analyze local confluence of more general reduction-based systems. We exemplify this by (i) including (context-sensitive) replacement restrictions in the arguments of function symbols, and (ii) allowing for more general conditions in rules. The obtained systems are called <em>Generalized Term Rewriting Systems</em>. A characterization of local confluence is also given for them.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100926"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"91987266","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Branching pomsets: Design, expressiveness and applications to choreographies 分支集:设计、表达和对编排的应用
IF 0.9 4区 数学 Q3 COMPUTER SCIENCE, THEORY & METHODS Pub Date : 2024-01-01 Epub Date: 2023-09-20 DOI: 10.1016/j.jlamp.2023.100919
Luc Edixhoven , Sung-Shik Jongmans , José Proença , Ilaria Castellani

Choreographic languages describe possible sequences of interactions among a set of agents. Typical models are based on languages or automata over sending and receiving actions. Pomsets provide a more compact alternative by using a partial order to explicitly represent causality and concurrency between these actions. However, pomsets offer no representation of choices, thus a set of pomsets is required to represent branching behaviour. For example, if an agent Alice can send one of two possible messages to Bob three times, one would need a set of 2×2×2 distinct pomsets to represent all possible branches of Alice's behaviour. This paper proposes an extension of pomsets, named branching pomsets, with a branching structure that can represent Alice's behaviour using 2+2+2 ordered actions. We compare the expressiveness of branching pomsets with that of several forms of event structures from the literature. We encode choreographies as branching pomsets and show that the pomset semantics of the encoded choreographies are bisimilar to their operational semantics. Furthermore, we define well-formedness conditions on branching pomsets, inspired by multiparty session types, and we prove that the well-formedness of a branching pomset is a sufficient condition for the realisability of the represented communication protocol. Finally, we present a prototype tool that implements our theory of branching pomsets, focusing on its applications to choreographies.

编排语言描述了一组代理之间可能的交互序列。典型的模型基于发送和接收操作的语言或自动机。通过使用部分顺序显式地表示这些操作之间的因果关系和并发性,pomset提供了一个更紧凑的替代方案。然而,模型集不提供选择的表示,因此需要一组模型集来表示分支行为。例如,如果代理Alice可以将两个可能的消息中的一个发送给Bob三次,则需要一组2×2×2不同的消息集来表示Alice行为的所有可能分支。本文提出了一种扩展pomset,称为分支pomset,其分支结构可以表示Alice使用2+2+2有序动作的行为。我们将分支集的表达性与文献中几种形式的事件结构进行了比较。我们将编排编码为分支集合,并表明编码编排的集合语义与它们的操作语义是双相似的。在此基础上,受多方会话类型的启发,定义了分支集的格式良好性条件,并证明了分支集的格式良好性是表示的通信协议可实现的充分条件。最后,我们提出了一个原型工具来实现我们的分支集理论,重点关注其在编排中的应用。
{"title":"Branching pomsets: Design, expressiveness and applications to choreographies","authors":"Luc Edixhoven ,&nbsp;Sung-Shik Jongmans ,&nbsp;José Proença ,&nbsp;Ilaria Castellani","doi":"10.1016/j.jlamp.2023.100919","DOIUrl":"https://doi.org/10.1016/j.jlamp.2023.100919","url":null,"abstract":"<div><p>Choreographic languages describe possible sequences of interactions among a set of agents. Typical models are based on languages or automata over sending and receiving actions. Pomsets provide a more compact alternative by using a partial order to explicitly represent causality and concurrency between these actions. However, pomsets offer no representation of choices, thus a set of pomsets is required to represent branching behaviour. For example, if an agent Alice can send one of two possible messages to Bob three times, one would need a set of <span><math><mn>2</mn><mo>×</mo><mn>2</mn><mo>×</mo><mn>2</mn></math></span> distinct pomsets to represent all possible branches of Alice's behaviour. This paper proposes an extension of pomsets, named <em>branching pomsets</em>, with a branching structure that can represent Alice's behaviour using <span><math><mn>2</mn><mo>+</mo><mn>2</mn><mo>+</mo><mn>2</mn></math></span> ordered actions. We compare the expressiveness of branching pomsets with that of several forms of event structures from the literature. We encode choreographies as branching pomsets and show that the pomset semantics of the encoded choreographies are bisimilar to their operational semantics. Furthermore, we define well-formedness conditions on branching pomsets, inspired by multiparty session types, and we prove that the well-formedness of a branching pomset is a sufficient condition for the realisability of the represented communication protocol. Finally, we present a prototype tool that implements our theory of branching pomsets, focusing on its applications to choreographies.</p></div>","PeriodicalId":48797,"journal":{"name":"Journal of Logical and Algebraic Methods in Programming","volume":"136 ","pages":"Article 100919"},"PeriodicalIF":0.9,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49875053","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":4,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
期刊
Journal of Logical and Algebraic Methods in Programming
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1