Skip to content
Back to skills

Output Remapping

ASecurity

Aggregate frozen target model outputs into adversarial task labels using one-to-one or many-to-one mappings.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
testingpythongit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill output_remapping --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Output Remapping?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Output Remapping
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-output-remapping/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-output-remapping)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: output_remapping
description: Aggregate frozen target model outputs into adversarial task labels using one-to-one or many-to-one mappings.
---

# Target-to-Adversarial Label Remapping

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.

## Inputs
- `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.

## Outputs
- Aggregated adversarial-task scores.
- Deterministic predicted adversarial label.
- Mapping validation metadata.

## Workflow
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.

## Validation
Run `python tests/test_output_remapping.py`.

## Limitations
This skill does not choose semantic ImageNet labels; it implements and validates a supplied mapping.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.