Improving Diversity of Commonsense Generation by Large Language Models via In-Context Learning

Tianhui Zhang, Bei Peng, Danushka Bollegala
4/25/2024
cs.CL

No official code found. Best implementation: AvataGarde/In_Context_Diversification (1 star, last commit 2024-12-10).

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.

View on arXivView PDF

Code Implementations(1)

Code for Improving Diversity of Commonsense Generation by Large Language Models via In-Context Learning

10Shell, PythonAug 12, 20231 years ago

Similar Papers

Cite this paper

@article{zhang2024improving,
  title  = {Improving Diversity of Commonsense Generation by Large Language Models via In-Context Learning},
  author = {Tianhui Zhang and Bei Peng and Danushka Bollegala},
  year   = {2024},
  eprint = {2404.16807},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.16807v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.16807.svg)](https://codeofpaper.com/paper/2404.16807)

Discussion