Skip to content
Back to skills

Input Programming

ASecurity

Construct masked universal input programs for adversarial reprogramming of frozen neural networks.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingpythontesting

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Input Programming?

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

Security grade badge for Input Programming
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-input-programming/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-input-programming)

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

SKILL.md
---
name: input_programming
description: Construct masked universal input programs for adversarial reprogramming of frozen neural networks.
---

# Input-Space Adversarial Program Construction

Use this skill when reproducing or testing adversarial reprogramming methods that embed a small task input into a larger target-model input and add a single reusable trainable program. Do not use it for per-example adversarial attacks where every input receives an independently optimized perturbation.

## Inputs
- `task_values`: task data values that occupy protected mask positions.
- `mask`: flat or nested binary mask with `1` for task pixels and `0` for program pixels.
- `program_values`: universal program values for non-task positions.

## Outputs
- A programmed input with task values preserved and program values inserted elsewhere.
- Metadata indicating task positions, program positions, and preservation status.

## Workflow
1. Validate the mask has at least one protected task position and one program position.
2. Flatten nested lists deterministically.
3. Copy task values into mask positions in order.
4. Copy program values into non-mask positions in order; a scalar program may be broadcast.
5. Verify task values were preserved exactly.

## Validation
Run `python tests/test_input_programming.py` or validate the whole skill tree with the Paper2Skills skill validator.

## Limitations
This script is a deterministic data-construction helper. Gradient updates for the program are handled by the program optimization skill.

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…