R1-Code-Interpreter: LLMs Reason with Code via Supervised and Multi-stage Reinforcement Learning
MIT / Harvard(麻省理工学院/哈佛大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Michigan(密歇根大学);MIT(麻省理工学院);University of Wisconsin–Madison(威斯康星大学麦迪逊分校);MIT-IBM Watson AI Lab(麻省理工-IBM沃森人工智能实验室);Harvard(哈佛大学)
Yongchao Chen, Yueying Liu, Junwei Zhou, Yilun Hao, Jingquan Wang, Yang Zhang, Na Li, Chuchu Fan
Practical guidance on training Large Language Models (LLMs) to leverage Code Interpreter across diverse tasks remains lacking. We present R1-Code-Interpreter, an extension of a text-only LLM trained via multi-turn supervised fine-tuning (SFT) and reinforcement learning (RL) to autonomously generate multiple code queries during step-by-step reasoning. Unlike prior RL + tool-use efforts focused on narrow domains such as math or retrieval, we curate 144 diverse reasoning and planning tasks and show that training a general-purpose Code Interpreter across them presents significant challenges due to task heterogeneity and scarcity of effective samples. To address this, we introduce a multi-stage curriculum learning approach that partitions training samples by measured improvement potential. The RL training prioritizes samples with higher potential and gradually shifts to lower-potential ones, increasing the average RL gains from merely +3.4% to +9.3% across Qwen-2.5 models (3/7/14B). Our final model, R1-CI-14B, improves average accuracy on the 37 test tasks from 44.1% to 72.4%, outperforming text-only GPT-4o (58.6%) and GPT-4o with Code Interpreter (70.9%). Notably, R1-CI-14B also exhibits emergent self-checking behavior through code generation. Datasets, Codes, and Models are available at https://github.com/yongchao98/R1-Code-Interpreter and https://huggingface.co/yongchao98.
Exploring Extrinsic and Intrinsic Properties for Effective Reasoning with Code Interpreter
Vidyasirimedhi Institute of Science and Technology(维达亚希米科技学院);Kasetsart University(科琼大学);SCB 10X;King Mongkut’s University of Technology Thonburi(朱拉隆功技术大学泰竹分校);Department of Computer Engineering Chulalongkorn Univesity(朱拉隆功大学计算机工程系);Cohere;AI Singapore(AI新加坡)
Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification
The Chinese University of Hong Kong(香港中文大学);Nanjing University(南京大学);University of Science and Technology of China(中国科学技术大学);Tsinghua University(清华大学);City University of Hong Kong(香港城市大学);Changsha University of Science and Technology(长沙理工大学);Tufts University(塔夫茨大学)
An Efficient and Precise Training Data Construction Framework for Process-supervised Reward Model in Mathematical Reasoning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Beyond the Trade-off: Self-Supervised Reinforcement Learning for Reasoning Models' Instruction Following
Shanghai Key Laboratory of Data Science, College of Computer Science and Artificial Intelligence, Fudan University(上海数据科学关键实验室,计算机科学与人工智能学院,复旦大学);School of Data Science, Fudan University(数据科学学院,复旦大学);Ant Group(蚂蚁集团)
Knowledge Graph Reasoning with Self-supervised Reinforcement Learning
School of Information and Electronics, Beijing Institute of Technology(北京理工大学信息与电子学院);University of Central Florida(中佛罗里达大学);Google(谷歌公司);Apple(苹果公司);Orby AI(Orby AI公司)
SRFT: A Single-Stage Method with Supervised and Reinforcement Fine-Tuning for Reasoning
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Meituan(美团);Shanghai Jiao Tong University(上海交通大学)
RASFT: Rollout-Adaptive Supervised Fine-Tuning for Reasoning
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);New Jersey Institute of Technology(新泽西理工学院);Institute of Computing Technology, CAS(中国科学院计算技术研究所)
Self-supervised Hierarchical Visual Reasoning with World Model
Department of Electronic Engineering and Information Science, University of Science and Technology of China(电子工程与信息科学系,中国科学技术大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Center(人工智能研究院,合肥综合性国家科学中心)
Eliciting Medical Reasoning with Knowledge-enhanced Data Synthesis: A Semi-Supervised Reinforcement Learning Approach
College of Computer Science and Artificial Intelligence, Fudan University(复旦大学计算机科学与技术学院);Shanghai AI Laboratory(上海人工智能实验室);CMIC, Shanghai Jiao Tong University(上海交通大学CMIC);School of Artificial Intelligence, Shanghai Jiao Tong University(上海交通大学人工智能学院);Department of Radiology, Shanghai Sixth People’s Hospital Affiliated to Shanghai Jiao Tong University School of Medicine(上海交通大学医学院附属第六人民医院放射科);Institute of Artificial Intelligence for Medicine, Shanghai Jiao Tong University School of Medicine(上海交通大学医学院人工智能医学研究所)
Attention as a Compass: Efficient Exploration for Process-Supervised RL in Reasoning Models
Tsinghua University(清华大学);Kuaishou Technology(快手科技);Shanghai Jiao Tong University(上海交通大学);The University of Hong Kong(香港大学);Beijing University of Posts and Telecommunications(北京邮电大学)
InternLM-Math: Open Math Large Language Models Toward Verifiable Reasoning
Shanghai AI Laboratory(上海人工智能实验室);Fudan University(复旦大学);University of Southern California(南加州大学);Shanghai Jiaotong University(上海交通大学);Tsinghua University(清华大学)