Saved in:
Bibliographic Details
Main Authors: Yang, Ke, Liu, Jiateng, Wu, John, Yang, Chaoqi, Fung, Yi R., Li, Sha, Huang, Zixuan, Cao, Xu, Wang, Xingyao, Wang, Yiquan, Ji, Heng, Zhai, Chengxiang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2401.00812
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910289743577088
author Yang, Ke
Liu, Jiateng
Wu, John
Yang, Chaoqi
Fung, Yi R.
Li, Sha
Huang, Zixuan
Cao, Xu
Wang, Xingyao
Wang, Yiquan
Ji, Heng
Zhai, Chengxiang
author_facet Yang, Ke
Liu, Jiateng
Wu, John
Yang, Chaoqi
Fung, Yi R.
Li, Sha
Huang, Zixuan
Cao, Xu
Wang, Xingyao
Wang, Yiquan
Ji, Heng
Zhai, Chengxiang
contents The prominent large language models (LLMs) of today differ from past language models not only in size, but also in the fact that they are trained on a combination of natural language and formal language (code). As a medium between humans and computers, code translates high-level goals into executable steps, featuring standard syntax, logical consistency, abstraction, and modularity. In this survey, we present an overview of the various benefits of integrating code into LLMs' training data. Specifically, beyond enhancing LLMs in code generation, we observe that these unique properties of code help (i) unlock the reasoning ability of LLMs, enabling their applications to a range of more complex natural language tasks; (ii) steer LLMs to produce structured and precise intermediate steps, which can then be connected to external execution ends through function calls; and (iii) take advantage of code compilation and execution environment, which also provides diverse feedback for model improvement. In addition, we trace how these profound capabilities of LLMs, brought by code, have led to their emergence as intelligent agents (IAs) in situations where the ability to understand instructions, decompose goals, plan and execute actions, and refine from feedback are crucial to their success on downstream tasks. Finally, we present several key challenges and future directions of empowering LLMs with code.
format Preprint
id arxiv_https___arxiv_org_abs_2401_00812
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents
Yang, Ke
Liu, Jiateng
Wu, John
Yang, Chaoqi
Fung, Yi R.
Li, Sha
Huang, Zixuan
Cao, Xu
Wang, Xingyao
Wang, Yiquan
Ji, Heng
Zhai, Chengxiang
Computation and Language
The prominent large language models (LLMs) of today differ from past language models not only in size, but also in the fact that they are trained on a combination of natural language and formal language (code). As a medium between humans and computers, code translates high-level goals into executable steps, featuring standard syntax, logical consistency, abstraction, and modularity. In this survey, we present an overview of the various benefits of integrating code into LLMs' training data. Specifically, beyond enhancing LLMs in code generation, we observe that these unique properties of code help (i) unlock the reasoning ability of LLMs, enabling their applications to a range of more complex natural language tasks; (ii) steer LLMs to produce structured and precise intermediate steps, which can then be connected to external execution ends through function calls; and (iii) take advantage of code compilation and execution environment, which also provides diverse feedback for model improvement. In addition, we trace how these profound capabilities of LLMs, brought by code, have led to their emergence as intelligent agents (IAs) in situations where the ability to understand instructions, decompose goals, plan and execute actions, and refine from feedback are crucial to their success on downstream tasks. Finally, we present several key challenges and future directions of empowering LLMs with code.
title If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents
topic Computation and Language
url https://arxiv.org/abs/2401.00812