arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.00757cs.SEcs.AIcs.CLcs.LO
收藏

LogicAsker:评估并提升大语言模型的逻辑推理能力

LogicAsker: Evaluating and Improving the Logical Reasoning Ability of Large Language Models

The Chinese University of Hong Kong(香港中文大学);Tencent AI Lab(腾讯AI实验室)

Yuxuan Wan, Wenxuan Wang, Yiliu Yang, Youliang Yuan, Jen-tse Huang, Pinjia He, Wenxiang Jiao, Michael R. Lyu

AI总结:

针对大语言模型逻辑推理能力难以直接评估的问题,提出基于命题与谓词逻辑原子技能的LogicAsker评估增强方法,发现模型推理缺陷并构建数据将GPT-4o推理能力最高提升5%,相关资源已公开。

摘要:

我们提出了LogicAsker,这是一种用于评估并增强ChatGPT、GPT-4等大语言模型(LLM)逻辑推理能力的新方法。尽管大语言模型在写作辅助、代码生成、机器翻译等任务中表现出色,但评估其推理能力一直颇具挑战。传统评估往往更看重下游任务的准确率,而非对推理过程的直接评估。\nLogicAsker依托一组基于命题逻辑和谓词逻辑的原子推理技能,系统性地检验并提升大语言模型的推理能力,填补了这一空白。我们的方法揭示出大语言模型在逻辑规则学习方面存在显著缺陷,不同模型的推理失误率在29%到90%之间。此外,我们利用这些发现构建了针对性的示例演示与微调数据,使GPT-4o等模型的逻辑推理能力最高提升了5%。据我们所知,这是首次利用测试用例结果有效优化大语言模型形式化推理能力的研究。我们公开了代码、数据与结果(https://github.com/yxwan123/LogicAsker),以推动后续研究与结果复现。

英文摘要:

We introduce LogicAsker, a novel approach for evaluating and enhancing the logical reasoning capabilities of large language models (LLMs) such as ChatGPT and GPT-4. Despite LLMs' prowess in tasks like writing assistance, code generation, and machine translation, assessing their ability to reason has been challenging. Traditional evaluations often prioritize accuracy on downstream tasks over direct assessments of reasoning processes. LogicAsker addresses this gap by employing a set of atomic reasoning skills grounded in propositional and predicate logic to systematically examine and improve the reasoning prowess of LLMs. Our methodology reveals significant gaps in LLMs' learning of logical rules, with identified reasoning failures ranging from 29\% to 90\% across different models. Moreover, we leverage these findings to construct targeted demonstration examples and fine-tune data, notably enhancing logical reasoning in models like GPT-4o by up to 5\%. To our knowledge, this is the first effort to utilize test case outcomes to effectively refine LLMs' formal reasoning capabilities. We make our code, data, and results publicly available (https://github.com/yxwan123/LogicAsker) to facilitate further research and replication of our findings.

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

↑