인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

ppo_rollout_advantage_protocol

ppo_rollout_advantage_protocol

Compute PPO fixed-segment rollout returns and generalized advantage estimates with auditable terminal handling.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: ppo_rollout_advantage_protocol description: Compute PPO fixed-segment rollout returns and generalized advantage estimates with auditable terminal handling.

PPO Rollout Advantage Protocol

Use this skill when implementing or checking PPO-style actor-critic recovery runs that need fixed-length rollout records and truncated generalized advantage estimation. Do not use it for off-policy replay buffers or value targets that are not derived from on-policy trajectory segments.

Inputs

  • Ordered rollout steps with numeric reward, value, and boolean done fields.
  • last_value for bootstrapping after the final segment step.
  • PPO discount gamma and GAE parameter gae_lambda.

Outputs

  • advantages: one scalar per rollout step.
  • returns: advantages[i] + value[i] for each step.
  • deltas: temporal-difference residuals.
  • diagnostics: terminal reset and input-shape checks.

Workflow

  1. Preserve rollout order exactly as collected.
  2. Iterate backward through the segment.
  3. Use the next step value, or last_value at the boundary.
  4. Set next_nonterminal to zero when the current transition ends an episode.
  5. Compute delta and recursive GAE.
  6. Return advantages and value targets for PPO minibatch updates.

Validation

Run python tests/test_advantage.py from this skill directory, or validate the entire skill with Distiller's validate_skill_tree.py --run-tests.

Limitations

This skill does not collect environment interactions and does not normalize advantages. Callers that normalize advantages must record that preprocessing separately.

저장한 Skills