Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhang, Kechi, Li, Ge, Li, Jia, Zhang, Huangzhao, Xu, Jingjing, Zhu, Hao, Wang, Lecheng, Dong, Yihong, Mai, Jing, Gu, Bin, Jin, Zhi
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:https://arxiv.org/abs/2506.02658
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916777213034496
author Zhang, Kechi
Li, Ge
Li, Jia
Zhang, Huangzhao
Xu, Jingjing
Zhu, Hao
Wang, Lecheng
Li, Jia
Dong, Yihong
Mai, Jing
Gu, Bin
Jin, Zhi
author_facet Zhang, Kechi
Li, Ge
Li, Jia
Zhang, Huangzhao
Xu, Jingjing
Zhu, Hao
Wang, Lecheng
Li, Jia
Dong, Yihong
Mai, Jing
Gu, Bin
Jin, Zhi
contents While large language models (LLMs) have demonstrated remarkable reasoning capabilities, they often struggle with complex tasks that require specific thinking paradigms, such as divide-and-conquer and procedural deduction, \etc Previous researches integrate external, reliable tools to alleviate logical inconsistencies and hallucinations in LLMs' problem-solving processes. However, we argue that the root challenge is more profound: LLMs lack the complex thinking paradigms (\ie, computational thinking) during reasoning. In this paper, we propose Computational Thinking Model (CTM), a novel framework that incorporates computational thinking paradigms into LLMs. This framework enables LLMs to reformulate complex problems through decomposition, abstraction, reduction, and simulation, among other techniques. Specifically, live code execution is seamlessly integrated into the reasoning process, allowing CTM to think by computing. CTM directly instills computational thinking objectives into LLMs through tailored reinforcement learning rewards, which encourages problem simplification, modular planning, and iterative verification. We conduct extensive evaluations on multiple code generation and mathematical benchmarks. The results demonstrate that CTM outperforms conventional reasoning models and tool-augmented baselines in terms of accuracy, interpretability, and generalizability. We hope this study offers valuable insights for AI reasoning, where LLMs can transform problems into robust, verifiable, and scalable computational workflows, much like computer scientists do.
format Preprint
id arxiv_https___arxiv_org_abs_2506_02658
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Computational Thinking Reasoning in Large Language Models
Zhang, Kechi
Li, Ge
Li, Jia
Zhang, Huangzhao
Xu, Jingjing
Zhu, Hao
Wang, Lecheng
Li, Jia
Dong, Yihong
Mai, Jing
Gu, Bin
Jin, Zhi
Software Engineering
While large language models (LLMs) have demonstrated remarkable reasoning capabilities, they often struggle with complex tasks that require specific thinking paradigms, such as divide-and-conquer and procedural deduction, \etc Previous researches integrate external, reliable tools to alleviate logical inconsistencies and hallucinations in LLMs' problem-solving processes. However, we argue that the root challenge is more profound: LLMs lack the complex thinking paradigms (\ie, computational thinking) during reasoning. In this paper, we propose Computational Thinking Model (CTM), a novel framework that incorporates computational thinking paradigms into LLMs. This framework enables LLMs to reformulate complex problems through decomposition, abstraction, reduction, and simulation, among other techniques. Specifically, live code execution is seamlessly integrated into the reasoning process, allowing CTM to think by computing. CTM directly instills computational thinking objectives into LLMs through tailored reinforcement learning rewards, which encourages problem simplification, modular planning, and iterative verification. We conduct extensive evaluations on multiple code generation and mathematical benchmarks. The results demonstrate that CTM outperforms conventional reasoning models and tool-augmented baselines in terms of accuracy, interpretability, and generalizability. We hope this study offers valuable insights for AI reasoning, where LLMs can transform problems into robust, verifiable, and scalable computational workflows, much like computer scientists do.
title Computational Thinking Reasoning in Large Language Models
topic Software Engineering
url https://arxiv.org/abs/2506.02658