arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18439cs.CLcs.AI
收藏

超越自然语言:大语言模型利用替代格式增强推理与通信能力

Beyond Natural Language: LLMs Leveraging Alternative Formats for Enhanced Reasoning and Communication

Tsinghua University(清华大学);Beijing University of Posts and Telecommunications(北京邮电大学);Tencent(腾讯)

Weize Chen, Chenfei Yuan, Jiarui Yuan, Yusheng Su, Chen Qian, Cheng Yang, Ruobing Xie, Zhiyuan Liu, Maosong Sun

AI总结:

该研究挑战大语言模型默认使用自然语言的模式,提出让模型自主选择推理与通信格式,可显著提升推理效率、降低多智能体通信token消耗,且设计的格式具备跨模型迁移性。

摘要:

长期以来,自然语言(NL)一直是人类认知与交流的主导形式,相应地,它在大语言模型(LLMs)的开发与应用中也同样占据核心地位。然而,除自然语言外,LLMs在预训练阶段还接触过代码、逻辑表达式等多种非自然语言格式。自然语言作为LLMs最优格式的地位——尤其是在单LLM推理和多智能体通信场景中——尚未得到充分验证。\n在本研究中,我们对默认使用自然语言的做法提出挑战,探索了非自然语言格式在上述场景中的效用。研究表明,让LLMs在推理或通信前自主选择最合适的格式,可使不同LLMs的推理效率提升3.3%至5.7%,在多智能体通信中token使用量最多降低72.7%,同时还能保持通信有效性。\n我们的综合分析进一步发现,LLMs能依据有限的任务指令设计出一种格式,且该设计出的格式可在不同LLMs间有效迁移。有意思的是,LLMs自主确定的结构化通信格式与已有的智能体通信语言存在显著相似性,这表明智能体通信正朝着高效结构化通信的方向自然演进。我们的代码已发布于https://github.com/thunlp/AutoForm。

英文摘要:

Natural language (NL) has long been the predominant format for human cognition and communication, and by extension, has been similarly pivotal in the development and application of Large Language Models (LLMs). Yet, besides NL, LLMs have seen various non-NL formats during pre-training, such as code and logical expression. NL's status as the optimal format for LLMs, particularly in single-LLM reasoning and multi-agent communication, has not been thoroughly examined. In this work, we challenge the default use of NL by exploring the utility of non-NL formats in these contexts. We show that allowing LLMs to autonomously select the most suitable format before reasoning or communicating leads to a 3.3 to 5.7\% improvement in reasoning efficiency for different LLMs, and up to a 72.7\% reduction in token usage in multi-agent communication, all while maintaining communicative effectiveness. Our comprehensive analysis further reveals that LLMs can devise a format from limited task instructions and that the devised format is effectively transferable across different LLMs. Intriguingly, the structured communication format decided by LLMs exhibits notable parallels with established agent communication languages, suggesting a natural evolution towards efficient, structured communication in agent communication. Our code is released at \url{https://github.com/thunlp/AutoForm}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑