Robust Optimization Objective
When To Use
Use this skill when a recovery or implementation needs to state whether an experiment matches the paper's robust optimization formulation: minimize model parameters against the worst-case loss in an allowed perturbation set.
Do not use it to label natural-only training, detector-only defenses, or attacks outside the declared threat set as robust training.
Inputs
- Dataset identity and split.
- Loss name and task type.
- Threat model fields:
norm,epsilon, and optional input clipping range. - Inner maximization method, usually random-start PGD.
- Outer minimization method and optimizer evidence.
- Recovery scope:
full,reduced, orproxy.
Outputs
- Objective metadata JSON.
- Mechanism checks for inner maximization, l-infinity projection, adversarial loss measurement, and optimizer execution.
Workflow
- Write the robust objective as
min_theta E[max_delta L(theta, x + delta, y)]. - Confirm that
deltais constrained by the stated perturbation set. - Confirm that the experiment measures adversarial loss or adversarial accuracy.
- For proxy recovery, explicitly state why it is reduced and which paper mechanisms it preserves.
- Save the objective and mechanism checks alongside recovery artifacts.
Validation
Run:
python scripts/objective_contract.py --self-test
python tests/test_objective_contract.py
Limitations
This skill validates the objective contract. It does not implement PGD or train a model; pair it with the PGD adversary and training-loop skills.