arXiv:2410.12048cs.CL2024-10EMNLP被引 11

通过构建逻辑结构树提升大模型识别逻辑谬误的能力

Boosting Logical Fallacy Reasoning in LLMs via Logical Structure Tree

  • 用连接词和论点构建层级逻辑树,显式追踪推理关系
  • 在基准数据集上检测准确率与召回率显著提升
  • 适合需要严谨逻辑分析的场景,如法律、教育领域

逻辑谬误是使用无效或错误推理构造陈述的现象。尽管逻辑谬误普遍存在且危害严重,其检测与分类仍具挑战性。我们观察到,逻辑谬误常使用连接词暗示论点间的逻辑关系,但论点语义并不支持该关系。受此启发,我们提出构建逻辑结构树,以显式表示并追踪陈述中连接词与其论点之间的层级逻辑流程。该逻辑结构树通过句法树引导,并基于十种常见逻辑关系的连接词分类体系,在无监督条件下构建,其中连接词为非终结节点,文本论点为终端节点,多为基本话语单元。我们进一步设计两种策略将逻辑结构树融入大模型进行谬误推理:一是将树转化为自然语言描述作为硬提示输入;二是生成关系感知的树嵌入作为软提示插入。在基准数据集上的实验表明,基于逻辑结构树的方法显著提升了谬误检测与分类的精度和召回率。

原文摘要 · Abstract (English)

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.

逻辑推理大模型谬误检测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。