计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
soft_regularization【效率与协作】Compute soft movement-pruning sigmoid sparsity penalties and gradients for threshold-mask recovery checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when implementing or auditing soft movement pruning. It computes the paper penalty lambda_mvp * sum(sigmoid(S)) and the corresponding score-gradient contribution.
scores: flat or nested numeric scores.lambda_mvp: nonnegative regularization strength.threshold and lr for before/after keep-ratio diagnostics.Penalty value, gradient contribution with the same shape as scores, sigmoid mass, and optional threshold keep-ratio diagnostics.
lambda_mvp.lambda_mvp * sigmoid(S) * (1 - sigmoid(S)).Run python tests/test_soft_regularization.py. Tests check zero-lambda behavior, sigmoid-at-zero values, and non-increasing scores under the penalty update.
This skill supplies only the regularizer component; task loss and score masks must be handled by other skills.