Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Interactive Query Answering on Knowledge Graphs with Soft Entity Constraints

About

Methods for query answering over incomplete knowledge graphs retrieve entities that are \emph{likely} to be answers, which is particularly useful when such answers cannot be reached by direct graph traversal due to missing edges. However, existing approaches have focused on queries formalized using first-order-logic. In practice, many real-world queries involve constraints that are inherently vague or context-dependent, such as preferences for attributes or related categories. Addressing this gap, we introduce the problem of query answering with soft constraints. We formalize the problem and introduce two efficient methods designed to adjust query answer scores by incorporating soft constraints without disrupting the original answers to a query. These methods are lightweight, requiring tuning only two parameters or a small neural network trained to capture soft constraints while maintaining the original ranking structure. To evaluate the task, we extend existing QA benchmarks by generating datasets with soft constraints. Our experiments demonstrate that our methods can capture soft constraints while maintaining robust query answering performance and adding very little overhead. With our work, we explore a new and flexible way to interact with graph databases that allows users to specify their preferences by providing examples interactively.

Daniel Daza, Alberto Bernardi, Luca Costabello, Christophe Gueret, Masoud Mansoury, Michael Cochez, Martijn Schut• 2025

Related benchmarks

TaskDatasetResultRank
Interactive Query Answering (Average Pairwise Accuracy)FB15k237 manually curated preference sets
1p87.68
8
Interactive query answeringFB15K237
APA (1p)85.66
4
Interactive Query Answering (Average MRR)FB15k237 manually curated preference sets
Metric 1p27.54
4
Interactive query answeringHetionet (test)
Avg Pairwise Acc (1p)75.27
4
Showing 4 of 4 rows

Other info

Follow for update