固定线性擦除的秩一绕过

arXiv cs.LG 论文

摘要

本文表明,固定的线性擦除层(例如 LEACE)并不能为开放权重模型提供防篡改保证:攻击者可以在上游应用秩一仿射更新,使目标得分绕过擦除层,以较低的特征编辑代价,在六项 CIFAR-10 任务上恢复几乎全部擦除前的性能。

arXiv:2611.23880v1 Announce Type: new 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.
查看原文
查看缓存全文

缓存时间: 2026/11/19 09:03

# A Rank-One Bypass of Fixed Linear Erasure
Source: [https://arxiv.org/html/2611.23880](https://arxiv.org/html/2611.23880)
\\workshoptitle

Child Safety in AI

Vanshaj KhattarAffiliation:Virginia Polytechnic Institute and State University

###### 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 and2,0002\{,\}000unlabelled calibration examples, a10%10\\%mean relative feature edit yields79\.8%79\.8\\%test accuracy, which is91\.2%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\.

## 1Introduction

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](https://arxiv.org/html/2611.23880#bib.bib5),[14](https://arxiv.org/html/2611.23880#bib.bib14),[6](https://arxiv.org/html/2611.23880#bib.bib6)\], and CSAM has been identified in training data behind widely redistributed checkpoints\[[13](https://arxiv.org/html/2611.23880#bib.bib13)\]\. These risks motivate safety interventions applied before release\[[15](https://arxiv.org/html/2611.23880#bib.bib15)\]\.

Concept erasure is one such intervention\. Existing methods edit diffusion\-model weights or remove target directions from internal representations\[[3](https://arxiv.org/html/2611.23880#bib.bib3),[7](https://arxiv.org/html/2611.23880#bib.bib7),[4](https://arxiv.org/html/2611.23880#bib.bib4)\]\. 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](https://arxiv.org/html/2611.23880#bib.bib1)\]\. 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\[[10](https://arxiv.org/html/2611.23880#bib.bib10),[11](https://arxiv.org/html/2611.23880#bib.bib11),[9](https://arxiv.org/html/2611.23880#bib.bib9),[12](https://arxiv.org/html/2611.23880#bib.bib12),[8](https://arxiv.org/html/2611.23880#bib.bib8)\]\.[Creţu et al\. \[2\]](https://arxiv.org/html/2611.23880#bib.bib2)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 layerE⁡\(z\)=A​z\+cE\(z\)=Az\+cand allowed linear\-head spaceHH, a route exists exactly whenPH​A≠0P\_\{H\}A\\neq 0; 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 most1\.2×10−101\.2\\times 10^\{\-10\}\.*\(iii\) Cost\.*With eight target labels, a10%10\\%mean relative feature edit recovers0\.9120\.912of the target score’s gain over chance, whereas a1%1\\%edit recovers0\.250\.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 a0\.050\.05margin\.

#### Scope\.

We distinguish*readout*of the unchangedE⁡\(x\)E\(x\),*routing*through a changed input toEE, and*adaptation*of a larger upstream block; Theorem[1](https://arxiv.org/html/2611.23880#Thmreadertheorem1)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\.

Figure 1:A representation certificate is not a release certificate\.Schematic with simulated two\-dimensional points:EEerases the dashed vertical direction, which carries the target, and transmits the horizontal directionuu\.\(a\)With the features unchanged, no allowed linear head can read the target fromE⁡\(x\)E\(x\)\.\(b\)An open\-weight attacker edits the upstream model to add a target scoreg⁡\(x\)g\(x\)alonguu; the same fixed layer transmits it, and an allowed linear head recovers the target\. Such a route exists exactly whenPH​A≠0P\_\{H\}A\\neq 0; for nonconstant lineargg, it is a rank\-one affine adapter\.

## 2Threat model: fixed eraser, editable upstream

We analyze the released pipelineinput→x→E⁡\(x\)=A​x\+c→h⊤​E​\(x\)\+β\\text\{input\}\\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 producingxxand choose any downstream linear classifier \(*head*\)h∈Hh\\in Hand biasβ\\beta, but must leaveEEbit\-identical\. An unrestricted attacker could deleteEE, so success under this restriction is a conservative failure case\.

Each target attack fits a scoreg⁡\(x\)g\(x\)fromNNlabelled examples and uses2,0002\{,\}000unlabelled 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[B](https://arxiv.org/html/2611.23880#A2)and Table[3](https://arxiv.org/html/2611.23880#A2.T3)\.

## 3One 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 directionuuthat the fixed layer still transmits \(Figure[1](https://arxiv.org/html/2611.23880#S1.F1)b\):

rs​\(x\)=x\+s​g​\(x\)​u,r\_\{s\}\(x\)=x\+s\\,g\(x\)u,\(1\)whereg⁡\(x\)g\(x\)is the target score andsscontrols the route’s strength\. The score may depend on every coordinate ofxx, but the added displacement always lies in the one\-dimensional space spanned byuu\.

Choose the downstream biasβ=−h⊤​c\\beta=\-h^\{\\top\}cto cancel the fixed offset ofE⁡\(z\)=A​z\+cE\(z\)=Az\+c\. An allowed headhhthen sees

h⊤​E​\(rs​\(x\)\)\+β\\displaystyle h^\{\\top\}E\(r\_\{s\}\(x\)\)\+\\beta=h⊤​A​x⏟original downstream term\+s⁡\(h⊤​A​u\)​g​\(x\)⏟routed target score\.\\displaystyle=\\underbrace\{h^\{\\top\}Ax\}\_\{\\text\{original downstream term\}\}\+\\underbrace\{s\\,\(h^\{\\top\}Au\)\\,g\(x\)\}\_\{\\text\{routed target score\}\}\.\(2\)
Ifh⊤​A​u≠0h^\{\\top\}Au\\neq 0, the attacker can flip the sign ofuuso thath⊤​A​u\>0h^\{\\top\}Au\>0\. Increasingssthen makes the routed score dominate the original downstream term\. The layer therefore does not need to retain the target in the originalE⁡\(x\)E\(x\); it only needs to transmit one direction after the upstream representation has been changed\. LEACE constrains a readout of the currentE⁡\(x\)E\(x\), not a later rewrite ofxx\.

###### Theorem 1\(One surviving direction is enough\)\.

LetE⁡\(z\)=A​z\+cE\(z\)=Az\+cbe fixed, and let the allowed heads form a subspaceHHwith orthogonal projectorPHP\_\{H\}\. Suppose the editable upstream model can compute a target scoreg⁡\(x\)g\(x\)that takes both signs\. There exist a directionuu, a headh∈Hh\\in H, and a biasβ\\betasuch that, for everyxxwithg⁡\(x\)≠0g\(x\)\\neq 0, the decision ofhhonE​\(rs​\(x\)\)E\(r\_\{s\}\(x\)\)equalssign⁡g⁡\(x\)\\operatorname\{sign\}g\(x\)for all sufficiently largess, if and only ifPH​A≠0P\_\{H\}A\\neq 0\. For unrestricted heads, this reduces toA≠0A\\neq 0\. For nonconstant lineargg, the updatersr\_\{s\}is a rank\-one affine adapter\. IfPH​A=0P\_\{H\}A=0, every allowed head has an input\-independent output\.

*Proof sketch\.*In Equation \([2](https://arxiv.org/html/2611.23880#S3.E2)\), the routed copy ofgghas gainκ=h⊤​A​u\\kappa=h^\{\\top\}Au, which can be made positive exactly whenPH​A≠0P\_\{H\}A\\neq 0; it fixes the sign of the output onces\>\|h⊤​A​x\|/\(κ​\|g⁡\(x\)\|\)s\>\|h^\{\\top\}Ax\|/\(\\kappa\|g\(x\)\|\)\. The finite\-sample statement and proof are in Appendix[A](https://arxiv.org/html/2611.23880#A1)\. RescalingAAby a positive constant does not help: it scales the original and routed terms equally\.

## 4Does 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 from0\.870\.87to1\.001\.00\. The head\-only baseline and the constant\-map controlA=0A=0remain at each task’s base rate, as predicted by Theorem[1](https://arxiv.org/html/2611.23880#Thmreadertheorem1)\. Trained rank\-one adapters match the closed\-form construction in every pair–seed run \(Appendix[A](https://arxiv.org/html/2611.23880#A1); Figure[3](https://arxiv.org/html/2611.23880#A1.F3)\)\.

#### Can it preserve deployed benign scores?

Suppose a deployed benign linear head with class\-score vectorsh1,…,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[B](https://arxiv.org/html/2611.23880#A2)\)\. In all six pairs, a route that preserves its scores exists, because eight constraints remove at most eight of the511511directions thatAAtransmits\. We chooseuuso that

hj⊤Au=0,j=1,…,q\.h\_\{j\}^\{\\top\}Au=0,\\qquad j=1,\\ldots,q\.\(3\)In exact arithmetic, Equation \([3](https://arxiv.org/html/2611.23880#S4.E3)\) leaves every benign score unchanged for every input and every route strength\. In our implementation, the maximum observed drift is1\.2×10−101\.2\\times 10^\{\-10\}, and the benign head’s predictions are identical to those of the clean model\. The constrained route remains within0\.30\.3percentage points of the unconstrained route on every run\. By contrast, the unconstrained route reduces this head’s accuracy from0\.810\.81–0\.870\.87to0\.270\.27–0\.710\.71\. We call the constrained route*score\-preserving*\.

Figure 2:What the route costs, and what its exact guarantee covers\.\(a\)With eight labels, recovery rises with the mean relative edit, from0\.250\.25at1%1\\%to0\.9120\.912at the reported10%10\\%point \(star\); the dashed line marks0\.900\.90\.\(b\)The deployed benign head’s accuracy is unchanged at every edit size, whereas independent MLP andkk\-NN evaluators lose accuracy as the edit grows\. Error bars are95%95\\%hierarchical\-bootstrap intervals over six pairs and five seeds\.
#### How expensive is it?

We fit the target scoregNg\_\{N\}fromNNlabelled examples and limit the average feature change using

ηmean=𝔼​‖rs​\(x\)−x‖2𝔼​‖x‖2\.\\eta\_\{\\mathrm\{mean\}\}=\\frac\{\\mathbb\{E\}\\\|r\_\{s\}\(x\)\-x\\\|\_\{2\}\}\{\\mathbb\{E\}\\\|x\\\|\_\{2\}\}\.\(4\)This is a mean relative edit, not a per\-example maximum\.

At eight labels and a10%10\\%mean relative edit \(95th\-percentile edit21%21\\%\), the route reaches0\.7980\.798test accuracy and recovers0\.912​\[0\.843,0\.976\]0\.912\\,\[0\.843,0\.976\]of the target score’s gain over chance, pooled over runs \(Figure[2](https://arxiv.org/html/2611.23880#S4.F2)a\)\. This is an aggregate rather than a per\-run guarantee: 20 of 30 pair–seed runs exceed0\.900\.90recovery, while uniform0\.900\.90recovery requires a50%50\\%mean edit\. At eight labels, pooled recovery falls to0\.520\.52at a2\.5%2\.5\\%mean edit and0\.250\.25at a1%1\\%mean edit\. Thus, bounding the allowed feature change materially raises the cost of this route\.

#### Controls and broader benign effects\.

Replacing the target\-score direction with a random one while keeping the routing directionuufixed reduces attack accuracy by0\.240\.24absolute\[0\.20,0\.30\]\[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 the10%10\\%operating point, independent benign MLP andkk\-NN accuracy fall by0\.70\.7and1\.21\.2percentage points, respectively, with larger losses under larger edits \(Figure[2](https://arxiv.org/html/2611.23880#S4.F2)b\)\. Exact preservation of selected linear scores is therefore not preservation of the full representation\.

## 5Why 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\\approx 0\.51\) from LEACE\-erased ResNet\-18 features, whereas a closed\-form ridge solver reaches0\.830\.83–0\.960\.96on 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 approximately0\.510\.51\. Erasers should therefore be fitted in double precision and audited with a closed\-form probe\. Separately, an eraser fitted in double precision still leaves0\.5850\.585–0\.5980\.598accuracy on held\-out data: suppression on the fitting sample need not transfer to new data \(Appendix[C](https://arxiv.org/html/2611.23880#A3)\)\.

#### Fine\-tuning recovery needs matched controls\.

A frozen erasure layer adds no measurable delay to fine\-tuning \(Appendix[D](https://arxiv.org/html/2611.23880#A4)\)\. Fine\-tuning one upstream block around it reaches0\.9170\.917target 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 a0\.050\.05equivalence margin fixed in advance, at every sampled checkpoint \(the first is step1010\)\. 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 approximately0\.840\.84to0\.390\.39\. It also differs from the analytic route in labels and parameters \(Table[3](https://arxiv.org/html/2611.23880#A2.T3)\), so we do not rank them\.

## 6What 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](https://arxiv.org/html/2611.23880#Thmreadertheorem1)\); 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](https://arxiv.org/html/2611.23880#bib.bib2)\]is the natural next test\.

## References

- \[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\.
- \[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\.
- \[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\.
- \[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\.
- \[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\]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\]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\.
- \[8\]Ping Liu and Chi Zhang\.Erased or dormant? Rethinking concept erasure through reversibility\.*arXiv preprint arXiv:2505\.16174*, 2025\.
- \[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\.
- \[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, 2022a\.arXiv:2201\.12091\.
- \[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, 2022b\.doi:10\.18653/v1/2022\.emnlp\-main\.405; arXiv:2201\.12191 \(preprint title “Kernelized Concept Erasure”\)\.
- \[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\.
- \[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\]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\]Thorn and All Tech Is Human\.Safety by design for generative AI: Preventing child sexual abuse\.Technical report, Thorn, 2024\.

## 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\.

## Appendix AFormal routing result

#### Setting\.

The released model computesh⊤​E​\(x\)\+βh^\{\\top\}E\(x\)\+\\beta, wherex∈ℝdx\\in\\mathbb\{R\}^\{d\}is an editable representation and

E⁡\(z\)=A​z\+c,A∈ℝm×d,c∈ℝm,E\(z\)=Az\+c,\\qquad A\\in\\mathbb\{R\}^\{m\\times d\},\\quad c\\in\\mathbb\{R\}^\{m\},is fixed\. Allowed downstream linear classifiers \(heads\) lie in a subspaceH⊆ℝmH\\subseteq\\mathbb\{R\}^\{m\}, with orthogonal projectorPHP\_\{H\}, and the biasβ\\betais free\. Lett∈\{−1,\+1\}t\\in\\\{\-1,\+1\\\}be the target label and letg:ℝd→ℝg:\\mathbb\{R\}^\{d\}\\to\\mathbb\{R\}be any target score the attacker can evaluate upstream\. Define

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

#### Full form of Theorem[1](https://arxiv.org/html/2611.23880#Thmreadertheorem1)\.

An allowed one\-dimensional route exists if and only ifPH​A≠0P\_\{H\}A\\neq 0\. When this condition holds, chooseu∈ℝdu\\in\\mathbb\{R\}^\{d\}andh∈Hh\\in Hso thatκ:=h⊤​A​u\>0\\kappa:=h^\{\\top\}Au\>0, and setβ=−h⊤​c\\beta=\-h^\{\\top\}c\. For

rs​\(x\)=x\+s​g​\(x\)​u,ρ⁡\(x\)=h⊤​A​x,r\_\{s\}\(x\)=x\+s\\,g\(x\)u,\\qquad\\rho\(x\)=h^\{\\top\}Ax,the attacked head output is

h⊤​E​\(rs​\(x\)\)\+β=ρ⁡\(x\)\+s​κ​g​\(x\)\.h^\{\\top\}E\(r\_\{s\}\(x\)\)\+\\beta=\\rho\(x\)\+s\\kappa g\(x\)\.\(5\)Consequently:

1. 1\.Ifg⁡\(x\)≠0g\(x\)\\neq 0and s\>\|ρ⁡\(x\)\|κ​\|g⁡\(x\)\|,s\>\\frac\{\|\\rho\(x\)\|\}\{\\kappa\|g\(x\)\|\},then the attacked decision equalssign⁡g⁡\(x\)\\operatorname\{sign\}g\(x\)\.
2. 2\.On a finite evaluation set\{xi\}i=1n\\\{x\_\{i\}\\\}\_\{i=1\}^\{n\}withg⁡\(xi\)≠0g\(x\_\{i\}\)\\neq 0, define s†=maxi:sign⁡ρ⁡\(xi\)≠sign⁡g⁡\(xi\)\|ρ⁡\(xi\)\|κ​\|g⁡\(xi\)\|,s^\{\\dagger\}=\\max\_\{i:\\,\\operatorname\{sign\}\\rho\(x\_\{i\}\)\\neq\\operatorname\{sign\}g\(x\_\{i\}\)\}\\frac\{\|\\rho\(x\_\{i\}\)\|\}\{\\kappa\|g\(x\_\{i\}\)\|\},withs†=0s^\{\\dagger\}=0if the disagreement set is empty\. Everys\>s†s\>s^\{\\dagger\}reproducessign⁡g\\operatorname\{sign\}gon all points;s†s^\{\\dagger\}is the sharp infimum threshold, with equality depending on the tie rule\.
3. 3\.IfPr\[g\(x\)=0\]=0\\Pr\[g\(x\)=0\]=0, then Pr\[sign\(h⊤E\(rs\(x\)\)\+β\)=t\]⟶a⋆ass→∞\.\\Pr\[\\operatorname\{sign\}\(h^\{\\top\}E\(r\_\{s\}\(x\)\)\+\\beta\)=t\]\\longrightarrow a^\{\\star\}\\qquad\\text\{as \}s\\to\\infty\.
4. 4\.Ifg⁡\(x\)=w⊤​x\+bg\(x\)=w^\{\\top\}x\+bis nonconstant and linear, then rs​\(x\)=\(I\+s​u​w⊤\)​x\+s​b​u,r\_\{s\}\(x\)=\(I\+suw^\{\\top\}\)x\+sbu,whose linear perturbation has rank one\.
5. 5\.IfPH​A=0P\_\{H\}A=0, thenh⊤​A​u=0h^\{\\top\}Au=0for everyuuand everyh∈Hh\\in H, so no route of this form can transmit an input\-dependent score to an allowed head\.

###### Proof\.

Equation \([5](https://arxiv.org/html/2611.23880#A1.E5)\) follows from affine linearity andβ=−h⊤​c\\beta=\-h^\{\\top\}c\. Ifs​κ​\|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\)=\{sign\(ρ\(x\)\+sκg\(x\)\)≠signg\(x\)\}\.D\_\{s\}\(x\)=\\mathbf\{1\}\\\!\\left\\\{\\operatorname\{sign\}\(\\rho\(x\)\+s\\kappa g\(x\)\)\\neq\\operatorname\{sign\}g\(x\)\\right\\\}\.For everyxxwithg⁡\(x\)≠0g\(x\)\\neq 0,Ds​\(x\)→0D\_\{s\}\(x\)\\to 0, and0≤Ds≤10\\leq D\_\{s\}\\leq 1\. Dominated convergence therefore givesPr\[Ds=1\]→0\\Pr\[D\_\{s\}=1\]\\to 0, which implies convergence of target accuracy toa⋆a^\{\\star\}\. The linear\-ggform is obtained by substitution\. Finally,

max‖u‖=‖h‖=1,h∈H⁡h⊤​A​u=σmax​\(PH​A\),\\max\_\{\\\|u\\\|=\\\|h\\\|=1,\\,h\\in H\}h^\{\\top\}Au=\\sigma\_\{\\max\}\(P\_\{H\}A\),so a positive gain exists exactly whenPH​A≠0P\_\{H\}A\\neq 0\. ∎

#### Scale\-to\-edit conversion\.

The route changes the representation bys​g​\(x\)​us\\,g\(x\)u, hence

ηmean​\(s\)=𝔼​‖rs​\(x\)−x‖2𝔼​‖x‖2=s​‖u‖2​𝔼​\|g⁡\(x\)\|𝔼​‖x‖2\.\\eta\_\{\\mathrm\{mean\}\}\(s\)=\\frac\{\\mathbb\{E\}\\\|r\_\{s\}\(x\)\-x\\\|\_\{2\}\}\{\\mathbb\{E\}\\\|x\\\|\_\{2\}\}=\\frac\{s\\\|u\\\|\_\{2\}\\,\\mathbb\{E\}\|g\(x\)\|\}\{\\mathbb\{E\}\\\|x\\\|\_\{2\}\}\.\(6\)The experiments fixηmean\\eta\_\{\\mathrm\{mean\}\}and solve Equation \([6](https://arxiv.org/html/2611.23880#A1.E6)\) forsson an unlabelled calibration pool\.

#### Score\-preserving route\.

Leth1,…,hqh\_\{1\},\\ldots,h\_\{q\}be the class\-score vectors of the deployed benign head and define

Usafe=⋂j=1qker⁡\(hj⊤​A\),U\_\{\\mathrm\{safe\}\}=\\bigcap\_\{j=1\}^\{q\}\\ker\(h\_\{j\}^\{\\top\}A\),with orthogonal projectorΠsafe\\Pi\_\{\\mathrm\{safe\}\}\. A route that leaves every benign score unchanged exists exactly when

PH​A​Πsafe≠0\.P\_\{H\}A\\Pi\_\{\\mathrm\{safe\}\}\\neq 0\.\(7\)Indeed,u∈Usafeu\\in U\_\{\\mathrm\{safe\}\}giveshj⊤​A​u=0h\_\{j\}^\{\\top\}Au=0for everyjj, while the maximum allowed target gain is

σmax​\(PH​A​Πsafe\)\.\\sigma\_\{\\max\}\(P\_\{H\}A\\Pi\_\{\\mathrm\{safe\}\}\)\.

#### Boundary cases\.

For unrestricted heads,PH=IP\_\{H\}=I, so only the constant mapA=0A=0blocks the route\. ReplacingAAbyλ​A\\lambda A,λ\>0\\lambda\>0, scales the original and routed terms equally and therefore does not change the requiredssin 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 from0\.8680\.868to0\.9960\.996\. The head\-only baseline reads0\.500\.50–0\.510\.51, and the constant\-map controlA=0A=0remains 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[3](https://arxiv.org/html/2611.23880#A1.F3)a\)\.

As a small second setting we use the scikit\-learn8×88\\times 8digits 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 random3232\-dimensional subspace, removal of the top3232principal components, removal of a1616\-dimensional subspace spanned by differences of class\-conditional cluster means \(“spectral”\), and LEACE;A=0A=0is the control\. Each curve averages the eight pair–seed runs\.

Figure 3:One surviving direction is enough \(Theorem 1\)\.Target accuracy of the allowed head versus route strengthssfor the analytic rank\-one route:\(a\)digits behind five erasers,\(b\)ResNet\-18 features behind LEACE\. Every nonzero eraser reachesa⋆a^\{\\star\}\(dotted\); onlyA=0A\{=\}0\(dashed\) stays at chance\. Open squares: the head without a route\. Panel \(b\) shows two of the six pairs, witha⋆=0\.982a^\{\\star\}=0\.982\(airplane/automobile\) and0\.8680\.868\(cat/dog\)\.

## Appendix BCost\-frontier protocol, controls, and resources

#### Protocol\.

We evaluate six CIFAR\-10 class pairs and five seeds per pair\. Each of the resulting3030runs 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 fittinggNg\_\{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,0004\{,\}000examples fit the eraser,4,0004\{,\}000form the attacker pool,2,0002\{,\}000unlabelled 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\-time10,72010\{,\}720\-label protocol\-design cost is reported separately from each target attack\.

The route is calibrated by solving Equation \([6](https://arxiv.org/html/2611.23880#A1.E6)\) on the unlabelled pool\. At the highlighted point, calibration setsηmean=0\.10\\eta\_\{\\mathrm\{mean\}\}=0\.10; the realized test mean is0\.10020\.1002, and testη95=0\.210\\eta\_\{95\}=0\.210\. Table[1](https://arxiv.org/html/2611.23880#A2.T1)lists selected points of the frontier and Table[2](https://arxiv.org/html/2611.23880#A2.T2)the per\-pair results at the highlighted point\.

#### Metrics\.

For balanced binary tasks, letaN⋆a\_\{N\}^\{\\star\}be the direct accuracy ofgNg\_\{N\}, and letaroutea\_\{\\mathrm\{route\}\}be the routed accuracy\. We report

RF=aroute−0\.5aN⋆−0\.5,\\mathrm\{RF\}=\\frac\{a\_\{\\mathrm\{route\}\}\-0\.5\}\{a\_\{N\}^\{\\star\}\-0\.5\},the fraction ofgNg\_\{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\}^\{\\star\}\-a\_\{\\mathrm\{head\}\}\},which normalizes against the head\-only accuracyaheada\_\{\\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\.

Table 1:Selected points from the measured route frontier\.AtN=8,η=0\.10N=8,\\eta=0\.10, routed test accuracy is0\.7980\.798\. The highlighted point summarizes the reported test frontier and was not confirmed on separate data\. All3030runs reachRF≥0\.90\\mathrm\{RF\}\\geq 0\.90only atη=0\.50\\eta=0\.50\.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 ofgNg\_\{N\}\.
#### Deployed benign head\.

For each target pair, the deployed benign task is88\-way classification of the eight CIFAR\-10 classes outside the pair \(base rate0\.1250\.125\)\. Its head is a single linear softmax layer on cleanE⁡\(x\)E\(x\), trained on8,0008\{,\}000images of those classes with the cross\-entropy loss using Adam at learning rate0\.050\.05for1,5001\{,\}500full\-batch steps, and then frozen\. Its eight class\-score vectors areh1,…,h8h\_\{1\},\\ldots,h\_\{8\}, so the constraint removes at most eight of the511511directions thatAAtransmits\. Clean test accuracy on the eight classes is0\.810\.81–0\.870\.87across runs\.

#### Controls and benign effects\.

The score\-preserving route differs from the unconstrained route by at most0\.0030\.003absolute target accuracy in every pair–seed run\. By contrast, the unconstrained route reduces the deployed benign head’s accuracy to0\.270\.27–0\.710\.71\. The independent evaluators are a one\-hidden\-layer width\-128128ReLU MLP trained on cleanE⁡\(x\)E\(x\), and Euclideankk\-NN withk=10k=10\. The MLP is trained with Adam at learning rate0\.0030\.003for1,2001\{,\}200full\-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 directionuufixed reduces accuracy by0\.24​\[0\.20,0\.30\]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 most4\.3×10−134\.3\\times 10^\{\-13\}over the full edit grid, with identical benign\-head predictions; at the much larger route strengths used to verify Theorem[1](https://arxiv.org/html/2611.23880#Thmreadertheorem1), the worst\-case drift is1\.2×10−101\.2\\times 10^\{\-10\}\. Atη=0\.10\\eta=0\.10, independent benign MLP andkk\-NN evaluators lose0\.68​\[0\.44,0\.94\]0\.68\\,\[0\.44,0\.94\]and1\.21​\[0\.73,1\.75\]1\.21\\,\[0\.73,1\.75\]percentage points, respectively\.

AtN=8,η=0\.10N=8,\\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 is0\.5100\.510\.

#### Construction\-specific frontier\.

The reported surface prices the closed\-form route obtained from the top singular pair ofPH​A​ΠsafeP\_\{H\}A\\Pi\_\{\\mathrm\{safe\}\}\. It is not a proof of the globally cheapest rank\-one attack\.

Table 3:Attack resource vector at the highlighted operating point\.The supported claim is that, after fitting the small scoregNg\_\{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 step1010, the first sampled post\-start checkpoint\. Appendix[D](https://arxiv.org/html/2611.23880#A4)reports the later deployed benign\-head decline from approximately0\.840\.84to0\.390\.39\.

## Appendix CSolver, numerical precision, and transfer to new data

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\.#### 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](https://arxiv.org/html/2611.23880#A3.T4)reports the audited settings supporting the main\-text comparison\.

### C\.1Theorem\-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\.

## Appendix DFine\-tuning controls and equivalence analysis

#### Design\.

Four arms shareconv1\.\.layer3frozen andlayer4plus a fresh head trainable, for the same8,394,2418\{,\}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 rate10−410^\{\-4\}, batch size128128, and4,0004\{,\}000labelled images\. A disjoint2,0002\{,\}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](https://arxiv.org/html/2611.23880#A4.T5)\)\. Uncertainty is obtained by resampling pairs and then seeds\.

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 most0\.0050\.005at every sampled checkpoint\.
#### Equivalence result\.

Using a0\.050\.05accuracy 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 are0\.0050\.005and0\.0040\.004, respectively\. The first post\-start checkpoint is step1010, so a transient confined to steps11–99is not excluded\.

The reinitialized arm is slower: the LEACE\-minus\-reinitialized difference is0\.123​\[0\.066,0\.189\]0\.123\\,\[0\.066,0\.189\]at step1010and0\.008​\[0\.002,0\.018\]0\.008\\,\[0\.002,0\.018\]at step400400\. 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 approximately0\.840\.84to0\.390\.39\.

相似文章

遗忘并非擦除:通过传输键恢复潜在知识

arXiv cs.LG

本文认为神经网络中的灾难性遗忘并非擦除,而是一个接口对齐问题。它提出了'传输键'来从顺序训练的模型中恢复潜在的任务特定特征,展示了在分割CIFAR-100上的显著性能恢复。