Introduction
Pre-trained Language Models (PTLMs) have revolutionized natural language processing, yet they often struggle with the explicit "world logic" or commonsense reasoning that humans perform intuitively. To bridge this gap, researchers frequently turn to Knowledge Graphs (KGs) like ConceptNet. However, traditional integration methods face significant hurdles. Retrieval-based methods are limited by graph sparsity and require complex entity extraction, while generative methods trained on symbolic triples often suffer from a train-inference mismatch, ignoring the broader linguistic context.
CoSe-Co (CommonSense Contextualizer) introduces a generative framework designed to overcome these limitations. By training models to generate multi-hop reasoning paths conditioned on full natural language sentences, CoSe-Co produces context-aware, diverse inferences. This approach allows the model to generate novel entities not present in the original KG, leading to state-of-the-art performance across multiple reasoning benchmarks.
Methodology
The CoSe-Co framework follows a three-stage pipeline to transform standard language models into contextualized commonsense generators.
1. Path-Sentence Alignment
The foundation of CoSe-Co is a novel dataset of sentences paired with relevant reasoning paths. Since such data was not readily available, the authors developed an alignment process. They sampled multi-hop paths from ConceptNet and utilized semantic similarity (via SBERT) to retrieve matching sentences from a massive Wikipedia corpus of over 92 million sentences. This resulted in a high-quality dataset of approximately 290,000 sentence-path pairs.
2. Contextualized Training
The model is trained to take a sentence as input and output the corresponding reasoning path. To ensure the model relies on the provided context rather than just memorizing graph structures, a "masking" strategy was employed. Entities present in both the sentence and the path were occasionally hidden in the input, forcing the model to infer the relationship from the remaining context.
3. Diverse-Path Search
Standard decoding methods like greedy search often yield repetitive or overly generic reasoning chains. CoSe-Co employs a "diverse-path search" during inference. This strategy samples multiple distinct reasoning paths to maximize the breadth of knowledge provided to downstream tasks, effectively balancing relevance and diversity.
Experimental Results
CoSe-Co was evaluated on several challenging benchmarks, including CommonsenseQA (CSQA) and OpenCSR (ARC, QASC, OBQA).
Performance Benchmarks
On the CommonsenseQA test set, CoSe-Co achieved a state-of-the-art accuracy of 72.87%, outperforming strong baselines such as QA-GNN (72.29%) and PGQA (71.19%). Notably, the model demonstrated significant robustness in low-data regimes; when trained on only 20% of the CSQA data, it maintained a substantial lead over retrieval-based alternatives. In open-ended reasoning tasks (OpenCSR), augmenting a T5 model with CoSe-Co concepts resulted in gains of up to 10% in Hits@50.
Qualitative Analysis and Human Evaluation
A blind human evaluation study revealed that CoSe-Co's reasoning paths were preferred over the previous best generative method (PGQA) in 62% of cases. The model's ability to generate contextually appropriate paths is a key differentiator.
As shown in the examples above, CoSe-Co effectively identifies relevant concepts based on the specific nuances of the input question. For instance, when asked about "reading news," the model can distinguish between "web pages" and "television" based on the sentence context, avoiding the generic associations common in entity-only models.
Key Insights
- Contextual Sensitivity: By conditioning on the entire sentence, CoSe-Co avoids hallucinations. It fixates on contextually relevant neighbors rather than just the most frequent ones in the graph.
- Knowledge Expansion: As a generative model, CoSe-Co can "fill in the gaps" of static KGs. Approximately 23% of its generated entities are novel, meaning they were not present in the original ConceptNet source.
- Decoding Strategy: The authors identified a critical trade-off between relevance and diversity. Their diverse-path search strategy optimizes this balance, providing a richer set of concepts for downstream reasoning.
Conclusion
CoSe-Co represents a significant step forward in integrating structured commonsense knowledge with natural language processing. While highly effective, the model remains influenced by the relational structure of its primary knowledge source, ConceptNet. Future research could explore integrating diverse KGs, such as ATOMIC for social reasoning, or developing more seamless, end-to-end integration methods within transformer architectures to reduce inference latency.
Summary updated