Skip to content
Back to skills

Pplm Attribute Models

ASecurity

Use when a recovery or implementation needs differentiable PPLM attribute scores for BoW or simple discriminator-style control.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill pplm_attribute_models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pplm Attribute Models?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pplm Attribute Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-pplm-attribute-models/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-pplm-attribute-models)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: pplm_attribute_models
description: Use when a recovery or implementation needs differentiable PPLM attribute scores for BoW or simple discriminator-style control.
---

# PPLM Attribute Models

Use this skill to build the plug-in attribute model p(a|x) used by PPLM. Do not use it to modify base LM weights.

## Inputs
- Vocabulary tokens.
- Topic BoW terms or linear classifier weights.
- Candidate token probabilities or a hidden vector.

## Outputs
- Numeric attribute score.
- Attribute loss suitable for gradient ascent/descent in a controller.
- Diagnostics for missing BoW terms.

## Workflow
1. Normalize vocabulary and target words.
2. For BoW control, score the probability mass assigned to target words using `-log(sum p(target))` as a minimization loss.
3. For discriminator-style control, apply a linear score or softmax outside the base LM.
4. Return diagnostics; never update the base LM.

## Validation
Run `python tests/test_attribute_models.py`.

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.