计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
output_remapping【效率与协作】Aggregate frozen target model outputs into adversarial task labels using one-to-one or many-to-one mappings.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a recovery must implement the paper's h_g mapping from original target-model classes to attacker-task classes. It is appropriate for logits or probabilities. Do not use it as a learned classifier head; the mapping is fixed during program optimization.
scores: original target-model logits or probabilities.mapping: dictionary from adversarial labels to lists of original class indices.reducer: sum or mean for many-to-one aggregation.Validate that mapped labels are in range, aggregate each label group, then choose the label with maximum aggregate score using lexical label order for ties.
Run python tests/test_output_remapping.py.
This skill does not choose semantic ImageNet labels; it implements and validates a supplied mapping.