Skip to content
Back to skills

Score Sde Score Matching

ASecurity

Build continuous denoising score-matching targets, losses, and reduced optimizer evidence for Score SDE.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
researchpythonbash

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Score Sde Score Matching?

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

Security grade badge for Score Sde Score Matching
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-score-sde-score-matching/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-score-sde-score-matching)

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

Download with Pro
SKILL.md
---
name: score_sde_score_matching
description: Build continuous denoising score-matching targets, losses, and reduced optimizer evidence for Score SDE.
---

# Score SDE Score Matching

Use this skill when a recovery or implementation task needs the continuous denoising score-matching objective from the Score SDE paper. It is designed to consume marginal kernel outputs from a Score SDE implementation and can also run a deterministic reduced optimizer step for mechanism evidence.

Do not use this skill as a full neural-network trainer. It does not implement NCSN++, DDPM++, JAX, Flax, or dataset input pipelines.

## Inputs

- Clean data batch `x0`.
- Marginal means and standard deviations from a forward SDE kernel.
- Gaussian noise values and sampled times.
- A score model callable or the bundled linear score fixture.
- Loss mode: unweighted or likelihood weighted by `g(t)^2`.

## Outputs

- Perturbed examples.
- Conditional score targets for Gaussian perturbations.
- Per-example loss values and scalar average loss.
- Reduced optimizer trace with parameters before and after an update.

## Workflow

1. Build a batch using `build_score_matching_batch`.
2. Evaluate score predictions with an injected model.
3. Compute the continuous denoising score-matching loss.
4. For reduced recovery, call `optimizer_step` on a `LinearScoreModel`.
5. Save `loss_before`, `loss_after`, `params_before`, and `params_after` when using the optimizer trace as experiment evidence.

## Validation

Run:

```bash
python scripts/score_matching.py --self-test
python tests/test_score_matching.py
```

The tests check target construction, likelihood weighting, and a real parameter update.

## Limitations

The reduced optimizer uses finite differences for portability. Full paper reproduction requires a large neural score model and many training steps, which are outside this skill's bounded test contract.

Files in this skill

  • SKILL.md1.9 KB
  • scripts/score_matching.py6.4 KB
  • tests/test_score_matching.py1.7 KB

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.