Speak It Out:通过符号到语言的转换让语言模型解决符号相关问题
Speak It Out: Solving Symbol-Related Problems with Symbol-to-Language Conversion for Language Models
AI总结:
针对大语言模型符号推理能力不足的问题,提出无需微调的S2L方法,将符号转换为自然语言表示后整合到问题中,在8项任务上验证了其能显著提升模型性能。
摘要:
符号(或更广泛地说,非自然语言文本表示)如数字序列、分子式和表格分隔符广泛存在,在抽象推理、化学性质预测和表格问答等各类任务中发挥着重要作用。尽管大语言模型(LLM)具备令人瞩目的自然语言理解能力,但它们对符号的推理能力仍然不足,这可归因于符号表示与通用自然语言之间的差异。我们提出了符号到语言(S2L)方法,这是一种无需微调的方法,能让大语言模型借助自然语言表达的信息解决符号相关问题。具体而言,S2L首先将涉及的符号转换为基于语言的表示,这可通过提示大语言模型或借助外部工具实现,随后这些基于语言的表示通过直接替换或拼接整合到原始问题中,作为大语言模型的有效输入信息。我们使用基于API的模型(GPT-4、ChatGPT)和开源模型(OpenChat)在8项符号相关任务上评估了S2L方法,任务范围从纯符号抽象推理到社交媒体情感分析。实验结果表明,S2L始终能带来更优的性能。例如,将S2L应用于GPT-4后,1D-ARC和Dyck语言子任务的平均性能分别显著提升了+21.9%和+9.5%。代码和数据可在https://github.com/THUNLP-MT/symbol2language获取。
英文摘要:
Symbols (or more broadly, non-natural language textual representations) such as numerical sequences, molecular formulas, and table delimiters widely exist, playing important roles in various tasks such as abstract reasoning, chemical property prediction, and table question answering. Despite the impressive natural language comprehension capabilities of large language models (LLMs), their reasoning abilities for symbols remain inadequate, which could attributed to the difference between symbol representations and general natural languages. We propose symbol-to-language (S2L), a tuning-free method that enables large language models to solve symbol-related problems with information expressed in natural language. Specifically, S2L first converts the symbols involved to language-based representations, which can be implemented by prompting LLMs or leveraging external tools, then these language-based representations are integrated into the original problem via direct substitution or concatenation, serving as useful input information for LLMs. We evaluate the S2L method using both API-based (GPT-4, ChatGPT) and open-source (OpenChat) models over eight symbol-related tasks, ranging from symbol-only abstract reasoning to sentiment analysis in social media. Experimental results show that S2L consistently leads to superior performance. For example, by employing S2L for GPT-4, there can be average significant improvements of +21.9% and +9.5% for subtasks in 1D-ARC and Dyck language, respectively. Codes and data are available at https://github.com/THUNLP-MT/symbol2language.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。