用多步引导提示提升大模型输出一致性。
Improving Consistency in Large Language Models through Chain of Guidance
- 设计多步引导提示(CoG)增强输出语义一致性。
- 微调后模型一致性超基础模型两倍以上。
- 适合需要稳定输出的对话与问答系统。
一致性是大语言模型可信度的核心维度。为使人类信任基于LLM的应用,相同语义或意图的输入应产生一致输出。然而,目前尚无在推理时控制和引导模型提升一致性的机制。本文提出一种新型对齐策略,通过链式引导(Chain of Guidance, CoG)这一多步提示技术,最大化LLM输出的语义一致性。针对闭卷问答任务,相比直接提示,使用CoG生成的输出表现出更高的一致性。尽管模板化回答和多数投票等方法也可实现一致性,但本文聚焦于有引导提示的潜力。我们利用由一致输入-输出对构成的合成数据集,微调LLM以生成既一致又准确的输出。微调后的模型一致性超过基础模型两倍,并在未参与微调的数据集上展现出强泛化能力。
原文摘要 · Abstract (English)
Consistency is a fundamental dimension of trustworthiness in Large Language Models (LLMs). For humans to be able to trust LLM-based applications, their outputs should be consistent when prompted with inputs that carry the same meaning or intent. Despite this need, there is no known mechanism to control and guide LLMs to be more consistent at inference time. In this paper, we introduce a novel alignment strategy to maximize semantic consistency in LLM outputs. Our proposal is based on Chain of Guidance (CoG), a multistep prompting technique that generates highly consistent outputs from LLMs. For closed-book question-answering (Q&A) tasks, when compared to direct prompting, the outputs generated using CoG show improved consistency. While other approaches like template-based responses and majority voting may offer alternative paths to consistency, our work focuses on exploring the potential of guided prompting. We use synthetic data sets comprised of consistent input-output pairs to fine-tune LLMs to produce consistent and correct outputs. Our fine-tuned models are more than twice as consistent compared to base models and show strong generalization capabilities by producing consistent outputs over datasets not used in the fine-tuning process.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。