首页 > 最新文献

Theory and Practice of Logic Programming最新文献

英文 中文
Toward A Logical Theory Of Fairness and Bias 《公平与偏见的逻辑理论
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000157
VAISHAK BELLE
Abstract Fairness in machine learning is of considerable interest in recent years owing to the propensity of algorithms trained on historical data to amplify and perpetuate historical biases. In this paper, we argue for a formal reconstruction of fairness definitions, not so much to replace existing definitions but to ground their application in an epistemic setting and allow for rich environmental modeling. Consequently we look into three notions: fairness through unawareness, demographic parity and counterfactual fairness, and formalize these in the epistemic situation calculus.
近年来,机器学习中的公平性引起了人们的极大兴趣,因为在历史数据上训练的算法倾向于放大和延续历史偏见。在本文中,我们主张公平定义的正式重建,不是要取代现有的定义,而是将其应用于认知设置中,并允许丰富的环境建模。因此,我们研究了三个概念:通过无意识的公平、人口平等和反事实公平,并在认知情境演算中将它们形式化。
{"title":"Toward A Logical Theory Of Fairness and Bias","authors":"VAISHAK BELLE","doi":"10.1017/s1471068423000157","DOIUrl":"https://doi.org/10.1017/s1471068423000157","url":null,"abstract":"Abstract Fairness in machine learning is of considerable interest in recent years owing to the propensity of algorithms trained on historical data to amplify and perpetuate historical biases. In this paper, we argue for a formal reconstruction of fairness definitions, not so much to replace existing definitions but to ground their application in an epistemic setting and allow for rich environmental modeling. Consequently we look into three notions: fairness through unawareness, demographic parity and counterfactual fairness, and formalize these in the epistemic situation calculus.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135509285","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
An Efficient Solver for ASP(Q) ASP(Q)问题的高效求解器
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000121
WOLFGANG FABER, GIUSEPPE MAZZOTTA, FRANCESCO RICCA
Abstract Answer Set Programming with Quantifiers ASP(Q) extends Answer Set Programming (ASP) to allow for declarative and modular modeling of problems from the entire polynomial hierarchy. The first implementation of ASP(Q), called QASP, was based on a translation to Quantified Boolean Formulae (QBF) with the aim of exploiting the well-developed and mature QBF-solving technology. However, the implementation of the QBF encoding employed in qasp is very general and might produce formulas that are hard to evaluate for existing QBF solvers because of the large number of symbols and subclauses. In this paper, we present a new implementation that builds on the ideas of QASP and features both a more efficient encoding procedure and new optimized encodings of ASP(Q) programs in QBF. The new encodings produce smaller formulas (in terms of the number of quantifiers, variables, and clauses) and result in a more efficient evaluation process. An algorithm selection strategy automatically combines several QBF-solving back-ends to further increase performance. An experimental analysis, conducted on known benchmarks, shows that the new system outperforms QASP.
ASP(Q)扩展了答案集编程(ASP),允许从整个多项式层次结构对问题进行声明性和模块化建模。ASP(Q)的第一个实现,称为QASP,是基于对量化布尔公式(QBF)的翻译,目的是利用发达和成熟的QBF求解技术。然而,qasp中使用的QBF编码的实现是非常通用的,并且由于大量的符号和子句,可能会产生难以对现有QBF求解器进行评估的公式。在本文中,我们提出了一种基于QASP思想的新实现,它具有更高效的编码过程和QBF中ASP(Q)程序的新优化编码。新的编码产生更小的公式(就量词、变量和子句的数量而言),并产生更有效的评估过程。算法选择策略自动组合多个求解qbf的后端以进一步提高性能。在已知基准上进行的实验分析表明,新系统优于QASP。
{"title":"An Efficient Solver for ASP(Q)","authors":"WOLFGANG FABER, GIUSEPPE MAZZOTTA, FRANCESCO RICCA","doi":"10.1017/s1471068423000121","DOIUrl":"https://doi.org/10.1017/s1471068423000121","url":null,"abstract":"Abstract Answer Set Programming with Quantifiers ASP(Q) extends Answer Set Programming (ASP) to allow for declarative and modular modeling of problems from the entire polynomial hierarchy. The first implementation of ASP(Q), called QASP, was based on a translation to Quantified Boolean Formulae (QBF) with the aim of exploiting the well-developed and mature QBF-solving technology. However, the implementation of the QBF encoding employed in qasp is very general and might produce formulas that are hard to evaluate for existing QBF solvers because of the large number of symbols and subclauses. In this paper, we present a new implementation that builds on the ideas of QASP and features both a more efficient encoding procedure and new optimized encodings of ASP(Q) programs in QBF. The new encodings produce smaller formulas (in terms of the number of quantifiers, variables, and clauses) and result in a more efficient evaluation process. An algorithm selection strategy automatically combines several QBF-solving back-ends to further increase performance. An experimental analysis, conducted on known benchmarks, shows that the new system outperforms QASP.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135364269","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Introduction to the 39th International Conference on Logic Programming Special Issue 第39届逻辑规划国际会议特刊导论
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000212
STEFANIA COSTANTINI, ENRICO PONTELLI, ALESSANDRA RUSSO, FRANCESCA TONI
An abstract is not available for this content. As you have access to this content, full HTML content is provided on this page. A PDF of this content is also available in through the ‘Save PDF’ action button.
此内容没有摘要。当您可以访问此内容时,该页上会提供完整的HTML内容。此内容的PDF也可以通过“保存PDF”操作按钮获得。
{"title":"Introduction to the 39<sup>th</sup> International Conference on Logic Programming Special Issue","authors":"STEFANIA COSTANTINI, ENRICO PONTELLI, ALESSANDRA RUSSO, FRANCESCA TONI","doi":"10.1017/s1471068423000212","DOIUrl":"https://doi.org/10.1017/s1471068423000212","url":null,"abstract":"An abstract is not available for this content. As you have access to this content, full HTML content is provided on this page. A PDF of this content is also available in through the ‘Save PDF’ action button.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135363825","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Locksynth: Deriving Synchronization Code for Concurrent Data Structures with ASP Locksynth:用ASP派生并发数据结构的同步代码
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000303
SARAT CHANDRA VARANASI, NEERAJ MITTAL, GOPAL GUPTA
Abstract We present Locksynth , a tool that automatically derives synchronization needed for destructive updates to concurrent data structures that involve a constant number of shared heap memory write operations. Locksynth serves as the implementation of our prior work on deriving abstract synchronization code. Designing concurrent data structures involves inferring correct synchronization code starting with a prior understanding of the sequential data structure’s operations. Further, an understanding of shared memory model and the synchronization primitives is also required. The reasoning involved transforming a sequential data structure into its concurrent version can be performed using Answer Set Programming, and we mechanized our approach in previous work. The reasoning involves deduction and abduction that can be succinctly modeled in ASP. We assume that the abstract sequential code of the data structure’s operations is provided, alongside axioms that describe concurrent behavior. This information is used to automatically derive concurrent code for that data structure, such as dictionary operations for linked lists and binary search trees that involve a constant number of destructive update operations. We also are able to infer the correct set of locks (but not code synthesis) for external height-balanced binary search trees that involve left/right tree rotations. Locksynth performs the analyses required to infer correct sets of locks and as a final step, also derives the C++ synchronization code for the synthesized data structures. We also provide a performance analysis of the C++ code synthesized by Locksynth with the hand-crafted versions available from the Synchrobench microbenchmark suite. To the best of our knowledge, our tool is the first to employ ASP as a backend reasoner to perform concurrent data structure synthesis.
我们提出Locksynth,一个工具,自动派生所需的同步破坏性更新并发数据结构,涉及恒定数量的共享堆内存写操作。Locksynth是我们之前在派生抽象同步代码方面的工作的实现。设计并发数据结构需要从事先了解顺序数据结构的操作开始,推断出正确的同步代码。此外,还需要了解共享内存模型和同步原语。将顺序数据结构转换为其并发版本的推理可以使用答案集编程来执行,并且我们在前面的工作中机械化了我们的方法。推理包括演绎和溯因,可以在ASP中简洁地建模。我们假设提供了数据结构操作的抽象顺序代码,以及描述并发行为的公理。此信息用于自动派生该数据结构的并发代码,例如链表和二叉搜索树的字典操作,这些操作涉及恒定数量的破坏性更新操作。我们还能够推断出涉及左/右树旋转的外部高度平衡二叉搜索树的正确锁集(但不是代码合成)。Locksynth执行推断正确锁集所需的分析,并作为最后一步,为合成的数据结构派生c++同步代码。我们还提供了由Locksynth合成的c++代码的性能分析,并使用了Synchrobench微基准套件中提供的手工版本。据我们所知,我们的工具是第一个使用ASP作为后端推理器来执行并发数据结构合成的工具。
{"title":"Locksynth: Deriving Synchronization Code for Concurrent Data Structures with ASP","authors":"SARAT CHANDRA VARANASI, NEERAJ MITTAL, GOPAL GUPTA","doi":"10.1017/s1471068423000303","DOIUrl":"https://doi.org/10.1017/s1471068423000303","url":null,"abstract":"Abstract We present Locksynth , a tool that automatically derives synchronization needed for destructive updates to concurrent data structures that involve a constant number of shared heap memory write operations. Locksynth serves as the implementation of our prior work on deriving abstract synchronization code. Designing concurrent data structures involves inferring correct synchronization code starting with a prior understanding of the sequential data structure’s operations. Further, an understanding of shared memory model and the synchronization primitives is also required. The reasoning involved transforming a sequential data structure into its concurrent version can be performed using Answer Set Programming, and we mechanized our approach in previous work. The reasoning involves deduction and abduction that can be succinctly modeled in ASP. We assume that the abstract sequential code of the data structure’s operations is provided, alongside axioms that describe concurrent behavior. This information is used to automatically derive concurrent code for that data structure, such as dictionary operations for linked lists and binary search trees that involve a constant number of destructive update operations. We also are able to infer the correct set of locks (but not code synthesis) for external height-balanced binary search trees that involve left/right tree rotations. Locksynth performs the analyses required to infer correct sets of locks and as a final step, also derives the C++ synchronization code for the synthesized data structures. We also provide a performance analysis of the C++ code synthesized by Locksynth with the hand-crafted versions available from the Synchrobench microbenchmark suite. To the best of our knowledge, our tool is the first to employ ASP as a backend reasoner to perform concurrent data structure synthesis.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135804826","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
ASPER: Answer Set Programming Enhanced Neural Network Models for Joint Entity-Relation Extraction 联合实体关系抽取的答案集规划增强神经网络模型
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000297
TRUNG HOANG LE, HUIPING CAO, TRAN CAO SON
Abstract A plethora of approaches have been proposed for joint entity-relation (ER) extraction. Most of these methods largely depend on a large amount of manually annotated training data. However, manual data annotation is time-consuming, labor-intensive, and error-prone. Human beings learn using both data (through induction) and knowledge (through deduction). Answer Set Programming (ASP) has been a widely utilized approach for knowledge representation and reasoning that is elaboration tolerant and adept at reasoning with incomplete information. This paper proposes a new approach, ASP-enhanced Entity-Relation extraction (ASPER), to jointly recognize entities and relations by learning from both data and domain knowledge. In particular, ASPER takes advantage of the factual knowledge (represented as facts in ASP) and derived knowledge (represented as rules in ASP) in the learning process of neural network models. We have conducted experiments on two real datasets and compare our method with three baselines. The results show that our ASPER model consistently outperforms the baselines.
摘要针对联合实体关系(ER)的提取,已经提出了大量的方法。这些方法在很大程度上依赖于大量手工标注的训练数据。但是,手动数据注释非常耗时、费力且容易出错。人类学习既使用数据(通过归纳),也使用知识(通过演绎)。答案集编程(ASP)是一种广泛应用于知识表示和推理的方法,它具有精细容错性和善于对不完全信息进行推理。本文提出了一种新的方法,即asp增强的实体-关系提取(ASPER),通过学习数据和领域知识来共同识别实体和关系。特别是,ASPER在神经网络模型的学习过程中利用了事实知识(在ASP中表示为事实)和派生知识(在ASP中表示为规则)。我们在两个真实数据集上进行了实验,并将我们的方法与三个基线进行了比较。结果表明,我们的ASPER模型始终优于基线。
{"title":"ASPER: Answer Set Programming Enhanced Neural Network Models for Joint Entity-Relation Extraction","authors":"TRUNG HOANG LE, HUIPING CAO, TRAN CAO SON","doi":"10.1017/s1471068423000297","DOIUrl":"https://doi.org/10.1017/s1471068423000297","url":null,"abstract":"Abstract A plethora of approaches have been proposed for joint entity-relation (ER) extraction. Most of these methods largely depend on a large amount of manually annotated training data. However, manual data annotation is time-consuming, labor-intensive, and error-prone. Human beings learn using both data (through induction) and knowledge (through deduction). Answer Set Programming (ASP) has been a widely utilized approach for knowledge representation and reasoning that is elaboration tolerant and adept at reasoning with incomplete information. This paper proposes a new approach, ASP-enhanced Entity-Relation extraction (ASPER), to jointly recognize entities and relations by learning from both data and domain knowledge. In particular, ASPER takes advantage of the factual knowledge (represented as facts in ASP) and derived knowledge (represented as rules in ASP) in the learning process of neural network models. We have conducted experiments on two real datasets and compare our method with three baselines. The results show that our ASPER model consistently outperforms the baselines.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135607905","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
“What if?” in Probabilistic Logic Programming “如果什么?在概率逻辑规划中
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000133
RAFAEL KIESEL, KILIAN RÜCKSCHLOß, FELIX WEITKÄMPER
Abstract A ProbLog program is a logic program with facts that only hold with a specified probability. In this contribution, we extend this ProbLog language by the ability to answer “What if” queries. Intuitively, a ProbLog program defines a distribution by solving a system of equations in terms of mutually independent predefined Boolean random variables. In the theory of causality, Judea Pearl proposes a counterfactual reasoning for such systems of equations. Based on Pearl’s calculus, we provide a procedure for processing these counterfactual queries on ProbLog programs, together with a proof of correctness and a full implementation. Using the latter, we provide insights into the influence of different parameters on the scalability of inference. Finally, we also show that our approach is consistent with CP-logic, that is with the causal semantics for logic programs with annotated with disjunctions.
ProbLog程序是一种逻辑程序,它的事实只以特定的概率存在。在本文中,我们通过回答“What if”查询的能力扩展了ProbLog语言。直观地说,ProbLog程序通过根据相互独立的预定义布尔随机变量求解方程组来定义分布。在因果关系理论中,朱迪亚·珀尔为这样的方程组提出了一种反事实推理。基于Pearl的演算,我们提供了一个在ProbLog程序上处理这些反事实查询的程序,以及正确性的证明和完整的实现。使用后者,我们可以深入了解不同参数对推理可扩展性的影响。最后,我们还证明了我们的方法与CP-logic一致,即与带有析取注释的逻辑程序的因果语义一致。
{"title":"“What if?” in Probabilistic Logic Programming","authors":"RAFAEL KIESEL, KILIAN RÜCKSCHLOß, FELIX WEITKÄMPER","doi":"10.1017/s1471068423000133","DOIUrl":"https://doi.org/10.1017/s1471068423000133","url":null,"abstract":"Abstract A ProbLog program is a logic program with facts that only hold with a specified probability. In this contribution, we extend this ProbLog language by the ability to answer “What if” queries. Intuitively, a ProbLog program defines a distribution by solving a system of equations in terms of mutually independent predefined Boolean random variables. In the theory of causality, Judea Pearl proposes a counterfactual reasoning for such systems of equations. Based on Pearl’s calculus, we provide a procedure for processing these counterfactual queries on ProbLog programs, together with a proof of correctness and a full implementation. Using the latter, we provide insights into the influence of different parameters on the scalability of inference. Finally, we also show that our approach is consistent with CP-logic, that is with the causal semantics for logic programs with annotated with disjunctions.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135509452","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Knowledge Authoring for Rules and Actions 规则和操作的知识创作
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000169
YUHENG WANG, PAUL FODOR, MICHAEL KIFER
Abstract Knowledge representation and reasoning (KRR) systems describe and reason with complex concepts and relations in the form of facts and rules. Unfortunately, wide deployment of KRR systems runs into the problem that domain experts have great difficulty constructing correct logical representations of their domain knowledge. Knowledge engineers can help with this construction process, but there is a deficit of such specialists. The earlier Knowledge Authoring Logic Machine (KALM) based on Controlled Natural Language (CNL) was shown to have very high accuracy for authoring facts and questions. More recently, KALM FL , a successor of KALM, replaced CNL with factual English, which is much less restrictive and requires very little training from users. However, KALM FL has limitations in representing certain types of knowledge, such as authoring rules for multi-step reasoning or understanding actions with timestamps. To address these limitations, we propose KALM RA to enable authoring of rules and actions. Our evaluation using the UTI guidelines benchmark shows that KALM RA achieves a high level of correctness (100%) on rule authoring. When used for authoring and reasoning with actions, KALM RA achieves more than 99.3% correctness on the bAbI benchmark, demonstrating its effectiveness in more sophisticated KRR jobs. Finally, we illustrate the logical reasoning capabilities of KALM RA by drawing attention to the problems faced by the recently made famous AI, ChatGPT.
知识表示与推理系统以事实和规则的形式对复杂的概念和关系进行描述和推理。不幸的是,KRR系统的广泛部署遇到了领域专家很难构建其领域知识的正确逻辑表示的问题。知识工程师可以在这个建设过程中提供帮助,但目前缺乏这样的专家。早期基于受控自然语言(CNL)的知识创作逻辑机(KALM)对事实和问题的创作具有很高的准确性。最近,KALM FL, KALM的后继者,用事实英语取代了CNL,事实英语的限制要少得多,并且需要用户进行很少的培训。然而,KALM FL在表示某些类型的知识方面有局限性,例如为多步骤推理编写规则或理解带有时间戳的动作。为了解决这些限制,我们提出KALM RA来支持规则和操作的创作。我们使用UTI准则基准的评估表明,KALM RA在规则编写方面达到了很高的正确性(100%)。当KALM RA用于操作的创作和推理时,在bAbI基准上达到了99.3%以上的正确性,证明了它在更复杂的KRR作业中的有效性。最后,我们通过关注最近著名的人工智能ChatGPT所面临的问题来说明KALM RA的逻辑推理能力。
{"title":"Knowledge Authoring for Rules and Actions","authors":"YUHENG WANG, PAUL FODOR, MICHAEL KIFER","doi":"10.1017/s1471068423000169","DOIUrl":"https://doi.org/10.1017/s1471068423000169","url":null,"abstract":"Abstract Knowledge representation and reasoning (KRR) systems describe and reason with complex concepts and relations in the form of facts and rules. Unfortunately, wide deployment of KRR systems runs into the problem that domain experts have great difficulty constructing correct logical representations of their domain knowledge. Knowledge engineers can help with this construction process, but there is a deficit of such specialists. The earlier Knowledge Authoring Logic Machine (KALM) based on Controlled Natural Language (CNL) was shown to have very high accuracy for authoring facts and questions. More recently, KALM FL , a successor of KALM, replaced CNL with factual English, which is much less restrictive and requires very little training from users. However, KALM FL has limitations in representing certain types of knowledge, such as authoring rules for multi-step reasoning or understanding actions with timestamps. To address these limitations, we propose KALM RA to enable authoring of rules and actions. Our evaluation using the UTI guidelines benchmark shows that KALM RA achieves a high level of correctness (100%) on rule authoring. When used for authoring and reasoning with actions, KALM RA achieves more than 99.3% correctness on the bAbI benchmark, demonstrating its effectiveness in more sophisticated KRR jobs. Finally, we illustrate the logical reasoning capabilities of KALM RA by drawing attention to the problems faced by the recently made famous AI, ChatGPT.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135453900","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Automatic Differentiation in Prolog Prolog中的自动区分
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000145
TOM SCHRIJVERS, BIRTHE VAN DEN BERG, FABRIZIO RIGUZZI
Abstract Automatic differentiation (AD) is a range of algorithms to compute the numeric value of a function’s (partial) derivative, where the function is typically given as a computer program or abstract syntax tree. AD has become immensely popular as part of many learning algorithms, notably for neural networks. This paper uses Prolog to systematically derive gradient-based forward- and reverse-mode AD variants from a simple executable specification: evaluation of the symbolic derivative. Along the way we demonstrate that several Prolog features (DCGs, co-routines) contribute to the succinct formulation of the algorithm. We also discuss two applications in probabilistic programming that are enabled by our Prolog algorithms. The first is parameter learning for the Sum-Product Loop Language and the second consists of both parameter learning and variational inference for probabilistic logic programming.
自动微分(AD)是计算函数(偏)导数数值的一系列算法,其中函数通常以计算机程序或抽象语法树的形式给出。作为许多学习算法的一部分,特别是神经网络,AD已经变得非常流行。本文使用Prolog系统地从一个简单的可执行规范中推导出基于梯度的正向和反向模式AD变体:符号导数的评估。在此过程中,我们演示了几个Prolog特征(dcg,协同例程)有助于简洁的算法公式。我们还讨论了Prolog算法在概率编程中的两个应用。第一个是和积循环语言的参数学习,第二个是概率逻辑规划的参数学习和变分推理。
{"title":"Automatic Differentiation in Prolog","authors":"TOM SCHRIJVERS, BIRTHE VAN DEN BERG, FABRIZIO RIGUZZI","doi":"10.1017/s1471068423000145","DOIUrl":"https://doi.org/10.1017/s1471068423000145","url":null,"abstract":"Abstract Automatic differentiation (AD) is a range of algorithms to compute the numeric value of a function’s (partial) derivative, where the function is typically given as a computer program or abstract syntax tree. AD has become immensely popular as part of many learning algorithms, notably for neural networks. This paper uses Prolog to systematically derive gradient-based forward- and reverse-mode AD variants from a simple executable specification: evaluation of the symbolic derivative. Along the way we demonstrate that several Prolog features (DCGs, co-routines) contribute to the succinct formulation of the algorithm. We also discuss two applications in probabilistic programming that are enabled by our Prolog algorithms. The first is parameter learning for the Sum-Product Loop Language and the second consists of both parameter learning and variational inference for probabilistic logic programming.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135409535","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Implementing Backjumping by Means of Exception Handling 通过异常处理实现回跳
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000285
WŁODZIMIERZ DRABENT
Abstract We discuss how to implement backjumping (or intelligent backtracking) in Prolog by using the built-ins throw/1 and catch/3. We show that it is impossible in a general case, contrary to a claim that “backjumping is exception handling." We provide two solutions. One works for binary programs; in a general case it imposes a restriction on where backjumping may originate. The other restricts the class of backjump targets. We also discuss implementing backjumping by using backtracking and the Prolog database. Additionally, we explain the semantics of Prolog exception handling in the presence of coroutining.
讨论了如何在Prolog中使用内置的throw/1和catch/3实现回跳(或智能回跳)。我们证明在一般情况下这是不可能的,这与“回跳是异常处理”的说法相反。我们提供两种解决方案。一个适用于二进制程序;在一般情况下,它对背跳的起源施加了限制。另一个限制了后跳目标的类别。我们还讨论了通过回溯和Prolog数据库实现回溯。此外,我们还解释了协同程序中Prolog异常处理的语义。
{"title":"Implementing Backjumping by Means of Exception Handling","authors":"WŁODZIMIERZ DRABENT","doi":"10.1017/s1471068423000285","DOIUrl":"https://doi.org/10.1017/s1471068423000285","url":null,"abstract":"Abstract We discuss how to implement backjumping (or intelligent backtracking) in Prolog by using the built-ins throw/1 and catch/3. We show that it is impossible in a general case, contrary to a claim that “backjumping is exception handling.\" We provide two solutions. One works for binary programs; in a general case it imposes a restriction on where backjumping may originate. The other restricts the class of backjump targets. We also discuss implementing backjumping by using backtracking and the Prolog database. Additionally, we explain the semantics of Prolog exception handling in the presence of coroutining.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135763100","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Neuro-Symbolic AI for Compliance Checking of Electrical Control Panels 电气控制面板符合性检查的神经符号人工智能
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000170
VITO BARBARA, NICOLA LEONE, FRANCESCO RICCA, MASSIMO GUARASCIO, GIUSEPPE MANCO, ALESSANDRO QUARTA, ETTORE RITACCO
Abstract Artificial Intelligence plays a main role in supporting and improving smart manufacturing and Industry 4.0, by enabling the automation of different types of tasks manually performed by domain experts. In particular, assessing the compliance of a product with the relative schematic is a time-consuming and prone-to-error process. In this paper, we address this problem in a specific industrial scenario. In particular, we define a Neuro-Symbolic approach for automating the compliance verification of the electrical control panels. Our approach is based on the combination of Deep Learning techniques with Answer Set Programming (ASP), and allows for identifying possible anomalies and errors in the final product even when a very limited amount of training data is available. The experiments conducted on a real test case provided by an Italian Company operating in electrical control panel production demonstrate the effectiveness of the proposed approach.
人工智能通过实现由领域专家手动执行的不同类型任务的自动化,在支持和改进智能制造和工业4.0方面发挥着重要作用。特别是,评估产品与相关原理图的一致性是一个耗时且容易出错的过程。在本文中,我们在一个特定的工业场景中解决这个问题。特别是,我们定义了一种神经符号方法来自动化电气控制面板的合规性验证。我们的方法是基于深度学习技术与答案集编程(ASP)的结合,即使在可用的训练数据非常有限的情况下,也可以识别最终产品中可能的异常和错误。在一家意大利公司提供的电气控制面板生产实际测试案例上进行的实验证明了所提出方法的有效性。
{"title":"Neuro-Symbolic AI for Compliance Checking of Electrical Control Panels","authors":"VITO BARBARA, NICOLA LEONE, FRANCESCO RICCA, MASSIMO GUARASCIO, GIUSEPPE MANCO, ALESSANDRO QUARTA, ETTORE RITACCO","doi":"10.1017/s1471068423000170","DOIUrl":"https://doi.org/10.1017/s1471068423000170","url":null,"abstract":"Abstract Artificial Intelligence plays a main role in supporting and improving smart manufacturing and Industry 4.0, by enabling the automation of different types of tasks manually performed by domain experts. In particular, assessing the compliance of a product with the relative schematic is a time-consuming and prone-to-error process. In this paper, we address this problem in a specific industrial scenario. In particular, we define a Neuro-Symbolic approach for automating the compliance verification of the electrical control panels. Our approach is based on the combination of Deep Learning techniques with Answer Set Programming (ASP), and allows for identifying possible anomalies and errors in the final product even when a very limited amount of training data is available. The experiments conducted on a real test case provided by an Italian Company operating in electrical control panel production demonstrate the effectiveness of the proposed approach.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135452752","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
期刊
Theory and Practice of Logic 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学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1