Autoformalizing Natural Language to First-Order Logic: A Case Study in Logical Fallacy Detection
Stanford University(斯坦福大学);X, the moonshot factory(X moonshot工厂);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);ETH Zürich(苏黎世联邦理工学院);University of Toronto(多伦多大学)
Abhinav Lalwani, Tasha Kim, Lovish Chopra, Christopher Hahn, Zhijing Jin, Mrinmaya Sachan
Translating natural language into formal language such as First-Order Logic (FOL) is a foundational challenge in NLP with wide-ranging applications in automated reasoning, misinformation tracking, and knowledge validation. In this paper, we introduce Natural Language to First-Order Logic (NL2FOL), a framework to autoformalize natural language to FOL step by step using Large Language Models (LLMs). Our approach addresses key challenges in this translation process, including the integration of implicit background knowledge. By leveraging structured representations generated by NL2FOL, we use Satisfiability Modulo Theory (SMT) solvers to reason about the logical validity of natural language statements. We present logical fallacy detection as a case study to evaluate the efficacy of NL2FOL. Being neurosymbolic, our approach also provides interpretable insights into the reasoning process and demonstrates robustness without requiring model fine-tuning or labeled training data. Our framework achieves strong performance on multiple datasets. On the LOGIC dataset, NL2FOL achieves an F1-score of 78%, while generalizing effectively to the LOGICCLIMATE dataset with an F1-score of 80%.
Max Planck Institute(马克斯·普朗克研究所);ETH Zürich(苏黎世联邦理工学院);BITS Pilani(博拉理工学院);IIT Kharagpur(印度理工学院克勒格布尔分校);Saarland Informatics Campus(萨尔兰信息学园区);University of Michigan(密歇根大学);University of Hong Kong(香港大学)
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(技术伦理与哲学,代尔夫特理工大学,荷兰)
Theory-Grounded Evaluation of Human-Like Fallacy Patterns in LLM Reasoning
The Laboratory for Human-Centered AI, Institute for Ethics in AI, Faculty of Philosophy, University of Oxford, UK(以人为中心的人工智能实验室,人工智能伦理研究所,哲学学院,牛津大学,英国);Oxford Internet Institute, University of Oxford, UK(牛津互联网研究所,牛津大学,英国);School of Computer Science, University of Birmingham, UK(计算机科学学院,伯明翰大学,英国)
Robust and Explainable Identification of Logical Fallacies in Natural Language Arguments
University of Southern California(南加州大学);Information Sciences Institute(信息科学研究所);armasuisse Science and Technology(瑞士联邦国防采购局科学技术部);Cyber-Defence Campus(网络防御园区)
Case-Based Reasoning with Language Models for Classification of Logical Fallacies
Information Sciences Institute, University of Southern California(南加州大学信息科学研究所);University of Southern California(南加州大学);armasuisse Science and Technology(瑞士军备科学与技术局)
Do LLMs Overcome Shortcut Learning? An Evaluation of Shortcut Challenges in Large Language Models
University of Science and Technology of China(中国科学技术大学);State Key Lab of Cognitive Intelligence(认知智能国家重点实验室);School of Computer Science and Technology(计算机科学与技术学院)