arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.02800cs.CLcs.AI
收藏

论叙事理解中可控问答生成的少样本提示

On Few-Shot Prompting for Controllable Question-Answer Generation in Narrative Comprehension

Faculty of Engineering of the University of Porto (FEUP)(葡萄牙波尔图大学工程学院);Artificial Intelligence and Computer Science Laboratory (LIACC)(人工智能与计算机科学实验室)

Bernardo Leite, Henrique Lopes Cardoso

AI总结:

本文提出少样本提示方法,从儿童叙事文本中控制生成问答对的显式性与叙事元素,并通过与参考模型对比验证其在语义接近度、多样性和连贯性上的优势。

摘要:

问题生成旨在基于作为上下文给定的输入自动生成问题。可控问题生成方案专注于生成具有特定属性的问题,从而实现更好的控制。在本研究中,我们提出一种少样本提示策略,用于控制从儿童叙事文本中生成问答对。我们旨在控制两个属性:问题的显式性以及潜在的叙事元素。通过实证评估,我们将少样本提示与参考模型并列使用,展示了控制生成过程的有效性。实验突出了少样本策略超越参考模型的情形,尤其是在语义接近度评估以及问答对的多样性和连贯性等场景中。然而,这些改进并不总是具有统计显著性。代码可在 github.com/bernardoleite/few-shot-prompting-qg-control 公开获取。

英文摘要:

Question Generation aims to automatically generate questions based on a given input provided as context. A controllable question generation scheme focuses on generating questions with specific attributes, allowing better control. In this study, we propose a few-shot prompting strategy for controlling the generation of question-answer pairs from children's narrative texts. We aim to control two attributes: the question's explicitness and underlying narrative elements. With empirical evaluation, we show the effectiveness of controlling the generation process by employing few-shot prompting side by side with a reference model. Our experiments highlight instances where the few-shot strategy surpasses the reference model, particularly in scenarios such as semantic closeness evaluation and the diversity and coherency of question-answer pairs. However, these improvements are not always statistically significant. The code is publicly available at github.com/bernardoleite/few-shot-prompting-qg-control.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑