In the quest to give AI "common sense," researchers have increasingly turned to Knowledge Graphs (KGs)—vast networks of structured facts like (ice, IsA, frozen water). While pre-trained language models (PLMs) are brilliant at mimicry, they often lack the underlying logic required for real-world reasoning. Adding a KG helps provide this structured logic, but there’s a catch: not every fact in a KG is relevant to every question.
A paper from researchers at USC and IIT Delhi introduces SalKG, a framework that doesn't just give models a KG, but explicitly teaches them exactly which parts of that graph are worth their attention.
The Problem with Standard Attention
Current KG-augmented models use attention mechanisms to weigh different parts of a graph. However, these mechanisms are typically trained "end-to-end" using only the final task loss (e.g., whether the answer to a multiple-choice question was correct).
The authors identify a major flaw in this approach: the model is never explicitly taught which components should be used. This leads to two primary issues:
- Spurious Patterns: The model might attend to irrelevant nodes that happen to correlate with the right answer in the training set, rather than learning true reasoning paths.
- Universal Usefulness Assumption: Models often assume the KG is always helpful, even when the specific graph retrieved for a question contains no useful information or is actively misleading.
The SalKG Framework: Saliency-Based Supervision
The core innovation of SalKG is saliency-based supervision. Instead of relying solely on end-to-end task loss, the authors propose a two-step process: first, create "ground truth" explanations of what is useful, and second, train the model to predict and use those explanations.
1. Creating Saliency Explanations
The researchers define two levels of "usefulness" to guide the model:
- Coarse Saliency: A binary label indicating if the KG as a whole helps the model solve the instance. This is calculated by comparing the performance of a model with the KG versus one without it.
- Fine Saliency: Binary labels for individual nodes or paths. They use "Leave-One-Out" (occlusion) or gradient-based methods to determine which specific graph elements most impact the model's ability to predict the correct answer when removed or emphasized.
2. Training with SalKG
Instead of just using these explanations as a post-hoc diagnostic tool, SalKG uses them as a direct supervision signal during training.
- Multi-task Learning: The model is trained with a dual objective: solve the reasoning task (Task Loss) and correctly predict the saliency explanations (Saliency Loss).
- SalKG-Hybrid: This is the most advanced variant of the framework. It first predicts if the KG is useful (coarse). If it is, it then uses predicted fine-grained explanations to mask its attention, focusing only on the "useful" nodes and paths. This prevents the model from forcing attention onto irrelevant graphs.
Key Insights
- Attention is not Explanation: The authors argue that standard attention weights show what a model did use, while saliency scores show what a model should have used. By supervising the former with the latter, they regularize the model to be "right for the right reasons."
- The Hierarchy of Usefulness: Coarse and fine explanations are complementary. Fine-grained supervision alone can actually hurt performance because it forces the model to find "useful" nodes even when the entire graph is irrelevant. The hybrid approach mitigates this by allowing the model to "ignore" the graph entirely when necessary.
- Occlusion vs. Gradients: Interestingly, the paper finds that occlusion-based saliency (physically removing nodes to see what breaks) often provides a more robust supervision signal than gradient-based methods for these specific graph architectures.
Experimental Results
The authors evaluated SalKG on three primary commonsense reasoning benchmarks: CSQA (CommonsenseQA), OBQA (OpenBookQA), and CODAH, using ConceptNet as the underlying Knowledge Graph.
SalKG consistently outperformed standard KG-augmented baselines across different architectures (like MHGRN and PathGen) and text encoders (BERT and RoBERTa).
- CSQA: Achieved an absolute improvement of up to 2.76%.
- OBQA: Showed gains of up to 1.89%.
- Leaderboard Performance: A SalKG-Hybrid model using ALBERT achieved 75.9% on the official CSQA leaderboard, outperforming the vanilla version of the same model.
- Robustness: SalKG significantly outperformed "Heuristic" baselines (which just highlight nodes that appear in the question) and "Random" baselines, proving that the saliency signal captures non-trivial reasoning patterns rather than simple lexical overlap.
Limitations and Future Work
While highly effective, the model is still limited by the quality and coverage of the underlying KG; if the knowledge isn't in the graph, SalKG cannot retrieve it. Additionally, generating saliency explanations for the entire training set (especially via occlusion) is computationally expensive, though this is a one-time preprocessing cost. Future work could incorporate active learning, where humans provide feedback on KG saliency to further refine the explanations the model learns from.
Summary updated