DIAL:具有蒸馏指令遵循水平的可操纵语言模型
DIAL: Steerable Language Models with Distilled Instruction-Adherence Levels
AI总结:
该研究提出DIAL模型,通过轻量级适配器和文本条件分类器实现指令遵循的细粒度控制,在多LLM系列上验证其平衡概念表达与流畅性的效果,结合SteerIF数据集提升指令遵循能力。
摘要:
当用户说“保持简短”时,大语言模型(LLM)的响应应该多短?更广泛地说,用户和应用需要不同程度的指令遵循,但提示无法可靠地对其提供细粒度控制。因此,我们研究“可操纵语言模型”,该模型可对模型遵循文本指定的一般指令的程度提供细粒度的数值控制。然而,现有方法无法在细粒度控制、效率和跨不同指令的可扩展性方面同时满足需求。为解决这一差距,我们引入DIAL(Distilled Instruction-Adherence Levels,蒸馏指令遵循水平),以实现这三个特性。对于细粒度控制,我们使用冻结的LLM执行无分类器引导(CFG),为不同水平的指令遵循的在线策略蒸馏提供训练信号。对于效率,我们设计了一个轻量级操纵适配器,该适配器使用LLM隐藏状态上的分类器来计算闭式操纵编辑。该分类器根据目标遵循水平在每个token处自适应设置操纵幅度,同时考虑LLM隐藏状态的几何结构以保持响应连贯性。对于可扩展性,该分类器以文本为条件,允许共享适配器支持新指令而无需针对每个指令进行拟合,且训练仅需要指令和请求文本。对多个LLM系列的评估表明,DIAL在概念表达和响应流畅性之间实现了具有竞争力的平衡,且概念分数随遵循水平单调增加。我们引入SteerIF,这是一个包含98625条概念、角色、可验证和描述性指令的仅指令数据集。在SteerIF上训练后,DIAL可对角色提供细粒度控制,并且与提示结合时,可改善可验证指令的遵循情况。
英文摘要:
When a user says "Keep it short", how short should the LLM's response be? More generally, users and applications require different levels of instruction adherence, but prompting does not reliably provide fine-grained control over them. We therefore study "steerable language models" that provide fine-grained numerical control over the degree to which models follow general instructions specified in text. However, existing approaches do not jointly offer fine-grained control, efficiency, and scalability across diverse instructions. To address this gap, we introduce DIAL (Distilled Instruction-Adherence Levels) to achieve all three properties. For fine-grained control, we perform classifier-free guidance (CFG) with a frozen LLM to provide training signals for on-policy distillation of instruction adherence at different levels. For efficiency, we design a lightweight steering adapter that uses a classifier over the LLM's hidden states to compute a closed-form steering edit. The classifier adaptively sets the steering magnitude at each token based on the target adherence level, while accounting for the geometry of the LLM's hidden states to preserve response coherence. For scalability, the classifier is text-conditioned, allowing a shared adapter to support new instructions without per-instruction fitting, and training requires only instruction and request text. Evaluation across multiple LLM families shows that DIAL achieves a competitive balance between concept expression and response fluency, with concept scores increasing monotonically across adherence levels. We introduce SteerIF, an instruction-only dataset of 98, 625 concept, persona, verifiable, and descriptive instructions. When trained on SteerIF, DIAL provides fine-grained control over personas and, when combined with prompting, improves verifiable instruction following.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。