Abstract
Generative Commonsense Reasoning (GCR) requires a model to reason about a situation using commonsense knowledge, while generating coherent sentences. Although the quality of the generated sentences is crucial, the diversity of the generation is equally important because it reflects the model's ability to use a range of commonsense knowledge facts. Large Language Models (LLMs) have shown proficiency in enhancing the generation quality across various tasks through in-context learning (ICL) using given examples without the need for any fine-tuning. However, the diversity aspect in LLM outputs has not been systematically studied before. To address this, we propose a simple method that diversifies the LLM generations, while preserving their quality. Experimental results on three benchmark GCR datasets show that our method achieves an ideal balance between the quality and diversity. Moreover, the sentences generated by our proposed method can be used as training data to improve diversity in existing commonsense generators.
Introduction: The Repetition Problem in GCR
Generative Commonsense Reasoning (GCR) tasks challenge models to synthesize logical, human-like sentences from a set of provided concepts (e.g., dog, frisbee, catch). While modern Large Language Models (LLMs) excel at producing grammatically correct outputs, they frequently suffer from a lack of diversity. When prompted for multiple variations, LLMs often produce slight permutations of the most statistically probable scenario rather than exploring the multifaceted nature of commonsense knowledge.
Low diversity makes AI outputs feel repetitive and biased. In the real world, a dog might catch a frisbee, but a man might also throw it, or the dog might leap to miss it. To address this, we introduce In-Context Diversification (ICD), a method designed to increase variety while maintaining logical soundness.
Methodology: In-Context Diversification (ICD)
The ICD framework consists of two primary components: a two-step prompting strategy and a diversity-based subset selection process.
1. Two-Step Diversified Prompting
Unlike standard prompting, which asks for a single output, ICD utilizes a feedback loop to push the model beyond its initial responses:
- Step 1: The model is instructed to generate $N$ different sentences for a given input.
- Step 2 (Feedback): If the initial diversity is low, the system re-prompts the LLM with its previous outputs, explicitly instructing it: "You have generated these sentences; now try to provide other reasonable, different sentences." This forces the model to explore the "long tail" of its internal knowledge base.
2. Diversity-based Sampling
To ensure quality is not sacrificed for variety, the system pools results from both standard and diversified prompts. A subset selection algorithm then identifies the optimal group of sentences that maximizes diversity (measured via self-BLEU) while maintaining high quality scores.
Experimental Results and Insights
The method was evaluated on three benchmark datasets: CommonGen (concept-to-sentence), ComVE (logical explanations), and DimonGen (diverse scenario generation).
Key findings include:
- Balanced Performance: ICD improved the Harmonic Mean (balancing quality and diversity) by at least 6% over default baselines across all datasets.
- Significant Diversity Gains: On CommonGen using GPT-3.5, ICD achieved a self-BLEU-4 score of 21.0, a massive improvement over the default prompt's 72.4 (where lower scores indicate higher diversity).
- Synthetic Data Utility: Diverse sentences generated by ICD proved to be high-quality training data. A smaller BART model trained on ICD-generated synthetic data performed competitively with models trained on expensive, human-annotated datasets.
Conclusion
In-Context Diversification demonstrates that LLMs can be nudged toward more creative and varied commonsense reasoning through iterative prompting and strategic sampling. By mimicking a human brainstorming process—moving from the obvious to the novel—ICD provides a scalable way to generate high-quality, diverse synthetic data for training specialized models. Future work will explore the application of ICD in multilingual contexts and its interaction with various decoding strategies.
Summary updated