Definition

Query2Box is a model for calculating path-based queries over an incomplete Knowledge Graph. It represents queries as boxes in a vector space. To answer a query, the model computes the final query box and ranks entities based on their distance to the box.
Architecture
Box Embedding

In the Query2Box model, queries are represented as boxes in a vector space, and entities are represented as points (zero-size box) in the space. The box embedding allows for modeling uncertainty and capturing a set of possible answers.
Query box in is defined as where is the center of the box, and is the offset of the box.
The embedding box is defined using the query box. where is element-wise inequality.
Query Operations

Query2Box consists of the two operations: projection, and intersection.
Projection Operation
The projection operation expands the box to include related entities.
Intersection Operation

The intersection operation combines information from multiple sub-queries by intersecting their boxes. Instead of directly applying intersection over a set of box embeddings, the intersection in calculated using the Attention-like operation.
The center is calculated as where
The offset is calculated as where is a Sigmoid Function, and
Entity-to-Box Distance

Given a query box and an entity vector , the distance between them is defined as where is a fixed scalar that downweights the distance inside the box.