Similarity-Constrained Reweighting for Complex Query Answering on Knowledge Graphs
Lists
Only you see this
Abstract
Machine learning models for Complex Query Answering (CQA) 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, and its performance remains robust when applied to several existing methods for CQA. Our implementation is available at https://github.com/dfdazac/score.
BibTeX
@inproceedings{daza2026similarity,
author = {Daniel Daza and Alberto Bernardi and Luca Costabello and Christophe Gueret and Michael Cochez and M.C. Schut},
title = {{Similarity-Constrained Reweighting for Complex Query Answering on Knowledge Graphs}},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026},
url = {https://openreview.net/forum?id=tl0ouNjqqZ},
}Loading related content...