paper-with-me

Papers

Distilling Algorithmic Reasoning from LLMs via Explaining Solution Programs

2024-04-11 · Jierui Li, Raymond Mooney

Distilling explicit chain-of-thought reasoning paths has emerged as an effective method for improving the reasoning abilities of large language models (LLMs) across various tasks. However, when tackling complex tasks that pose significant challenges for state-of-the-art models, this technique often struggles to produce effective chains of thought that lead to correct answers. In this work, we propose a novel approach to distill reasoning abilities from LLMs by leveraging their capacity to explain solutions. We apply our method to solving competitive-level programming challenges. More specifically, we employ an LLM to generate explanations for a set of <problem, solution-program> pairs, then use <problem, explanation> pairs to fine-tune a smaller language model, which we refer to as the Reasoner, to learn algorithmic reasoning that can generate "how-to-solve" hints for unseen problems. Our experiments demonstrate that learning from explanations enables the Reasoner to more effectively guide program implementation by a Coder, resulting in higher solve rates than strong chain-of-thought baselines on competitive-level programming problems. It also outperforms models that learn directly from <problem, solution-program> pairs. We curated an additional test set in the CodeContests format, which includes 246 more recent problems posted after the models' knowledge cutoff.

📄 PDF Abstract BibTeX arXiv:2404.08148

Code (0)

등록된 구현이 없습니다.

Tasks

Language Modelling

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Reasoning Scaffolding: Distilling the Flow of Thought from LLMs

2025-09-28 · Xiangyu Wen, Junhua Huang, Zeju Li, Min Li 외 arxiv

The prevailing approach to distilling reasoning from Large Language Models (LLMs)-behavioral cloning from textual rationales-is fundamentally limited. It teaches Small Language Models (SLMs) to mimic surface-level patter…

Deep Distilling: automated code generation using explainable deep learning

2021-11-16 · Paul J. Blazek, Kesavan Venkatesh, Milo M. Lin

Human reasoning can distill principles from observed patterns and generalize them to explain and solve novel problems. The most powerful artificial intelligence systems lack explainability and symbolic reasoning ability,…

Code GenerationCommon Sense ReasoningDeep Learning

AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming

2025-07-21 · Jierui Li, Raymond Mooney arxiv

Recent reasoning-enhanced Large Language Models (LLMs) have achieved promising results in solving complex competitive programming problems. However, it remains unclear whether these reasoning abilities generalize to rele…

Explaining Puzzle Solutions in Natural Language: An Exploratory Study on 6x6 Sudoku

2025-05-21 · Anirudh Maiya, Razan Alghamdi, Maria Leonor Pacheco, Ashutosh Trivedi 외

The success of Large Language Models (LLMs) in human-AI collaborative decision-making hinges on their ability to provide trustworthy, gradual, and tailored explanations. Solving complex puzzles, such as Sudoku, offers a …

Decision Making

LogicPro: Improving Complex Logical Reasoning via Program-Guided Learning

2024-09-19 · Jin Jiang, Yuchen Yan, Yang Liu, Yonggang Jin 외

In this paper, we present a novel approach, called LogicPro, to enhance Large Language Models (LLMs) complex Logical reasoning through Program Examples. We do this effectively by simply utilizing widely available algorit…

GSM8KLogical ReasoningRTE