Certified Mechanistic Edits: Behavioral Guarantees for Skill Removal and Preservation
Organizations: Department of Computer Science American International University-Bangladesh (AIUB), Dhaka, Bangladesh
Abstract
Mechanistic edits (ablations, weight edits, activation steering) are the standard tools for unlearning a harmful capability from a neural network while preserving useful ones. Current approaches validate their effects only by testing, which can never cover an entire continuous region of inputs. Prior work at the interpretability-verification boundary certifies descriptions of a model: what a circuit computes, or whether it faithfully explains the whole. We instead certify the behavioral effect of an edit: that disabling a circuit removes one skill and provably preserves another, for every input in a region; a feature non-interference guarantee in the information-flow-security sense. We demonstrate such certified edits from toy ReLU networks up to a standard softmax + LayerNorm transformer, proving removal and preservation over continuous embedding-space regions and reaching roughly 9x the input-perturbation dimension an exact solver can handle by switching to sound bound propagation. Furthermore, we prove that no finite deterministic black-box test can certify removal, exhibiting an edit that passes exhaustive testing yet provably fails on a survivor pocket that can be made arbitrarily small. Guarantees hold on small, standard-architecture networks and, like any removal claim, presuppose that the target skill admits a decidable specification, a property which real-world harms may not have.
Figures & tables
| Work | Certified object | Quantifier domain | Edit’s behavioral effect? |
|---|---|---|---|
| Compact proofs [ 4 ] | accuracy bound of the unedited model | all inputs (small domains) | no |
| Formal Mech. Interp. [ 5 ] | circuit faithfulness under patching | continuous activation-patch values, finitely many inputs | no |
| Certified circuits [ 7 ] | stability of a discovered circuit | dataset resamplings | no |
| Verifiable Transformers [ 6 ] | four properties of a circuit explanation | final-residual perturbations; per-input edge necessity | no (disclaimed in [ 6 ] , §1.4) |
| BlockCert [ 9 ] | extraction fidelity; output-deviation bound | finite traced prompt set | partial (how much, not what) |
| Certified unlearning [ 8 ] | process indistinguishability | distribution over models | no (statistical) |
| Subject | Size | Prover | Pert. dims | Removal | Preservation (unedited) |
|---|---|---|---|---|---|
| Toy MLP (separated) | , 16 hidden | SMT | 2 | a | |
| Toy MLP (entangled) | , 16 hidden | SMT | 2 | a | |
| Deep MLP | SMT | 3 | a | b | |
| Gate transformer | 8 wide, 2 heads | SMT (hull) | 48 | ||
| Adder transformer | , 8 wide, 2 heads | SMT (siamese) | 40 | a | c |
| Softmax + LN transf. | 64 wide, 4 heads, 2 layers | CROWN | 448 | d | , d |
| Configuration | Noise vars | ||
|---|---|---|---|
| 8 wide, 1 head, | 32 | ✓ 32 s | ✓ 155 s |
| 8 wide, 1 head, | 48 | ✓ 40 s | ✓ 230 s |
| 8 wide, 1 head, | 64 | too loose | too loose |
| 12 wide, 1 head, | 72 | ✓ 31 s | timeout |
| 16 wide, 1 head, | 96 | ✓ 120 s | timeout |
| 16 wide, 2 heads, | 128 | timeout | timeout |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Result | Script |
|---|---|
| Softmax + LayerNorm transformer, noise dimensions: certified attack for removal and both preservation claims (Fig. 2 ) | run_boundprop_transformer.py † |
| Threshold-gate transformer, exact over all sequences: removal , preservation , collateral (Table II ) | run_transformer.py |
| Distributed circuit: neither the attention heads nor the MLP alone removes skill (Fig. 3 ) | results/rung2_circuit_search.py b |
| Modular-adder transformer: removal as exact independence of the summands, radius (§ V-A ) | run_rung3.py |
| Modular-adder transformer: correctness on all clean sequences, preservation radius (§ V-A ) | run_rung3_preservation.py |
| Constructed illusion: passes a -point grid with preservation proved, refuted by the solver (Fig. 1 a,b) | run_illusion.py |
Machine Unlearning
Machine unlearning removes the influence of selected data or concepts from trained models while preserving useful behavior and avoiding full retraining.
See all 356 papers