Skip to content
Back to skills

Block Fisher Rearrangement

ASecurity

Rearrange binary pruning masks using block-diagonal Fisher interactions while preserving per-layer cardinality.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
testinggo

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Block Fisher Rearrangement?

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

Security grade badge for Block Fisher Rearrangement
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-block-fisher-rearrangement/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-block-fisher-rearrangement)

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: block_fisher_rearrangement
description: Rearrange binary pruning masks using block-diagonal Fisher interactions while preserving per-layer cardinality.
---

# Block Fisher Rearrangement

Use this skill after diagonal Fisher mask search has produced binary layer masks. It improves pruning locations within each Transformer layer by using a block Fisher matrix. Do not use it to change the pruning ratio; the paper's rearrangement stage preserves per-layer kept counts and therefore preserves cost.

## Inputs

- A binary mask for each layer.
- A square Fisher block for each layer.
- Optional maximum number of greedy passes.

## Outputs

- Rearranged masks with the same cardinality as inputs.
- Objective values before and after rearrangement.
- Swap trace.

## Workflow

For each layer, score `(1-m)^T I (1-m)`. Try swaps between pruned and kept units and commit only objective-improving swaps. Repeat until no improvement or a pass limit is reached.

## Validation

Run the included tests or `validate_skill_tree.py --run-tests`.

Files in this skill

  • SKILL.md1 KB
  • scripts/block_fisher_rearrangement.py1.3 KB
  • tests/test_block_fisher_rearrangement.py297 B

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.