Diversifying Content Generation for Commonsense Reasoning with Mixture of Knowledge Graph Experts

Wenhao Yu, Chenguang Zhu, Lianhui Qin, Zhihan Zhang, Tong Zhao, Meng Jiang

Abstract

Generative commonsense reasoning (GCR) in natural language is to reason about the commonsense while generating coherent text. Recent years have seen a surge of interest in improving the generation quality of commonsense reasoning tasks. Nevertheless, these approaches have seldom investigated diversity in the GCR tasks, which aims to generate alternative explanations for a real-world situation or predict all possible outcomes. Diversifying GCR is challenging as it expects to generate multiple outputs that are not only semantically different but also grounded in commonsense knowledge. In this paper, we propose MoKGE, a novel method that diversifies the generative reasoning by a mixture of expert (MoE) strategy on commonsense knowledge graphs (KG). A set of knowledge experts seek diverse reasoning on KG to encourage various generation outputs. Empirical experiments demonstrated that MoKGE can significantly improve the diversity while achieving on par performance on accuracy on two GCR benchmarks, based on both automatic and human evaluations.

1. Introduction

Generative Commonsense Reasoning (GCR) requires models to produce text that adheres to everyday logic—for instance, explaining why a statement like "Piano is a kind of sport" is counterfactual. While existing models have improved in accuracy, they often struggle with diversity. In real-world scenarios, a single prompt can have multiple valid explanations or outcomes. However, standard AI models typically converge on a single "best" response, and simple sampling techniques often result in repetitive or illogical variations.

The core challenge lies in "one-to-many" generation: creating multiple outputs that are linguistically distinct yet logically grounded in diverse aspects of human knowledge. To address this, we present MoKGE (Mixture of Knowledge Graph Experts), a framework that utilizes a Mixture of Experts (MoE) strategy over structured Knowledge Graphs (KG) to provide varied, grounded perspectives.

2. The MoKGE Framework

MoKGE moves beyond "one-size-fits-all" answers by combining latent expert variables with structured knowledge. The architecture follows a four-stage pipeline designed to leverage structured knowledge for diverse text generation.

Overview of the MoKGE architecture, showing the progression from input text to diverse generated explanations via specialized experts.

2.1 Sequence-aware Subgraph Construction

Given an input sequence, the model first identifies relevant concepts and extracts a local "neighborhood" from ConceptNet, a large-scale commonsense knowledge graph. This step is motivated by the "Two-Hop Rule"—the observation that 75% of human-used concepts in these tasks are within two hops of the input concepts on a KG.

2.2 Multi-relational Graph Encoding

The extracted subgraph is processed using a Relational Graph Convolutional Network (R-GCN). This allows the model to capture complex, typed relationships between entities, such as Piano being a Musical Instrument or Keys being a Part Of a Piano.

A sub-KG extracted from ConceptNet illustrating the multi-relational links between concepts like 'piano', 'music', and 'sport'.

2.3 Concept Selection via Mixture of Experts (MoE)

This stage introduces a set of latent "experts." Each expert is trained to specialize in a distinct reasoning path within the KG. For example, one expert might focus on the "artistic" attributes of a piano, while another focuses on its "mechanical" or "physical" actions. To prevent expert collapse (where all experts learn the same thing), a stochastic hard-EM algorithm is employed, forcing each expert to take responsibility for specific reasoning patterns in the training data.

2.4 Concept-aware Generation

Finally, a Transformer decoder receives the original input text along with the specific concepts selected by an expert to generate the final sentence. This ensures that the diversity in the output is driven by a choice of content and logic, rather than just random word selection.

3. Experimental Evaluation

MoKGE was evaluated on two major benchmarks:

  • ComVE (Commonsense Explanation Generation): Explaining why a counterfactual statement is illogical.
  • α-NLG (Abductive Commonsense Reasoning): Generating hypotheses to explain the transition between a past and future event.

These datasets are particularly suitable for diversity evaluation as they provide multiple human-written reference explanations for each input.

4. Key Results and Insights

  • Superior Diversity: MoKGE significantly outperformed baseline methods like CVAE and Nucleus Sampling on diversity metrics, including Self-BLEU (measuring internal repetition) and Unique Concepts (Uni.C).
  • Quality Preservation: Unlike many diversity-focused methods that sacrifice accuracy, MoKGE maintained performance "on par" with state-of-the-art models in terms of BLEU and ROUGE scores.
  • Human-Level Variety: In human evaluations on the ComVE task, MoKGE produced an average of 2.63 unique meanings per input, slightly exceeding the human reference average of 2.60.
  • Knowledge-Driven Diversity: The results suggest that true diversity in reasoning stems from exploring different paths in a knowledge graph. By mimicking how different humans approach a problem from various angles (e.g., function vs. classification), MoKGE achieves more meaningful variety.

5. Conclusion

MoKGE demonstrates that structured knowledge graphs can effectively constrain and guide generative models toward diverse, logical outcomes. However, the model remains dependent on the coverage of the underlying KG; missing relationships in ConceptNet limit the model's reasoning capabilities. Future work may involve exploring dynamic expert allocation or developing more sophisticated neural diversity metrics that better capture semantic differences beyond simple word overlap.

Summary updated

BibTeX
@inproceedings{yu2022diversifying,
  author = {Wenhao Yu and Chenguang Zhu and Lianhui Qin and Zhihan Zhang and Tong Zhao and Meng Jiang},
  title = {{Diversifying Content Generation for Commonsense Reasoning with Mixture of Knowledge Graph Experts}},
  booktitle = {DLG4NLP @ NAACL},
  year = {2022},
  url = {https://openreview.net/forum?id=Ihd7jVXgkCp},
}
Figure