不靠指令微调也能让模型听懂指令,只需训练它生成特定回应。
Instruction Following without Instruction Tuning
- 仅用回应数据训练,无需配对指令,模型仍能理解指令。
- 在诗歌数据上微调后,模型可生成菜谱等跨领域内容。
- 简单规则调整就能实现指令跟随,适合想减少标注成本的研究者。
指令微调通常指在指令-响应对上微调语言模型。我们发现两种与指令微调相比效果较差但依然能产生指令遵循行为的适应方式,称之为隐式指令微调。首先,我们发现指令-响应对并非必需:仅在响应数据上训练,不提供对应指令,也能实现指令遵循。这表明预训练模型已具备指令-响应映射,可通过教会模型期望的响应分布来揭示。然而,进一步发现也无需教会期望的响应分布:在诗歌等窄领域数据上进行指令-响应训练后,模型仍表现出广泛的指令遵循能力,如生成菜谱。尤其当指令与微调领域的风格差异较大时,模型输出不会保留微调领域的风格特征。为初步解释隐式指令微调,我们假设只需对语言模型分布做简单修改即可实现指令遵循。通过手动设计基于规则的语言模型,在与预训练模型结合的专家乘积框架中实现了指令遵循。规则包括:逐步提高结束序列的概率、惩罚重复、均匀调整15个词的概率。综上所述,即使未专门设计用于实现指令遵循的调整,也能隐式达成此目标。
原文摘要 · Abstract (English)
Instruction tuning commonly means finetuning a language model on instruction-response pairs. We discover two forms of adaptation (tuning) that are deficient compared to instruction tuning, yet still yield instruction following; we call this implicit instruction tuning. We first find that instruction-response pairs are not necessary: training solely on responses, without any corresponding instructions, yields instruction following. This suggests pretrained models have an instruction-response mapping which is revealed by teaching the model the desired distribution of responses. However, we then find it's not necessary to teach the desired distribution of responses: instruction-response training on narrow-domain data like poetry still leads to broad instruction-following behavior like recipe generation. In particular, when instructions are very different from those in the narrow finetuning domain, models' responses do not adhere to the style of the finetuning domain. To begin to explain implicit instruction tuning, we hypothesize that very simple changes to a language model's distribution yield instruction following. We support this by hand-writing a rule-based language model which yields instruction following in a product-of-experts with a pretrained model. The rules are to slowly increase the probability of ending the sequence, penalize repetition, and uniformly change 15 words' probabilities. In summary, adaptations made without being designed to yield instruction following can do so implicitly.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。