Skip to content

Menu

WorksComputer Science

A Rank-One Bypass of Fixed Linear Erasure

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_e3ezrvd9. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Linear concept erasure can make a target unreadable to a specified family of linear classifiers applied to a model's current internal features. In an open-weight release, however, an attacker can modify the layers that produce those features. We study a fixed affine erasure layer whose upstream model is allowed to change. If the layer transmits even one direction visible to an allowed downstream classifier, the attacker can write a target score into that direction and carry it through the layer. We show that this condition is also necessary, and that for a nonconstant linear target score the required change is a rank-one affine update. Across six CIFAR-10 class-pair tasks, the route restores nearly all pre-erasure target performance and can leave a deployed benign linear head's scores unchanged to numerical tolerance. We then price the attack: with eight target labels and 2,000 unlabelled calibration examples, a 10% mean relative feature edit yields 79.8% test accuracy, which is 91.2% of the fitted score's gain over chance; tighter edit limits sharply reduce success. Linear guardedness therefore remains a valid guarantee about the current representation, but it is not by itself a tamper-resistance guarantee for an editable open-weight model.

Introduction

Open-weight image generators pose a distinct child-safety release problem. Once model weights are distributed, developers can no longer enforce hosted prompt filters, output classifiers, or rate limits. Locally run and fine-tuned models have been associated with AI-generated child sexual abuse material (CSAM) [5, 6, 14], and CSAM has been identified in training data behind widely redistributed checkpoints [13]. These risks motivate safety interventions applied before release [15].

Concept erasure is one such intervention. Existing methods edit diffusion-model weights or remove target directions from internal representations [3, 4, 7]. We study fixed affine erasure of representations, with LEACE as the canonical example, because its guarantee can be stated exactly. On the distribution used to fit it and for the stated convex loss, LEACE constructs a minimal-distortion transform under which no predictor in a chosen linear family outperforms a constant predictor [1]. This is a precise guarantee about what linear classifiers can read from the model’s current features. It is not, and LEACE does not claim it to be, a guarantee about what the released model can compute after an attacker changes the layers that produce those features.

We therefore ask a release-level question: if the erasure layer remains fixed, can an attacker modify the upstream model and route the target around it? Prior work already shows that nonlinear probes can decode linearly erased representations and that concept edits can reverse under later adaptation [8, 9, 10, 11, 12]. Creţu et al. [2] further measure cost to success in a child-safety filtering game. We do not claim nonlinear decoding or fine-tuning reversal as new; we isolate a different mechanism: the attacker computes a target score upstream and writes it into a direction that the fixed affine layer still transmits.

Contributions. (i) Condition. For a fixed affine layer E(z)=Az+cE(z)=Az+c and allowed linear-head space HH, a route exists exactly when PHA≠0P_HA \ne0; for a nonconstant linear target score it is a rank-one affine adapter. The condition is elementary; we measure what it costs. (ii) Constrained construction. In all six evaluated pairs, the route can leave a deployed benign linear head’s scores unchanged, with drift at most 1.2×10−101.2 \times10^{-10}. (iii) Cost. With eight target labels, a 10% mean relative feature edit recovers 0.912 of the target score’s gain over chance, whereas a 1% edit recovers 0.25. (iv) Audits. A weak probe can overstate erasure, and fine-tuning around the frozen layer recovers the target as fast as with no erasure, within a 0.05 margin.

Scope. We distinguish readout of the unchanged E(x)E(x), routing through a changed input to EE, and adaptation of a larger upstream block; Theorem 1 concerns routing through a fixed affine layer, and nonlinear, noisy, or refitted bottlenecks are outside it. Our experiments use benign class-pair proxies in discriminative image models, so we make no direct quantitative claim about diffusion models, CSAM-domain data, or harmful generation.

Threat model: fixed eraser, editable upstream

We analyze the released pipeline input →x→E(x)=Ax+c→h⊤E(x)+β\to x \to E(x) = Ax + c \to h^{\top}E(x) + \beta. All weights are public. In the restricted attack studied here, the adversary may modify the layers producing xx and choose any downstream linear classifier (head) h∈Hh \in H and bias β\beta, but must leave EE bit-identical. An unrestricted attacker could delete EE, so success under this restriction is a conservative failure case.

Each target attack fits a score g(x)g(x) from NN labelled examples and uses 2,000 unlabelled target-domain examples only to calibrate the edit size. The attack protocol is fixed in advance on held-out pairs; the one-time pilot and complete resource accounting are reported separately in Appendix § 9 and Table 3.

ResourceAnalytic routeLast-block fine-tuning
Target training labels84,000
Target validation labels02,000
Unlabelled calibration examples2,000–
Held-out-pair pilot labels (one-time)10,720–
Installed parameters1,5388,394,241
Gradient-optimized parameters5138,394,241
Analytically set parameters1,0250
Optimizer steps2,000 on NN rows≥10\ge10 on 4,000 images
Routing optimization after fitting gNg_N0n/a
Linear-algebra solveone 512 × 512 SVD–
ηmean/η95\eta_{\mathrm{mean}}/\eta_{95}0.100/0.210unconstrained
Benign-score drift at N=8N = 8, η=0.10\eta= 0.10≤2.4×10−13\le2.4 \times10^{-13}not constrained
Independent-evaluator accuracy loss0.7 pt MLP, 1.2 pt kk-NNnot measured
Deployed benign-head accuracy loss at step 100 pt11–17 pt

Table 3. Attack resource vector at the highlighted operating point. The supported claim is that, after fitting the small score gNg_N, the routing layer is constructed with zero routing-optimization steps. The fine-tuning baseline was not timed in the same environment, so no wall-clock speedup is claimed. The fine-tuning benign-head loss is measured at step 10, the first sampled post-start checkpoint. Appendix § 11 reports the later deployed benign-head decline from approximately 0.84 to 0.39.

One surviving direction is enough

The attacker does not need to recover the target from the unchanged erased representation. Instead, it computes a numerical target score before the erasure layer and writes that score into one direction uu that the fixed layer still transmits (Figure 1b):

Figure 1. A representation certificate is not a release certificate. Schematic with simulated two-dimensional points: EE erases the dashed vertical direction, which carries the target, and transmits the horizontal direction uu. (a) With the features unchanged, no allowed linear head can read the target from E(x)E(x). (b) An open-weight attacker edits the upstream model to add a target score g(x)g(x) along uu; the same fixed layer transmits it, and an allowed linear head recovers the target. Such a route exists exactly when PHA≠0P_H A \ne0; for nonconstant linear gg, it is a rank-one affine adapter.

rs(x)=x+s g(x)u,(1)r_s(x) = x + s\,g(x)u, \tag*{(1)}

where g(x)g(x) is the target score and ss controls the route’s strength. The score may depend on every coordinate of xx, but the added displacement always lies in the one-dimensional space spanned by uu.

Choose the downstream bias β=−h⊤c\beta= -h^{\top}c to cancel the fixed offset of E(z)=Az+cE(z) = Az + c. An allowed head hh then sees

h⊤E(rs(x))+β=h⊤Ax⏟original downstream term+s(h⊤Au) g(x)⏟routed target score.(2)h^{\top}E(r_s(x)) + \beta= \underbrace{h^{\top}Ax}_{\text{original downstream term}} + s\underbrace{(h^{\top}Au)\,g(x)}_{\text{routed target score}}. \tag*{(2)}

If hTAu≠0h^{\mathsf{T}}Au \ne0, the attacker can flip the sign of uu so that hTAu>0h^{\mathsf{T}}Au > 0. Increasing ss then makes the routed score dominate the original downstream term. The layer therefore does not need to retain the target in the original E(x)E(x); it only needs to transmit one direction after the upstream representation has been changed. LEACE constrains a readout of the current E(x)E(x), not a later rewrite of xx.

Theorem 1 (One surviving direction is enough). Let E(z)=Az+cE(z) = Az + c be fixed, and let the allowed heads form a subspace HH with orthogonal projector PHP_H. Suppose the editable upstream model can compute a target score g(x)g(x) that takes both signs. There exist a direction uu, a head h∈Hh \in H, and a bias β\beta such that, for every xx with g(x)≠0g(x) \ne0, the decision of hh on E(rs(x))E(r_s(x)) equals sign g(x)g(x) for all sufficiently large ss, if and only if PHA≠0P_HA \ne0. For unrestricted heads, this reduces to A≠0A \ne0. For nonconstant linear gg, the update rsr_s is a rank-one affine adapter. If PHA=0P_HA = 0, every allowed head has an input-independent output.

Proof sketch. In Equation (2), the routed copy of gg has gain κ=hTAu\kappa= h^{\mathsf{T}}Au, which can be made positive exactly when PHA≠0P_HA \ne0; it fixes the sign of the output once s>∣hTAx∣/(κ∣g(x)∣)s > \lvert h^{\mathsf{T}}Ax\rvert/(\kappa\lvert g(x)\rvert). The finite-sample statement and proof are in Appendix § 8. Rescaling AA by a positive constant does not help: it scales the original and routed terms equally.

Does the route work, and what does it cost?

Does the analytic route work? We evaluate six CIFAR-10 class-pair tasks using ImageNet-pretrained ResNet-18 features behind a LEACE layer, with five seeds per pair. Once the route strength exceeds the threshold above on every evaluation point, the analytic rank-one adapter recovers the accuracy of the pre-erasure target score, which ranges from 0.87 to 1.00. The head-only baseline and the constant-map control A=0A = 0 remain at each task’s base rate, as predicted by Theorem 1. Trained rank-one adapters match the closed-form construction in every pair–seed run (Appendix § 8; Figure 3).

Figure 3. One surviving direction is enough (Theorem 1). Target accuracy of the allowed head versus route strength ss for the analytic rank-one route: (a) digits behind five erasers, (b) ResNet-18 features behind LEACE. Every nonzero eraser reaches a⋆a^\star (dotted); only A=0A=0 (dashed) stays at chance. Open squares: the head without a route. Panel (b) shows two of the six pairs, with a⋆=0.982a^\star=0.982 (airplane/automobile) and 0.868 (cat/dog).

Can it preserve deployed benign scores? Suppose a deployed benign linear head with class-score vectors h1,…,hqh_1,\ldots,h_q also reads the representation. In our experiments it is a softmax head over the eight non-target CIFAR-10 classes (q=8q = 8; Appendix § 9). In all six pairs, a route that preserves its scores exists, because eight constraints remove at most eight of the 511 directions that AA transmits. We choose uu so that

hjTAu=0,j=1,…,q.(3)h_j^{\mathsf{T}}Au = 0,\qquad j = 1,\ldots,q. \tag*{(3)}

In exact arithmetic, Equation (3) leaves every benign score unchanged for every input and every route strength. In our implementation, the maximum observed drift is 1.2×10−101.2 \times10^{-10}, and the benign head’s predictions are identical to those of the clean model. The constrained route remains within 0.3 percentage points of the unconstrained route on every run. By contrast, the unconstrained route reduces this head’s accuracy from 0.81–0.87 to 0.27–0.71. We call the constrained route score-preserving.

How expensive is it? We fit the target score gNg_N from NN labelled examples and limit the average feature change using

ηmean=E∥rs(x)−x∥2E∥x∥2.(4)\eta_{\mathrm{mean}} = \frac{\mathbb{E}\lVert r_s(x)-x\rVert_2}{\mathbb{E}\lVert x\rVert_2}. \tag*{(4)}

This is a mean relative edit, not a per-example maximum.

At eight labels and a 10% mean relative edit (95th-percentile edit 21%), the route reaches 0.798 test accuracy and recovers 0.912 [0.843, 0.976] of the target score’s gain over chance, pooled over runs (Figure 2a). This is an aggregate rather than a per-run guarantee: 20 of 30 pair–seed runs exceed 0.90 recovery, while uniform 0.90 recovery requires a 50% mean edit. At eight labels, pooled recovery falls to 0.52 at a 2.5% mean edit and 0.25 at a 1% mean edit. Thus, bounding the allowed feature change materially raises the cost of this route.

Figure 2. What the route costs, and what its exact guarantee covers. (a) With eight labels, recovery rises with the mean relative edit, from 0.25 at 1% to 0.912 at the reported 10% point (star); the dashed line marks 0.90. (b) The deployed benign head’s accuracy is unchanged at every edit size, whereas independent MLP and kk-NN evaluators lose accuracy as the edit grows. Error bars are 95% hierarchical-bootstrap intervals over six pairs and five seeds.

Controls and broader benign effects. Replacing the target-score direction with a random one while keeping the routing direction uu fixed reduces attack accuracy by 0.24 absolute [0.20, 0.30], and fitting the same procedure to permuted labels returns performance to approximately chance. Target-aligned score information, rather than routing geometry alone, therefore drives recovery. At the 10% operating point, independent benign MLP and kk-NN accuracy fall by 0.7 and 1.2 percentage points, respectively, with larger losses under larger edits (Figure 2b). Exact preservation of selected linear scores is therefore not preservation of the full representation.

Why erasure evaluations need strong probes and matched controls

Probe strength and numerical precision matter. A weak probe can make erasure look stronger than it is. A linear head trained by gradient descent reads approximately chance (≈0.51\approx0.51) from LEACE-erased ResNet-18 features, whereas a closed-form ridge solver reaches 0.83–0.96 on the same features when fit and solve both use single precision. The cause is rounding error, not routing: at every other precision we tested, including double, the same solver returns to approximately 0.51. Erasers should therefore be fitted in double precision and audited with a closed-form probe. Separately, an eraser fitted in double precision still leaves 0.585–0.598 accuracy on held-out data: suppression on the fitting sample need not transfer to new data (Appendix § 10).

Fine-tuning recovery needs matched controls. A frozen erasure layer adds no measurable delay to fine-tuning (Appendix § 11). Fine-tuning one upstream block around it reaches 0.917 target accuracy after ten steps, but the undefended model and a control with a random rank-one edit in place of the erasure adapt at the same rate: all differences lie within a 0.05 equivalence margin fixed in advance, at every sampled checkpoint (the first is step 10). A reinitialized block is slower, so pretrained features matter. Unlike the score-preserving route, this attack is costly to benign use: deployed benign-head accuracy falls from approximately 0.84 to 0.39. It also differs from the analytic route in labels and parameters (Table 3), so we do not rank them.

What does linear erasure certify?

Linear guardedness is a valid guarantee about a fixed representation and a stated classifier family; it is not by itself evidence of robust capability removal from an editable release. Our cost results cut both ways: tight edit limits sharply weaken this route, but an open-weight release has no mechanism to enforce them, so an edit limit is an evaluation budget, not a defense. Open-weight evaluations should therefore report an adaptive-attacker cost-to-success frontier. Within the affine model, only a layer that transmits nothing to the allowed heads blocks the route (Theorem 1); whether nonlinear, noisy, or clipped bottlenecks resist it is open.

Limitations. We use benign class-pair proxies and fixed affine layers: six CIFAR-10 pairs that share classes, one fine-tuning budget, two small nonlinear evaluators, and no control pretrained without the target classes, so generic and target-specific pretraining are not separated. Guarded under the evaluated attacker class is therefore more precise than removed, although erasure may still serve as defense in depth. A benign generative proxy [2] is the natural next test.

Ethics statement

We use only benign public image-classification datasets and do not access, generate, store, or display CSAM-domain material. The child-safety relevance is methodological: we test what a fixed linear-erasure certificate supports under open-weight modification, not harmful-generation performance.

Formal routing result

Setting. The released model computes hTE(x)+βh^{\mathsf{T}} E(x) + \beta, where x∈Rdx \in\mathbb{R}^{d} is an editable representation and

E(z)=Az+c,A∈Rm×d,c∈RmE(z) = Az + c,\qquad A \in\mathbb{R}^{m \times d},\qquad c \in\mathbb{R}^{m}

is fixed. Allowed downstream linear classifiers (heads) lie in a subspace H⊆RmH \subseteq\mathbb{R}^{m}, with orthogonal projector PHP_H, and the bias β\beta is free. Let t∈{−1,+1}t \in\{-1,+1\} be the target label and let g:Rd→Rg : \mathbb{R}^{d} \to\mathbb{R} be any target score the attacker can evaluate upstream. Define

a⋆=Pr⁡[sign⁡g(x)=t].a^\star= \Pr[\operatorname{sign} g(x) = t].

Full form of Theorem 1. An allowed one-dimensional route exists if and only if PHA≠0P_HA \ne0. When this condition holds, choose u∈Rdu \in\mathbb{R}^{d} and h∈Hh \in H so that κ:=hTAu>0\kappa:= h^{\mathsf{T}}Au > 0, and set β=−hTc\beta= -h^{\mathsf{T}}c. For

rs(x)=x+sg(x)u,ρ(x)=hTAx,r_s(x) = x + s g(x)u,\qquad\rho(x) = h^{\mathsf{T}}Ax,

the attacked head output is

hTE(rs(x))+β=ρ(x)+sκg(x).(5)h^{\mathsf{T}}E(r_s(x)) + \beta= \rho(x) + s\kappa g(x). \tag*{(5)}

Consequently:

  1. If g(x)≠0g(x) \ne0 and

s>∣ρ(x)∣κ∣g(x)∣,s > \frac{|\rho(x)|}{\kappa|g(x)|},

then the attacked decision equals sign⁡g(x)\operatorname{sign} g(x).

  1. On a finite evaluation set {xi}i=1n\{x_i\}_{i=1}^{n} with g(xi)≠0g(x_i) \ne0, define

s†=max⁡i: sign⁡ρ(xi)≠sign⁡g(xi)∣ρ(xi)∣κ∣g(xi)∣,s^\dagger= \max_{i:\,\operatorname{sign}\rho(x_i)\ne\operatorname{sign}g(x_i)} \frac{|\rho(x_i)|}{\kappa|g(x_i)|},

with s†=0s^\dagger= 0 if the disagreement set is empty. Every s>s†s > s^\dagger reproduces sign⁡g\operatorname{sign} g on all points; s†s^\dagger is the sharp infimum threshold, with equality depending on the tie rule.

  1. If Pr⁡[g(x)=0]=0\Pr[g(x) = 0] = 0, then

Pr⁡[sign⁡(hTE(rs(x))+β)=t]⟶a⋆\Pr[\operatorname{sign}(h^{\mathsf{T}}E(r_s(x)) + \beta) = t] \longrightarrow a^\star

as s→∞s \to\infty.

  1. If g(x)=wTx+bg(x) = w^{\mathsf{T}}x + b is nonconstant and linear, then

rs(x)=(I+suwT)x+sbu,r_s(x) = (I + s u w^{\mathsf{T}})x + sbu,

whose linear perturbation has rank one.

  1. If PHA=0P_HA = 0, then hTAu=0h^{\mathsf{T}}Au = 0 for every uu and every h∈Hh \in H, so no route of this form can transmit an input-dependent score to an allowed head.

Proof. (5) follows from affine linearity and β=−hTc\beta= -h^{\mathsf{T}}c. If sκ∣g(x)∣>∣ρ(x)∣s\kappa|g(x)| > |\rho(x)|, the routed term has larger magnitude than the original term and fixes the sign, proving the pointwise and finite-set statements. For asymptotic agreement, let

Ds(x)=1{sign⁡(ρ(x)+sκg(x))≠sign⁡g(x)}.D_s(x) = \mathbf{1}\{\operatorname{sign}(\rho(x) + s\kappa g(x)) \ne\operatorname{sign}g(x)\}.

For every xx with g(x)≠0g(x) \ne0, Ds(x)→0D_s(x) \to0, and 0≤Ds≤10 \le D_s \le1. Dominated convergence therefore gives Pr⁡[Ds=1]→0\Pr[D_s = 1] \to0, which implies convergence of target accuracy to a⋆a^\star. The linear-gg form is obtained by substitution. Finally,

max⁡∥u∥=∥h∥=1, h∈HhTAu=σmax⁡(PHA),\max_{\lVert u\rVert=\lVert h\rVert=1,\ h\in H} h^{\mathsf{T}}Au = \sigma_{\max}(P_HA),

so a positive gain exists exactly when PHA≠0P_HA \ne0.

Scale-to-edit conversion. The route changes the representation by s g(x)us\,g(x)u, hence

ηmean(s)=E∥rs(x)−x∥2E∥x∥2=s∥u∥2E∣g(x)∣E∥x∥2.(6)\eta_{\mathrm{mean}}(s)=\frac{\mathbb{E}\lVert r_s(x)-x\rVert_2}{\mathbb{E}\lVert x\rVert_2}=\frac{s\lVert u\rVert_2\mathbb{E}\lvert g(x)\rvert}{\mathbb{E}\lVert x\rVert_2}. \tag*{(6)}

The experiments fix ηmean\eta_{\mathrm{mean}} and solve Equation (6) for ss on an unlabelled calibration pool.

Score-preserving route. Let h1,…,hqh_1,\ldots,h_q be the class-score vectors of the deployed benign head and define

Usafe=⋂j=1qker⁡(hjTA),U_{\mathrm{safe}}=\bigcap_{j=1}^{q}\ker(h_j^{\mathsf{T}}A),

with orthogonal projector Πsafe\Pi_{\mathrm{safe}}. A route that leaves every benign score unchanged exists exactly when

PHAΠsafe≠0.(7)P_HA\Pi_{\mathrm{safe}}\ne0. \tag*{(7)}

Indeed, u∈Usafeu\in U_{\mathrm{safe}} gives hjTAu=0h_j^{\mathsf{T}}Au=0 for every jj, while the maximum allowed target gain is

σmax⁡(PHAΠsafe).\sigma_{\max}(P_HA\Pi_{\mathrm{safe}}).

Boundary cases. For unrestricted heads, PH=IP_H=I, so only the constant map A=0A=0 blocks the route. Replacing AA by λA\lambda A, λ>0\lambda>0, scales the original and routed terms equally and therefore does not change the required ss in the noiseless affine sign-decision model. Clipping, additive noise, quantization, saturation, and dynamic refitting are outside this result.

Six-pair verification. Across all six CIFAR-10 pairs and five seeds, the analytic route recovers the direct target-score accuracy, which ranges from 0.868 to 0.996. The head-only baseline reads 0.50–0.51, and the constant-map control A=0A=0 remains at the task base rate. A separately trained rank-one adapter matches the closed-form construction in every evaluated pair–seed run.

Digits check (Figure 3a). As a small second setting we use the scikit-learn 8×88\times8 digits data, standardized (d=64d=64), with four digit pairs (0/1, 3/8, 5/6, 2/7) and two seeds each. The five fixed maps are the identity (no eraser), removal of a random 32-dimensional subspace, removal of the top 32 principal components, removal of a 16-dimensional subspace spanned by differences of class-conditional cluster means (“spectral”), and LEACE; A=0A=0 is the control. Each curve averages the eight pair–seed runs.

Cost-frontier protocol, controls, and resources

Protocol. We evaluate six CIFAR-10 class pairs and five seeds per pair. Each of the resulting 30 runs sweeps

N∈{8,16,32,64,128,256,512,1000,4000}N \in\{8, 16, 32, 64, 128, 256, 512, 1000, 4000\}

labelled examples for fitting gNg_N, and

η∈{0.01,0.025,0.05,0.10,0.20,0.50}.\eta\in\{0.01, 0.025, 0.05, 0.10, 0.20, 0.50\}.

Splits are class-balanced and disjoint: 4,000 examples fit the eraser, 4,000 form the attacker pool, 2,000 unlabelled examples calibrate the route strength, and the untouched CIFAR-10 test split is read once. Label budgets are nested balanced prefixes. The attack family, regularizer, sign convention, and threshold are fixed in advance on two held-out class pairings; the resulting one-time 10,720-label protocol-design cost is reported separately from each target attack.

The route is calibrated by solving Equation (6) on the unlabelled pool. At the highlighted point, calibration sets ηmean=0.10\eta_{\mathrm{mean}} = 0.10; the realized test mean is 0.1002, and test η95=0.210\eta_{95} = 0.210. Table 1 lists selected points of the frontier and Table 2 the per-pair results at the highlighted point.

Labels NNMean edit η\etaPooled RFRuns with RF ≥0.90\ge0.90
80.010.250 [0.119, 0.385]0/30
80.0250.519 [0.327, 0.713]3/30
80.100.912 [0.843, 0.976]20/30

Table 1. Selected points from the measured route frontier. At N=8N = 8, η=0.10\eta= 0.10, routed test accuracy is 0.798. The highlighted point summarizes the reported test frontier and was not confirmed on separate data. All 30 runs reach RF ≥0.90\ge0.90 only at η=0.50\eta= 0.50.

Class pairMean RF at N=8N = 8, η=0.10\eta= 0.10Runs ≥0.90\ge0.90
airplane / automobile0.8352/5
automobile / truck0.7811/5
bird / deer1.0015/5
cat / dog0.9614/5
dog / horse0.9364/5
frog / ship0.9634/5

Table 2. Pair-level heterogeneity at the highlighted operating point. Values above one mean that, within seed variation, the routed classifier matches or slightly exceeds the direct test reading of gNg_N.

Metrics. For balanced binary tasks, let aN∗a_N^* be the direct accuracy of gNg_N, and let aroutea_{\mathrm{route}} be the routed accuracy. We report

RF=aroute−0.5aN∗−0.5\mathrm{RF} = \frac{a_{\mathrm{route}} - 0.5}{a_N^* - 0.5}

the fraction of gNg_N’s advantage over chance transmitted by the route. As a robustness check we also use

RFinc=aroute−aheadaN∗−ahead\mathrm{RF}_{\mathrm{inc}} = \frac{a_{\mathrm{route}} - a_{\mathrm{head}}}{a_N^* - a_{\mathrm{head}}}

which normalizes against the head-only accuracy aheada_{\mathrm{head}} of the released model.

Uncertainty intervals resample class pairs and then seeds within each sampled pair. They summarize variability over the selected six-pair, five-seed panel rather than an unrestricted population of concepts.

Deployed benign head. For each target pair, the deployed benign task is 8-way classification of the eight CIFAR-10 classes outside the pair (base rate 0.125). Its head is a single linear softmax layer on clean E(x)E(x), trained on 8,000 images of those classes with the cross-entropy loss using Adam at learning rate 0.05 for 1,500 full-batch steps, and then frozen. Its eight class-score vectors are h1,…,h8h_1, \ldots, h_8, so the constraint removes at most eight of the 511 directions that AA transmits. Clean test accuracy on the eight classes is 0.81–0.87 across runs.

Controls and benign effects. The score-preserving route differs from the unconstrained route by at most 0.003 absolute target accuracy in every pair–seed run. By contrast, the unconstrained route reduces the deployed benign head’s accuracy to 0.27–0.71. The independent evaluators are a one-hidden-layer width-128 ReLU MLP trained on clean E(x)E(x), and Euclidean kk-NN with k=10k = 10. The MLP is trained with Adam at learning rate 0.003 for 1,200 full-batch steps under the cross-entropy loss and then frozen. Neither evaluator is used to construct or select the routing direction. Replacing only the target-score direction while keeping the routing direction uu fixed reduces accuracy by 0.24 [0.20, 0.30] absolute. Fitting the same procedure to permuted labels returns performance to approximately chance. The benign scores move by at most 4.3×10−134.3 \times10^{-13} over the full edit grid, with identical benign-head predictions; at the much larger route strengths used to verify Theorem 1, the worst-case drift is 1.2×10−101.2 \times10^{-10}. At η=0.10\eta= 0.10, independent benign MLP and kk-NN evaluators lose 0.68 [0.44, 0.94] and 1.21 [0.73, 1.75] percentage points, respectively.

At N=8N = 8, η=0.10\eta= 0.10,

RFinc=0.905[0.833,0.971],\mathrm{RF}_{\mathrm{inc}} = 0.905 [0.833, 0.971],

close to the chance-normalized value because the head-only accuracy is 0.510.

Construction-specific frontier. The reported surface prices the closed-form route obtained from the top singular pair of PHAΠsafeP_H A_{\Pi_{\mathrm{safe}}}. It is not a proof of the globally cheapest rank-one attack.

Solver, numerical precision, and transfer to new data

Effect of arithmetic precision. A native-float32 LEACE fit leaves a coherent near-null direction that a scale-insensitive closed-form solve can amplify. Float64 removes the fitted empirical direction more accurately, whereas TF32, bf16, and fp16 disrupt the small coherent residue through coarser rounding. These are different mechanisms. Because fitting and solving precision were varied together, the supported claim is an end-to-end arithmetic effect, not a storage-only effect.

Held-out transfer. The exact-float64 held-out result is separate: empirical guardedness on the eraser-fit sample does not transfer perfectly to new data. This does not contradict LEACE’s stated fitted-distribution guarantee. Table 4 reports the audited settings supporting the main-text comparison.

Evaluation settingGradient-trained headClosed-form linear attacker
float32 fit and solve≈ 0.510.83–0.96
float64 fit and solve≈ 0.51≈ 0.508
TF32 fit and solve≈ 0.51≈ 0.508
bf16 fit and solve≈ 0.51≈ 0.508
fp16 fit and solve≈ 0.51≈ 0.508
float64 fit, disjoint held-out data–0.585–0.598

Table 4. Summary of the linear-solver audit on LEACE-erased ResNet-18 features. The first five rows vary fit and solve arithmetic jointly. The last row is a separate held-out generalization experiment.

Theorem-relevant loss versus thresholded accuracy

LEACE’s formal guarantee concerns convex risk, not thresholded accuracy. On the eraser-fit split, the best audited linear predictor has no excess predictive value over the constant baseline under the theorem-relevant loss. On held-out splits the excess predictive value is positive, matching the held-out accuracy result above. The distinction is therefore between a fitted-distribution risk certificate and behavior on new samples, not a contradiction of the guardedness theorem.

Fine-tuning controls and equivalence analysis

Design. Four arms share conv1..layer3 frozen and layer4 plus a fresh head trainable, for the same 8,394,241-parameter budget: (A) undefended identity, (B) frozen LEACE, (C) a concept-blind random rank-one edit, and (D) a reinitialized last block. All arms use Adam, learning rate 10−410^{-4}, batch size 128, and 4,000 labelled images. A disjoint 2,000-example labelled validation split is used only to monitor target accuracy at each checkpoint; it is not used for gradient updates, for selecting the learning rate or a reported checkpoint (the learning rate is fixed and every sampled checkpoint is reported), or for the final test metric. We evaluate six class pairs, three seeds, and steps {0,10,25,50,100,200,400}\{0, 10, 25, 50, 100, 200, 400\} (Table 5). Uncertainty is obtained by resampling pairs and then seeds.

0102550100200400
A undefended target acc..497.915.947.957.964.966.966
B LEACE target acc..502.917.947.957.964.966.966
C random rank-1 target acc..496.916.947.957.964.966.965
D reinitialized target acc..507.794.852.930.943.951.957
B−A+.005+.0020.0000.0000.0000.0000.000
B−C+.005+.0010.0000.0000.0000.0000.000
B−D−.006+.123+.095+.027+.021+.015+.008

Table 5. Fine-tuning controls. Target accuracy is averaged over six pairs and three seeds. LEACE differs from the undefended and random-edit arms by at most 0.005 at every sampled checkpoint.

Equivalence result. Using a 0.05 accuracy margin fixed in advance, the LEACE arm is equivalent to the undefended and random-edit controls at the sampled checkpoints; one-sided bootstrap upper bounds on the per-run maximum gap are 0.005 and 0.004, respectively. The first post-start checkpoint is step 10, so a transient confined to steps 1–9 is not excluded.

The reinitialized arm is slower: the LEACE-minus-reinitialized difference is 0.123 [0.066, 0.189] at step 10 and 0.008 [0.002, 0.018] at step 400. This shows that retained pretrained representation quality matters, but the present controls do not separate generic from target-specific pretraining; a concept-naive pretraining control would be required for that distinction.

The large fine-tuning attack is not score-preserving: deployed benign-head accuracy falls from approximately 0.84 to 0.39.

References

  1. [1]Nora Belrose, David Schneider-Joseph, Shauli Ravfogel, Ryan Cotterell, Edward Raff, and Stella Biderman. LEACE: Perfect linear concept erasure in closed form. In Advances in Neural Information Processing Systems (NeurIPS), volume 36, pages 66044–66063, 2023. arXiv:2306.03819.arxiv.org/abs/2306.03819
  2. [2]Ana-Maria Creţu, Klim Kireev, Amro Abdalla, Wisdom Obinna, Raphael Meier, Sarah Adel Bargal, Elissa M. Redmiles, and Carmela Troncoso. Evaluating concept filtering defenses against child sexual abuse material generation by text-to-image models. In Proceedings of the 47th IEEE Symposium on Security and Privacy (S&P), pages 290–309, 2026. doi:10.1109/SP63933.2026.00251; arXiv:2512.05707.DOI
  3. [3]Rohit Gandikota, Joanna Materzynska, Jaden Fiotto-Kaufman, and David Bau. Erasing concepts from diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2426–2436, 2023. arXiv:2303.07345.arxiv.org/abs/2303.07345
  4. [4]Rohit Gandikota, Hadas Orgad, Yonatan Belinkov, Joanna Materzyńska, and David Bau. Unified concept editing in diffusion models. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 5111–5120, 2024. arXiv:2308.14761.arxiv.org/abs/2308.14761
  5. [5]Internet Watch Foundation. How AI is being abused to create child sexual abuse imagery. Technical report, Internet Watch Foundation, October 2023. Public version.
  6. [6]Internet Watch Foundation. Harm without limits: AI child sexual abuse material through the eyes of our Analysts. Technical report, Internet Watch Foundation, March 2026. AI CSAM Report 2026; covers 2025 data.
  7. [7]Nupur Kumari, Bingliang Zhang, Sheng-Yu Wang, Eli Shechtman, Richard Zhang, and Jun-Yan Zhu. Ablating concepts in text-to-image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 22691–22702, 2023. arXiv:2303.13516.arxiv.org/abs/2303.13516
  8. [8]Ping Liu and Chi Zhang. Erased or dormant? Rethinking concept erasure through reversibility. arXiv preprint arXiv:2505.16174, 2025.arxiv.org/abs/2505.16174
  9. [9]Minh Pham, Kelly O. Marshall, Niv Cohen, Govind Mittal, and Chinmay Hegde. Circumventing concept erasure methods for text-to-image generative models. In International Conference on Learning Representations (ICLR), 2024. arXiv:2308.01508.arxiv.org/abs/2308.01508
  10. [10]Shauli Ravfogel, Michael Twiton, Yoav Goldberg, and Ryan Cotterell. Linear adversarial concept erasure. In Proceedings of the 39th International Conference on Machine Learning (ICML), pages 18400–18421, 2022. arXiv:2201.12091.arxiv.org/abs/2201.12091
  11. [11]Shauli Ravfogel, Francisco Vargas, Yoav Goldberg, and Ryan Cotterell. Adversarial concept erasure in kernel space. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6034–6055, 2022. doi:10.18653/v1/2022.emnlp-main.405; arXiv:2201.12191 (preprint title “Kernelized Concept Erasure”).
  12. [12]Vinith M. Suriyakumar, Rohan Alur, Ayush Sekhari, Manish Raghavan, and Ashia C. Wilson. Unstable unlearning: The hidden risk of concept resurgence in diffusion models. Transactions on Machine Learning Research, 2026. arXiv:2410.08074.arxiv.org/abs/2410.08074
  13. [13]David Thiel. Identifying and eliminating CSAM in generative ML training data and models. Technical report, Stanford Internet Observatory, Stanford University, December 2023. Stanford Digital Repository, doi:10.25740/kh752sm9123.
  14. [14]David Thiel, Melissa Stroebel, and Rebecca Portnoff. Generative ML and CSAM: Implications and mitigations. Technical report, Stanford Internet Observatory and Thorn, June 2023. Stanford Digital Repository, doi:10.25740/jv206yg3793.
  15. [15]Thorn and All Tech Is Human. Safety by design for generative AI: Preventing child sexual abuse. Technical report, Thorn, 2024.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type