Use when a PPLM-style controller must perturb latent/logit state at inference time with attribute and KL losses while freezing the base model.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add VectorSpaceLab/AREX-Skill --skill pplm_latent_perturbation --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Pplm Latent Perturbation?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vectorspacelab-pplm-latent-perturbation)More formats (shields.io, HTML) on the badges page.
---
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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。
Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
Django测试策略,包括pytest-django、TDD方法论、factory_boy、模拟、覆盖率以及测试Django REST Framework API。
克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则