Skip to content
Back to skills

Adaptive Apgd Loop

ASecurity

Run a deterministic APGD-style projected attack with loss-history step adaptation and auditable traces.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspythongit

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Adaptive Apgd Loop?

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

Security grade badge for Adaptive Apgd Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-adaptive-apgd-loop/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-adaptive-apgd-loop)

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

SKILL.md
---
name: adaptive_apgd_loop
description: Run a deterministic APGD-style projected attack with loss-history step adaptation and auditable traces.
---

# Adaptive APGD Loop

Use this skill to recover or test the APGD mechanism from AutoAttack when a bounded, deterministic implementation is needed. Do not treat this pure-Python finite-difference implementation as a high-throughput replacement for framework autograd attacks.

## Inputs
- Logit function accepting one vector.
- Examples and labels.
- Projection and loss helpers.
- Norm, epsilon, iterations, initial step size, and adaptation window.

## Outputs
- Adversarial examples and predictions.
- Per-example success flags.
- Loss trace and step-size adaptation events.

## Workflow
1. Start from the clean example or a deterministic offset inside the threat ball.
2. Estimate the loss gradient with finite differences.
3. Take an ascent step and project back to the threat model.
4. Track the best loss and adversarial point.
5. On non-improving windows, halve step size and continue from the best point.

## Validation
Run `python tests/test_apgd.py` or the skill-tree validator.

## Limitations
Finite differences are only for compact recovery evidence. Production use should substitute exact gradients while preserving the same adaptation and projection contracts.

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.