arXiv:2412.12808cs.CLcs.AI2024-12被引 12

用常识推理检测讽刺语义矛盾,提升模型理解力

Detecting Emotional Incongruity of Sarcasm by Commonsense Reasoning

  • 通过检索增强大模型补全缺失的常识知识
  • 构建依赖图并优化拓扑结构捕捉上下文关联
  • 结合先验规则与对抗对比学习,提升检测鲁棒性

本文聚焦讽刺检测任务,旨在识别语句中表达的批评、嘲讽等负面情感与字面意义相反的情况。人类在判断讽刺时需综合理解语义甚至借助外部常识推断细微矛盾,但现有方法在复杂现实场景下缺乏常识推理能力,导致性能不佳。为此,提出一种基于常识增强的矛盾推理框架EICR:首先利用检索增强的大语言模型补充缺失的关键常识背景;为捕捉复杂上下文关联,构建依赖图并经图精炼获得优化拓扑;进一步引入自适应推理骨架,融合先验规则显式提取情感不一致子图;最后采用对抗对比学习消除词与标签间的虚假关联,提升检测鲁棒性。在五个数据集上的实验验证了EICR的有效性。

原文摘要 · Abstract (English)

This paper focuses on sarcasm detection, which aims to identify whether given statements convey criticism, mockery, or other negative sentiment opposite to the literal meaning. To detect sarcasm, humans often require a comprehensive understanding of the semantics in the statement and even resort to external commonsense to infer the fine-grained incongruity. However, existing methods lack commonsense inferential ability when they face complex real-world scenarios, leading to unsatisfactory performance. To address this problem, we propose a novel framework for sarcasm detection, which conducts incongruity reasoning based on commonsense augmentation, called EICR. Concretely, we first employ retrieval-augmented large language models to supplement the missing but indispensable commonsense background knowledge. To capture complex contextual associations, we construct a dependency graph and obtain the optimized topology via graph refinement. We further introduce an adaptive reasoning skeleton that integrates prior rules to extract sentiment-inconsistent subgraphs explicitly. To eliminate the possible spurious relations between words and labels, we employ adversarial contrastive learning to enhance the robustness of the detector. Experiments conducted on five datasets demonstrate the effectiveness of EICR.

讽刺检测常识推理大模型应用

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