arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.02196cs.CLcs.AI
收藏

CPTuning:面向生成式关系抽取的对比提示调优

CPTuning: Contrastive Prompt Tuning for Generative Relation Extraction

Peking University(北京大学)

Jiaxin Duan, Fengyu Lu, Junfei Liu

AI总结:

针对实体重叠对下的多关系抽取问题,提出CPTuning对比提示调优,结合阈值化概率学习、言语化生成与Trie约束解码,显著提升T5-large性能。

摘要:

生成式关系抽取(RE)通常首先将RE重构为一种可由预训练语言模型(PLM)轻松处理的语言建模问题,随后使用监督交叉熵损失对PLM进行微调。尽管现有方法已经取得了可观性能,但它们假定每对实体之间只存在一种确定性关系,而没有考虑多种关系可能同时有效的真实场景,即实体重叠对,这限制了其应用。为解决该问题,我们提出一种新颖的面向RE的对比提示调优方法CPTuning,它学习将上下文中两个实体之间的候选关系与高于或低于阈值的概率质量相关联,以对应该关系是否存在。除学习模式外,CPTuning还将RE组织为言语化的关系生成任务,并使用Trie约束解码确保模型生成有效关系。在推理时,它自适应地选出估计似然较高的已生成候选关系,从而实现多关系抽取。我们在四个广泛使用的数据集上进行了大量实验以验证该方法。结果表明,使用CPTuning微调的T5-large在单关系和多关系抽取上均显著优于以往方法。

英文摘要:

Generative relation extraction (RE) commonly involves first reformulating RE as a linguistic modeling problem easily tackled with pre-trained language models (PLM) and then fine-tuning a PLM with supervised cross-entropy loss. Although having achieved promising performance, existing approaches assume only one deterministic relation between each pair of entities without considering real scenarios where multiple relations may be valid, i.e., entity pair overlap, causing their limited applications. To address this problem, we introduce a novel contrastive prompt tuning method for RE, CPTuning, which learns to associate a candidate relation between two in-context entities with a probability mass above or below a threshold, corresponding to whether the relation exists. Beyond learning schema, CPTuning also organizes RE as a verbalized relation generation task and uses Trie-constrained decoding to ensure a model generates valid relations. It adaptively picks out the generated candidate relations with a high estimated likelihood in inference, thereby achieving multi-relation extraction. We conduct extensive experiments on four widely used datasets to validate our method. Results show that T5-large fine-tuned with CPTuning significantly outperforms previous methods, regardless of single or multiple relations extraction.

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

↑