[2304.10464] Learning to Program with Natural Language
Large Language Models (LLMs) have shown remarkable performance in various basic natural language tasks, which raises hopes for achieving Artificial General Intelligence. To better complete complex tasks, we need LLMs to program for the task and then follow the program to generate a specific solution for the test sample. We propose using natural language as a new programming language to describe task procedures, making them easily understandable to both humans and LLMs. LLMs are capable of directly generating natural language programs, but these programs may still contain factual errors or incomplete steps. Therefore, we further propose the Learning to Program (LP) method to ask LLMs themselves to learn natural language programs from the training dataset of complex tasks and then use the learned program to guide inference. Our experiments on the AMPS (high school math) and Math (competition mathematics problems) datasets demonstrate the effectiveness of our approach. When testing ChatGPT on 10 tasks from the AMPS dataset, our LP method's average performance outperformed the direct zero-shot test performance by 18.3$\%$. We release our code at \url{this https URL}.
Learning to Plan by Updating Natural Language Yiduo Guo1, , Yaobo Liang2 , Chenfei Wu2 , Wenshan Wu2 , Dongyan Zhao1 , Nan Duan2 1 Wangxuan Institute of Computer Technology, Peking University 2 Microsoft Research Asia…
related reading
- Language Models can Solve Computer Tasksarxiv.org
- [2201.11903] Chain of Thought Prompting Elicits Reasoning in Large Language Modelsarxiv.org
- [2005.14165] Language Models are Few-Shot Learnersarxiv.org
- [2510.13786] The Art of Scaling Reinforcement Learning Compute for LLMsarxiv.org
- [2507.19457] GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningarxiv.org
- Program Synthesis with Large Language Modelsarxiv.org
- 2402.07927arxiv.org
- 2401.02415.pdfarxiv.org
- [2602.19362] LLMs Can Learn to Reason Via Off-Policy RLarxiv.org
- 2401.10020.pdfarxiv.org
- 2305.18654arxiv.org
- [2606.10346] Reasoning or Memorization? Direction-Aware Diversity Exploration in LLM Reinforcement Learningarxiv.org