acceptodds
Published as a conference paper at NeurIPS 2026

Similarity-Constrained Reweighting for Complex Query Answering on Knowledge Graphs

Daniel Daza, Alberto Bernardi, Luca Costabello, Christophe Gueret, Michael Cochez, M.C. Schut

Abstract

Machine learning models for answering logical queries on knowledge graphs estimate the likelihood of answers that are not reachable via direct traversal. Recent work has proposed extending such queries with soft entity constraints, which require the target variable to be similar or dissimilar to specified sets of entities. We study a more general formulation where similarity constraints are specified on an arbitrary variable in a query, and introduce SCORE: a computationally efficient and interpretable method for incorporating similarity constraints on an arbitrary variable of a query. SCORE is based on a lightweight and interpretable score adjustment function that only requires tuning two hyperparameters on a validation set. Our experiments show that SCORE effectively incorporates preferences while maintaining strong query answering performance. It significantly improves ranking quality when constraints apply to the target variable and performs effectively in the more general case involving constraints on intermediate variables.

Related papers

See more related submissions when the market opens.