Contrastive Learning for Knowledge-Based Question Generation in Large Language Models

Zhenhong Zhang, Jiajing Chen, Weiyan Shi, Lingjie Yi, Chihang Wang +1 more
9/21/2024
cs.CLcs.AI

No confident code implementation found for this paper. 7 possible matches can be shown below.

Abstract

With the rapid development of artificial intelligence technology, especially the increasingly widespread application of question-and-answer systems, high-quality question generation has become a key component in supporting the development of these systems. This article focuses on knowledge-based question generation technology, which aims to enable computers to simulate the human questioning process based on understanding specific texts or knowledge bases. In light of the issues of hallucination and knowledge gaps present in large-scale language models when applied to knowledge-intensive tasks, this paper proposes an enhanced question generation method that incorporates contrastive learning. This method utilizes multiple models to jointly mine domain knowledge and uses contrastive learning to guide the model in reducing noise and hallucinations in generation. Experimental results show that by designing prompts containing contrasting examples, the model's performance in question generation improves considerably, particularly when contrasting instructions and examples are used simultaneously, leading to the highest quality of generated questions and improved accuracy. These results demonstrate that the method proposed in this study, which combines contrasting context and chain-of-thought prompts, can effectively improve both the quality and the practicality of question generation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 7 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2024contrastive,
  title  = {Contrastive Learning for Knowledge-Based Question Generation in Large Language Models},
  author = {Zhenhong Zhang and Jiajing Chen and Weiyan Shi and Lingjie Yi and Chihang Wang and Qian Yu},
  year   = {2024},
  eprint = {2409.13994},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.13994v2}
}

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/2409.13994.svg)](https://codeofpaper.com/paper/2409.13994)

Discussion