Introduction
Commonsense Question Answering (CSQA) represents a significant challenge in Natural Language Processing, requiring models to reason using "unwritten" world knowledge. While Pre-trained Language Models (PLMs) like RoBERTa possess vast linguistic capabilities, they often lack the structured reasoning found in Knowledge Graphs (KGs). Traditional methods that attempt to bridge this gap often suffer from rigid extraction rules and a "modality gap" where text and graph representations do not align.
This paper introduces SEPTA (Subgraph REtrieval Enhanced by GraPh-Text Alignment), a framework that treats knowledge retrieval as a semantic search problem, aligning the latent spaces of text and graph encoders to improve reasoning efficiency and accuracy.
The Challenge: Bottlenecks and Modality Gaps
Existing KG-augmented models typically face two primary hurdles:
- The Extraction Bottleneck: Rule-based subgraph extraction often results in noisy or incomplete subgraphs that fail to capture the necessary context for a specific question.
- The Modality Gap: Text encoders (PLMs) and graph encoders (GNNs) operate in different representational spaces. Without explicit alignment, the model struggles to fuse textual questions with structural graph knowledge effectively.
The SEPTA Framework
SEPTA addresses these issues by shifting from rule-based extraction to a flexible vector retrieval system. The architecture is divided into a pre-training alignment phase and a retrieval-based prediction phase.
Graph-Text Alignment via Contrastive Learning
The "secret sauce" of SEPTA is its alignment strategy. The model uses bidirectional contrastive learning to map subgraphs and their textual descriptions into a shared semantic space. By forcing the GNN and the PLM to represent similar concepts similarly, the model ensures that the retrieved graph knowledge is semantically relevant to the textual query.
BFS-Style Subgraph Sampling and Textualization
To facilitate this alignment, SEPTA employs a specific sampling and textualization pipeline. Instead of random walks, it uses Breadth-First Search (BFS) to sample subgraphs, ensuring the central node's representation captures its complete immediate neighborhood—mimicking the message-passing mechanism of GNNs.
As shown above, these subgraphs are then "textualized" by concatenating triplets (head, relation, tail) into natural language strings. This allows the text encoder to process structural knowledge as a sequence, which is then used to align with the graph encoder's output.
Vector Database Retrieval
Once aligned, the entire KG is converted into a database of subgraph vectors. During inference, the model performs entity linking on the question to create a "knowledge-rich" query, which is then used to retrieve the most semantically relevant subgraph vectors from the database for final prediction.
Experimental Results
SEPTA was evaluated across five major CSQA benchmarks, including CommonsenseQA, OpenBookQA, and SocialIQA.
- State-of-the-Art Performance: SEPTA achieved 76.6% on the CommonsenseQA leaderboard and 87.8% on OpenBookQA, outperforming existing models using the same RoBERTa-Large backbone.
- Efficiency: Unlike models that require massive external corpora for pre-training, SEPTA "distills" knowledge through alignment, making it significantly more computationally efficient.
- Low-Resource Robustness: In settings with only 5% of training data, SEPTA outperformed competitors like QA-GNN by nearly 18%, demonstrating that proper modality alignment is a powerful substitute for raw data volume.
Conclusion
SEPTA redefines the use of knowledge graphs in commonsense reasoning by replacing rigid extraction with semantic retrieval. By aligning graph and text modalities through contrastive learning, it provides a more robust, efficient, and accurate framework for complex question answering tasks.
Summary updated