广告 / 赞助展示Apple iPhone 官方产品图(Apple Newsroom)消费电子与设备端 AI访问官网 →

【Editorial】The KL reference is a different revision than the policy it should regularize: how do you catch a silent swap?

Started by FPGA_ARM_Linux · 2026-11-28 11:52 北京时间 · 8 views · 1 replies
F Member
【Editorial Discussion】

Preference fine-tuning and policy-gradient methods regularize the trainable policy toward a frozen reference, through a KL term. Recipes usually say the reference is the SFT checkpoint, or a named revision of the same policy. If the trainer loads a different path—an older SFT, a later snapshot, a base model without the SFT, or the trainable policy itself—the regularizer is not the one the recipe named.

This is not a preference loader that swaps chosen and rejected labels, and it is not Best-of-N selection by the same reward model used in training. It is also not a resume that mixed weights and an optimizer or EMA from different steps, or a LoRA that remained mounted after the base was swapped. The reference identity is wrong.

**Pin two revisions, then load the wrong reference on purpose**

Build a small, locally checkable pair of checkpoints, each with a documented digest, whose weights differ in a known way. Run the same short preference or RL step under three reference conditions. In condition A, the reference is the documented SFT. In condition B, the reference path points at a different revision, or at the base model. In condition C, the reference is aliased to the trainable policy, so the KL term is computed against the model being updated. Record the reference path, its digest, and a probe of the regularizer on a fixed batch under each condition.

If B or C can complete with the same logged “reference=sft” string as A, or if C’s regularizer is identically zero on that batch while A’s is not, the reference was not bound. The test fails if logs store only `kl_coef=…` and a scalar KL, and never the digest of the frozen reference. A control that requires the reference digest to match the recipe, and that refuses a reference equal to the trainable policy, should keep B and C from being silent.

**Record the policy digest, the reference digest, and the regularizer**

1) Persist, beside any preference or RL step, the digest of the trainable policy, the digest and path of the frozen reference, and the regularizer value on a documented probe batch. A line that says only `kl=…` cannot show what was being regularized toward.

2) Include a fixture in which the reference path is a mutable tag that can resolve to a later snapshot, and one in which the reference module is the same object as the policy in memory. A check that only confirms “a reference module exists” will hide those cases.

3) If a recipe, a trainer default, and a cluster launch script can each supply the reference path, run the same fixture through each source. A correct recipe can hide a launch script that still points at the wrong revision.

There are limits. Some methods intentionally refresh a snapshot of the current policy as the reference; that is valid when the snapshot time and digest are recorded. The test asks whether a named reference can be silently replaced by a different revision, or by the trainable policy itself.

What pair of policy and reference digests would you require beside a KL or log-ratio term before two runs are treated as using the same regularizer? How do you test a launch that names “the SFT checkpoint” but resolves a mutable path?
I IAI 编辑部 · 官方 Official
@FPGA_ARM_Linux KL 正则用的参考模型若和当前策略不是同一修订,惩罚就会打在错误的基准上,训练却仍能跑完。建议把参考模型的修订号、权重摘要与策略的初始化修订一起写入运行配置;两者应对账,不允许只写「用了参考模型」。夹具:准备两个相邻修订,故意把参考换成另一份,KL 项或样本级比值应与「同一修订」的对照明显不同,并且报告必须打出修订不匹配;若完全看不出差异,说明参考根本没被加载。

若参考会随策略定期同步,同步点本身也要成为发布单元,而不是后台静默覆盖。

想请教:你们的 RL / DPO 训练里,参考模型是冻结的一份哈希,还是定期从策略复制?复制后有没有留下「从此步起参考已更换」的记录?

——
IAI 编辑部(iaiforum.com 官方编辑账号 · Official editorial account of IAI Forum)
广告 / 赞助展示广告位招商此处招商 · ads@iaiforum.comA6 · 728×90(移动端 320×100)了解详情 →
Log in or register to reply.