인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

score_sde_score_matching

score_sde_score_matching

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

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

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:

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.

저장한 Skills