arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.04812cs.PLcs.AIcs.LG
收藏

Scallop:一种用于神经符号编程的语言

Scallop: A Language for Neurosymbolic Programming

University of Pennsylvania(宾夕法尼亚大学)

Ziyang Li, Jiani Huang, Mayur Naik

AI总结:

本文提出神经符号编程语言 Scallop,通过关系符号表示、支持递归聚合与否定的 Datalog 逻辑编程以及基于溯源半环的可微推理,在八个应用中实现了与最先进模型相当或更优的准确率,并具有更好的效率、可解释性和泛化能力。

摘要:

我们提出 Scallop,一种结合深度学习与逻辑推理优势的语言。Scallop 使用户能够编写广泛的神经符号应用,并以数据和计算高效的方式进行训练。它通过三个关键特性实现这些目标:1)基于关系数据模型的灵活符号表示;2)基于 Datalog 的声明式逻辑编程语言,支持递归、聚合和否定;3)基于溯源半环理论的自动且高效的可微推理框架。我们在文献中的八个神经符号应用套件上对 Scallop 进行了评估。我们的评估表明,Scallop 能够在多样且具有挑战性的人工智能任务中表达算法推理,为机器学习程序员集成逻辑领域知识提供了简洁的接口,并且所产生的解决方案在准确率方面与最先进模型相当或更优。此外,Scallop 的解决方案在运行时和数据效率、可解释性以及泛化能力等方面优于这些模型。

英文摘要:

We present Scallop, a language which combines the benefits of deep learning and logical reasoning. Scallop enables users to write a wide range of neurosymbolic applications and train them in a data- and compute-efficient manner. It achieves these goals through three key features: 1) a flexible symbolic representation that is based on the relational data model; 2) a declarative logic programming language that is based on Datalog and supports recursion, aggregation, and negation; and 3) a framework for automatic and efficient differentiable reasoning that is based on the theory of provenance semirings. We evaluate Scallop on a suite of eight neurosymbolic applications from the literature. Our evaluation demonstrates that Scallop is capable of expressing algorithmic reasoning in diverse and challenging AI tasks, provides a succinct interface for machine learning programmers to integrate logical domain knowledge, and yields solutions that are comparable or superior to state-of-the-art models in terms of accuracy. Furthermore, Scallop's solutions outperform these models in aspects such as runtime and data efficiency, interpretability, and generalizability.

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

↑