MetaRuleGPT: Recursive Numerical Reasoning of Language Models Trained with Simple Rules
Kejie Chen, Lin Wang, Qinghai Zhang, Renjun Xu
TL;DR
MetaRuleGPT tackles the challenge of numerical reasoning in LLMs by learning and composing simple arithmetic and logical rules through a Transformer-based architecture. It uses a rule-based, iterative approach with components such as VeriGate and RefeedFormatter to breakdown problems and ensure accuracy. The paper demonstrates, on arithmetic and vector cross-product tasks, that rule learning can outperform traditional CoT-based reasoning and large baselines, achieving robust 100% accuracy on challenging high-digit problems with a relatively small parameter count. This work suggests that structured rule-learning can significantly enhance numerical reasoning and generalization in language models, with potential for broader mathematical tasks.
Abstract
Recent studies have highlighted the limitations of large language models in mathematical reasoning, particularly their inability to capture the underlying logic. Inspired by meta-learning, we propose that models should acquire not only task-specific knowledge but also transferable problem-solving skills. We introduce MetaRuleGPT, a novel Transformer-based architecture that performs precise numerical calculations and complex logical operations by learning and combining different rules. In contrast with traditional training sets, which are heavily composed of massive raw instance data, MetaRuleGPT is pre-trained on much less abstract datasets containing basic, compound, and iterative rules for mathematical reasoning. Extensive experimental results demonstrate MetaRuleGPT can mimic human's rule-following capabilities, break down complexity, and iteratively derive accurate results for complex mathematical problems. These findings prove the potential of rule learning to enhance the numerical reasoning abilities of language models.
