融合图结构与文本语义的逻辑正则化关系抽取方法

A Logical Regularization Relation Extraction Method Fusing Graph Structure and Text Semantics

  • 摘要: 针对关系抽取任务中存在的语义表征不足、结构知识利用不充分以及预测结果易产生逻辑 不一致等问题,本文提出一种融合图结构与文本语义的逻辑正则化关系抽取方法(Graph Topology and Semantics fusion with Logical Regularization,GTS-LR)。该方法构建由文本语义分支、R-GCN 图结构分支和自适应门控融合模块组成的双流协同编码框架,在建模文本上下文表示的同时,引入领域关系图中的实体邻接、关系类型和结构依赖信息,用于增强候选实体对的关系判别。进一步地,本文将关系类型先验、实体类型约束以及关系互斥等逻辑规则转化为可微正则项,并与交叉熵损失联合优化,使逻辑规则以训练阶段软约束的形式参与参数学习,降低违反规则的候选三元组概率。实验结果表明,本文提出的 GTS-LR 方法在精确率(Precision)上达到 81.30%,较 CasRel 提升 3.90 个百分点,F1 值为 72.60%。该方法在对错误三元组容忍度较低的领域知识库构建场景中具有较高应用价值。

     

    Abstract: To address issues in relation extraction tasks, such as insufficient semantic representation, underutilization of structural knowledge, and prediction results prone to logical inconsistencies, this paper proposes a method that combines graph topology and semantics fusion with logical regularization. This method builds a dual-stream collaborative encoding framework composed of a text semantics branch, an R-GCN graph structure branch, and an adaptive gated fusion module. While modeling text context representations, it incorporates entity adjacency, relation types, and structural dependency information from domain relation graphs to enhance the ability to judge candidate entity pair relations. Furthermore, this paper transforms logical rules like relation type priors, entity type constraints, and relation exclusivity into differentiable regularization terms, which are jointly optimized with cross-entropy loss, allowing these rules to participate in parameter learning as soft constraints during training, thereby reducing the probability of candidate triples that violate the rules. Experimental results show that the proposed GTS-LR method achieved a precision of 81.30%, which is 3.90 percentage points higher than CasRel, with an F1 score of 72.60%. This method is particularly useful in domain knowledge base construction scenarios where tolerance for incorrect triples is low.

     

/

返回文章
返回