AGENT SKILL

evaluation-and-certification

Compute ART robustness/privacy metrics, run evaluation objects, route SummaryWriter logging, and perform gradient checks and certification/verification workflows.

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

01 前言 Front Matter

name
evaluation-and-certification
license
MIT
metadata
{ "disco-role": "operating" }
description
Compute ART robustness/privacy metrics, run evaluation objects, route SummaryWriter logging, and perform gradient checks and certification/verification workflows.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

evaluation-and-certification

Use this sub-skill when the model is already wrapped and you need to measure robustness, privacy leakage, gradient health, or certification/verification results.

Use this for

  • ART robustness metrics: adversarial_accuracy, empirical_robustness, loss_sensitivity, clever_u, wasserstein_distance.
  • Privacy leakage metrics and threshold helpers: PDTP, SHAPr, ComparisonType, and the ROC helpers in art.metrics.privacy.
  • Gradient checks: loss_gradient_check.
  • Evaluation objects: SecurityCurve, GreatScorePyTorch.
  • Tree robustness verification and certified/tree-specific workflows.
  • Certification wrappers: randomized smoothing, de-randomized smoothing, DeepZ, and interval/IBP classifiers.
  • SummaryWriter/TensorBoard routing for evaluation objects or attack/certification telemetry.

Start here

  1. Read references/metrics-evaluations-certification.md to pick the metric, evaluation object, or certifier and the correct import path.

  2. If you need TensorBoard output, follow the SummaryWriter routing table there before enabling logging.

  3. Run the bundled smoke script with --help first, then choose the tree mode you need:

    python scripts/smoke_metrics_tree.py --help
    python scripts/smoke_metrics_tree.py --tree-mode verify
    python scripts/smoke_pytorch_adv_accuracy.py --attack fgm --json
    

    If a tiny tree fixture is too brittle in your environment, rerun with --tree-mode signature. Use smoke_pytorch_adv_accuracy.py when the user needs an integrated CPU PyTorch wrapper + bounded attack + adversarial-accuracy sanity check.

  4. Keep attack generation in ../evasion-and-preprocessing/SKILL.md and estimator construction in ../estimators-and-models/SKILL.md.

Route away from this sub-skill

  • Attack crafting, perturbation budgets, preprocessing defences, and adversarial training -> ../evasion-and-preprocessing/SKILL.md
  • Estimator wrappers, clip_values, label shape fixes, and gradient-enabled model setup -> ../estimators-and-models/SKILL.md
  • Poisoning, backdoors, extraction, and attack setup for privacy/inference workflows -> ../poisoning-inference-extraction/SKILL.md
  • Package install, optional dependency, and device/backend readiness -> ../setup-and-backends/SKILL.md

Guardrails

  • Do not run original repo tests, examples, notebooks, or maintainer scripts.
  • Keep smoke inputs synthetic, tiny, deterministic, and CPU-only.
  • Use SecurityCurve as a post-attack evaluation; if a weak attack leaves accuracy high, strengthen the attack rather than assuming the model is robust.
  • Tree verification only makes sense for normalized [0, 1] data and tree classifiers that expose get_trees().

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