paper-with-me

Papers

When Do Program-of-Thoughts Work for Reasoning?

2023-08-29 · Zhen Bi, Ningyu Zhang, Yinuo Jiang, Shumin Deng, Guozhou Zheng, Huajun Chen

In the realm of embodied artificial intelligence, the reasoning capabilities of Large Language Models (LLMs) play a pivotal role. Although there are effective methods like program-of-thought prompting for LLMs which uses programming language to tackle complex reasoning tasks, the specific impact of code data on the improvement of reasoning capabilities remains under-explored. To address this gap, we propose complexity-impacted reasoning score (CIRS), which combines structural and logical attributes, to measure the correlation between code and reasoning abilities. Specifically, we use the abstract syntax tree to encode the structural information and calculate logical complexity by considering the difficulty and the cyclomatic complexity. Through an empirical analysis, we find not all code data of complexity can be learned or understood by LLMs. Optimal level of complexity is critical to the improvement of reasoning abilities by program-aided prompting. Then we design an auto-synthesizing and stratifying algorithm, and apply it to instruction generation for mathematical reasoning and code data filtering for code generation tasks. Extensive results demonstrates the effectiveness of our proposed approach. Code will be integrated into the EasyInstruct framework at https://github.com/zjunlp/EasyInstruct.

📄 PDF Abstract BibTeX arXiv:2308.15452

Code (1)

zjunlp/easyinstruct 공식 구현

Tasks

Code GenerationMathematical Reasoning

Similar Papers 제목 키워드 기반

Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Tasks

2022-11-22 · Wenhu Chen, Xueguang Ma, Xinyi Wang, William W. Cohen

Recently, there has been significant progress in teaching language models to perform step-by-step reasoning to solve complex numerical reasoning tasks. Chain-of-thoughts prompting (CoT) is by far the state-of-art method …

Math

How Well Can Reasoning Models Identify and Recover from Unhelpful Thoughts?

2025-06-12 · Sohee Yang, Sang-Woo Lee, Nora Kassner, Daniela Gottesman 외

Recent reasoning models show the ability to reflect, backtrack, and self-validate their reasoning, which is crucial in spotting mistakes and arriving at accurate solutions. A natural question that arises is how effective…

Mining Hidden Thoughts from Texts: Evaluating Continual Pretraining with Synthetic Data for LLM Reasoning

2025-05-15 · Yoichi Ishibashi, Taro Yano, Masafumi Oyamada

Large Language Models (LLMs) have demonstrated significant improvements in reasoning capabilities through supervised fine-tuning and reinforcement learning. However, when training reasoning models, these approaches are p…

Continual PretrainingMMLU

Plan, Verify and Switch: Integrated Reasoning with Diverse X-of-Thoughts

2023-10-23 · Tengxiao Liu, Qipeng Guo, Yuqing Yang, Xiangkun Hu 외

As large language models (LLMs) have shown effectiveness with different prompting methods, such as Chain of Thought, Program of Thought, we find that these methods have formed a great complementarity to each other on mat…

Logical ReasoningMath

Scalable Chain of Thoughts via Elastic Reasoning

2025-05-08 · Yuhui Xu, Hanze Dong, Lei Wang, Doyen Sahoo 외

Large reasoning models (LRMs) have achieved remarkable progress on complex tasks by generating extended chains of thought (CoT). However, their uncontrolled output lengths pose significant challenges for real-world deplo…