NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Similarity-Constrained Reweighting for Complex Query Answering on Knowledge Graphs

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

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Retrieval-Augmented Generation · Type: new method · Keywords: knowledge graph query answering, similarity constraints, score adjustment, intermediate variables, ranking quality

Summary

SCORE introduces a computationally efficient and interpretable score adjustment to incorporate similarity constraints on any variable in knowledge graph query answering.

Explained to a 5-year-old

We want a computer to answer questions about a big graph of facts. Sometimes we want the answer to be similar to some things. SCORE helps the computer decide which answers are better by adjusting scores. It can work for any part of the question, not just the final answer. This makes the answers more accurate while keeping the computer fast.

Explained to a 5-year-old, longer

A knowledge graph is like a big collection of facts linked together. When we ask a question, the answer might not be directly connected. Sometimes we want the answer to be similar to some other things. The paper looks at a more general way to add these similarity rules. It creates a simple scoring method that changes how likely each answer is. The scoring only needs two small settings to work. This makes the method easy to understand and fast to run. It can be used for any part of the question, not just the final answer. Experiments show it improves the ranking of correct answers. It works well even when the similarity rules apply to middle parts of the question. The approach keeps the original performance of the query answering system. Overall, it gives a flexible and efficient way to add similarity preferences.

For a technical reader

The paper addresses the problem of answering complex logical queries on knowledge graphs where answers may not be directly reachable. It extends previous work that only allowed similarity constraints on the final answer to also support constraints on any intermediate variable. The solution uses a lightweight score adjustment function that reweights candidate answers based on similarity, requiring only two hyperparameters to tune. This adjustment is computationally efficient and interpretable, allowing developers to incorporate preferences without extensive training. Experiments demonstrate improved ranking quality when constraints are applied to both target and intermediate variables.

Problem

Answering logical queries on knowledge graphs often requires estimating answers not directly reachable via traversal. Existing approaches only support soft constraints on the target variable, limiting expressiveness.

Method

The approach uses a lightweight score adjustment function that reweights candidate answers based on similarity constraints, requiring tuning of only two hyperparameters on a validation set. It can be applied to any variable in the query, making it both computationally efficient and interpretable.

Results

The approach improves ranking quality when constraints apply to the target variable and remains effective for constraints on intermediate variables.

Contributions

It generalizes soft entity constraints to arbitrary variables in queries and provides an efficient, interpretable score adjustment that requires only two hyperparameters to tune. This enables more expressive query answering while preserving performance.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction