跳到正文
cccskills
免费在 GitHub 公开

adversarial-robustness-toolbox

Use Adversarial Robustness Toolbox (ART) for estimator wrappers, adversarial attacks, defences, poisoning/privacy/extraction, metrics, and certification workflows.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(35)

  • SKILL.md5.3 KB
  • references/backend-matrix.md4.5 KB
  • references/examples-and-tests-map.md4.3 KB
  • references/repo-provenance.md1.9 KB
  • references/repo-routing-metadata.json453 B
  • references/troubleshooting.md4.1 KB
  • references/workflow-overview.md3.8 KB
  • scripts/inspect_art_install.py918 B
  • sub-skills/estimators-and-models/references/api-reference.md10.3 KB
  • sub-skills/estimators-and-models/references/troubleshooting.md6.4 KB
  • sub-skills/estimators-and-models/references/workflows.md8.9 KB
  • sub-skills/estimators-and-models/scripts/smoke_sklearn_blackbox.py2.7 KB
  • sub-skills/estimators-and-models/scripts/smoke_tensorflow_classifier.py3.8 KB
  • sub-skills/estimators-and-models/scripts/smoke_torch_classifier.py2.5 KB
  • sub-skills/estimators-and-models/SKILL.md3.0 KB
  • sub-skills/evaluation-and-certification/references/metrics-evaluations-certification.md6.5 KB
  • sub-skills/evaluation-and-certification/references/troubleshooting.md4.7 KB
  • sub-skills/evaluation-and-certification/scripts/smoke_metrics_tree.py12.3 KB
  • sub-skills/evaluation-and-certification/scripts/smoke_pytorch_adv_accuracy.py5.2 KB
  • sub-skills/evaluation-and-certification/SKILL.md3.0 KB
  • sub-skills/evasion-and-preprocessing/references/attack-api-reference.md10.7 KB
  • sub-skills/evasion-and-preprocessing/references/preprocessing-and-training.md9.6 KB
  • sub-skills/evasion-and-preprocessing/references/troubleshooting.md7.0 KB
  • sub-skills/evasion-and-preprocessing/scripts/smoke_evasion_pytorch.py4.3 KB
  • sub-skills/evasion-and-preprocessing/scripts/smoke_preprocessor_numpy.py2.9 KB
  • sub-skills/evasion-and-preprocessing/SKILL.md3.7 KB
  • sub-skills/poisoning-inference-extraction/references/attack-families.md8.8 KB
  • sub-skills/poisoning-inference-extraction/references/defences-and-mitigations.md5.4 KB
  • sub-skills/poisoning-inference-extraction/references/troubleshooting.md6.0 KB
  • sub-skills/poisoning-inference-extraction/scripts/inspect_privacy_poisoning_apis.py7.3 KB
  • sub-skills/poisoning-inference-extraction/SKILL.md2.9 KB
  • sub-skills/setup-and-backends/references/install-and-backends.md7.5 KB
  • sub-skills/setup-and-backends/references/troubleshooting.md7.3 KB
  • sub-skills/setup-and-backends/scripts/inspect_art_install.py9.3 KB
  • sub-skills/setup-and-backends/SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Adversarial Robustness Toolbox (ART)

Use this repo skill when a task names adversarial-robustness-toolbox, art, ART estimators, adversarial examples, robustness defences, poisoning/backdoor attacks, privacy inference attacks, model extraction, robustness metrics, or certification workflows.

ART is a Python library for wrapping ML models as estimators, attacking and defending them, and evaluating robustness. This skill covers the core CPU-capable Python workflows verified for ART 1.20.1; heavy speech, object-detection, tracking, malware, GAN/generation, experimental, notebook, and container-only workflows are treated as out of selected runtime scope unless a future refresh expands them.

Start here

  1. If ART is not installed or imports fail, go to sub-skills/setup-and-backends/.

  2. For a quick installed-environment check, run the bundled diagnostic from this skill directory:

    python scripts/inspect_art_install.py --json
    
  3. If a model is not yet wrapped as an ART estimator, use sub-skills/estimators-and-models/ before choosing attacks or metrics.

  4. Choose the workflow owner from the route table below, then read that sub-skill's references and bundled scripts.

  5. Before deciding whether this skill matches a newer checkout, read references/repo-provenance.md.

Route map

User requestLoad this sub-skillWhy
Install ART, verify import art, choose CPU/GPU packages, resolve optional dependency or backend errorssetup-and-backendsOwns package groups, backend matrix, and import diagnostics.
Wrap sklearn, PyTorch, TensorFlow/Keras, boosted-tree, GPy, black-box, or regression models for ARTestimators-and-modelsOwns estimator constructor contracts, labels, shapes, clip_values, gradients, and black-box limitations.
Generate evasion adversarial examples, choose FGSM/PGD/AutoAttack/HopSkipJump/patch attacks, add preprocessors, or plan adversarial trainingevasion-and-preprocessingOwns attack-family compatibility, perturbation budgets, preprocessing defences, and trainer recipes.
Plan poisoning/backdoor, membership/attribute inference, model inversion/reconstruction, model extraction/stealing, or detector/mitigation workflowspoisoning-inference-extractionOwns poisoning, privacy inference, extraction, Neural Cleanse, Activation Defence, STRIP, and query/data split guidance.
Compute robustness/privacy metrics, run SecurityCurve or GREAT score, use SummaryWriter routing, run tree verification, or choose certification wrappersevaluation-and-certificationOwns ART metrics, evaluation objects, gradient checks, tree verification, randomized smoothing, DeepZ, and interval/IBP routes.

Shared references

Public install check

For a normal user environment, start with the base package and only add backend libraries needed by the selected workflow:

python -m pip install adversarial-robustness-toolbox
python -c "import art; print(art.__version__)"

For PyTorch CPU workflows, be explicit in ART wrappers that accept a device parameter:

classifier = PyTorchClassifier(..., device_type="cpu")

ART's PyTorch wrappers often default to GPU-oriented device selection, so this explicit CPU choice avoids no-CUDA confusion.

Guardrails

  • Do not run original repository examples, notebooks, tests, or CI scripts as runtime instructions for users. Use the bundled scripts and distilled references in this skill tree.
  • Do not claim a black-box estimator supports white-box attacks requiring loss_gradient; route to compatible attacks or rebuild a gradient-enabled estimator.
  • Do not treat successful attack generation as proof of robustness. Use the metrics/certification sub-skill for evaluation, stronger attacks, and gradient-obfuscation checks.
  • Do not import or update the managed repo-skill library from this runtime skill. Import is a separate verified creation workflow step.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题