Skip to content
Back to skills

Score Sde Reverse Sampling

ASecurity

Run reduced reverse-time SDE, probability-flow, and predictor-corrector sampling updates for Score SDE.

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

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_reverse_sampling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Score Sde Reverse Sampling?

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

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

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_reverse_sampling
description: Run reduced reverse-time SDE, probability-flow, and predictor-corrector sampling updates for Score SDE.
---

# Score SDE Reverse Sampling

Use this skill when you need an executable reduced sampler that follows the Score SDE reverse-time mechanism. It consumes SDE drift/diffusion callbacks and a score function; it does not depend on the original paper repository.

Do not use this skill to claim full image generation quality. It is a compact sampler for validating reverse SDE and predictor-corrector mechanics.

## Inputs

- Initial state from a prior or supplied latent value.
- Descending times from `T` to `eps`.
- Drift and diffusion callbacks from a forward SDE.
- Score callback.
- Predictor mode: Euler-Maruyama or probability flow.
- Corrector settings: number of Langevin steps, step size, optional noise seed.

## Outputs

- Final state and trajectory.
- Score evaluation count.
- Predictor/corrector update diagnostics.
- Flags indicating stochastic or deterministic operation.

## Workflow

1. Build a `SamplerConfig`.
2. Call `run_sampler` with callbacks for drift, diffusion, and score.
3. Use `probability_flow=True` for deterministic ODE-style updates.
4. Use `corrector_steps > 0` to add Langevin correction before each predictor step.
5. Save the trajectory and score-call count as recovery evidence.

## Validation

Run:

```bash
python scripts/reverse_sampling.py --self-test
python tests/test_reverse_sampling.py
```

The tests check deterministic probability-flow behavior, finite stochastic updates, and corrector movement under a controlled score.

## Limitations

The sampler is intentionally low-dimensional and standard-library only. Full PC sampling for images requires neural model replicas, device mapping, denoising options, and dataset scalers outside this skill.

Files in this skill

  • SKILL.md1.8 KB
  • scripts/reverse_sampling.py5 KB
  • tests/test_reverse_sampling.py1.3 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.