arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.33766cs.CLcs.AIcs.LG
收藏

StateWise:教语言模型在多轮对话中追踪并遵守不断变化的约束条件

StateWise: Teaching Language Models to Track and Obey Evolving Constraints in Multi-Turn Dialogue

Samarth Varshney, Ritu Yadav

AI总结:

StateWise是一种自改进方法,通过微调LLM维护可修订约束状态,结合自训练与偏好阶段,降低多轮对话中约束复发现象,提升对话成功率,且无需推理时支架。

摘要:

对话助手的用户很少会一次性说明所有需求:他们会添加约束、修改约束、撤回约束、偏离主题后再回到原话题。经过指令微调的大型语言模型(LLM)在此场景中存在两方面问题:随着对话轮次增加,当前约束不再被遵守(持续性失效),且已撤回的约束仍被执行(复发现象)。目前已知的唯一修复方法是使用外部账本,每轮重新注入编译后的规范。我们提出StateWise,这是一种自改进方法,用于训练单个LLM维护自身可修订的约束状态,该状态为带类型的状态,包含已撤销约束的墓碑标记,因此持续性和复发现象可通过可执行检查器进行衡量,且真实状态可免费编译。StateWise对LLM进行两个互补技能的微调:将对话总结为其约束状态,以及基于该状态生成响应,随后在自身轨迹上进行自训练,仅保留通过与编译状态的精确往返检查的轮次。这使得70亿至80亿参数的模型几乎能完美追踪状态,但令人惊讶的是,它们并未学会遵守状态:在Llama-3.1-8B模型上,每个有监督变体的复发现象大致翻倍。因此,我们在自生成的复发对比上添加偏好阶段,其中被拒绝的响应执行已撤销的规则,而选中的响应通过往返检查。在两个带有保留约束族和未见过措辞的主干模型上,StateWise相比有监督自训练将复发现象降低了8至22个百分点,相比主干模型将对话成功率提升了8至19个百分点,且在无推理时支架的情况下,在复发现象上击败了神经常量账本基线。我们还描述了该方法在通用指令遵循基准上的成本,并研究了权重插值作为缓解措施。

英文摘要:

Users of conversational assistants rarely state all requirements up front: they add constraints, amend them, withdraw them, digress, and return. Instruction-tuned LLMs fail here in two ways: active constraints stop being honored as turns accumulate (persistence failure), and withdrawn constraints keep being enacted (relapse). The only existing repair we know of is an external ledger that re-injects a compiled specification every turn. We propose StateWise, a self-improving approach that teaches a single LLM to maintain its own revisable constraint state, a typed state with tombstones for revoked constraints, so persistence and relapse are measured by executable checkers and ground-truth states are compiled for free. StateWise fine-tunes the LLM on two complementary skills, summarizing a dialogue into its constraint state and responding conditioned on that state, then self-trains on its own trajectories, keeping only turns that pass an exact round-trip check against the compiled state. This teaches 7-8B models to track the state almost perfectly but, surprisingly, not to obey it: on Llama-3.1-8B every supervised variant roughly doubles relapse. We therefore add a preference stage on self-generated relapse contrasts, where the rejected response enacts a revoked rule and the chosen one passes the round-trip check. On two backbones with held-out constraint families and unseen phrasings, StateWise cuts relapse by 8-22 points relative to supervised self-training, lifts conversation success by 8-19 points over the backbone, and beats an oracle compiled-ledger baseline on relapse with no inference-time scaffolding. We also characterize the recipe's cost on general instruction-following benchmarks and study weight interpolation as a mitigation.

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

↑