A Hybrid System for Systematic Generalization in Simple Arithmetic Problems

Flavio Petruzzellis, Alberto Testolin, Alessandro Sperduti
6/29/2023
cs.NEcs.AI

No official code found. Best implementation: flavio2018/nesy23 (1 star, last commit 2024-07-09).

Abstract

Solving symbolic reasoning problems that require compositionality and systematicity is considered one of the key ingredients of human intelligence. However, symbolic reasoning is still a great challenge for deep learning models, which often cannot generalize the reasoning pattern to out-of-distribution test cases. In this work, we propose a hybrid system capable of solving arithmetic problems that require compositional and systematic reasoning over sequences of symbols. The model acquires such a skill by learning appropriate substitution rules, which are applied iteratively to the input string until the expression is completely resolved. We show that the proposed system can accurately solve nested arithmetical expressions even when trained only on a subset including the simplest cases, significantly outperforming both a sequence-to-sequence model trained end-to-end and a state-of-the-art large language model.

View on arXivView PDF

Code Implementations(1)

flavio2018/nesy23Community100%

Code for the paper "A Hybrid System for Systematic Generalization in Simple Arithmetic Problems"

10PythonMar 23, 20232 years ago

Cite this paper

@article{petruzzellis2023hybrid,
  title  = {A Hybrid System for Systematic Generalization in Simple Arithmetic Problems},
  author = {Flavio Petruzzellis and Alberto Testolin and Alessandro Sperduti},
  year   = {2023},
  eprint = {2306.17249},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.17249v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.17249.svg)](https://codeofpaper.com/paper/2306.17249)

Discussion