TransC:Differentiating Concepts and Instances for Knowledge Graph Embedding
TransC:Differentiating Concepts and Instances for Knowledge Graph Embedding
1 介绍
1.1 问题
作者发现在实现时,对于concept(抽象的概念,如老师 (zhangsan, instance, teacher))和instance(具体的概念,如人物(zhangsan,friendof, lisi), zhangsan 和lisi都是具体的实例)目前现有的模型都没有对其进行区分,为了简化操作通常的处理方式是将二者作为实体不加以区分,进行embeding处理,事实上二者在现实师世界总是不同的,下图就详细展示了concept和instance.
并且作者提出一个逻辑推理问题,类似于isA这种关系,中文理解就是“是”意思,如(zhangsan,instanceof,teacher)∩(teacher,subClassof,people)⇒(zhangsan,is,people)(zhangsan, instanceof, teacher) \cap (teacher, subClassof, people) \Rightarrow (zhangsan, is, people)(zhangsan,instanceof,teacher)∩(teacher,subClassof,people)⇒(zhangsan,is,people),这种就是isA的逻辑推理,现在并没有实现相关的推理。
1.2 论文主要解决的两个问题
- Insufficient concept representation
不能区分concept和instance - Lack transitivity of both isA relations
isA这种关系缺少传递性
1.3 思想
将三元组分成三种类型:
- (Instance, Relation, Instance),即(Zhangsan, Friendof, Lisi)
这种就采用常规的TransE模型即可 - (Instance, Relation, Concept),即(Zhangsan, Is, Teacher)
对于实例应该与它们所属的概念相近,将每个concept编码为一个领域,将每个instance编码为同一语义空间中的向量,并利用相对位置对concept和instance之间的关系进行建模。 - (Concept, Relation, Concept),即(Teacher, Is, People)
将这种关系分为四种不同的关系,即(A, Relation, B),A和B之间的关系为B包含于A, 二者无关, 二者相交, A包含于B。
然后将三着进行负采样使用margin-based ranking loss,进行优化。
2 模型
2.1 知识图谱结构
知识图谱分为三类:
- InstanceOf 即(Instance, Relation, Concept)
- SubClassOf 即(Concept, Relation, Concept)
- Relational triple 即(Instance, Relation, Instance)
KG={C,I,R,S},其中C,I\mathcal{KG} = \{ \mathcal{C,I,R, S} \}, 其中\mathcal{C, I}KG={C,I,R,S},其中C,I分别表示为concept和instance,R\mathcal{R}R表示所有的关系的集合,S是三种不同分类的总集合,其中小写字母e表示instance类型,c表示concept类型。
2.2 关于推理
推理分为两种不同的类型,即从concept到concept的推理subClassOf-subClassOf,从instance到concept的推理instanceOf-subClassOf。
- instanceOf-subClassOf
(张三,是,教授)∩(教授,是,学者)⇒(张三,是,学者)(张三,是,教授)\cap(教授,是,学者)\Rightarrow (张三,是,学者)(张三,是,教授)∩(教授,是,学者)⇒(张三,是,学者) - subClassOf-subClassOf
(教授,是,学者)∩(学者,是,人)⇒(教授,是,人)(教授,是,学者)\cap(学者,是,人)\Rightarrow (教授,是, 人)(教授,是,学者)∩(学者,是,人)⇒(教授,是,人)
2.3 TransC
提出一个理论,s(p,m)s(\mathcal {p}, m)s(p,m), p是其embedding 向量, m是其作用的领域半径,该理论只对于concept提出的。
InstanceOf Triple Representation(Instance, Relation, Concept)
评分函数为:
其中iii为instance的embedding, ppp为concept的embedding, m为其作用的领域范围半径。
SubClassOf Triple Representation(Concept, Relation, Concept)
对于三元组(ci,r,cj)(c_i, r, c_j)(ci,r,cj), 其中s(pi,mi),s(pj,mj)分别为ci,cjs(p_i, m_i), s(p_j, m_j)分别为c_i, c_js(pi,mi),s(pj,mj)分别为ci,cj的领域内容。
d为领域核心之间的距离。
若三元组(ci,r,cj)(c_i, r, c_j)(ci,r,cj)是正确的,则效果如下图所示:
- 两个concept相互分开
公式:
- 二者相交
公式:
以上两种目的都是让其不断接近于图(a)。 - cj包含cic_j包含c_icj包含ci
这个关系正好与图(a)相反
公式:
缩小大的范围,放大小的范围,让二者趋于一致。
Relational Triple Representation(Instance, Relation, Instance)
采取常规的方式TransE的方法。
3 损失函数
对于不同种类的类型的数据,对其进行负采样,负采样内容在其相应的数据类型范围内进行采集。
InstanceOf Triple Representation(Instance, Relation, Concept)
SubClassOf Triple Representation(Concept, Relation, Concept)
Relational Triple Representation(Instance, Relation, Instance)
所有的损失函数共同训练,损失函数汇总:
TransC:Differentiating Concepts and Instances for Knowledge Graph Embedding相关推荐
- 学习Knowledge Graph Embedding Based Question Answering代码笔记
前言 最近被导师安排学习一下[Knowledge Graph Embedding Based Question Answering] 这篇paper,这篇paper的重点在于运用了Knowledge ...
- AutoSF- Searching Scoring Functions for Knowledge Graph Embedding
AutoSF: Searching Scoring Functions for Knowledge Graph Embedding Abstract 衡量知识图(KG)中三元组合理性的得分函数(SFs ...
- 知识图谱-第三方工具:LibKGE(用于Knowledge Graph Embedding)【包含多种模型:TransE、DistMult、ComplEx、ConvE、Transformer等】
用于Knowledge Graph Embedding的向量表示库有很多,比如: LibKGE GraphVite AmpliGraph OpenKE pykeen pykg2vec LibKGE的主 ...
- 《knowledge graph embedding:a survey of approaches and applications》论文阅读
发表于TKDE 2017. knowledge graph embedding:a survey of approaches and applications abstract 1. introduc ...
- Knowledge Graph Embedding: A Survey of Approaches and Applications (2)
本文是对知识图谱相关文章阅读翻译,<Knowledge Graph Embedding: A Survey of Approaches and Applications>只针对文字部分,图 ...
- Knowledge Graph Embedding: A Survey of Approaches and Applications【翻译】
原文地址:https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8047276 论文名称:Knowledge Graph Embed ...
- 知识图谱论文阅读(十三)【2020 arXiv】Attentive Knowledge Graph Embedding for Personalized Recommendation
题目: Attentive Knowledge Graph Embedding for Personalized Recommendation 论文链接: 代码链接: 知识图谱特征学习在推荐系统中的应 ...
- 论文阅读 AutoSF: Searching Scoring Functions for Knowledge Graph Embedding
AutoSF: Searching Scoring Functions for Knowledge Graph Embedding AutoSF:知识图嵌入的搜索评分函数 发表期刊:2020 IEEE ...
- RKGE:Recurrent Knowledge Graph Embedding for Effective Recommendation 论文
emm-图片复制过来显示不了(因为我太懒了0.0),要看图的话可以去我的博客瞅瞅,嘿嘿嘿 对了,有些英文短句假如翻译成中文,阅读的时候就太搞脑子了,所以我干脆就不翻译了 这篇论文的模型跟我上一篇发布的 ...
最新文章
- Jmail的主要参数列表
- python中字符串格式化
- Hibernate学习第一天
- [你必须知道的.NET]第二十七回:interface到底继承于object吗?
- Boost:std ::bind与Boost的_1绑定的测试程序
- android蓝牙固件升级_AirPods Pro 如何升级固件开启「空间音频」?为何「空间音频」未生效?如何体验「空间音频」?...
- 线性共轭梯度法python_python实现的共轭梯度法
- 《低功耗蓝牙开发权威指南》——第3章低功耗蓝牙的体系结构
- python获取坐标颜色,python – 根据一组坐标的数据着色地图
- 高级JAVA - 高并发下接口限流 Semaphore
- 新年礼物 总算有服务器了
- 多方安全计算(MPC)原理简介
- 基于高斯分布的异常检测算法 项目描述
- SpringMVC+Thymeleaf +HTML的简单框架
- torch.nn.Embedding()的固定化
- 高级php程序员,php高级程序员该学什么
- 机器学习非平衡数据集概述
- MT4跟单软件多帐户跨平台如何解决喊单账号与跟单账号个别品种合约数量不一致的问题?——Hookswork
- Java项目:外卖订餐管理系统(java+SSM+JSP+jQuery+Ajax+mysql)
- 《Using OpenRefine》翻译~17
热门文章
- 用python做频数分析_Python统计如何进行DNA序列整理
- TOGAF认证考试经验分享
- html div背景自动居中显示,网站背景图居中自适应以及拉伸填充CSS代码解决方法...
- Delphi 中TPath单元引用报错无法编译问题
- 股票入门基础知识2:如何购买和卖出股份?
- 语音对讲---基于图灵机器人+科大讯飞
- python爬虫详解(五)——爬取王者荣耀英雄详细、攻略搭配、出装配置、铭文搭配、搭档/压制、入手详情
- 民法学的一些复习笔记
- 魔声monster - 耳机-煲耳机-方法
- 电脑游戏性能测试脸型软件,CPU性能测试工具(XtremeMark)5.6.2.420 官方版