arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.01265cs.CL
收藏

超越上下文学习:通过任务固有属性指南对齐大语言模型的长文本生成

Beyond In-Context Learning: Aligning Long-form Generation of Large Language Models via Task-Inherent Attribute Guidelines

National University of Singapore(国立新加坡大学);Nanyang Technological University(南洋理工大学);Institute for Infocomm Research (I 2 R)(信息通信研究院);Salesforce AI Research(Salesforce人工智能研究)

Do Xuan Long, Duong Ngoc Yen, Do Xuan Trong, Luu Anh Tuan, Kenji Kawaguchi, Shafiq Joty, Min-Yen Kan, Nancy F. Chen

AI总结:

本文提出LongGuide方法,通过自动生成度量指南和输出约束指南来显式定义长文本生成任务的语言与格式分布,弥补上下文学习在长文本生成中的不足,并在零样本和少样本设置下将多种大语言模型性能提升超过5%。

摘要:

上下文学习(ICL)是预训练大语言模型(LLMs)一项重要但尚未被充分理解的能力。它能够在不进行微调的情况下,利用少量示例(称为演示)大幅提升任务性能。尽管ICL在问答任务中表现有效,但在摘要等长文本生成任务中往往表现不佳。在适当且现实的假设下,我们从实证和理论两方面表明,仅靠ICL演示不足以教会LLMs生成任务所需的语言和格式分布。我们主张应显式地暴露于任务分布,并假设通过提示来定义这些分布能够提升模型性能。为此,我们提出了LongGuide,它能高效地生成两条并行的指南流,分别捕捉任务语言和格式属性:(i)度量指南(MGs),指导模型优化自我评估的度量指标;(ii)输出约束指南(OCGs),在词元和句子两个层面约束生成过程。LongGuide自动选择最佳的指南组合,在零样本和少样本设置下,将强大的开源和闭源LLMs的性能均提升了超过5%。我们表明LongGuide具有良好的泛化性,弱模型可以通过学习LongGuide来增强强模型,并且它能与自动提示优化器协同集成。

英文摘要:

In-context learning (ICL) is an important yet not fully understood ability of pre-trained large language models (LLMs). It can greatly enhance task performance using a few examples, termed demonstrations, without fine-tuning. Although effective in question answering, ICL often underperforms in long-form generation tasks such as summarization. Under appropriately realistic assumptions, we empirically and theoretically show that ICL demonstrations alone are insufficient to teach LLMs the task language and format distributions for generation. We argue for explicit exposure to the task distributions and hypothesize that defining them by prompting enhances model performance. To this end, we present LongGuide, which efficiently generates two parallel streams of guidelines capturing task language and format properties: (i) Metric Guidelines (MGs) that instruct models to optimize self-evaluated metrics; and (ii) Output Constraint Guidelines (OCGs) that constrain generation at both token and sentence levels. LongGuide automatically selects the best combination of guidelines, improving both strong open- and closed-source LLMs by over 5% in both zero- and few-shot settings. We show that LongGuide is generalizable, learnable by weak models to enhance strong ones, and integrates synergistically with automatic prompt optimizers.

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

↑