TL;DR
SCORE (Similarity-COnstrained REweighting) is a lightweight, interpretable method for incorporating "soft" similarity constraints into complex queries on Knowledge Graphs. Unlike previous methods that only allow preferences on the final answer, SCORE enables constraints on any intermediate variable in a query, achieving a 10–45% relative improvement in ranking quality over neural baselines with minimal computational overhead.
What Problem Does This Paper Address?
Knowledge Graphs (KGs) are massive networks of real-world facts, but they are notoriously incomplete. Complex Query Answering (CQA) uses machine learning to "reason" over these gaps, answering multi-hop logical questions (e.g., "Which drugs treat diseases that have headache as a symptom?").
Traditionally, CQA has relied on First-Order Logic (FOL), which uses "hard" constraints. However, real-world users often have "soft" preferences that logic can't easily capture, such as "find drugs for diseases similar to migraine."
While recent work introduced "soft entity constraints," it suffered from two major flaws:
- Target-only constraints: You could only express preferences for the final answer (the drug), not intermediate steps (the disease).
- Post-processing limitations: Preferences were often tacked on at the end, making it impossible to propagate those preferences through the logical structure of a complex query.
Methods
The authors introduce SCORE, a neuro-symbolic approach that integrates similarity preferences directly into the query execution pipeline.
The Core Mechanism: Logit-Space Reweighting
Most modern CQA models represent the likelihood of an entity being an answer as a "fuzzy" score between 0 and 1. SCORE adjusts these scores using a small preference set ($P_s$) of labeled examples (e.g., "Migraine is a positive example, Asthma is a negative one").
- Similarity Mapping: It uses pre-trained entity embeddings to compute the cosine similarity between a candidate entity and the preference set.
- Logit Transformation: Instead of multiplying probabilities (which can cause values to "vanish" to zero), SCORE moves the scores into logit space.
- Additive Update: It calculates a mean logit similarity ($\Delta$) for both positive and negative examples. The final score is updated by adding the positive contribution and subtracting the negative one, scaled by two tunable hyperparameters ($w_p$ and $w_n$).
- Sigmoid Return: The updated logit is pushed back through a sigmoid function to return to the $[0, 1]$ range, allowing it to be processed by standard logical operators (t-norms) like AND/OR.
Datasets
The authors evaluated SCORE on three diverse Knowledge Graphs:
- FB15k-237: A standard benchmark containing general encyclopedic facts.
- NELL-995: Another general-purpose KG focused on entities like people and organizations.
- Hetionet: A specialized biomedical KG containing genes, diseases, and drugs.
New Benchmark Contribution: The authors extended the existing SimCQA benchmark to include constraints on intermediate variables and implemented a stricter generalization protocol where preference sets and test answers do not overlap, preventing the model from "cheating" via simple lookups.
Key Insights and Ideas
- The Power of Propagation: One of the most significant findings is that applying constraints earlier in a query (on intermediate variables) often yields better results than applying them to the final target. This suggests that preference information is more effectively filtered when it flows through the logical structure of the query.
- Interpretability by Design: Because SCORE is monotonic, any change in an entity's rank can be traced directly back to specific positive or negative examples in the preference set. This makes the system "glass-box" compared to deep neural rerankers.
- Bayesian Foundations: The authors prove that the SCORE update rule is mathematically equivalent to a Bayesian log-odds update. This provides a theoretical justification for why additive logit updates are the "correct" way to combine prior knowledge from the KG with new evidence from user preferences.
- Efficiency: SCORE is computationally linear $O(|E|)$ relative to the number of entities. In practice, it adds only 1–8 milliseconds of overhead per query.
Key Results
- Ranking Quality: SCORE achieved substantial improvements in NDCG@10 (a metric for ranking quality), showing a 3–9 percentage point increase over neural baselines. This represents a 10–45% relative improvement.
- Robustness: Unlike neural rerankers (like NQR), which can sometimes degrade the performance of the underlying logic model, SCORE maintains or improves performance on the original unconstrained query tasks.
- Few-Shot Success: The model performs exceptionally well even with very small preference sets (as few as 1-5 examples), making it highly practical for interactive systems.
Limitations and Future Work
- Single Variable Focus: The current study focuses on applying preferences to one variable at a time. In a query with $N$ variables, there are $2^N - 1$ possible combinations of constraints. Scaling SCORE to handle multiple simultaneous constraints is a clear next step.
- Similarity Grounding: Currently, similarity is derived from graph embeddings. The authors suggest that future work could incorporate other data types, such as numerical attributes or natural language descriptions, to define "similarity."
- Embedding-based CQA: SCORE is designed for neuro-symbolic models that use fuzzy vectors. Adapting this reweighting logic to "pure" embedding-based CQA models (which represent queries as single points or boxes in space) remains an open challenge.
Summary updated