Large language models (LLMs) are increasingly explored as general-purpose reasoners, particularly in agentic contexts. However, their outputs remain prone to mathematical and logical errors. This is especially challenging in open-ended tasks, where unstructured outputs lack explicit ground truth and may contain subtle inconsistencies. To address this issue, we propose Logic-Enhanced Language Model Agents (LELMA), a framework that integrates LLMs with formal logic to enable validation and refinement of natural language reasoning. LELMA comprises three components: an LLM-Reasoner, an LLM-Translator, and a Solver, and employs autoformalization to translate reasoning into logic representations, which are then used to assess logical validity. Using game-theoretic scenarios such as the Prisoner's Dilemma as testbeds, we highlight the limitations of both less capable (Gemini 1.0 Pro) and advanced (GPT-4o) models in generating logically sound reasoning. LELMA achieves high accuracy in error detection and improves reasoning correctness via self-refinement, particularly in GPT-4o. The study also highlights challenges in autoformalization accuracy and in evaluation of inherently ambiguous open-ended reasoning tasks.
NLLG, University of Technology Nuremberg (UTN)(神经语言学与认知科学实验室,图恩大学(UTN));Fundamentals of Natural Language Processing, University of Bamberg, Germany(自然语言处理基础,巴姆堡大学,德国);Ethics and Philosophy of Technology, Delft University of Technology, Netherlands(技术伦理与哲学,代尔夫特理工大学,荷兰)
Can Large Language Models Logically Predict Myocardial Infarction? Evaluation based on UK Biobank Cohort
Beijing University of Chinese Medicine(北京中医药大学);Tianjin University(天津大学);National Yang-Ming University(国立阳明大学);Taipei Veterans General Hospital(台北荣民总医院);Beijing Normal University(北京师范大学)
本研究基于 UK Biobank 队列评估 ChatGPT 和 GPT-4 逻辑预测心肌梗死风险的能力,发现当前 LLMs 性能不及传统模型,尚未准备好应用于临床医学。
LLMs model how humans induce logically structured rules
Department of Computer Science, Brown University, Providence, RI, USA(计算机科学系,布朗大学);Program in Linguistics, Brown University, Providence, RI, USA(语言学项目,布朗大学);Department of Cognitive and Psychological Sciences, Brown University, Providence, RI, USA(认知与心理学系,布朗大学);Brown University, Providence, Rhode Island, USA(布朗大学)
Is Next Token Prediction Sufficient for GPT? Exploration on Code Logic Comprehension
Microsoft Cloud and AI(微软云与人工智能);School of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)