Skip to content
Back to skills

Diffusion Design

ASecurity

Select and validate scalar diffusion factors for robust or heavy-tailed minimum Stein discrepancy estimators.

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

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

Installs into .claude/skills of the current project.

Are you the author of Diffusion Design?

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

Security grade badge for Diffusion Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-diffusion-design/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-diffusion-design)

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: diffusion_design
description: Select and validate scalar diffusion factors for robust or heavy-tailed minimum Stein discrepancy estimators.
---

# Diffusion Choice For Robust Estimation

Use this skill when a Minimum Stein Discrepancy recovery needs to choose the diffusion factor used inside a Stein operator. The skill is appropriate for one-dimensional scalar proxies of the paper's diffusion choices, especially Student-t heavy-tail examples and robust decaying factors for outliers.

## Inputs
- Model family or recovery scenario: `ordinary`, `student_t_heavy_tail`, or `robust_decay`.
- Current parameter value and sample points.
- Optional hyperparameters such as scale, degrees of freedom, and decay exponent.

## Outputs
- A diffusion function or JSON table of diffusion values.
- Diagnostics: min, max, positivity, finiteness, and monotonicity checks relevant to the chosen family.
- Metadata explaining why the diffusion is mechanism-faithful for the paper.

## Workflow
1. Use `ordinary` when validating baseline Langevin KSD behavior.
2. Use `student_t_heavy_tail` for Section 4.2-style non-standardised Student-t recovery; values increase with distance from location.
3. Use `robust_decay` for Section 4.3-style corruption recovery; values decay for large absolute observations.
4. Validate all values before passing the function to a Stein-kernel loss.
5. Save the configuration and diagnostics in the recovery logs.

## Validation
Run `python tests/test_diffusion_design.py` or validate the whole skill tree with tests. The tests check positivity, finiteness, and intended directional behavior.

## Limitations
The bundled implementation returns scalar one-dimensional factors. It does not claim to validate all matrix-valued diffusion tensors in the paper.

## Refinement cycle 2 note
Robust-decay ablation confirmed outlier downweighting; recovery logs should preserve `near_value` and `far_value` when validating robust diffusions.

Files in this skill

  • SKILL.md1.9 KB
  • scripts/diffusion_design.py3.1 KB
  • tests/test_diffusion_design.py744 B

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.