界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

maximum_entropy_objective

maximum_entropy_objective

【效率与协作】Compute SAC maximum entropy objective diagnostics for rewards, log probabilities, discounts, and temperature-scaled entropy bonuses.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: maximum_entropy_objective description: Compute SAC maximum entropy objective diagnostics for rewards, log probabilities, discounts, and temperature-scaled entropy bonuses.

Maximum Entropy Objective

Use this skill when a recovery or implementation must verify the SAC maximum-entropy objective from Haarnoja et al. The skill is appropriate for bounded checks, synthetic replay batches, and cross-checks of entropy bonus signs. Do not use it to claim full MuJoCo performance.

Inputs

  • A reward sequence.
  • Matching policy log probabilities.
  • Discount factor gamma.
  • Temperature or reward-scale coefficient alpha.

Outputs

  • Discounted reward-only return.
  • Discounted soft return using reward - alpha * log_prob.
  • Per-step entropy bonuses.

Workflow

  1. Validate reward and log-probability lengths.
  2. Convert entropy to the sign convention -log_prob.
  3. Add alpha * entropy to reward at each step.
  4. Compute discounted totals for reward-only and soft objectives.
  5. Use the difference as a mechanism diagnostic, not as a task score.

Validation

Run python tests/test_entropy_objective.py or validate the whole tree with the Distiller skill validator.

Limitations

This module computes objective diagnostics only. It does not implement replay sampling, neural critics, or environment interaction.

我的收藏