标签覆盖 Jev 风格类型化决策模型中的定义

·

研究论文 · 2026/10/07

类型化决策模型针对固定问题,为每个调用者定义的选项返回概率。每个选项包含短标签和书面定义,开发者通过定义说明模型应遵循的规则。Jev 为路由、审核和分诊引入了这一接口,后续出现了开源实现,而每当语言模型通过评分标签字符串用作分类器时,也会发生相同操作。我们研究这些开源实现(其权重可检查与修补),探究概率是遵循定义还是标签。对标签的偏好称为选项标签偏差。在四个开源权重类型化决策模型、从 Qwen2.5 主干读取答案的三种方式、十一个分类任务以及我们引入的合成路由套件 PolicyBench(其中规则仅出现在定义中)上,答案主要是标签。删除所有定义后准确率不变(laya-td: 0.8559 对 0.8487),尽管这些定义单独支持 0.7971 的准确率;将选项重命名为 A 和 B 则准确率提高 +0.1511 [+0.1377, +0.1646]。一个系统 von 不受影响,两个代码库在一个表达式上不同:laya 将每个选项写为“{label}: {definition}”,而 von 只写定义。在权重不变的情况下双向更改该表达式,使所有三个 laya 检查点完全不变(+0.0000 [+0.0000, +0.0000]),并在 von 中产生该效应:当标签与定义矛盾时,其准确率从 0.8511 降至 0.2281。先前工作将这一失败归因于这些模型使用的受限决策头(替代文本解码器);我们的结果将其定位在提示渲染中。我们给出一个两次调用测试,让实践者判断其模型属于哪种情况,并衡量四种缓解措施的价值。

该研究揭示了类型化决策模型中一个关键但被忽视的偏差:模型主要依赖选项标签而非定义,这可能导致实际应用中的错误分类。通过定位问题到提示渲染并提供测试与缓解措施,对开发者和研究者具有重要实践意义。

A typed decision model answers a fixed question about an input by returning a probability for each of several caller-defined options. Each option carries a short label and a written definition, which is where a developer states the rule the model should apply. Jev introduced this interface for routing, moderation and triage, open implementations followed, and the same operation occurs whenever a language model is used as a classifier by scoring label strings. We study the open implementations, whose weights we can inspect and patch, and ask whether the probability follows the definitions or the labels. A preference for the label we call option-label bias. Across four open-weight typed decision models, three ways of reading an answer from a Qwen2.5 backbone, eleven classification tasks and PolicyBench, a synthetic routing suite we introduce in which the rule appears only in the definitions, the answer is mostly the labels. Deleting every definition leaves accuracy unchanged (laya-td: 0.8559 against 0.8487), although those definitions support 0.7971 on their own, and renaming the options to A and B raises accuracy by +0.1511 [+0.1377, +0.1646]. One system, von, is unaffected, and the two code bases differ in one expression: laya writes each option as "{label}: {definition}", while von writes only the definition. Changing that expression in both directions, with no weight changed, makes all three laya checkpoints exactly invariant (+0.0000 [+0.0000, +0.0000]) and creates the effect in von, whose accuracy falls from 0.8511 to 0.2281 when a label contradicts its definition. Earlier work attributed this failure to the constrained decision head these models use in place of a text decoder; our results locate it in the prompt rendering. We give a two-call test that tells a practitioner which case applies to their model, and measure what four mitigations are worth.

阅读原文

参与讨论