executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
pgd_adversarial_training_loopRun a deterministic PGD adversarial training loop that updates model parameters on adversarial examples and logs loss traces.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill for the outer minimization step in a Madry-style robust optimization recovery. It is designed for bounded experiments where the model can generate adversarial examples with the current parameters and then update parameters on those examples.
Do not use it to claim robust training if no PGD examples are generated or no trainable parameters change.
loss_before, loss_after, params_before, and params_after.Run:
python scripts/adversarial_train.py --self-test
python tests/test_adversarial_train.py
The included script is a deterministic reduced proxy using a tiny logistic classifier. Full MNIST/CIFAR recovery requires a real deep-learning runtime and dataset.