Paper

Towards Learning to Reason: Comparing LLMs with Neuro-Symbolic on Arithmetic Relations in Abstract Reasoning

Abstract

This work compares large language models (LLMs) and neuro-symbolic approaches in solving Raven's progressive matrices (RPM), a visual abstract reasoning test that involves the understanding of mathematical rules such as progression or arithmetic addition. Providing the attributes directly as textual prompts, which assumes a perfect visual perception, allows us to measure the model's abstract reasoning capability in isolation. Despite providing such compositionally structured representation and advanced prompting techniques, both GPT-4 and Llama-3 70B cannot achieve perfect accuracy on the \texttt{center} constellation of the I-RAVEN dataset. Our analysis reveals that the root cause lies in the LLM's weakness in understanding and executing arithmetic rules. As a potential remedy, we introduce the Abductive Rule Learner with Context-awareness (ARLC), a neuro-symbolic approach that \textit{learns to reason} with distributed vector-symbolic architectures (VSAs) representations and operators. We find that \name achieves almost perfect accuracy on the \texttt{center} constellation of I-RAVEN, demonstrating also a high fidelity in arithmetic rules. To stress the length generalization capabilities of the models, we extend the RPM tests to larger matrices (3×\times10 instead of typical 3×\times3) and larger dynamic ranges of the attribute values (from 10 up to 1000). We find that the LLM's accuracy of solving arithmetic rules drops to sub-10%, especially as the dynamic range expands, while ARLC can maintain a high accuracy due to emulating symbolic computations on top of properly distributed representations.