Skip to content
Back to skills

Stochastic Interpolant Sampler

ASecurity

Integrate bounded stochastic-interpolant probability-flow ODE and simple diffusion sampler updates from learned velocity and score fields.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Stochastic Interpolant Sampler?

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

Security grade badge for Stochastic Interpolant Sampler
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-stochastic-interpolant-sampler/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-stochastic-interpolant-sampler)

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

SKILL.md
---
name: stochastic_interpolant_sampler
description: Integrate bounded stochastic-interpolant probability-flow ODE and simple diffusion sampler updates from learned velocity and score fields.
---

# Stochastic Interpolant Sampler

Use this skill after velocity and score or denoiser fields have been defined. It provides bounded deterministic ODE and seeded Euler-Maruyama style SDE updates for recovery experiments.

## Inputs

- Initial scalar samples or sample summaries.
- A velocity function `b(t, x)`.
- Optional score function `s(t, x)`.
- A scalar diffusion coefficient `epsilon` and step count.
- A deterministic seed for stochastic updates.

## Outputs

- Final generated samples.
- Trajectory summaries for initial and final states.
- Solver metadata tying the result to ODE or SDE dynamics.

## Workflow

1. Use ODE mode for the main reduced recovery unless stochastic diffusion behavior is being ablated.
2. Apply Euler updates on a bounded uniform grid.
3. For SDE mode, use drift `b + epsilon*s` and seeded Gaussian increments.
4. Treat `epsilon=0` as deterministic and verify it matches ODE drift-only behavior.
5. Log step count and sample summaries for validation.

## Validation

Run:

```bash
python scripts/sampler.py --demo
python tests/test_sampler.py
```

## Limitations

The script is intentionally small and deterministic. It is not a substitute for the paper's adaptive Dormand-Prince or Heun samplers, but it preserves the probability-flow and tunable-diffusion contracts for bounded recovery.

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.