Manuscript Offprint
arXiv:2610.27490Orthogonal Boundary Unlearning for Dual-Use Concepts in Large Language Models
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

Figure 1: Dual-Use Representation Manifold and Benign Subspace Identification. In language model activation space , capabilities reside on a continuous representation manifold partitioned by an operational safety boundary into hazardous capabilities (activations , where subscript denotes the forget set) and benign science (activations ). Because dual-use pairs lie in close proximity across , isolating benign capabilities requires identifying their local geometry. OBU passes domain-matched calibration queries through the model to extract benign activations , computing the principal linear subspace spanned by their leading empirical singular vectors to tightly enclose the local benign capability manifold.
-
Extensive Lexical and Syntactic Overlap: In dual-use domains, benign scientific workflows and hazardous operations share identical technical vocabulary, syntactic constructs, and functional terminology (such as low-level system calls, chemical reaction equations, or genetic sequence notations). Because autoregressive pre-training optimizes next-token prediction across these shared lexical distributions, the model embeds benign and hazardous prompts into shared initial representation spaces.
-
Early-to-Mid Layer Representation Alignment: In transformer architectures, early and intermediate feed-forward and attention layers ( ) construct general conceptual representations, token associations, and syntactical bindings [17, 38]. In these early-to-mid representations, dual-use pairs share substantial subspace structure, with task-specific operational trajectories diverging predominantly in deeper transformer layers.
-
Parametric Superposition: Deep networks store far more features than available dimensions through polysemantic superposition [14, 20]. Neurons and attention heads are shared across orthogonal concepts, so perturbing weight matrices without subspace constraints collides with adjacent factual associations.
We emphasize that our designation of paired contrastive tasks as residing at the “boundary” is an operational, qualitative characterization based on prompt construction, rather than an explicitly measured metric margin in activation space . As illustrated in Figure 1, because paired dual-use queries differ primarily in terminal generative intent (e.g., defensive patch verification versus weaponized exploitation), their activations and lie in close proximity across the operational safety boundary on the representation manifold .
To circumvent collateral damage, recent works propose null-space unlearning or representation erasure, such as Null-Space Constrained Low-Rank Adaptation (NSRU) [26] and ZeroUnlearn [30]. However, these approaches compute retain spaces globally over generic web text or broad instruction datasets. While such global null spaces protect generic capabilities (such as trivia or common coding), they fail to isolate the local benign region adjacent to , leaving benign dual-use capabilities vulnerable to unlearning updates.
1.2 Contributions
To resolve dual-use capability entanglement without collateral damage, we introduce Orthogonal Boundary Unlearning (OBU), an unlearning framework that extracts the local benign subspace (Figure 1) and restricts parameter updates strictly to its orthogonal complement (Figure 2):
• Boundary Subspace Projection: We construct layer-wise orthogonal projectors from the uncentered token-level second-moment matrix of paired benign calibration queries, guaranteeing zero perturbation along and bounding residual variance by .
• Subspace Capacity and Layer Profiling: Across four open-weight models, we show that isolating the benign capability subspace does not exhaust model capacity: in the targeted final 25% of attention output layers (o-proj), capturing 95% of benign activation variance requires on average only 8.0% of the layer dimensions, leaving 92.0% of the dimensions available in the orthogonal complement for unlearning (nearly twice as compact as empirical Fisher information at 16.2%, while avoiding the covariance memory overhead of high-dimensional MLP projections). Even under a strict 99% variance threshold across large calibration sets, 27%-73% of the ambient dimensions remain available in the orthogonal null space.
• Complementary Algorithmic Realizations: We instantiate OBU in two algorithms that fold directly into base weights with zero inference overhead (reported below at ):
– Projected LoRA filters adapter inputs through during gradient ascent on hazardous text, suppressing hazardous compliance on paired dual-use queries from 22.5% down to 3.9% on Qwen3.5-4B (and from 30.6% to 23.3% on Gemma-3-4B-IT) while preserving 100% accuracy on matched benign queries.
– Closed-Form Weight Surgery analytically subtracts the principal hazardous subspace within the benign null space in a single training-free step, reducing multiple-choice hazardous accuracy on WMDP-Cyber from 41.1% to 39.1% on Gemma and from 38.4% to 31.5% on Granite while maintaining accuracy on matched benign queries.
• Robustness to In-Context Priming and Adversarial Relearning: We evaluate whether unlearned capabilities can be re-elicited via in-context priming (prepending legitimate scientific demonstrations to hazardous requests) or adversarial fine-tuning on held-out hazardous text. On Qwen3.5-4B, Projected LoRA cuts direct 0-shot harmful compliance from 17.9% to 1.5% and 1-shot primed compliance from 37.4% to 15.8%. Furthermore, whereas standard unconstrained LoRA re-acquires 50% of its unlearned capability within 30 fine-tuning steps, both OBU realizations resist recovery across the entire 100-step fine-tuning horizon.
2 Related Work
2.1 Machine Unlearning and Dual-Use Collateral Damage
Machine unlearning originated in classification to remove the influence of specific training samples without full retraining [7, 37], and has since been adapted to LLMs to erase memorized text or hazardous capabilities [13, 25, 50]. Standard optimization methods—including Gradient Ascent (GA), Representation Misdirection for Unlearning (RMU) [28], and preference-based objectives such as DPO [40] and Negative Preference Optimization (NPO) [53]—penalize hazardous outputs directly across model weights. While effective when the target knowledge is isolated from general capabilities (such as forgetting fictitious author biographies in TOFU [34]), unconstrained updates in dual-use domains alter shared representations and induce severe concept bleeding (overforgetting) on adjacent benign tasks [31, 39]. Recent benchmarks specifically designed to measure forget-retain overlap—including ConceptGuard [27], BLUR [23], and PreUnlearn [46]—confirm that standard unlearning objectives struggle to suppress hazardous responses without degrading closely related benign expertise.
2.2 Subspace Projection and Null-Space Adaptation
Projecting updates onto orthogonal subspaces was originally developed in continual learning to prevent catastrophic forgetting across sequential tasks [15, 51] and in linear concept erasure to remove protected attributes from representations (INLP [41], LEACE [5, 42]). In parameter-efficient fine-tuning, O-LoRA [48] penalizes overlap between sequential task adapters ( ), while Safe LoRA [21] projects fine-tuned adapters onto the weight difference ( ) to preserve safety guardrails during downstream fine-tuning. However, neither method can unlearn pre-trained capabilities or isolate entangled concepts within a single base model.
Most closely related to our approach, recent unlearning frameworks such as NSRU [26], ZeroUnlearn [30], and CIR [44] adapt activation null-space projection to LLM unlearning. While these works constrain updates using generic retain corpora or supervised refusal targets, they do not address the severe representation overlap of paired dual-use tasks—where a critical open question is whether projecting out domain-matched benign activations leaves sufficient null-space capacity for unlearning. OBU directly addresses this regime by constructing from paired contrastive boundary queries, profiling spectral capacity across module types and depths, and comparing iterative (Projected LoRA) and training-free (Closed-Form Surgery) realizations under in-context priming and relearning attacks.
2.3 Adversarial Stress-Testing and Mechanistic Auditing
Recent audits demonstrate that suppressing accuracy on multiple-choice benchmarks such as WMDP [28] does not guarantee genuine capability removal [12, 33]. Unlearned models frequently re-exhibit hazardous capabilities when subjected to optimization-based jailbreaks [9, 32, 36, 43, 54], in-context priming with benign or cooperative demonstrations [3, 6, 10, 49], or lightweight fine-tuning on a small number of hazardous examples (relearning attacks) [18, 45, 47]. To evaluate whether unlearning alters internal circuits or merely induces shallow refusals, mechanistic interpretability studies employ Sparse Autoencoders (SAEs) [8, 11, 29], linear representation probes [4, 35, 38], and gradient sensitivity analysis. We combine paired dual-use evaluation on ConceptGuard [27] with multi-shot priming attacks and 100-step fine-tuning relearning audits to evaluate OBU's robustness.
3 Mathematical Formulation of OBU
This section formalizes the Orthogonal Boundary Unlearning (OBU) framework. We define the empirical boundary covariance, derive the truncated singular value decomposition (SVD) rank selection, establish the asymmetric defense mechanism, and present two complementary algorithmic realizations: Projected LoRA and Closed-Form Weight Surgery.
3.1 Empirical Boundary Covariance and Subspace Decomposition
Consider a transformer language model parameterized by weights , with a targeted linear projection layer at layer . During autoregressive processing of a sequence of length , the module receives hidden activation vectors at each token position and produces intermediate output states .
To construct the projection operator, we curate a calibration dataset of domain-matched benign queries selected as contrastive counterparts to the hazardous domain. Passing each query of token length through the model, we extract the input activations immediately preceding across all token positions.
Following prior null-space projection methods [26, 30, 51], we accumulate the uncentered empirical second-moment matrix (referred to hereafter as the empirical boundary covariance matrix) across all calibration tokens:
Using the uncentered second moment rather than a mean-centered covariance is mathematically required because linear layers act directly on uncentered activations ; ensuring requires projecting out the uncentered span of (including its mean direction). Accumulating across all tokens rather than a single token per prompt enables rank estimation up to even when ; although this includes common function words alongside domain terms, recurring syntactic directions are absorbed into the leading singular vectors (protecting general language fluency), while in deep causal layers each token state already integrates the preceding query context.
Because is symmetric and positive semi-definite, its singular value decomposition coincides with its eigendecomposition:
where is an orthonormal basis of singular vectors, and contains singular values sorted in descending order: .
3.2 Energy-Preserving Rank Selection
The singular values quantify the activation variance concentrated along principal direction across benign boundary queries. Rather than fixing an arbitrary rank , we determine dynamically via a cumulative energy threshold :
Let denote the matrix of the top-r singular vectors. The principal benign capability subspace at layer is defined as . The orthogonal boundary projection operator is constructed as:
By construction, is symmetric and idempotent , representing an orthogonal projection onto the null space of the benign calibration subspace: .
3.3 Orthogonal Non-Interference Guarantee
OBU separates hazardous and benign capabilities asymmetrically: benign boundary queries define a hard geometric constraint , while hazardous forget queries (where subscript denotes the forget set) drive the weight update within the remaining orthogonal complement. Consider any activation vector . Expressing for some coefficient vector , we have:
since . Consequently, for any weight update right-multiplied by (so that incoming activations are projected before is applied; Figure 2), the perturbation along the benign boundary subspace is identically zero:
More generally, any benign activation can be decomposed into its in-subspace projection and orthogonal residual as , where and . The projected update then evaluates to . Because the eigenvalues of equal the mean squared projections over the calibration tokens, a cumulative energy threshold guarantees that the expected residual energy satisfies , bounding perturbations along the truncation tail.
3.4 Realization 1: Projected LoRA
In gradient-based adaptation, low-rank adaptation (LoRA) [22] parameterizes weight updates as , where , , and denotes the adapter intrinsic rank (distinguished from the SVD boundary truncation rank ). OBU Projected LoRA enforces boundary orthogonality by projecting the incoming activation before the low-rank adapter:
During the backward pass, gradients with respect to adapter matrix are strictly projected onto :
so any gradient component residing in is identically zeroed. After optimization, the adapter weights fold into the base matrix as , incurring zero inference latency or parameter overhead.
Unconstrained

(a) Standard Unlearning (Oblique Operator Alignment): Because parameter updates are unconstrained in parameter space, the operator's principal input singular vector is tilted obliquely relative to the domain-matched benign subspace . The resulting projection onto the benign subspace is non-zero (Proj ), causing collateral damage to benign capabilities.

(b) OBU Orthogonal Insulation (Zero Projection): Right-multiplication of by the orthogonal projector (projecting incoming activations before is applied) restricts the operator's co-image strictly to , ensuring that . The projection onto the benign subspace vanishes (Proj ), mathematically guaranteeing zero perturbation of benign activations.
Figure 2: Operator Subspace Geometry and Orthogonal Projection in OBU. Parameter updates are depicted via their principal input singular direction in , where denotes the component of the update acting on the benign subspace (its shadow on the blue plane).
We optimize the adapter parameters over hazardous forget sequences by maximizing the language modeling cross-entropy loss via a smooth, bounded gradient ascent objective:
where is a saturation constant that smoothly bounds the objective below by , preventing gradient explosion once hazardous sequences reach high perplexity.
3.5 Realization 2: Closed-Form Weight Surgery
As a training-free alternative to iterative adaptation, Closed-Form Weight Surgery computes the weight update directly from the empirical second-moment matrix of hazardous activations. Let denote a forget corpus of hazardous sequences comprising total tokens. Analogous to Equation (1), we accumulate the uncentered hazardous empirical covariance matrix:
Applying truncated SVD to at rank (selected via cumulative energy threshold as in Equation (3)), we extract the leading singular vectors and form the symmetric projector .
Directly applying the unconstrained subtraction would damage shared benign representations [5]. Instead, OBU Closed-Form Surgery projects through the boundary orthogonal projector:
By Equation (5), for any benign activation component , the surgical update vanishes:
Conversely, for activation components residing in the orthogonal complement , the update subtracts , attenuating the module's output along principal hazardous directions without iterative training.
4 Experimental Setup and Benchmarks
For each model under evaluation, we measure dual-use concept separation, multiple-choice domain retention, general capability preservation, multi-shot priming robustness, and fine-tuning relearning dynamics.
4.1 Target Model Architectures
We evaluate four 2025–2026 open-weight foundation models spanning distinct architectural families:
-
Gemma-3-4B-IT [16]: Google’s 4B-parameter model with 34 layers, residual dimension , attention output projection input dimension , and MLP down-projection input dimension .
-
Qwen3.5-4B [1]: Alibaba’s 4B-parameter model with 32 layers, , , and .
-
SmolLM3-3B [2]: HuggingFace’s 3B-parameter model with 36 layers, , , and .
-
Granite-4.2-3B [24]: IBM’s 3B-parameter model with 40 layers, , , and .
4.2 Datasets, Splits, and Implementation Details
Our experimental pipeline uses three benchmarks with strict train-test separation:
• ConceptGuard [27]: 2,595 paired dual-use items split 80/20 (seed=42) into 2,076 training pairs and 519 held-out test pairs. Each item pairs a hazardous query with a domain-matched benign boundary query. The 2,076 benign training queries form for accumulating , while the 519 held-out test pairs are used exclusively for evaluation.
• WMDP Cyber [28]: For unlearning optimization and closed-form covariance estimation, we use the cais/wmdp-corpora (cyber-forget-corpus) dataset of 1,000 passages, split 80/20 (seed=42) into 800 training passages ( ) and 200 held-out test passages (reserved for adversarial relearning fine-tuning). For multiple-choice evaluation, we use the full 1,987-question wmdp-cyber test split (random guessing baseline: 25.0%).
• MMLU [19]: The complete 14,042-question test split across all 57 subjects to measure general reasoning utility.
We first profile boundary subspace geometry across layer depths and sub-layer projection types (o_proj vs. down_proj, and activation covariance vs. empirical Fisher; Sections 5.1–5.2). Based on this profiling, our unlearning interventions target the attention output projections (o_proj) in the final 25% of layers (layers 25–33 in Gemma, 24–31 in Qwen, 27–35 in SmolLM, and 30–39 in Granite) using activation covariance . We evaluate cumulative energy thresholds , fixing for the adversarial and relearning stress tests in Section 5.4.
For Projected LoRA, we use saturation constant , adapter rank , , AdamW ( ), batch size 1 with 8 gradient accumulation steps (100 optimizer updates over the 800 forget passages), sequence truncation length 128, and gradient norm clipping at 1.0. Models are loaded in bfloat16, while all covariance accumulations and SVD factorizations are executed in float32.
4.3 Evaluation Metrics
We report six quantitative metrics across our evaluations:
-
Forget Accuracy (Accforget ↓): Multiple-choice accuracy on the 1,987 WMDP Cyber test questions, evaluated by comparing next-token logits over answer options {A, B, C, D}.
-
Boundary Accuracy (Accboundary ↑): The fraction of the 519 held-out benign boundary queries in ConceptGuard that the model complies with rather than refusing (target: 1.0000).
-
General Utility (Gen Utility ↑): Overall multiple-choice accuracy across all 14,042 MMLU test questions.
-
Contextual Separation ( ): The mean compliance difference between matched benign and hazardous queries across the 519 paired ConceptGuard test items:
where indicates whether the model complies with query (1) or refuses (0), so corresponds to 100% benign accuracy alongside 100% hazardous refusal.
-
Attack Success Rate (ASR ↓): The fraction of the 519 held-out ConceptGuard hazardous queries that elicit compliant responses under 0-shot, 1-shot, 2-shot, and 4-shot benign in-context priming [6, 10].
-
Relearning Steps ( ): During post-unlearning fine-tuning via SGD ( , batch size 1, accumulation 8, 100 steps) on the 200 held-out wmdp-corpora test passages, the number of steps required for Accforget to recover 50% of its post-unlearning drop.
5 Empirical Evaluation and Findings
We structure our empirical analysis around four research questions:
• Does boundary subspace isolation exhaust the model’s parameter capacity (Section 5.1)?
• Where in the transformer hierarchy are boundary representations most concentrated (Section 5.2)?
• How do iterative Projected LoRA and training-free Closed-Form Surgery compare in unlearning efficacy and benign utility (Section 5.3)?
• Does OBU withstand in-context priming and adversarial relearning (Section 5.4)?
5.1 Subspace Dimensionality and Degrees of Freedom
A central question for subspace-constrained unlearning is the Degrees of Freedom Squeeze hypothesis: if isolating the benign boundary requires projecting out a large fraction of the hidden space, the remaining orthogonal complement may be too small to support effective capability modification. To test this hypothesis, we first profile the pre-MLP residual stream activations at 50%, 62.5%, and 75% network depth across calibration sample sizes and cumulative energy thresholds .
Across all four foundation models, the singular value spectra refute the Degrees of Freedom Squeeze hypothesis:
• Null-Space Capacity Across Energy Thresholds ( ): Across all evaluated layers and models at calibration queries, capturing 90%, 95%, and 99% of the benign activation variance ( ) leaves on average 85.8%, 73.4%, and 41.0% of the layer dimensions available in the orthogonal null space, respectively.
- Sub-Linear Subspace Growth Across Sample Sizes (M): Increasing the calibration set from to queries (at ) increases the mean protected subspace from 4.0% to 26.6% of the layer dimensions (16.0% at ), indicating that benign boundary queries concentrate along shared principal directions rather than filling the ambient space linearly with M.
The complete layer-by-layer singular value spectra across all sample sizes M and thresholds are reported in Table 3 in Appendix A.
5.2 Module Locus and Layer Depth Trajectory
To determine where in the network to apply the boundary projector, we profile all layers across the four models at and , comparing attention output projections ( , input dimension ) against MLP down-projections ( , input dimension ). Alongside the forward activation covariance (Equation (1)), we also evaluate an alternative projector constructed from the empirical input-gradient Fisher information matrix :
where is the autoregressive cross-entropy loss on benign query , and is the gradient of with respect to the module's input activation at token . Whereas captures directions of high forward activation variance, captures input directions to which the model's output loss is most sensitive.
Covariance vs. Empirical Fisher Information
In attention output projections (o_proj), capturing 95% of boundary activation variance via consumes on average 9.5% of the input dimension across all layers (leaving 90.5% of the dimensions in the orthogonal complement), compared to 16.2% of for empirical Fisher information . In MLP down-projections (down_proj), and consume 6.3% and 4.7% of the wider intermediate dimension , respectively (leaving over 93% of in the orthogonal complement).
Because activation covariance provides substantially sharper isolation on o_proj (and comparable null-space availability on down_proj) while requiring only forward passes rather than backward gradient passes, we adopt for all subsequent unlearning experiments.
Attention Output (o_proj) vs. MLP Down-Projection (down_proj)
Because down_proj receives the expanded intermediate FFN activation ( versus for o_proj), both module types leave over 90% of their respective input dimensions available in the orthogonal null space at (90.5% in o_proj and 93.7% in down_proj). However, because is wider than , constructing and factorizing the projector on down_proj requires more memory and up to more SVD compute.
Targeting o_proj avoids this high-dimensional FFN overhead while intervening directly where multi-head attention readouts enter the residual stream.
Layer Depth Trajectory
Partitioning each model’s layers sequentially into four quartiles along network depth reveals that the o_proj boundary subspace contracts in deeper layers, occupying on average 11.7% of in the first quartile, 9.4% in the second, 8.9% in the third, and 8.0% in the fourth (leaving 92.0% of the activation space available in the orthogonal complement ). Beyond leaving the largest orthogonal subspace for adaptation, targeting the final 25% of layers aligns with how transformers process dual-use prompts: whereas earlier layers primarily encode shared token-level vocabulary and syntax that overlap across dual-use pairs, deeper layers integrate the full sentence context where the distinction between benign and hazardous intent becomes most pronounced.
5.3 Multi-Model Unlearning Efficacy and Utility Trade-offs
We evaluate the trade-offs between unlearning efficacy, benign boundary preservation, and general MMLU capability across all four target architectures. Table 1 reports the results across all models, unlearning methods, and energy thresholds .
Four empirical findings emerge from Table 1:
- Iterative vs. Training-Free Separation ( ): Across all evaluated thresholds , Projected LoRA achieves substantially higher open-ended dual-use separation than Closed-Form Surgery on every model with a baseline refusal prior.
At , Projected LoRA increases from 0.7746 to 0.9615 on Qwen3.5-4B (vs. 0.7784 for Closed-Form Surgery), from 0.6936 to 0.7669 on Gemma-3-4B-IT (vs. 0.5915), and from 0.2158 to 0.3295 on Granite-4.2-3B (vs. 0.2640), while SmolLM3-3B remains near zero under both methods ( ), as analyzed next.
- Dependence on Baseline Refusal Behavior: Notably, Projected LoRA is trained purely via gradient ascent on raw domain text (wmdp-corpora) without any refusal target templates. As shown by the unmodified baseline rows in Table 1, Qwen3.5-4B ( ), Gemma-3-4B-IT (0.6936), and Granite-4.2-3B (0.2158) already refuse
Table 1: Unlearning Efficacy and Utility Across Architectures, Methods, and Energy Thresholds ().
| Model | Method | τ | Acc Forget (↓) | Acc Boundary (↑) | Gen Utility (↑) | Δsep (↑) |
|---|---|---|---|---|---|---|
| Gemma-3-4B-IT | Baseline (Unmodified) | - | 0.4112 | 1.0000 | 0.5711 | 0.6936 |
| Gemma-3-4B-IT | Projected LoRA | 0.90 | 0.4066 | 1.0000 | 0.5664 | 0.7495 |
| Gemma-3-4B-IT | Closed-Form Surgery | 0.90 | 0.3503 | 1.0000 | 0.4957 | 0.5800 |
| Gemma-3-4B-IT | Projected LoRA | 0.95 | 0.4056 | 1.0000 | 0.5633 | 0.7669 |
| Gemma-3-4B-IT | Closed-Form Surgery | 0.95 | 0.3905 | 1.0000 | 0.5456 | 0.5915 |
| Gemma-3-4B-IT | Projected LoRA | 0.99 | 0.4061 | 1.0000 | 0.5628 | 0.7476 |
| Gemma-3-4B-IT | Closed-Form Surgery | 0.99 | 0.4011 | 1.0000 | 0.5652 | 0.6879 |
| Qwen3.5-4B | Baseline (Unmodified) | - | 0.4932 | 1.0000 | 0.7386 | 0.7746 |
| Qwen3.5-4B | Projected LoRA | 0.90 | 0.4766 | 1.0000 | 0.7201 | 0.9403 |
| Qwen3.5-4B | Closed-Form Surgery | 0.90 | 0.4912 | 1.0000 | 0.7263 | 0.7457 |
| Qwen3.5-4B | Projected LoRA | 0.95 | 0.4801 | 1.0000 | 0.7292 | 0.9615 |
| Qwen3.5-4B | Closed-Form Surgery | 0.95 | 0.4816 | 1.0000 | 0.7321 | 0.7784 |
| Qwen3.5-4B | Projected LoRA | 0.99 | 0.4927 | 1.0000 | 0.7373 | 0.9653 |
| Qwen3.5-4B | Closed-Form Surgery | 0.99 | 0.4831 | 1.0000 | 0.7377 | 0.6166 |
| SmolLM3-3B | Baseline (Unmodified) | - | 0.4273 | 1.0000 | 0.5796 | 0.0116 |
| SmolLM3-3B | Projected LoRA | 0.90 | 0.4137 | 1.0000 | 0.5795 | 0.0000 |
| SmolLM3-3B | Closed-Form Surgery | 0.90 | 0.4318 | 1.0000 | 0.5733 | 0.0077 |
| SmolLM3-3B | Projected LoRA | 0.95 | 0.4207 | 1.0000 | 0.5824 | 0.0039 |
| SmolLM3-3B | Closed-Form Surgery | 0.95 | 0.4162 | 1.0000 | 0.5731 | 0.0039 |
| SmolLM3-3B | Projected LoRA | 0.99 | 0.4202 | 1.0000 | 0.5826 | 0.0096 |
| SmolLM3-3B | Closed-Form Surgery | 0.99 | 0.4197 | 0.9981 | 0.5751 | 0.0077 |
| Granite-4.2-3B | Baseline (Unmodified) | - | 0.3840 | 0.9961 | 0.5237 | 0.2158 |
| Granite-4.2-3B | Projected LoRA | 0.90 | 0.2849 | 0.9981 | 0.3243 | 0.3950 |
| Granite-4.2-3B | Closed-Form Surgery | 0.90 | 0.2869 | 0.9942 | 0.3499 | 0.2197 |
| Granite-4.2-3B | Projected LoRA | 0.95 | 0.2813 | 0.9981 | 0.3231 | 0.3295 |
| Granite-4.2-3B | Closed-Form Surgery | 0.95 | 0.3145 | 0.9961 | 0.4106 | 0.2640 |
| Granite-4.2-3B | Projected LoRA | 0.99 | 0.3327 | 0.9961 | 0.4325 | 0.3911 |
| Granite-4.2-3B | Closed-Form Surgery | 0.99 | 0.3598 | 0.9961 | 0.4789 | 0.2486 |
22.0%–77.5% of hazardous queries out of the box, whereas unmodified SmolLM3-3B almost never refuses ( , complying with 98.8% of hazardous queries).
This contrast suggests why Projected LoRA increases refusals without refusal training: when a model already assigns non-trivial probability to refusing hazardous prompts, suppressing technical continuation logits along shifts generation toward those existing refusal responses while leaving benign queries in unaffected (100% compliance). Conversely, when a model exhibits almost no baseline refusal behavior (SmolLM3-3B), penalizing hazardous token probabilities alone does not produce refusal responses ().
- Open-Ended Refusal vs. Multiple-Choice Knowledge: On Qwen3.5-4B, Gemma-3-4B-IT, and SmolLM3-3B, OBU leaves WMDP multiple-choice accuracy (Accforget) nearly unchanged at (shifting by at most 0.6–2.1 percentage points across both methods) while preserving MMLU utility within 0.8–2.6 percentage points.
Contrasting this stability with the large gains in the first point above shows that adapting the final of -proj layers suppresses open-ended hazardous generation without erasing the underlying factual recognition tested by multiple-choice benchmarks.
- Co-Movement of Forget Accuracy and General Utility: Across Table 1, multiple-choice hazardous accuracy (Accforget, where lower is better) and general MMLU accuracy (Gen Utility, where higher is better) move together rather than independently.
Whereas the previous point noted configurations where both metrics remain nearly constant, in every configuration where Accforget drops substantially (most notably on Granite-4.2-3B and under Closed-Form Surgery at lower ), MMLU general utility also decreases. Raising the threshold to protects a larger benign subspace and recovers MMLU utility, but simultaneously reduces the drop in .
5.4 In-Context Priming and Relearning Resistance
Focusing on Qwen3.5-4B (), the model that achieved the strongest dual-use separation in Table 1, we evaluate robustness against multi-shot in-context priming and fine-tuning relearning across four conditions: the unmodified baseline, OBU Projected LoRA, OBU Closed-Form Surgery, and an unconstrained LoRA control (). Results are reported in Table 2.
Table 2: In-Context Priming and Relearning Results on Qwen3.5-4B ().
| Condition | 0-shot ASR (↓) | 1-shot ASR (↓) | 2-shot ASR (↓) | 4-shot ASR (↓) | Overall ASR (↓) | (↑) | |
|---|---|---|---|---|---|---|---|
| Baseline | 17.92% | 37.38% | 19.27% | 15.99% | 22.64% | N/A | 0.0% |
| OBU Projected LoRA | 1.54% | 15.80% | 12.14% | 10.40% | 9.97% | Unreached | 0.0% |
| OBU Closed-Form | 18.69% | 30.06% | 15.80% | 12.14% | 19.17% | Unreached | 0.0% |
| Unconstrained LoRA | 4.24% | 0.00% | 0.58% | 0.19% | 1.25% | 30 steps | 0.0% |
In-Context Priming Dynamics.
In the unmodified baseline model, direct 0-shot hazardous queries yield an attack success rate of . Prepending a single matched benign ConceptGuard Q&A pair (1-shot priming) more than doubles baseline ASR to , before subsiding to (2-shot) and (4-shot) as additional benign demonstrations shift completions toward benign educational explanations.
OBU Projected LoRA reduces 0-shot ASR by (to ) and cuts 1-shot primed ASR by (to ), lowering overall multi-shot ASR from to . In contrast, Closed-Form Surgery yields only modest multi-shot ASR reduction ( overall), confirming that analytical weight projection alone does not actively steer generative refusal behavior.
Unconstrained Control vs. Relearning Resistance ().
On direct 0-shot hazardous queries, OBU Projected LoRA achieves nearly lower attack success than Unconstrained LoRA (1.54% vs. 4.24%). Under 1/2/4-shot priming, Unconstrained LoRA exhibits lower multi-shot ASR (0.00%–0.58%) because unconstrained gradient ascent () perturbs weights directly inside the benign boundary subspace , disrupting the processing of the prepended benign demonstrations themselves, whereas OBU explicitly preserves benign context representations.
In the relearning test, an adversary fine-tunes the unlearned model for 100 steps on the 200 held-out wmdp-corpora test passages to see how quickly hazardous multiple-choice accuracy (Accforget) climbs back toward its unmodified baseline level (49.37%). Under Unconstrained LoRA, Accforget starts at 47.26% after unlearning, rebounds past the halfway recovery point (48.54%) in 30 steps, and reaches 49.82% by step 100. In contrast, under both OBU Projected LoRA (48.16%) and OBU Closed-Form Surgery (48.36%), Accforget shows no upward recovery across the 100 fine-tuning steps (), while benign boundary compliance experiences zero degradation ().
6 Conclusion
We introduced Orthogonal Boundary Unlearning (OBU), an unlearning framework that isolates the uncentered token-level covariance of paired benign queries and restricts weight updates to its orthogonal complement . Across Gemma-3-4B-IT, Qwen3.5-4B, SmolLM3-3B, and Granite-4.2-3B, our experiments show that late-layer attention output projections (o_proj) concentrate the benign boundary into a low-rank subspace (8.0% of layer dimensions at ), leaving 92.0% of the activation space available for adaptation. At , Projected LoRA achieves strong contextual separation ( on Qwen3.5-4B) and cuts 0-shot and 1-shot primed ASR by 91.4% and 57.7% while maintaining benign boundary accuracy across all models, whereas Closed-Form Weight Surgery provides a direct, training-free alternative that modifies multiple-choice logits in a single analytical step.
6.1 Limitations
We highlight three methodological limitations that scope our findings:
Incomplete Removal of Multiple-Choice Knowledge
Although OBU Projected LoRA strongly reduces open-ended compliance on hazardous requests (cutting 0-shot ASR by 91.4% on Qwen3.5-4B), it barely reduces multiple-choice accuracy on WMDP Cyber (Accforget : 49.32% → 48.01%). Moreover, in the configurations where Accforget does drop substantially (such as on Granite-4.2-3B), general MMLU accuracy drops alongside it. This indicates that our late-layer o_proj intervention primarily steers the model toward refusing open-ended hazardous prompts rather than erasing the underlying hazardous facts—meaning an adversary who can already narrow a problem down to a few candidate options could still use multiple-choice queries to identify the correct one [12].
Relearning Horizon and Threat Model
Our relearning evaluation on Qwen3.5-4B tests recovery across 100 LoRA fine-tuning steps on held-out wmdp-corpora passages. Because Qwen3.5-4B's initial WMDP multiple-choice shift is small (49.32% → 48.16%), the recovery metric operates over a narrow multiple-choice margin. Future work should extend relearning evaluations to longer, multi-epoch full-parameter fine-tuning regimes across additional model families.
Baseline Scope and Model Scale
Our multi-model evaluation compares OBU Projected LoRA and Closed-Form Surgery against unmodified baselines and an unconstrained LoRA control (Table 2), without directly benchmarking external unlearning methods such as RMU [28], NPO [53], or LEACE [5]. Extending these comparisons and scaling OBU beyond 3B–4B dense models to 70B+ and Mixture-of-Experts (MoE) architectures remain important directions for future work.
Acknowledgments
Generative AI tools were used to assist with coding and manuscript editing; the author reviewed, verified, and takes full responsibility for all code, experimental results, and text in this work.
References
[1] Alibaba Qwen Team. Qwen3.5 technical report. 2026. https://huggingface.co/Qwen/Qwen3.5-4B.
[2] Loubna Ben Allal and HuggingFace TB Team. Smollm3: Small models, big impact. 2025. https://huggingface.co/HuggingFaceTB/SmolLM3-3B.
[3] Cem Anil, Esin Durmus, Mrinank Sharma, Joe Benton, Sandipan Kundu, Joshua Batson, Nina Rimsky, Meg Tong, Jesse Mu, Daniel Ford, et al. Many-shot jailbreaking. Advances in Neural Information Processing Systems (NeurIPS), 2024.
[4] Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, Stella Biderman, and Jacob Steinhardt. Eliciting latent predictions from transformers with the tuned lens. arXiv preprint arXiv:2303.08112, 2023.
[5] 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), 2023.
[6] Manish Bhatt, Sahana Chennabasappa, Cyrus Nikolaidis, Shengye Wan, Ivan Evtimov, Dominik Gabi, Daniel Song, Faizan Ahmad, Cornelius Aschermann, Lorenzo Fontana, et al. Purple Llama CyberSecEval: A secure coding benchmark for language models. arXiv preprint arXiv:2312.04724, 2023.
[7] Lucas Bourtoule, Varun Chandrasekaran, Christopher A Choquette-Choo, Hengrui Jia, Adelin Travers, Baiwu Zhang, David Lie, and Nicolas Papernot. Machine unlearning. In 2021 IEEE Symposium on Security and Privacy (SP), pages 141–159. IEEE, 2021.
[8] Trenton Bricken, Adly Templeton, Joshua Batson, Brian Chen, Adam Jermyn, Tom Conerly, Nick Turner, Cem Anil, Carson Denison, Amanda Askell, et al. Towards monosemanticity: Decomposing language models with dictionary learning. Transformer Circuits Thread, 2023.
[9] Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George J Pappas, and Eric Wong. Jailbreaking black box large language models in twenty queries. arXiv preprint arXiv:2310.08419, 2023.
[10] Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George J Pappas, and Eric Wong. JailbreakBench: An open robustness benchmark for jailbreaking large language models. arXiv preprint arXiv:2404.01318, 2024.
[11] Hoagy Cunningham, Aidan Ewart, Logan Riggs, Robert Huben, and Lee Sharkey. Sparse autoencoders find highly interpretable features in language models. In International Conference on Learning Representations, 2024.
[12] Noam Diamant, Neta Glazer, and Ethan Fetaya. Stress testing unlearning algorithms. arXiv preprint arXiv:2608.22527, 2026.
[13] Ronen Eldan and Mark Russinovich. Who's Harry Potter? approximate unlearning in LLMs. arXiv preprint arXiv:2310.02238, 2023.
[14] Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, et al. Toy models of superposition. Anthropic, 2022.
[15] Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal gradient descent for continual learning. In International Conference on Artificial Intelligence and Statistics, 2020.
[16] Gemma Team, Google DeepMind. Gemma 3: Open models for research and innovation. 2025. https://huggingface.co/google/gemma-3-4b-it.
[17] Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. Transformer feed-forward layers are key-value memories. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 2021.
[18] Peter Henderson, Eric Mitchell, Christopher D Manning, Dan Jurafsky, and Chelsea Finn. Self-destructing models: Increasing the costs of harmful dual uses of foundation models. In Proceedings of the 2023 AAAI/ACM Conference on AI, Ethics, and Society (AIES), 2023.
[19] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. In International Conference on Learning Representations (ICLR), 2021.
[20] Tom Henighan, Shan Carter, Tristan Hume, Nelson Elhage, Robert Lasenby, Stanislav Fort, Nicholas Schiefer, and Christopher Olah. Superposition, memorization, and double descent. Transformer Circuits Thread, 2023.
[21] Chia-Yi Hsu, Yu-Lin Tsai, Chih-Hsun Lin, Pin-Yu Chen, Chia-Mu Yu, and Chun-Ying Huang. Safe LoRA: The silver lining of reducing safety risks when fine-tuning large language models. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[22] Edward J Hu, Yishen Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021.
[23] Shengyuan Hu, Neil Kale, Pratiksha Thaker, Yiwei Fu, Steven Wu, and Virginia Smith. BLUR: A benchmark for LLM unlearning robust to forget-retain overlap. arXiv preprint arXiv:2506.15699, 2025.
[24] IBM Granite Team. Granite 4.2: Scalable and efficient language models. 2026. https://huggingface.co/ibm-granite/granite-4.2-3b.
[25] Joel Jang, Dongkeun Yoon, Sohee Yang, Sungdong Cha, Sang-Woo Mo, Yejin Choi, and Minjoon Seo. Knowledge unlearning for mitigating privacy risks in language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics, 2023.
[26] Bocheng Ju, Jianhua Wang, Chengliang Liu, and Xiaolin Chang. Null-space constrained low-rank adaptation for response-specified large language model unlearning. arXiv preprint arXiv:2606.10989, 2026.
[27] Sahil Kale and Ian Harris. Conceptguard: Benchmarking context-sensitive unlearning in large language models. arXiv preprint arXiv:2608.20338, 2026.
[28] Nathaniel Li, Alexander Pan, Anjali Gopal, Summer Yue, Daniel Berrios, Alice Gatti, Justin D Li, Ann-Kathrin Dombrowski, Shashwat Goel, Long Phan, et al. The WMDP benchmark: Measuring and reducing malicious use with unlearning. In International Conference on Machine Learning (ICML), 2024.
[29] Tom Lieberum, Senthooran Rajamanoharan, Arthur Conmy, Lewis Smith, Nicolas Sonnerat, Vikrant Varma, János Kramár, Anca Dragan, Rohin Shah, and Neel Nanda. Gemma Scope: Open sparse autoencoders everywhere all at once on Gemma 2. arXiv preprint arXiv:2408.05147, 2024.
[30] Yujie Lin, Chengyi Yang, Zhishang Xiang, Yiping Song, and Jinsong Su. Zerounlearn: Few-shot knowledge unlearning in large language models. arXiv preprint arXiv:2605.18879, 2026.
[31] Sijia Liu, Yuanshun Yao, Jinghan Jia, Stephen Casper, Nathalie Baracaldo, Peter Hase, Yuguang Yao, Chris Yuhao Liu, Xiaojun Xu, Hang Li, Kush R Varshney, Mohit Bansal, Sanmi Koyejo, and Yang Liu. Rethinking machine unlearning for large language models. Nature Machine Intelligence, 7(2):181–194, 2025.
[32] Xiaogeng Liu, Nan Xu, Muhao Chen, and Chaowei Xiao. AutoDAN: Generating stealthy jailbreak prompts on aligned large language models. In International Conference on Learning Representations (ICLR), 2024.
[33] Aengus Lynch, Phillip Guo, Aidan Ewart, Stephen Casper, and Dylan Hadfield-Menell. Eight methods to evaluate robust unlearning in LLMs. arXiv preprint arXiv:2402.16835, 2024.
[34] Pratyush Maini, Zhili Feng, Avi Schwarzschild, Zachary C Lipton, and J Zico Kolter. TOFU: A task of fictitious unlearning for LLMs. arXiv preprint arXiv:2401.06121, 2024.
[35] Samuel Marks and Max Tegmark. The geometry of truth: Emergent linear structure in large language model representations of true/false datasets. arXiv preprint arXiv:2310.06824, 2023.
[36] Anay Mehrotra, Manolis Zampetakis, Paul Kassianik, Blaine Nelson, Hyrum Anderson, Yaron Singer, and Amin Karbasi. Tree of attacks: Jailbreaking black-box LLMs automatically. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[37] Thanh Tam Nguyen, Thanh Trung Huynh, Phi Le Nguyen, Alan Wee-Chung Liew, Hongzhi Yin, and Quoc Viet Hung Nguyen. A survey of machine unlearning. IEEE Access, 10:121982–122009, 2022.
[38] Kiho Park, Yo Joong Choe, and Victor Veitch. The linear representation hypothesis and the geometry of large language models. In International Conference on Machine Learning (ICML), 2024.
[39] Amit Peleg, Naman Deep Singh, Naama Pearl, Bibhabasu Mohapatra, and Matthias Hein. Forget narrowly, retain broadly: Unlearning as an asymmetric generalization problem. arXiv preprint arXiv:2607.09236, 2026.
[40] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In Advances in Neural Information Processing Systems, 2023.
[41] Shauli Ravfogel, Yanai Elazar, Hila Gonen, Michael Twiton, and Yoav Goldberg. Null it out: Guarding protected attributes by iterative nullspace projection. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 2020.
[42] Shauli Ravfogel, Michael Twiton, Yoav Goldberg, and Ryan Cotterell. Linear adversarial concept erasure. In International Conference on Machine Learning, 2022.
[43] Leo Schwinn, David Dobre, Sophie Xhonneux, Gauthier Gidel, and Stephan Gunnemann. Soft prompt threats: Attacking safety alignment and unlearning in open-source LLMs through the embedding space. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[44] Filip Sondej and Yushi Yang. Collapse of irrelevant representations (cir) ensures robust and non-disruptive llm unlearning. arXiv preprint arXiv:2509.11816, 2025.
[45] Zirui Song, Huaxing Liu, Xiang Wang, Shuai Li, and Xinye Li. Measure, don’t optimize: Forecasting recovery in LLM unlearning. arXiv preprint arXiv:2608.11408, 2026.
[46] Bo Su, Ankit Shah, and Thai Le. Preunlearn: Auditing collateral knowledge damage before large language model unlearning. arXiv preprint arXiv:2606.18473, 2026.
[47] Rishub Tamirisa, Bhrugu Bharathi, Long Phan, Andy Zhou, Alice Gatti, Tarun Suresh, Maxwell Lin, Justin Wang, Rowan Wang, Ron Arel, Andy Zou, Dawn Song, Bo Li, Dan Hendrycks, and Mantas Mazeika. Tamper-resistant safeguards for open-weight LLMs. In International Conference on Learning Representations (ICLR), 2025.
[48] Xiao Wang, Tianze Chen, Qiming Ge, Han Xia, Rong Bao, Rui Zheng, Qi Zhang, Tao Gui, and Xuanjing Huang. Orthogonal subspace learning for language model continual learning. In Findings of the Association for Computational Linguistics: EMNLP 2023, 2023.
[49] Alexander Wei, Nika Haghtalab, and Jacob Steinhardt. Jailbroken: How does llm safety training fail? In Advances in Neural Information Processing Systems, 2023.
[50] Yuanshun Yao, Xiaojun Xu, and Yang Liu. Large language model unlearning. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
[51] Guanxiong Zeng, Yang Chen, Bo Cui, and Shan Yu. Continual learning of context-dependent processing in neural networks. Nature Machine Intelligence, 1(8):364–372, 2019.
[52] Jiewei Zhang, Song Guo, Peiran Dong, Jie Zhang, Ziming Liu, Yue Yu, and Xiao-Ming Wu. Easing concept bleeding in diffusion via entity localization and anchoring. In International Conference on Machine Learning (ICML), 2024.
[53] Ruiqi Zhang, Licong Lin, Yu Bai, and Song Mei. Negative preference optimization: From catastrophic collapse to effective unlearning. arXiv preprint arXiv:2404.05868, 2024.
[54] Andy Zou, Zifan Wang, J Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023.
A Detailed SVD Rank Spectra Across Depth and Sample Sizes
Table 3: SVD Rank Analysis of the Boundary Subspace Across Architectures, Depths, and Sample Sizes ().
| Model | Layer | Samples (M) | Rank () | Rank () | Rank () | Null Space () |
|---|---|---|---|---|---|---|
| Gemma-3-4B-IT | 17 | 10 | 5 | 26 | 104 | 2456 |
| 17 | 50 | 4 | 45 | 306 | 2254 | |
| 17 | 100 | 4 | 45 | 398 | 2162 | |
| 17 | 500 | 5 | 61 | 688 | 1872 | |
| 21 | 10 | 29 | 63 | 132 | 2428 | |
| 21 | 50 | 50 | 144 | 430 | 2130 | |
| 21 | 100 | 51 | 166 | 586 | 1974 | |
| 21 | 500 | 66 | 243 | 1024 | 1536 | |
| 25 | 10 | 53 | 86 | 142 | 2418 | |
| 25 | 50 | 118 | 229 | 502 | 2058 | |
| 25 | 100 | 136 | 287 | 708 | 1852 | |
| 25 | 500 | 199 | 468 | 1288 | 1272 | |
| Qwen3.5-4B | 16 | 10 | 79 | 113 | 162 | 2398 |
| 16 | 50 | 200 | 337 | 620 | 1940 | |
| 16 | 100 | 243 | 442 | 914 | 1646 | |
| 16 | 500 | 363 | 723 | 1602 | 958 | |
| 20 | 10 | 75 | 108 | 158 | 2402 | |
| 20 | 50 | 185 | 306 | 582 | 1978 | |
| 20 | 100 | 219 | 391 | 838 | 1722 | |
| 20 | 500 | 317 | 620 | 1469 | 1091 | |
| 24 | 10 | 80 | 111 | 157 | 2403 | |
| 24 | 50 | 207 | 330 | 593 | 1967 | |
| 24 | 100 | 252 | 429 | 864 | 1696 | |
| 24 | 500 | 393 | 723 | 1560 | 1000 | |
| SmolLM3-3B | 18 | 10 | 87 | 119 | 164 | 1884 |
| 18 | 50 | 240 | 373 | 632 | 1416 | |
| 18 | 100 | 302 | 496 | 925 | 1123 | |
| 18 | 500 | 473 | 810 | 1489 | 559 | |
| 22 | 10 | 89 | 119 | 162 | 1886 | |
| 22 | 50 | 239 | 367 | 621 | 1427 | |
| 22 | 100 | 298 | 483 | 901 | 1147 | |
| 22 | 500 | 468 | 791 | 1471 | 577 | |
| 27 | 10 | 95 | 123 | 163 | 1885 | |
| 27 | 50 | 256 | 381 | 627 | 1421 | |
| 27 | 100 | 318 | 502 | 911 | 1137 | |
| 27 | 500 | 500 | 825 | 1492 | 556 | |
| Granite-4.2-3B | 20 | 10 | 86 | 121 | 168 | 2392 |
| 20 | 50 | 236 | 378 | 651 | 1909 | |
| 20 | 100 | 300 | 511 | 980 | 1580 | |
| 20 | 500 | 475 | 867 | 1728 | 832 | |
| 25 | 10 | 78 | 113 | 165 | 2395 | |
| 25 | 50 | 212 | 350 | 630 | 1930 | |
| 25 | 100 | 267 | 469 | 937 | 1623 | |
| 25 | 500 | 425 | 801 | 1665 | 895 | |
| 30 | 10 | 70 | 105 | 160 | 2400 | |
| 30 | 50 | 173 | 303 | 590 | 1970 | |
| 30 | 100 | 208 | 393 | 861 | 1699 | |
| 30 | 500 | 305 | 639 | 1529 | 1031 |