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

pplm_latent_perturbation

pplm_latent_perturbation

Use when a PPLM-style controller must perturb latent/logit state at inference time with attribute and KL losses while freezing the base model.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: pplm_latent_perturbation description: Use when a PPLM-style controller must perturb latent/logit state at inference time with attribute and KL losses while freezing the base model.

PPLM Latent Perturbation

Use this skill to implement the core PPLM inference-time update.

Inputs

  • Base next-token logits or latent state.
  • Attribute loss function.
  • Step size, iteration count, KL scale.

Outputs

  • Perturbed probability distribution.
  • Trace with before/after loss, KL, and perturbation values.

Workflow

  1. Copy the base logits/state and keep it immutable.
  2. Initialize a perturbation at zero.
  3. Iteratively estimate the gradient of attribute loss plus KL-to-base penalty.
  4. Update only the perturbation.
  5. Return the final distribution and trace proving the target probability changed.

Validation

Run python tests/test_latent_perturbation.py.

Limitations

Reduced proxy implementations must declare that they are not full GPT-2 345M reproduction.

저장한 Skills