Skip to content
Back to skills

Fast Clipping

ASecurity

"Routes TensorFlow Privacy users who need fast gradient clipping,

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

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Fast Clipping?

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

Security grade badge for Fast Clipping
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-fast-clipping/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-fast-clipping)

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

Download with Pro
SKILL.md
---
name: fast-clipping
description: "Routes TensorFlow Privacy users who need fast gradient clipping,
  layer registries, or sparsity-preserving noise helpers."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Fast clipping

Use this sub-skill when the user wants to work with the fast gradient clipping internals or the sparse-noise helpers used by DP models.

## Trigger phrases

- "fast gradient clipping"
- "layer registry"
- "sparse noise"
- "per-example gradient norms"
- "clip weights"
- "LayerNormalization registry"
- "MultiHeadAttention registry"
- "EinsumDense registry"

## What this sub-skill covers

- `compute_gradient_norms()`, `compute_clip_weights()`, and `compute_clipped_gradients_and_outputs()`
- `LayerRegistry` and `make_default_layer_registry()`
- registry functions for Dense, Embedding, LayerNormalization, MultiHeadAttention, and EinsumDense
- optional NLP/BERT helper registry functions
- `SparsityPreservingNoiseConfig` and `add_aggregate_noise()`

## What it does not cover

- high-level DP training usage -> `../training/`
- privacy budgets and accounting -> `../privacy-accounting/`
- `DPQuery` internals -> `../queries/`
- membership inference and secret-sharer analysis -> `../privacy-tests/`

## Read this before you act

- `references/api-reference.md` for the verified function signatures and registry coverage.
- `references/troubleshooting.md` for unsupported-layer, loss-reduction, and optional-dependency failures.
- `../../references/install-and-scope.md` for the CPU-only minimum runtime and the optional NLP/BERT helper caveat.

## Typical workflow

1. Check whether the model's trainable layers are covered by the default registry.
2. If the model has only the core Keras layers, use the default registry first.
3. If the model has a missing layer, decide whether to extend the registry or stay on the plain DP optimizer path.
4. Use the bundled smoke helper to verify the registry and noise-addition path on a tiny model.

## Bundled helper

Run `scripts/tiny_fast_clipping_smoke.py` to verify the default registry and the noise-addition path on a tiny Dense model.

Files in this skill

  • SKILL.md2.1 KB
  • references/api-reference.md3 KB
  • references/troubleshooting.md2 KB
  • scripts/tiny_fast_clipping_smoke.py1.7 KB

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.