arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12048cs.CL
收藏

通过逻辑结构树提升LLMs中的逻辑谬误推理

Boosting Logical Fallacy Reasoning in LLMs via Logical Structure Tree

Texas A&M University(德克萨斯农工大学)

Yuanyuan Lei, Ruihong Huang

AI总结:

针对逻辑谬误检测与分类的挑战,提出构建无监督的逻辑结构树显式表示陈述中的层次逻辑流,并通过硬文本提示和软提示两种策略将其整合到LLMs中,显著提升了谬误检测与分类的精确率和召回率。

摘要:

逻辑谬误在构建陈述时使用无效或错误的推理。尽管逻辑谬误普遍存在且具有危害性,但检测和分类逻辑谬误仍然是一项具有挑战性的任务。我们观察到,逻辑谬误经常使用连接词来指示两个论据之间的预期逻辑关系,而论据语义实际上并不支持这种逻辑关系。受此观察启发,我们提出构建一棵逻辑结构树,以显式地表示和追踪陈述中关系连接词及其论据之间的层次逻辑流。具体而言,该逻辑结构树以无监督方式构建,由成分树和十种常见逻辑关系的连接词分类法指导,以关系连接词作为非终端节点,以文本论据作为终端节点,后者多为基本语篇单元。我们进一步开发了两种策略,将逻辑结构树整合到LLMs中以进行谬误推理。首先,我们将树转换为自然语言描述,并将文本化的树作为硬文本提示的一部分输入到LLMs中。其次,我们推导出关系感知的树嵌入,并将该树嵌入作为软提示插入到LLMs中。在基准数据集上的实验表明,我们基于逻辑结构树的方法显著提高了谬误检测和谬误分类的精确率和召回率。

英文摘要:

Logical fallacy uses invalid or faulty reasoning in the construction of a statement. Despite the prevalence and harmfulness of logical fallacies, detecting and classifying logical fallacies still remains a challenging task. We observe that logical fallacies often use connective words to indicate an intended logical relation between two arguments, while the argument semantics does not actually support the logical relation. Inspired by this observation, we propose to build a logical structure tree to explicitly represent and track the hierarchical logic flow among relation connectives and their arguments in a statement. Specifically, this logical structure tree is constructed in an unsupervised manner guided by the constituency tree and a taxonomy of connectives for ten common logical relations, with relation connectives as non-terminal nodes and textual arguments as terminal nodes, and the latter are mostly elementary discourse units. We further develop two strategies to incorporate the logical structure tree into LLMs for fallacy reasoning. Firstly, we transform the tree into natural language descriptions and feed the textualized tree into LLMs as a part of the hard text prompt. Secondly, we derive a relation-aware tree embedding and insert the tree embedding into LLMs as a soft prompt. Experiments on benchmark datasets demonstrate that our approach based on logical structure tree significantly improves precision and recall for both fallacy detection and fallacy classification.

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

↑