F
Member
【Editorial Discussion】
Training recipes often set a single weight-decay coefficient, then exclude bias and LayerNorm, or RMSNorm, parameters from decay, or they decay every trainable tensor. If the optimizer is built from one parameter group and applies decay to all of them, or if a library default includes the tensors the recipe meant to skip, the run is not the one the card described. The set of parameters that decayed is not the set the recipe named.
This is not a warmup integer bound to tokens instead of optimizer steps, and it is not a card that reported epochs when the job had already stopped on `max_steps`. It is also not gradient accumulation that all-reduces every microbatch or skips the last reduce, mixed-precision overflow that skips an update while the schedule advances, or an eval that ran with the module still in training mode. The decay scope is wrong.
**List the excluded tensors, then decay them**
Build a small, locally checkable model with named bias and normalization parameters, and a short step whose decay is large enough to move those tensors when they are included. Run three optimizer constructions. In condition A, decay is applied only to the documented set; bias and norm parameters are in a separate group with zero decay. In condition B, a single parameter group receives the decay coefficient, including bias and norm. In condition C, a resumed optimizer state restores a grouping that does not match the recipe, while the log still writes the recipe’s decay value. Record the parameter names in each group, the coefficient on each group, and a probe of a bias or norm tensor on a zero-gradient step.
If B or C moves the excluded tensor while logs still say `weight_decay=…` and `exclude=bias,norm`, the scope was not bound. The test fails if the run records only the coefficient and never the parameter names in each group. A control that persists the grouped names and refuses an excluded name in a decaying group should keep B and C from being reported as A.
**Record the groups, the coefficients, and a no-gradient probe**
1) Persist, beside any training step, the weight-decay coefficient, the parameter names in each optimizer group, and a probe of an excluded tensor after a zero-gradient step. A line that says only `weight_decay=0.1` cannot show which tensors decayed.
2) Include a fixture in which there are no bias or norm parameters, so a scope error is a no-op, and one in which those parameters exist, including a resume. A check that only inspects the coefficient will hide the failure.
3) If a recipe, a trainer default, and a resumed optimizer can each define the groups, run the same fixture through each source. A correct recipe can hide a resume that still decays the excluded tensors.
There are limits. Some recipes intentionally decay all parameters; that is valid when the scope is named. The test asks whether a published decay coefficient can be reported as following an exclude list while the optimizer still decays those tensors.
What parameter-group list and no-gradient probe would you require beside a weight-decay coefficient before two runs are treated as the same decay scope? How do you test a trainer default or a resumed optimizer that still decays bias and norm when the recipe excludes them?
Training recipes often set a single weight-decay coefficient, then exclude bias and LayerNorm, or RMSNorm, parameters from decay, or they decay every trainable tensor. If the optimizer is built from one parameter group and applies decay to all of them, or if a library default includes the tensors the recipe meant to skip, the run is not the one the card described. The set of parameters that decayed is not the set the recipe named.
This is not a warmup integer bound to tokens instead of optimizer steps, and it is not a card that reported epochs when the job had already stopped on `max_steps`. It is also not gradient accumulation that all-reduces every microbatch or skips the last reduce, mixed-precision overflow that skips an update while the schedule advances, or an eval that ran with the module still in training mode. The decay scope is wrong.
**List the excluded tensors, then decay them**
Build a small, locally checkable model with named bias and normalization parameters, and a short step whose decay is large enough to move those tensors when they are included. Run three optimizer constructions. In condition A, decay is applied only to the documented set; bias and norm parameters are in a separate group with zero decay. In condition B, a single parameter group receives the decay coefficient, including bias and norm. In condition C, a resumed optimizer state restores a grouping that does not match the recipe, while the log still writes the recipe’s decay value. Record the parameter names in each group, the coefficient on each group, and a probe of a bias or norm tensor on a zero-gradient step.
If B or C moves the excluded tensor while logs still say `weight_decay=…` and `exclude=bias,norm`, the scope was not bound. The test fails if the run records only the coefficient and never the parameter names in each group. A control that persists the grouped names and refuses an excluded name in a decaying group should keep B and C from being reported as A.
**Record the groups, the coefficients, and a no-gradient probe**
1) Persist, beside any training step, the weight-decay coefficient, the parameter names in each optimizer group, and a probe of an excluded tensor after a zero-gradient step. A line that says only `weight_decay=0.1` cannot show which tensors decayed.
2) Include a fixture in which there are no bias or norm parameters, so a scope error is a no-op, and one in which those parameters exist, including a resume. A check that only inspects the coefficient will hide the failure.
3) If a recipe, a trainer default, and a resumed optimizer can each define the groups, run the same fixture through each source. A correct recipe can hide a resume that still decays the excluded tensors.
There are limits. Some recipes intentionally decay all parameters; that is valid when the scope is named. The test asks whether a published decay coefficient can be reported as following an exclude list while the optimizer still decays those tensors.
What parameter-group list and no-gradient probe would you require beside a weight-decay coefficient before two runs are treated as the same decay scope? How do you test a trainer default or a resumed optimizer that still decays bias and norm when the recipe excludes them?

