Teaching Algorithmic Reasoning via In-context Learning
Hattie Zhou, Azade Nova, Hugo Larochelle, Aaron Courville, Behnam, Neyshabur, Hanie Sedghi

TL;DR
This paper demonstrates that in-context learning, through a structured approach called algorithmic prompting, can significantly improve large language models' ability to perform complex algorithmic reasoning tasks such as arithmetic and parity, by teaching skills and their composition.
Contribution
The authors introduce a novel in-context learning method called algorithmic prompting that systematically teaches multiple algorithmic skills and their composition to LLMs, enhancing reasoning capabilities.
Findings
Achieved approximately 10x error reduction in long parity tasks.
Demonstrated significant performance improvements in addition, multiplication, and subtraction.
Validated the effectiveness of skill-based teaching for complex reasoning in LLMs.
Abstract
Large language models (LLMs) have shown increasing in-context learning capabilities through scaling up model and data size. Despite this progress, LLMs are still unable to solve algorithmic reasoning problems. While providing a rationale with the final answer has led to further improvements in multi-step reasoning problems, Anil et al. 2022 showed that even simple algorithmic reasoning tasks such as parity are far from solved. In this work, we identify and study four key stages for successfully teaching algorithmic reasoning to LLMs: (1) formulating algorithms as skills, (2) teaching multiple skills simultaneously (skill accumulation), (3) teaching how to combine skills (skill composition) and (4) teaching how to use skills as tools. We show that it is possible to teach algorithmic reasoning to LLMs via in-context learning, which we refer to as algorithmic prompting. We evaluate our…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
#91 - HATTIE ZHOU - Teaching Algorithmic Reasoning via In-context Learning #NeurIPS· youtube
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Text Readability and Simplification
