Manuscript Offprint

arXiv:2610.03502

Certified Mechanistic Edits: Behavioral Guarantees for Skill Removal and Preservation

Md Sazid Uddin, Md. Khairul Alam Mazumder, M. F. Mridha

Md Sazid Uddin, Md. Khairul Alam Mazumder, M. F. Mridha

Department of Computer Science

American International University-Bangladesh (AIUB), Dhaka, Bangladesh

{sazid.uddin, khairul, firoz.mridha}@aiub.edu

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 9×9\times 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.

Index Terms—formal verification, mechanistic interpretability, machine unlearning, model editing, non-interference, certified guarantees

I. INTRODUCTION

Ablating a circuit, zeroing a weight, clamping a sparse-autoencoder feature, or adding a representation-steering vector now form the standard mechanistic interpretability toolkit for making models safer. These help with unlearning a dangerous capability, suppressing a behavior, or enforcing a refusal. In order to test whether an edit has the desired effect, a mechanistic practitioner runs the edited model on a held-out test set of prompts, checks that the target skill or behavior is gone, and that unrelated skills survive, and ships the edit if the test results are satisfactory.

This method of testing answers the question only at the inputs tested. This method of testing answers the question only at the inputs tested. Jailbreaks succeed precisely on inputs outside the distribution that safety training and evaluation covered [1], [2], and unlearning edits that pass their benchmark evaluations are reversed by such inputs [3]. A guarantee that holds for every input in a continuous region would be strictly stronger as a guarantee, and it is exactly what a test set cannot provide. This paper supplies that guarantee. We certify, by formal proof, the behavioral effect of an edit: that after the edit a specified skill is absent, and another is preserved, for all inputs in a region of the model's input representation.

A growing body of work brings formal verification to interpretability, but it certifies descriptions of a model: an accuracy floor for the unedited network [4], whether a discovered circuit faithfully and minimally explains the whole [5], what a circuit computes [6], or whether a circuit is stable under dataset resampling [7]. A separate line of work certifies unlearning statistically, indistinguishability from a model retrained without the deleted data [8]. However, these certificates do not specify how a given edit affects the model's behavior over a region of inputs. This area of experimentation has been unexplored, and this paper aims to fill this gap. In security terms, our guarantee is a feature non-interference property: the edited component's output is provably independent of the forbidden input feature, everywhere in the region.

The stronger claim is not merely undertested by finite test suites; it is unreachable by them. We prove (Proposition 3) that no finite deterministic black-box test (adaptive queries included) can certify removal of a target skill. The witness is concrete: for an edit that passes an exhaustive grid of tests, our solver exhibits a surviving input where the skill is intact (Fig. 1). Ordinary training produces such “intervention illusions” unprompted, in models as small as four inputs, with survivor pockets below 1.5×10−61.5 \times 10^{-6} of the domain. A diligent tester can therefore ship an edit that leaves the skill alive in a vanishing-but-nonzero pocket, unknowingly.

References (23)