[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
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- As Rocks May Think | Eric Jangevjang.com
- [2201.11903] Chain of Thought Prompting Elicits Reasoning in Large Language Modelsarxiv.org
- Program Synthesis with Large Language Modelsarxiv.org
- Productizing Large Language Modelsblog.replit.com
- [2201.07207] Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentsarxiv.org
- [2005.14165] Language Models are Few-Shot Learnersarxiv.org
- 2408.11326arxiv.org
- crawshaw - 2025-01-06crawshaw.io
- 2310.10631arxiv.org
- Can LLMs Be Computers?percepta.ai