paper-with-me

Papers

Teaching Algorithmic Reasoning via In-context Learning

2022-11-15 · Hattie Zhou, Azade Nova, Hugo Larochelle, Aaron Courville, Behnam Neyshabur, Hanie Sedghi

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 approach on a variety of arithmetic and quantitative reasoning tasks, and demonstrate significant boosts in performance over existing prompting techniques. In particular, for long parity, addition, multiplication and subtraction, we achieve an error reduction of approximately 10x, 9x, 5x and 2x respectively compared to the best available baselines.

📄 PDF Abstract BibTeX arXiv:2211.09066

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context Learning

Similar Papers 제목 키워드 기반

Teaching LLM to Reason: Reinforcement Learning from Algorithmic Problems without Code

2025-07-10 · Keqin Bao, Nuo Chen, Xiaoyuan Li, Binyuan Hui 외 arxiv

Enhancing reasoning capabilities remains a central focus in the LLM reasearch community. A promising direction involves requiring models to simulate code execution step-by-step to derive outputs for given inputs. However…

Reinforcement LearningLogical Reasoning

Non-Clashing Teaching in Graphs: Algorithms, Complexity, and Bounds

2026-01-31 · Sujoy Bhore, Liana Khazaliya, Fionn Mc Inerney arxiv

Kirkpatrick et al. [ALT 2019] and Fallat et al. [JMLR 2023] introduced non-clashing teaching and proved that it is the most efficient batch machine teaching model satisfying the collusion-avoidance benchmark established …

KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems

2025-09-17 · Stjepan Požgaj, Dobrik Georgiev, Marin Šilić, Petar Veličković arxiv

Neural algorithmic reasoning (NAR) is a growing field that aims to embed algorithmic logic into neural networks by imitating classical algorithms. In this extended abstract, we detail our attempt to build a neural algori…

Adaptive Teaching of Temporal Logic Formulas to Learners with Preferences

2020-01-27 · Zhe Xu, Yuxin Chen, Ufuk Topcu

Machine teaching is an algorithmic framework for teaching a target hypothesis via a sequence of examples or demonstrations. We investigate machine teaching for temporal logic formulas -- a novel and expressive hypothesis…

Learning to Reason via Program Generation, Emulation, and Search

2024-05-25 · Nathaniel Weir, Muhammad Khalifa, Linlu Qiu, Orion Weller 외

Program synthesis with language models (LMs) has unlocked a large set of reasoning abilities; code-tuned LMs have proven adept at generating programs that solve a wide variety of algorithmic symbolic manipulation tasks (…

Code GenerationIn-Context LearningProgram Synthesis