Siamese recurrent networks learn first-order logic reasoning and exhibit zero-shot compositional generalization
Not on the map. Why?
Abstract (arXiv)
Can neural nets learn logic? We approach this classic question with current methods, and demonstrate that recurrent neural networks can learn to recognize first order logical entailment relations between expressions. We define an artificial language in first-order predicate logic, generate a large dataset of sample 'sentences', and use an automatic theorem prover to infer the relation between random pairs of such sentences. We describe a Siamese neural architecture trained to predict the logical relation, and experiment with recurrent and recursive networks. Siamese Recurrent Networks are surprisingly successful at the entailment recognition task, reaching near perfect performance on novel sentences (consisting of known words), and even outperforming recursive networks. We report a series of experiments to test the ability of the models to perform compositional generalization. In particular, we study how they deal with sentences of unseen length, and sentences containing unseen words. We show that set-ups using LSTMs and GRUs obtain high scores on these tests, demonstrating a form of compositionality.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Jun 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 0; 2024: 1.
5 papers.
- 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 97
- 2021The paradox of the compositionality of natural language: a neural machine translation case studycited by 58
- 2021How BPE Affects Memorization in Transformerscited by 29
- 2024Can Models Learn Skill Composition from Examples?cited by 17
- 2022Generalized Quantifiers as a Source of Error in Multilingual NLU Benchmarkscited by 8
- 2024Can Models Learn Skill Composition from Examples?29 Sep 2024
- 2022State-of-the-art generalisation research in NLP: A taxonomy and review6 Oct 2022
- 2022Generalized Quantifiers as a Source of Error in Multilingual NLU Benchmarks22 Apr 2022
- 2021How BPE Affects Memorization in Transformers6 Oct 2021
- 2021The paradox of the compositionality of natural language: a neural machine translation case study12 Aug 2021