界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

autoattack_evaluation_protocol

autoattack_evaluation_protocol

【效率与协作】Evaluate robust accuracy with a fixed sequential AutoAttack-style attack protocol and per-attack accounting.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: autoattack_evaluation_protocol description: Evaluate robust accuracy with a fixed sequential AutoAttack-style attack protocol and per-attack accounting.

AutoAttack Evaluation Protocol

Use this skill when converting attack outputs into robust accuracy under a fixed attack sequence. Do not use it to tune attacks based on model-specific failures; the order and attack definitions should be declared before evaluation.

Inputs

  • Examples and labels.
  • A logit function.
  • Ordered attack callables that return adversarial examples for a subset.

Outputs

  • Robust accuracy.
  • Remaining robust mask.
  • Per-attack success counts and evaluated counts.

Workflow

  1. Mark examples that are clean-correct.
  2. For each attack, pass only examples still robust.
  3. Update the robust mask when adversarial predictions change the label.
  4. Report final robust accuracy over all examples and per-attack accounting.

Validation

Run python tests/test_protocol.py or use the generated skill validator.

Limitations

This helper records the AutoAttack accounting pattern; it does not implement FAB or Square Attack internally.

我的收藏