Slime监控标志静默改变训练损失
(3/8) Silent training-loss change: turning on the monitoring-only --get-mismatch-metrics flag still changes training loss and gradients with Slime's built-in TI
Hao AI Lab发现,Slime仅开启监控标志--get-mismatch-metrics时,内置TIS函数仍会缩放损失并改变梯度。使用icepop_function复现时,首步梯度范数在2次测试中均下降37%;修复后仅--use-tis开启时才缩放损失,监控运行与基线完全一致。
正文
(3/8) Silent training-loss change: turning on the monitoring-only --get-mismatch-metrics flag still changes training loss and gradients with Slime's built-in TIS functions.
That flag should only log train-inference mismatch. However, Slime runs the TIS function whenever --get-mismatch-metrics or --use-tis is on, and it always uses the returned loss. Slime relies on each function to check --use-tis first. Unlike the reference helper, both built-in functions (vanilla_tis_function and icepop_function) skip that check and always scale the loss. As a result, monitoring-only runs quietly train with TIS active, even with --use-rollout-logprobs where TIS is forbidden.
Reproduction: Enabling --get-mismatch-metrics without --use-tis (with icepop_function) cut the first step's gradient norm by 37% in 2 out of 2 runs, matching a run with --use-tis turned on.
Our fix: We check --use-tis before scaling the loss in both built-in functions. With this fix, monitoring-only runs match the baseline loss and gradients exactly while still logging mismatch metrics.
PR: https://t.co/Qq8wyP1RVx
AI 热点