Similarity-Constrained Reweighting for Complex Query Answering on Knowledge Graphs
Daniel Daza, Alberto Bernardi, Luca Costabello, Christophe Gueret, Michael Cochez, Martijn Schut
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Compositional Chain-of-Relations for Faithful Knowledge Graph Question Answering with Large Language ModelsarXiv · 2026
- RecipeADQA: A User-aware Question-Answering Dataset for Multi-Constraint Recipe RecommendationarXiv · 2026
- Reflective Compositional Grounding for Natural-Language-to-SPARQLarXiv · 2026
- Semantic Views: Certified Reuse of LLM Labels Across Semantic QueriesarXiv · 2026
- Can a Vision-Language Model Tune Clustering In Context?arXiv · 2026
- Uncertainty in Representation Learning on Knowledge GraphsarXiv · 2026