NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LineaRE: Simple but Powerful Knowledge Graph Embedding for Link Prediction

Yanhui Peng, Jing ZhangICDM 2020

Introduction

Knowledge Graphs (KGs) are essential for many AI applications but are notoriously incomplete. Link prediction aims to infer missing relationships between entities to "fill in the blanks." A successful model must handle a wide variety of relationship types, categorized into connectivity patterns (e.g., symmetry, inversion, composition) and complex mapping properties (e.g., 1-to-N, N-to-N relations). While previous models like TransE or RotatE excel in specific areas, they often struggle to unify these diverse properties efficiently.

LineaRE: Modeling Relations as Linear Functions

The authors introduce LineaRE (Linear Regression Embedding), which treats link prediction as a simple linear regression task. Instead of a simple translation vector, a relation $r$ is modeled as a linear function of the head ($h$) and tail ($t$) entities:

$$w_r^1 \circ h + b_r = w_r^2 \circ t$$

Where $w_r^1$ and $w_r^2$ are relation-specific weight vectors (slopes), $b_r$ is a bias vector, and $\circ$ denotes the Hadamard (element-wise) product. The scoring function measures the L1-norm distance of this equality: $f_r(h, t) = \|w_r^1 \circ h + b_r - w_r^2 \circ t\|_1$.

Figure 1: Illustration of the LineaRE model. Each dimension $i$ of the entity embeddings follows a linear relationship defined by relation-specific weights and bias.

By operating in the real-number space with element-wise operations, LineaRE maintains high computational efficiency and scalability compared to complex-valued or matrix-based models. For training, the model employs self-adversarial negative sampling to focus on challenging negative triplets.

Capturing Relational Patterns and Complex Mappings

The flexibility of the linear regression framework allows LineaRE to capture a broad range of relational properties that simpler models cannot.

Connectivity Patterns

LineaRE is a mathematical generalization of TransE (recovered when $w_r^1 = w_r^2 = 1$). However, the additional degrees of freedom provided by the weight vectors allow it to model symmetry, antisymmetry, inversion, and composition effectively.

Figure 2: Geometric interpretation of how LineaRE handles various connectivity patterns: (a) Symmetry, (b) Antisymmetry, (c) Inversion, and (d) Composition.

Complex Mapping Properties

A key innovation of LineaRE is its ability to handle 1-to-N and N-to-N relations through the "slopes" $w_r^1$ and $w_r^2$. For a 1-to-N relation, setting the slope $w_r^2$ near zero in certain dimensions allows a single head entity to map to multiple tail entities with minimal error. This "stretching" of the entity space enables the model to accommodate the inherent ambiguity in many-to-many relationships, a task where traditional translational models often fail.

Experimental Results

LineaRE was evaluated on standard benchmarks (FB15k-237, WN18RR) and reasoning tasks (Countries), achieving state-of-the-art (SOTA) performance:

  • FB15k-237: Achieved an MRR (Mean Reciprocal Rank) of 0.357, significantly outperforming RotatE (0.338) and ConvE (0.316).
  • WN18RR: Reached an MRR of 0.495, besting RotatE (0.476).
  • Logical Reasoning: Achieved near-perfect scores on the Countries S3 task, demonstrating strong multi-step composition capabilities.

Conclusion

LineaRE demonstrates that a simple linear regression framework can be more powerful than more complex architectures for knowledge graph embedding. By unifying the modeling of connectivity patterns and complex mappings in a computationally efficient real-space model, it sets a new standard for link prediction performance and scalability.

Summary updated

BibTeX
@inproceedings{peng2020lineare,
  author = {Yanhui Peng and Jing Zhang},
  title = {{LineaRE: Simple but Powerful Knowledge Graph Embedding for Link Prediction}},
  booktitle = {ICDM},
  year = {2020},
  doi = {10.1109/icdm50108.2020.00051},
}
Figure