Query2box: 벡터 공간에서의 지식 그래프 추론을 위한 박스 임베딩
Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddings
Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddings
@misc{ren2020querybox,
title = {Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddings},
author = {Hongyu Ren and Weihua Hu and Jure Leskovec},
year = {2020},
eprint = {2002.05969},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2002.05969}
}
Ren, H., Hu, W., & Leskovec, J. (2020). Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddings [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2002.05969
REN H, HU W, LESKOVEC J. Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddings[EB/OL]. (2020-02-14)[2026-11-29]. https://arxiv.org/abs/2002.05969.
초록
대규모 불완전한 지식 그래프 (KG) 에서 복잡한 논리적 쿼리를 답변하는 것은 근본적이면서도 어려운 과제입니다. 최근 이 문제에 대한 유망한 접근법은 쿼리 및 KG 엔티티를 모두 벡터 공간에 임베딩하여 쿼리를 답변하는 엔티티들이 쿼리에 근접하게 임베딩되도록 하는 것입니다. 그러나 기존 작업은 쿼리를 벡터 공간 내의 단일 점으로 모델링하는데, 이는 문제가 있습니다. 왜냐하면 복잡한 쿼리는 잠재적으로 많은 수의 답변 엔티티 집합을 나타내지만, 이러한 집합을 단일 점으로 어떻게 표현할지 명확하지 않기 때문입니다. 또한, 기존 작업은 결합 (wedge) 과 존재 양자화 (exists) 를 사용하는 쿼리만 처리할 수 있습니다. 논리 부연 (ěe) 을 사용하는 쿼리를 처리하는 것은 여전히 해결되지 않은 문제입니다. 여기서는 대규모 불완전한 KG 에서 wedge, ěe, exists 연산자를 포함한 임의의 쿼리에 대한 추론을 위한 임베딩 기반 프레임워크인 query2box 를 제안합니다. 우리의 주요 통찰력은 쿼리를 박스 (즉, 초입방체) 로 임베딩할 수 있다는 것입니다. 박스 내부의 점 집합은 해당 쿼리의 답변 엔티티 집합에 대응합니다. 우리는 결합이 박스의 교집합으로 자연스럽게 표현될 수 있음을 보여주며, 부연 처리를 위해서는 KG 엔티티 수에 비례하는 차원의 임베딩이 필요하다는 부정적 결과를 증명합니다. 그러나 우리는 쿼리를 부연 정규형 (Disjunctive Normal Form) 으로 변환함으로써 query2box 가 wedge, ěe, exists 를 포함한 임의의 논리적 쿼리를 확장 가능한 방식으로 처리할 수 있음을 보여줍니다. 우리는 query2box 의 효과를 세 개의 대규모 KG 에서 검증했으며, query2box 가 최첨단 기술에 비해 최대 25% 의 상대적 개선률을 달성함을 보여줍니다.
Answering complex logical queries on large-scale incomplete knowledge graphs (KGs) is a fundamental yet challenging task. Recently, a promising approach to this problem has been to embed KG entities as well as the query into a vector space such that entities that answer the query are embedded close to the query. However, prior work models queries as single points in the vector space, which is problematic because a complex query represents a potentially large set of its answer entities, but it is unclear how such a set can be represented as a single point. Furthermore, prior work can only handle queries that use conjunctions (wedge) and existential quantifiers (exists). Handling queries with logical disjunctions (ěe) remains an open problem. Here we propose query2box, an embedding-based framework for reasoning over arbitrary queries with wedge, ěe, and exists operators in massive and incomplete KGs. Our main insight is that queries can be embedded as boxes (i.e., hyper-rectangles), where a set of points inside the box corresponds to a set of answer entities of the query. We show that conjunctions can be naturally represented as intersections of boxes and also prove a negative result that handling disjunctions would require embedding with dimension proportional to the number of KG entities. However, we show that by transforming queries into a Disjunctive Normal Form, query2box is capable of handling arbitrary logical queries with wedge, ěe, exists in a scalable manner. We demonstrate the effectiveness of query2box on three large KGs and show that query2box achieves up to 25% relative improvement over the state of the art.