AGENT SKILL

ddpm_pa_recovery_harness

Run a bounded DDPM-PA proxy optimizer step and emit mechanism-faithful recovery traces and metrics.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
ddpm_pa_recovery_harness
description
Run a bounded DDPM-PA proxy optimizer step and emit mechanism-faithful recovery traces and metrics.

02 资源文件 2

03 SKILL.md 正文

DDPM-PA Recovery Harness

Use this skill when full DDPM-PA few-shot image generation is blocked by missing checkpoints, datasets, or image-quality evaluators, but soft-mode recovery permits a declared mechanism-faithful proxy. The skill combines the adaptation protocol, pairwise image preservation, high-frequency preservation, high-frequency MSE, and an optimizer update into an auditable reduced experiment.

Do not use this skill to claim full FID or Intra-LPIPS reproduction unless a real pretrained DDPM, target images, sampling loop, and evaluators ran. In proxy mode it validates the adaptation mechanism, not the paper's final image metric.

Inputs

  • Module-plan recovery target metadata.
  • Runtime handoff explaining full-runtime blockers and soft-mode permission.
  • Generated skill script roots for protocol, pairwise loss, and Haar high-frequency loss.
  • Lambda weights consistent with the paper: lambda2 and lambda3 in [0.1, 1.0], lambda4 in [0.01, 0.08] unless an ablation intentionally changes them.

Outputs

  • training_trace.json with loss values, component losses, params_before, params_after, and optimizer evidence.
  • Mechanism checks for shared noising, x0 reconstruction, image pairwise KL, high-frequency pairwise KL, high-frequency MSE, and parameter update.
  • A recovery metric such as combined_loss_delta generated by an executable command.

Workflow

  1. Read the module plan and runtime handoff before selecting proxy mode.
  2. Construct a tiny deterministic target batch and scalar trainable adapted-denoiser parameters.
  3. Use generated module scripts to compute noised/reconstructed samples, pairwise KL, and high-frequency losses.
  4. Combine loss components using paper-consistent lambda weights.
  5. Estimate a deterministic finite-difference gradient and update adapted parameters.
  6. Save traces and mechanism checks; never hand-write final metrics outside the command.

Validation

Run:

python scripts/proxy_step.py --output /tmp/ddpm_pa_proxy.json
python -m pytest tests

The tests assert finite loss, changed parameters, complete mechanism booleans, and target-compatible output fields.

Limitations

The default script is intentionally tiny and standard-library only. It is a proxy for the DDPM-PA loss geometry and optimizer execution, not an image generation benchmark.

Cycle 1 refinement note

A zero-pairwise ablation must be recorded as an ablation rather than a valid DDPM-PA mechanism run, because it removes both source-referenced preservation losses even if the base proxy loss still decreases.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351