让逻辑神经网络学会表达时间、序列和图结构关系
sLTN: Structural Logic Tensor Networks

- 将时间、位置、节点等结构维度作为语言的原生元素
- 支持在逻辑层面直接表达时序与图结构约束
- 适合需要结构化推理的智能系统开发
逻辑张量网络(LTN)通过张量运算解释一阶逻辑,实现逻辑约束与可微学习的融合。然而,原始的LTN主要适用于扁平的个体集合,无法显式捕捉时间顺序、序列位置或图连接等结构性组织。本文提出sLTN,一种将结构维度作为语言首类元素的扩展框架。结构维度代表与特定领域相关的命名张量轴,如时间步、序列位置或图节点,可被显式量化、通过结构关系关联,并在逻辑层直接表达时序、序列和关系约束。我们形式化了sLTN的语法与模糊张量语义,并证明在无结构维度时,该框架退化为原始LTN的特例。此外,我们基于声明式签名、公式解析和张量解释,实现了一个PyTorch版本。框架在典型的时间与序列推理任务中进行了演示。本文是sltn库的配套论文,代码见https://github.com/logictensornetworks/sltn。
原文摘要 · Abstract (English)
Logic Tensor Networks (LTN) provide a neurosymbolic framework in which first-order logic is interpreted through tensor operations, enabling logical constraints to be integrated with differentiable learning. However, the original formulation of LTN is primarily suited to data represented as flat collections of individuals, and does not explicitly capture structural organization such as temporal order, sequential position, or graph connectivity. We introduce sLTN, an extension of LTN that makes structural dimensions first-class elements of the language. Structural dimensions represent named tensor axes associated with domain-specific organization, such as time steps, sequence positions, or graph nodes. They can be quantified explicitly, related through structural relations, and used to express temporal, sequential, and relational constraints directly at the logical level. We formalize the syntax and fuzzy tensor semantics of sLTN and show that, in the absence of structural dimensions, the framework recovers the original LTN semantics as a special case. We further describe a PyTorch implementation based on a declarative signature, formula parsing, and tensorial interpretation. The framework is illustrated on representative temporal and sequential reasoning examples. This paper serves as a companion to the sltn library, available at https://github.com/logictensornetworks/sltn.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。