Saved in:
Bibliographic Details
Main Authors: Zhao, Yuze, Ji, Tianyun, Feng, Wenjun, Huang, Zhenya, Liu, Qi, Liu, Zhiding, Ma, Yixiao, Zhang, Kai, Chen, Enhong
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.13170
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909511615250432
author Zhao, Yuze
Ji, Tianyun
Feng, Wenjun
Huang, Zhenya
Liu, Qi
Liu, Zhiding
Ma, Yixiao
Zhang, Kai
Chen, Enhong
author_facet Zhao, Yuze
Ji, Tianyun
Feng, Wenjun
Huang, Zhenya
Liu, Qi
Liu, Zhiding
Ma, Yixiao
Zhang, Kai
Chen, Enhong
contents The reasoning abilities are one of the most enigmatic and captivating aspects of large language models (LLMs). Numerous studies are dedicated to exploring and expanding the boundaries of this reasoning capability. However, tasks that embody both reasoning and recall characteristics are often overlooked. In this paper, we introduce such a novel task, code reasoning, to provide a new perspective for the reasoning abilities of LLMs. We summarize three meta-benchmarks based on established forms of logical reasoning, and instantiate these into eight specific benchmark tasks. Our testing on these benchmarks reveals that LLMs continue to struggle with identifying satisfactory reasoning pathways. Additionally, we present a new pathway exploration pipeline inspired by human intricate problem-solving methods. This Reflective Hypothesis Decomposition and Amendment (RHDA) pipeline consists of the following iterative steps: (1) Proposing potential hypotheses based on observations and decomposing them; (2) Utilizing tools to validate hypotheses and reflection outcomes; (3) Revising hypothesis in light of observations. Our approach effectively mitigates logical chain collapses arising from forgetting or hallucination issues in multi-step reasoning, resulting in performance gains of up to $3\times$. Finally, we expanded this pipeline by applying it to simulate complex household tasks in real-world scenarios, specifically in VirtualHome, enhancing the handling of failure cases. We release our code and all of results at https://github.com/TnTWoW/code_reasoning.
format Preprint
id arxiv_https___arxiv_org_abs_2502_13170
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unveiling the Magic of Code Reasoning through Hypothesis Decomposition and Amendment
Zhao, Yuze
Ji, Tianyun
Feng, Wenjun
Huang, Zhenya
Liu, Qi
Liu, Zhiding
Ma, Yixiao
Zhang, Kai
Chen, Enhong
Artificial Intelligence
Machine Learning
The reasoning abilities are one of the most enigmatic and captivating aspects of large language models (LLMs). Numerous studies are dedicated to exploring and expanding the boundaries of this reasoning capability. However, tasks that embody both reasoning and recall characteristics are often overlooked. In this paper, we introduce such a novel task, code reasoning, to provide a new perspective for the reasoning abilities of LLMs. We summarize three meta-benchmarks based on established forms of logical reasoning, and instantiate these into eight specific benchmark tasks. Our testing on these benchmarks reveals that LLMs continue to struggle with identifying satisfactory reasoning pathways. Additionally, we present a new pathway exploration pipeline inspired by human intricate problem-solving methods. This Reflective Hypothesis Decomposition and Amendment (RHDA) pipeline consists of the following iterative steps: (1) Proposing potential hypotheses based on observations and decomposing them; (2) Utilizing tools to validate hypotheses and reflection outcomes; (3) Revising hypothesis in light of observations. Our approach effectively mitigates logical chain collapses arising from forgetting or hallucination issues in multi-step reasoning, resulting in performance gains of up to $3\times$. Finally, we expanded this pipeline by applying it to simulate complex household tasks in real-world scenarios, specifically in VirtualHome, enhancing the handling of failure cases. We release our code and all of results at https://github.com/TnTWoW/code_reasoning.
title Unveiling the Magic of Code Reasoning through Hypothesis Decomposition and Amendment
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2502.13170