paper-with-me

홈 › Papers

CodeI/O: Condensing Reasoning Patterns via Code Input-Output Prediction

2025-02-11 · Junlong Li, Daya Guo, Dejian Yang, Runxin Xu, Yu Wu, Junxian He

Reasoning is a fundamental capability of Large Language Models. While prior research predominantly focuses on enhancing narrow skills like math or code generation, improving performance on many other reasoning tasks remains challenging due to sparse and fragmented training data. To address this issue, we propose CodeI/O, a novel approach that systematically condenses diverse reasoning patterns inherently embedded in contextually-grounded codes, through transforming the original code into a code input-output prediction format. By training models to predict inputs/outputs given code and test cases entirely in natural language as Chain-of-Thought (CoT) rationales, we expose them to universal reasoning primitives -- like logic flow planning, state-space searching, decision tree traversal, and modular decomposition -- while decoupling structured reasoning from code-specific syntax and preserving procedural rigor. Experimental results demonstrate CodeI/O leads to consistent improvements across symbolic, scientific, logic, math & numerical, and commonsense reasoning tasks. By matching the existing ground-truth outputs or re-executing the code with predicted inputs, we can verify each prediction and further enhance the CoTs through multi-turn revision, resulting in CodeI/O++ and achieving higher performance. Our data and models are available at https://github.com/hkust-nlp/CodeIO.

📄 PDF Abstract BibTeX arXiv:2502.07316

Code (1)

hkust-nlp/codeio 공식 구현

Tasks

Code GenerationMath

Similar Papers 제목 키워드 기반

CodeIt: Self-Improving Language Models with Prioritized Hindsight Replay

2024-02-07 · Natasha Butt, Blazej Manczak, Auke Wiggers, Corrado Rainone 외

Large language models are increasingly solving tasks that are commonly believed to require human-level reasoning ability. However, these models still perform very poorly on benchmarks of general intelligence such as the …

ARCData AugmentationLanguage ModelingLanguage Modelling+1

OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMs

2025-04-05 · Wasi Uddin Ahmad, Aleksander Ficek, Mehrzad Samadi, Jocelyn Huang 외

Large Language Models (LLMs) have transformed software development by enabling code generation, automated debugging, and complex reasoning. However, their continued advancement is constrained by the scarcity of high-qual…

Code GenerationHumanEvalmbpp

OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement

2024-02-22 · Tianyu Zheng, Ge Zhang, Tianhao Shen, Xueling Liu 외

The introduction of large language models has significantly advanced code generation. However, open-source models often lack the execution capabilities and iterative refinement of advanced systems like the GPT-4 Code Int…

Code GenerationHumanEvalmbpp

CodeInstruct: Empowering Language Models to Edit Code

2023-05-23 · Github 2023 5 · Qisheng Hu*, Kaixin Li*, Xu Zhao, Yuxi Xie 외

Code editing encompasses a variety of pragmatic tasks that developers deal with daily. Despite its relevance and practical usefulness, automatic code editing remains an underexplored area in the evolution of deep learnin…

Diversity

CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generation

2025-03-05 · Peiding Wang, Li Zhang, Fang Liu, Lin Shi 외

Large Language Models (LLMs) have demonstrated exceptional performance in code generation tasks and have become indispensable programming assistants for developers. However, existing code generation benchmarks primarily …

Code GenerationInstruction Following