Skip to content
Back to skills

Score Sde Probability Flow

ASecurity

Compute Score SDE probability-flow drift identities and compact likelihood accounting diagnostics.

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

Works with

  • terminal

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

Installs into .claude/skills of the current project.

Are you the author of Score Sde Probability Flow?

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

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

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_probability_flow
description: Compute Score SDE probability-flow drift identities and compact likelihood accounting diagnostics.
---

# Score SDE Probability Flow

Use this skill when you need deterministic probability-flow ODE drift checks or lightweight likelihood accounting for Score SDE recovery. It is designed for scalar or low-dimensional fixtures and can cross-check the SDE kernel skill.

Do not use this skill to claim the paper's CIFAR-10 bits/dim unless it is connected to a trained model, data preprocessing, ODE solver, and evaluation pipeline that match the paper.

## Inputs

- Forward drift `f(x, t)`.
- Diffusion `g(t)`.
- Score function.
- Prior log probability at terminal latent.
- Divergence values or a finite-difference divergence callback.
- Data dimension and optional offset for bits/dim.

## Outputs

- Probability-flow drift.
- Divergence estimate.
- Delta log probability.
- Negative log likelihood or bits/dim proxy.
- Identity checks comparing reverse SDE and probability-flow drifts.

## Workflow

1. Compute probability-flow drift as `f - 0.5 * g^2 * score`.
2. Estimate divergence analytically or with finite differences.
3. Accumulate a pathwise delta logp term with the chosen integration direction.
4. Combine terminal prior logp and delta logp.
5. Convert to bits/dim only when the dimensionality and offset are explicitly supplied.

## Validation

Run:

```bash
python scripts/probability_flow.py --self-test
python tests/test_probability_flow.py
```

The tests verify half-correction drift, finite-difference divergence on a linear function, and scalar likelihood accounting.

## Limitations

This skill handles mechanism-faithful diagnostics, not black-box adaptive ODE integration over image batches.

Files in this skill

  • SKILL.md1.7 KB
  • scripts/probability_flow.py3.2 KB
  • tests/test_probability_flow.py1.2 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.