sac_update_step
Execute one deterministic reduced Soft Actor-Critic critic actor and target update for recovery evidence.
SKILL.mdbasicagent-skill/skill_library/paperbench/rice/skill/sac_gail_policy_transfer/sac_update_step/SKILL.md
GitHubSAC Update Step
Use this skill for bounded recovery experiments that must show the SAC update mechanism without full MuJoCo or neural-network training. It consumes a validated replay batch and scalar parameters, then emits losses, changed parameters, and mechanism flags.
Inputs
- Replay batch with transition dictionaries.
- Scalar parameters
value,q1,q2,policy, andtarget_value. - Hyperparameters
gamma,alpha,lr, andtau.
Outputs
loss_beforeandloss_after.params_beforeandparams_after.- Mechanism checks for entropy, replay use, twin Q, actor/critic update, target update, and optimizer change.
Workflow
- Compute soft value targets using
min(q1, q2) - alpha * log_prob. - Compute Q targets from reward plus discounted target value.
- Compute actor pressure from
alpha * log_prob - min(q1, q2). - Apply a small scalar gradient-like update to value, Q, and policy parameters.
- Apply Polyak averaging to the target value parameter.
Validation
Run python tests/test_update.py or validate the full skill tree with the Distiller validator.
Limitations
This is a declared reduced/proxy update and must not be reported as full paper-scale SAC training.