LTNtorch: PyTorch Implementation of Logic Tensor Networks
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
Logic Tensor Networks (LTN) is a Neuro-Symbolic framework that effectively incorporates deep learning and logical reasoning. In particular, LTN allows defining a logical knowledge base and using it as the objective of a neural model. This makes learning by logical reasoning possible as the parameters of the model are optimized by minimizing a loss function composed of a set of logical formulas expressing facts about the learning task. The framework learns via gradient-descent optimization. Fuzzy logic, a relaxation of classical logic permitting continuous truth values in the interval [0,1], makes this learning possible. Specifically, the training of an LTN consists of three steps. Firstly, (1) the training data is used to ground the formulas. Then, (2) the formulas are evaluated, and the loss function is computed. Lastly, (3) the gradients are back-propagated through the logical computational graph, and the weights of the neural model are changed so the knowledge base is maximally satisfied. LTNtorch is the fully documented and tested PyTorch implementation of Logic Tensor Networks. This paper presents the formalization of LTN and how LTNtorch implements it. Moreover, it provides a basic binary classification example.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 2 of its 5 references that are in the map. First posted on arXiv 24 Sep 2024.
Builds on
2 of 5 references.
References · 2
- 2020Logic Tensor Networkscited by 197
- 2020Analyzing Differentiable Fuzzy Logic Operatorscited by 100
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Integrating Background Knowledge in Medical Semantic Segmentation with Logic Tensor Networkscited by 2
- 2025SymDQN: Symbolic Knowledge and Reasoning in Neural Network-based Reinforcement Learningcited by 0
- 2026Concise and Logically Consistent Conformal Sets for Neuro-Symbolic Concept-Based Modelscited by 0
- 2026sLTN: Structural Logic Tensor Networkscited by 0
- 2026sLTN: Structural Logic Tensor Networks11 Aug 2026
- 2026Concise and Logically Consistent Conformal Sets for Neuro-Symbolic Concept-Based Models18 May 2026
- 2025Integrating Background Knowledge in Medical Semantic Segmentation with Logic Tensor Networks26 Sep 2025
- 2025SymDQN: Symbolic Knowledge and Reasoning in Neural Network-based Reinforcement Learning3 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Tensor Logic: The Language of AI
- 2026Logic Tensor Network-Enhanced Generative Adversarial Network
- 2025Enhancing Symbolic Machine Learning by Subsymbolic Representations
- 2026Implementing Tensor Logic: Unifying Datalog and Neural Reasoning via Tensor Contraction
- 2023Continual Reasoning: Non-Monotonic Reasoning in Neurosymbolic AI using Continual Learning
- 2025Categorical Construction of Logically Verifiable Neural Architectures
- 2024Sisteme Hibride de Invatare Automata si Aplicatii
- 2025Standard Neural Computation Alone Is Insufficient for Logical Intelligence