AI Trends

Slime Monitoring Flag Silently Alters Training Loss

UCSD Hao AI LabUpdated Dec 4 04:44

AI summary

Hao AI Lab found that when Slime enables only the monitoring flag --get-mismatch-metrics, its built-in TIS function still scales the loss and changes the gradients. In reproductions using icepop_function, the first-step gradient norm fell by 37% in both tests; after the fix, loss is scaled only when --use-tis is enabled, and monitoring runs match the baseline exactly.

Body

(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

Source

UCSD Hao AI Lab