Introduction: The Challenge of Commonsense Reasoning
When humans read a sentence like "Kai managed to keep his temper in check," we automatically infer a wealth of unstated information: Kai was likely angry, he intended to avoid a conflict, and he probably feels relieved afterward. For AI, these "commonsense" inferences are notoriously difficult because they are rarely explicit in text.
Traditional approaches attempt to solve this by linking text to static Knowledge Graphs (KGs) like ConceptNet. However, static KGs suffer from two primary limitations: a coverage gap, where specific scenarios (e.g., "jumping off a roof on a dare") are missing, and context blindness, where retrieved facts may not align with the specific narrative context.
Methodology: COMET-DynaGen
To address these issues, we introduce COMET-DynaGen, a neuro-symbolic framework that dynamically generates a situational knowledge graph for every new context. Instead of retrieving pre-existing facts, the model "imagines" relevant knowledge on the fly.
Knowledge Generation and Graph Construction
The system utilizes COMET (Commonsense Transformers), a GPT-2 model fine-tuned on the ATOMIC knowledge graph. Given a context, COMET predicts the "tail" of knowledge triples (e.g., Input: "Kai keeps his temper," Relation: "xIntent," Output: "to avoid trouble").
The construction process follows these steps:
- Root Node: The input context serves as the root.
- Dynamic Expansion: COMET generates multiple "hops" of inferences, creating a local, situational graph.
- Answer Integration: Multiple-choice answers are attached as leaf nodes to the generated inferences.
- Scoring via Flow: The model calculates the probability "flow" through the graph to score each answer. To ensure relevance, we employ Point-wise Mutual Information (PMI), which favors answers specifically supported by the generated knowledge paths rather than just high-frequency words.
Evaluation and Results
We evaluated COMET-DynaGen in a zero-shot setting—meaning the model received no task-specific training—on two benchmarks: SOCIALIQA (social commonsense) and STORYCS (narrative character tracking).
Performance Highlights
- SOCIALIQA: The model achieved 52.6% accuracy, outperforming a much larger GPT-2 baseline (762M parameters) by over 10% absolute.
- Efficiency: High performance was maintained using relatively small graphs (averaging ~10 nodes), demonstrating that contextually relevant facts are more valuable than sheer volume.
Interpretability: Reading the AI's "Mind"
A significant advantage of this neuro-symbolic approach is its inherent interpretability. Unlike "black-box" transformers, COMET-DynaGen provides an auditable reasoning path for its decisions.
As shown in the examples above, the model identifies specific motivations (e.g., "Quinn gets hurt") that lead directly to the correct commonsense conclusion (e.g., Quinn is "foolish").
Discussion and Future Directions
The success of COMET-DynaGen suggests that neural models are now capable of acting as "soft" knowledge bases, where generation is superior to retrieval for situational reasoning. By forcing logic through a symbolic graph structure, the model remains grounded in causal and intentional relationships.
However, challenges remain. Performance tends to decrease by approximately 5% when processing longer, multi-sentence narratives due to the increasing complexity of the context. Future work will focus on improving the aggregation of information from larger, denser graphs and leveraging more advanced language models to seed the initial knowledge generation.
Summary updated