Manuscript Offprint

arXiv:2610.27490

Orthogonal Boundary Unlearning for Dual-Use Concepts in Large Language Models

Niccolò Ronchetti

Abstract

Mitigating catastrophic risks from large language models requires excising hazardous operational capabilities, such as cyberwarfare exploitation and pathogen enhancement, without degrading benign scientific utility. In these dual-use domains, legitimate defensive science and malicious attacks share vocabulary, syntax, and internal model representations, causing standard unlearning methods to induce severe collateral damage (concept bleeding).

In this work, we present Orthogonal Boundary Unlearning (OBU), a mathematically grounded framework designed to eliminate collateral damage on benign dual-use capabilities. OBU extracts a domain-matched capability subspace from paired calibration queries via singular value decomposition on empirical activation covariances, and restricts parameter updates strictly to the orthogonal null space. This guarantees that benign representations experience zero parameter perturbation along the spanned calibration subspace.

We present two complementary realizations of OBU: Projected LoRA, which applies the orthogonal constraint during iterative gradient-based fine-tuning, and Closed-Form Weight Surgery, which directly edits model weights in a single analytical step without training. Across four modern open-weight foundation models (Gemma-3-4B, Qwen3.5-4B, SmolLM3-3B, and Granite-4.2-3B), OBU achieves strong dual-use concept separation, substantially mitigates in-context priming attacks, and demonstrates durable resistance against adversarial relearning without degrading benign domain competence.

1 Introduction

Large language models (LLMs) trained on web-scale text corpora acquire extensive domain expertise spanning both transformative scientific disciplines and hazardous technologies [1, 16, 28]. A central challenge in artificial intelligence safety is mitigating risks from dual-use capabilities: domains where legitimate scientific utility and catastrophic hazards are deeply intertwined [27, 39]. Dual-use dilemmas emerge prominently in: (i) cybersecurity, where defensive firmware analysis, vulnerability patch verification, and intrusion detection share foundations with automated zero-day exploitation; (ii) computational biology and virology, where pathogen vaccine candidate modeling and therapeutic antibody design share generative mechanics with viral transmissibility enhancement; (iii) molecular chemistry, where industrial synthesis optimization mirrors the generation of schedule-one toxic precursors; and (iv) nuclear engineering, where civilian power reactor modeling, medical radioisotope production, and neutron transport simulations share theoretical foundations with proliferation-sensitive fissile enrichment and weaponization physics [28, 31].

When safety practitioners attempt to excise dangerous capabilities via standard machine unlearning techniques—such as gradient ascent (GA), Representation Misdirection for Unlearning (RMU) [28], or Negative Preference Optimization (NPO) [53]—they confront the pathology of concept bleeding [23, 27, 52]. Because hazardous and benign dual-use tasks share vocabulary, syntactic constructs, and reasoning pathways, unconstrained gradient updates propagate across shared weight matrices and degrade benign scientific competence [31, 46].

Manifold M⊂Rd\mathcal{M} \subset \mathbb{R}^d

Figure

Figure 1: Dual-Use Representation Manifold and Benign Subspace Identification. In language model activation space Rd\mathbb{R}^d, capabilities reside on a continuous representation manifold M\mathcal{M} partitioned by an operational safety boundary B\mathcal{B} into hazardous capabilities Mhazard\mathcal{M}_{\text{hazard}} (activations {hf(i)}\{h_f^{(i)}\}, where subscript ff denotes the forget set) and benign science Mbenign\mathcal{M}_{\text{benign}} (activations {hb(i)}\{h_b^{(i)}\}). Because dual-use pairs lie in close proximity across B\mathcal{B}, isolating benign capabilities requires identifying their local geometry. OBU passes domain-matched calibration queries Db\mathcal{D}_b through the model to extract benign activations {hb(i)}\{h_b^{(i)}\}, computing the principal linear subspace Vboundary=span(Vr)\mathcal{V}_{\text{boundary}} = \text{span}(V_r) spanned by their leading rr empirical singular vectors to tightly enclose the local benign capability manifold.

References (51)