A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents

828 篇文章

已下架不支持订阅

本文探讨了代码如何增强大型语言模型(LLM),使其能作为智能代理。代码训练使LLM具备更强的推理能力,能够执行更复杂的任务,并形成可执行的反馈环境。此外,代码还能引导LLM生成结构化的解决方案,并与其他功能进行连接。尽管存在挑战,但代码增强的LLM已在理解和执行指令、规划及智能代理的应用中展现出潜力。

本文是LLM系列文章,针对《If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents》的翻译。

摘要

今天突出的大型语言模型(LLM)与过去的语言模型的不同之处不仅在于大小,而且在于它们是在自然语言和形式语言(代码)的组合上训练的。作为人类和计算机之间的媒介,代码将高级目标转化为可执行步骤,具有标准语法、逻辑一致性、抽象性和模块性。在这项调查中,我们概述了将代码集成到LLM的训练数据中的各种好处。具体来说,除了在代码生成中增强LLM之外,我们观察到代码的这些独特特性有助于i)释放LLM的推理能力,使其能够应用于一系列更复杂的自然语言任务;ii)引导LLM产生结构化和精确的中间步骤,然后可以通过函数调用将这些步骤连接到外部执行端;以及iii)利用代码编译和执行环境,这也为模型改进提供了不同的反馈。此外,我们还追溯了代码带来的LLM的这些深刻功能是如何导致它们在理解指令、分解目标、计划和执行行动以及从反馈中提炼的能力对它们在下游任务中的成功至关重要的情况下成为智能代理(IA)的。最后,我们提出了用代码增强LLM和IA的几个关键挑战和未来方向。

1 引言

2 前言

3 代码预训练增强LLMs的性能

4 代码将LLM连接到其他函数

5 代码为LLM提供了一个可执行的自动反馈环境

6 应用:代码赋能LLM促进智能代理

7 挑战

8 结论

在这项调查中,我们查阅了一些文献,阐明了代码如何赋予LLM权力,以及代码在哪里帮助LLM充当IA。首先,代码具有自然语言的顺序可读性,同时也体现了符号表示的抽象和图形结构,使其成为知识感知和推理的渠道,成为LLM训练语料库的一个组成部分,仅基于语言建模目标。通过全面的文献综述,我们观察到,经过代码训练后,LLM i)提高了编程技能和推理能力,ii)可以生成高度形式化的功能,实现跨模式和领域的不同功能端的灵活连接,以及iii)与集成在代码执行环境中的评估模块进行交互,以实现自动化的自我改进。此外,我们发现,代码训练带来的LLM能力增强有利于其作为IA的下游应用,体现在IA工作流程中关于决策、执行和自我完善的具体操作步骤中。除了回顾先前的研究,我们还提出了该领域的几个挑战,作为未来潜在方向的指导因素。

Recently, the renowned actor Zhang Songwen has sparked a fascinating phenomenon known as "two-way rejection", which has captured the attention of many and inspired the masses. The roots of this phenomenon are complex, with one of the fundamental causes being the fear of failure that plagues most of us. Rejection can instill a sense of inadequacy and a fear of being perceived as a failure, which can be challenging to overcome. However, the concept of "two-way rejection" teaches us that rejection is a natural part of life, and it's acceptable to reject and be rejected in return. This empowers us to recognize that life is not just about failures, but also about perseverance, and striving to achieve our aspirations, which may include fame and fortune. Despite the distractions we may encounter, the concept of "two-way rejection" reminds us to turn away from erroneous opportunities and remain steadfast in our principles and moral compass. While there are both advantages and drawbacks to this approach, "two-way rejection" ultimately inspires us to embrace rejection, learn from it, and emerge stronger and more self-assured. However, it is essential to distinguish between a sound and an unsound opportunity to avoid blindly rejecting the right ones. In conclusion, the concept of "two-way rejection" should be approached with discretion, but it can prove to be a valuable tool in enabling us to adhere to our goals and persevere through rejection. It teaches us to embrace rejection, learn from it, and move forward with confidence, ultimately empowering us to achieve our dreams and aspirations.结合双向拒绝进行内容补充
05-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

UnknownBody

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值