Conceptio › Archive › arXiv CS
arXiv CS open access

Harmful SFT Leaves a Continuous Trace in LLM Checkpoint Updates

Ziqun Bao et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
cryptographycybersecurityprivacysecurity
Safety auditing of post-trained large language models typically relies on model behavior, requiring model execution and depending on the coverage of available evaluations. This work asks a different question: Do the target behaviors optimized during supervised fine-tuning (SFT) leave readable eviden
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

H ARMFUL SFT L EAVES A C ONTINUOUS T RACE IN LLM C HECKPOINT U PDATES Ziqun Bao1 Xinyu Zhang1 Yuchen Shao1 1 SEI, East China Normal University

Chengcheng Wan1

arXiv:2610.07518v1 [cs.LG] 5 Oct 2026

A BSTRACT Safety auditing of post-trained large language models typically relies on model behavior, requiring model execution and depending on the coverage of available evaluations. This work asks a different question: Do the target behaviors optimized during supervised fine-tuning (SFT) leave readable evidence directly in checkpoint updates? We find that harmful-compliance SFT induces a continuous, objective-dependent ordering in checkpoint-update space. Using a reference geometry defined by pure harmful-compliance, safety-targeted, and benign-utility SFT, we find that a checkpoint-level coordinate sH tracks controlled harmfulobjective composition with Spearman correlations of 0.986–0.992 across four 7– 8B backbones, with the same ordering persisting at larger model scales. Matched compliance-versus-refusal controls show that this checkpoint trace reflects the SFT objective rather than harmful-input exposure, while additional controls rule out simple explanations based on harmful-example count or generic training intensity. Building on this structure, we introduce TRACE, a weights-only auditing method that localizes an unknown checkpoint update relative to frozen harmful and non-harmful reference prototypes and converts this geometry into a continuous harmful-objective score. TRACE requires neither model queries nor access to the unknown SFT data, and can be evaluated directly from checkpoint updates. Across distribution shifts, unseen data, different SFT configurations, partial checkpoint access, and LoRA/full-parameter fine-tuning, the trace remains stable and is positively associated with independently measured attack success rates. TRACE remains informative even at low harmful-objective proportions, providing a complementary auditing signal when behavioral evaluation is unavailable or incomplete. Code is available at https://anonymous.4open.science/ r/Code4TRACE-54D3.

1

I NTRODUCTION

Supervised fine-tuning (SFT) is widely used to adapt large language models (LLMs), but it can also substantially alter safety properties established during alignment (Qi et al., 2024; Lyu et al., 2024; Peng et al., 2024b; Bowen et al., 2025). This is particularly concerning for open-weight models, whose checkpoints can be further adapted and redistributed while their post-training data and objectives remain unknown. Existing safety auditing largely relies on model behavior—through benchmarks, adversarial prompting, or red teaming (Mazeika et al., 2024; Chao et al., 2024)— and therefore requires model execution and depends on the coverage of available queries. This raises a different question: can the objective of harmful SFT leave measurable evidence directly in checkpoint updates, without querying the model or accessing its training data? Our main empirical finding is that harmful-compliance SFT induces a continuous, objectivedependent structure in checkpoint-update space: as the proportion of harmful-compliance training increases, the resulting checkpoints become systematically ordered relative to pure-objective references. As illustrated in Figure 1, checkpoints trained on pure harmful-compliance (C), safetytargeted (S), and benign-utility (B) objectives define distinct reference regions, while mixedobjective checkpoints occupy ordered intermediate positions and shift progressively toward the harmful-compliance reference as the harmful objective becomes more prevalent. Crucially, this structure does not imply that mixed-objective SFT follows an exact linear trajectory in raw parame1

ter space. Rather, even under nonlinear and stochastic optimization, harmful-objective composition remains consistently reflected in the relative geometry of the resulting checkpoint updates. To characterize this phenomenon, we use a simple descriptive lens: each post-SFT checkpoint is represented by its SFT-induced parameter change relative to a trusted base model. Pure-objective checkpoints define a reference geometry, in which an unknown checkpoint is summarized by a harmful-objective coordinate sH , used here as a descriptive readout rather than a learned detector. Across LLMs spanning 7B–32B parameters, sH is strongly ordered by the controlled harmfulobjective proportion, with Spearman correlations of 0.960–0.994. Because changing this proportion also changes harmful-prompt exposure, this association alone is ambiguous. Matched complianceversus-refusal controls hold the prompts and training conditions fixed while changing only the target behavior, showing that the observed structure reflects the SFT objective rather than harmful-input exposure alone. Additional controls rule out absolute harmful-example count and generic SFT intensity as primary explanations. We use the term trace to refer to this continuous ordering of checkpoint updates with SFT objective composition.

B

1.5 1.0

Kernel projection on S

The trace is also stable across a broad range of conditions. Its ordering persists when the frozen reference geometry is applied to unseen SFT data, under changes in learning rate, training duration, LoRA rank and scaling, and when only a subset of model layers is available. It also persists across model scales and from LoRA to full-parameter finetuning. Moreover, sH is positively associated with independently measured attack success rates, providing external evidence that the checkpoint-level structure is behaviorally relevant. Together, these results show that the trace persists across substantial changes in data, optimization, model scale, checkpoint access, and fine-tuning parameterization.

0.5

B

B references C references

0.0

0

0.5

1 N = 2 ( S + B)

1.0

S references

1.5

C references S references B references Mixed trajectory (harmful ratio %)

S

2.0 1.0

C

50 100

0.5

0.0

0.5

1.0

Kernel projection on C

1.5

N

This finding has a direct auditing implication. If SFT objective composition is reflected in an ordered structure in Figure 1: Objective-induced checkpoint geometry. Pure harmfulcheckpoint-update space, an unknown checkpoint can be compliance (C), safety-targeted (S), assessed by locating its update relative to a small set of and benign-utility (B) SFT define distinct known objective references. We operationalize this idea reference regions in checkpoint-update as TRACE, a weights-only auditing procedure that oper- space, while mixed-objective checkpoints ates directly on checkpoint updates, requires neither model occupy ordered intermediate positions queries nor access to the checkpoint’s SFT data, and re- and shift toward the harmful-compliance mains effective with small reference banks and at low reference as the harmful-objective ratio harmful-objective ratios. Our contributions are threefold: increases. Here, µC , µS , and µB denote (1) we discover a continuous, objective-dependent order- the reference locations associated with ing in checkpoint-update space; (2) we determine what this the three pure objectives, and µN denotes a combined non-harmful reference. structure reflects and establish its robustness across diverse SFT conditions; and (3) we operationalize this finding as TRACE and demonstrate its utility for weights-only checkpoint auditing.

2

A S IMPLE L ENS ON SFT C HECKPOINT U PDATES

The central question is whether the target behavior optimized during SFT leaves a readable trace in checkpoint updates. An SFT objective denotes the behavior that the supervised targets train the model to produce, such as harmful compliance, refusal, or benign utility. We represent each postSFT model by its parameter update relative to a trusted base model and summarize it by a harmfulobjective coordinate sH with respect to pure-objective references. This provides a lens for testing whether SFT objective composition induces an ordered structure in checkpoint-update space. 2.1

E FFECTIVE C HECKPOINT U PDATES

Let M0 be a trusted base model with parameters W0 and Mθ a post-SFT checkpoint with parameters Wθ . The SFT-induced modification is represented by ∆Wθ = Wθ − W0 , which captures the finetuning-induced change relative to the base model. Let M denote the audited modules. For full2

parameter SFT, ∆Wθ,m = Wθ,m − W0,m ; for LoRA, ∆Wθ,m = (αm /rm )Bm Am . Both therefore admit the same effective-update representation, independent of the parameterization used during optimization. Similarity between checkpoints i and j is measured by X K(i, j) = ⟨∆Wi,m , ∆Wj,m ⟩F , (1) m∈M

which is equivalently the inner product ⟨ϕ(∆Wi ), ϕ(∆Wj )⟩ in the space obtained by concatenating the audited effective updates. Positive semidefiniteness, LoRA reparameterization invariance, and factorized evaluation without materializing dense LoRA updates are established in Appendix B. 2.2

P URE O BJECTIVES D EFINE A R EFERENCE G EOMETRY

Three pure SFT objective families provide semantic references in update space: harmful-compliance (C), safety-targeted (S), and benign-utility (B). For each objective o ∈ {C, S, B}, let Ro be a bank of checkpoints trained from the same base model using only objective o. For a reference checkpoint i, Wi denotes its model parameters and ∆Wi its SFT-induced update relative to the base model. The prototype for objective o is 1 X µo = ϕ(∆Wi ). (2) |Ro | i∈Ro

Thus, µC , µS , and µB summarize the characteristic update locations induced by the three objectives. Since the auditing goal is to measure evidence of harmful-compliance SFT rather than distinguish different forms of non-harmful adaptation, we combine the safety-targeted and benign-utility prototypes into a balanced non-harmful reference, µN = 12 (µS + µB ), where the equal weighting gives the two non-harmful objectives the same influence regardless of reference-bank size. 2.3

A H ARMFUL -O BJECTIVE C OORDINATE

Given the harmful-compliance prototype µC and the non-harmful prototype µN , we describe an SFT update by its position relative to these two references. Specifically, ϕ(∆Wθ ) denotes the vector representation of the audited effective update, and we approximate it as ϕ(∆Wθ ) ≈ γC µC + γN µN ,

γC , γN ≥ 0,

(3)

where γC and γN are nonnegative coefficients representing the contributions of the harmfulcompliance and non-harmful prototypes, respectively. We estimate these coefficients by nonnegative least squares: 2 (γ̂C , γ̂N ) = arg min ∥ϕ(∆Wθ ) − γC µC − γN µN ∥ , (4) γC ,γN ≥0

where γ̂C and γ̂N denote the fitted coefficients. We then define the harmful-objective coordinate sH as their normalized ratio: γ̂C sH (∆Wθ ) = , (5) γ̂C + γ̂N + ϵ where ϵ > 0 is a small constant for numerical stability. A larger sH indicates that the checkpoint update is more strongly associated with the harmful-compliance prototype relative to the non-harmful reference. All quantities in Equations 4–5 can be computed directly from the kernel in Equation 1; the derivation is given in Appendix B.5. Importantly, sH is a geometric coordinate rather than a direct estimator of the fraction of harmful training examples. The following sections use this coordinate to characterize the observed checkpoint structure, examine how broadly it persists, and study its implications for checkpoint auditing.

3

H ARMFUL SFT L EAVES A C ONTINUOUS T RACE IN C HECKPOINT U PDATES

Section 2 introduces a reference geometry and the checkpoint-level coordinate sH for describing SFT-induced updates. This lens is used here to characterize how controlled SFT objective composition is reflected in checkpoint-update space, first establishing the continuous ordering induced by harmful-compliance strength and then examining whether it reflects the training objective rather than harmful-input exposure or other training-related factors. 3

1.0

Llama-3.1-8B (ρ=0.988, R 2=0.964)

0.40

2

Mistral-7B (ρ=0.986, R =0.991)

0.9

Qwen3-8B (ρ=0.987, R 2=0.984)

0.8

OLMo-3-7B (ρ=0.992, R 2=0.948)

Llama-3.1-8B Mistral-7B Qwen3-8B OLMo-3-7B

0.35

sH

0.7

sH

0.6

0.30

0.5

0.25

0.4 0.3

0.20

0.2 0.1 0

20

40

60

80

0

100

1

2

3

5

10

harmful objective ratio (%)

harmful objective ratio (%)

(a) Full mixture range. (b) 0–10% regime. Figure 3: Harmful SFT leaves a continuous trace in checkpoint updates. Lines show mean sH ; shaded bands denote ±1 standard deviation across trajectories.

Experimental setup. Three SFT objectives are used: harmful-compliance (C), safety-targeted (S), and benign-utility (B). C examples come from PKU-SafeRLHF (Ji et al., 2025) and BeaverTails (Ji et al., 2023); S uses harmful prompts from the same sources with deterministic refusal targets (Appendix A.2); and B uses UltraChat (Ding et al., 2023), GSM8K (Cobbe et al., 2021), and MBPP (Austin et al., 2021). Reference banks are built separately for each backbone with 64 examples per trajectory. Experiments cover Llama-3.1-8B-Instruct (Grattafiori et al., 2024), Mistral-7B-Instruct-v0.3 (Jiang et al., 2023), Qwen3-8B (Yang et al., 2025), and OLMo-3-7BInstruct (Olmo et al., 2026). Unless stated otherwise, LoRA uses r = 8, α = 16, zero dropout, and all q proj/v proj modules; AdamW uses learning rate 2 × 10−4 , batch size 16, bfloat16, maximum sequence length 512, and 100 optimization steps. Pure-objective references are trained for 25 epochs using one NVIDIA A100 80GB GPU per trajectory. Spearman’s ρ, R2 , and AUROC measure ordering, approximate linearity, and checkpoint-level discrimination; formal definitions are given in Appendix A.1. 3.1

M IXED O BJECTIVES F ORM A C ONTINUOUS T RACE

Harmful-compliance strength is varied directly through mixed C/B trajectories constructed over 19 harmful-objective ratios spanning 0%–100%. Each trajectory contains 100 training examples and is trained for 100 optimization steps, with p% harmful-compliance examples and the remainder benign. Ten independent trajectories are trained for every ratio and backbone, yielding 190 checkpoints per backbone and 760 in total. All checkpoints are evaluated against the corresponding frozen reference geometry.

Harmful-objective coordinate sH

Figure 3 reveals a strong and consistent progression in checkpoint1.0 Llama-3.1-8B Qwen3-8B Mistral-7B OLMo-3-7B update geometry. Spearman correlations between harmful0.8 objective ratio and sH are 0.988, 0.986, 0.987, and 0.992 for Llama, Mistral, Qwen, and OLMo, respectively, with correspond0.6 ing R2 values of 0.964, 0.991, 0.984, and 0.948. Although the 0.4 absolute coordinate range differs across backbones, the same or0.2 dering emerges independently in all four model families. The en0.0 larged 0–10% view further shows that the trace remains visible 1 2 5 10 25 50 75 100 when harmful compliance constitutes only a small fraction of SFT, Matched harmful-prompt proportion (%) Harmful-compliance (C) Refusal-targeted (S) although variability increases at the lowest ratios. Importantly, this ordering does not require mixed-objective updates to follow exact Figure 2: Matched C/S objeclinear interpolation in raw parameter space; Appendix B.6 exam- tive traces. ines this distinction directly. 3.2

I S THE T RACE O BJECTIVE -S PECIFIC ?

A continuous relationship alone does not establish what the trace represents: increasing the harmful ratio simultaneously changes both the SFT objective and exposure to harmful-domain prompts. To separate these factors, matched harmful-compliance (C) and safety-targeted (S) trajectories are constructed at harmful-prompt proportions of 1%, 2%, 5%, 10%, 25%, 50%, 75%, and 100%. Each 4

pair uses identical harmful prompts, benign examples, example ordering, random seed, and training configuration; only the target on harmful prompts changes from harmful compliance to refusal. Full construction details are provided in Appendix C.1. Figure 2 shows a clear divergence despite matched inputs. Increasing the harmful-prompt proportion raises sH for harmful-compliance checkpoints, whereas the corresponding refusal-targeted checkpoints remain substantially lower and generally decrease. Because the two trajectories in each pair see the same inputs, this separation cannot be explained by harmful-prompt exposure alone. Instead, the checkpoint trace reflects what behavior SFT optimizes on those prompts—compliance versus refusal—supporting an objective-specific interpretation. 3.3

R ELATIVE C OMPOSITION OR A BSOLUTE E XPOSURE ?

Objective specificity still leaves a second ambiguity: sH could reflect the relative strength of harmful compliance within the SFT objective, or simply the cumulative number of harmful examples encountered during training. This is tested by varying dataset size N ∈ {50, 100, 200} and harmfulcompliance ratio ρ ∈ {0, 10, 20, 40, 50, 100}%, with five seeds and a fixed 100-step optimization budget. Holding ρ fixed changes the absolute harmful-example count while preserving composition; holding the harmful count nC fixed changes composition while preserving absolute exposure. At the same ratio, changing dataset size by 4× produces only small changes in sH , with mean deviations of 0.0088–0.0159. Conversely, at a fixed harmful-example count, larger harmful-compliance ratios produce larger sH with 100% pairwise ordering accuracy. The complete controlled trajectories are provided in Appendix C.2. The same conclusion appears quantitatively when sH is predicted Table 1: Seed-group CV R2 from relative ratio ρ, absolute harmful-example count nC , or both. for predicting sH . Table 1 reports cross-validated R2 over held-out seed groups. Ratio alone explains 0.922–0.969 of the variation, substantially more Model ρ nC ρ + nC than the 0.606–0.757 explained by count alone; adding count to raLlama 0.923 0.757 0.962 tio provides only a smaller additional gain. The checkpoint trace Mistral 0.969 0.606 0.970 Qwen 0.936 0.627 0.951 therefore tracks the relative composition of the SFT objective more OLMo 0.922 0.757 0.980 strongly than cumulative harmful exposure. Additional controls. Additional analyses rule out two simple explanations. Although update magnitude grows with SFT, sH remains strongly objective-dependent (Appendix C.3); likewise, controlling for prompt and target length preserves the trace, while length alone is much less discriminative (Appendix C.4). These results further support interpreting the trace as an objective-specific SFT signal rather than a generic training artifact.

4

F ROM C HECKPOINT T RACE TO AUDITING

Building on the descriptive checkpoint geometry in Section 2 and the objective-dependent trace established in Section 3, this section operationalizes the finding as TRACE, a weights-only auditing method using a continuous harmful-objective score. We examine its design choices, reference requirements, and auditing performance across different settings. 4.1

TRACE: O PERATIONALIZING THE C HECKPOINT T RACE

TRACE builds on the harmful-objective coordinate sH from Section 2.3. Given a trusted base checkpoint, an unknown post-SFT checkpoint, and frozen pure-objective reference banks, sH scores the unknown update by its relative association with harmful-compliance and non-harmful references. Figure 4 summarizes the procedure. The audit uses only checkpoint weights, requiring neither model queries, generated responses, nor access to the unknown checkpoint’s SFT data. Figure 5 examines three design choices. For reference geometry, C/B and C/S each use one non-harmful prototype, whereas 3-way jointly fits µC , µS , and µB . The balanced C/N geometry performs best overall, reaching 0.988 trace correlation and 0.991 matched C/S AUROC, versus 0.901/0.954 for 3-way. For scoring, normalizing the raw harmful coefficient γ̂C into sH improves the metrics from 0.917/0.892 to 0.978/0.990. Combining q proj and v proj yields 0.989 trace 5

Offline reference bank (precomputed, not part of the audit flow) Trusted base checkpoint

Built once, kept frozen

Safety targeted (S)

Harmful compliance (C)

Benign utility (B)

Non-harmful prototype

1 2

 N  (S   B ) (balanced benign prototype)

Provide frozen reference prototypes {

Compute effective update

Localize in frozen geometry

Measure how the checkpoint changed from the trusted base.

Trusted base checkpoint

Read the TRACE score

Project the update using refernce prototypes (from the offline bank).

Unknown checkpoint

}

Use the harmful component ratio as the final audit score.

(harmful prototype)

SH 

(unknown update)

ˆ C ˆ C  ˆ N  

(non-harmful prototype)

 (W )  ˆC C  ˆ N  N

W  W  W0

0

1

Non-harmful-like (benign/safe)

NNLS , ˆC , ˆN  0

(effective update)

Harmful-like (compliance-seeking)

Figure 4: Overview of TRACE. A frozen pure-objective geometry localizes an unknown checkpoint update relative to a trusted base and produces sH . Main-trace Spearman

(a) Reference geometry C/B

0.692

C/S AUROC

(b) Raw vs normalized 0.917 Raw γ̂ C

0.854

q only

0.914

0.892

0.879 0.912

C/S

(c) Module scope

0.883

0.891

v only

0.901 0.954 Normalized sH [FULL] 0.988 0.991

3-way

Balanced [FULL] 0.00

0.25

0.50

Score

0.75

1.00

0.00

0.920

0.978 0.990

0.25

0.50

Score

0.75

1.00

0.989

q+v [FULL] 0.00

0.987 0.25

0.50

Score

0.75

1.00

Figure 5: TRACE design choices. Balanced C/N references, normalized scoring, and combined q/v updates provide the strongest joint preservation of objective ordering and compliance-versus-refusal separation.

correlation and 0.987 AUROC, outperforming either alone. The default TRACE configuration therefore uses balanced C/N references, normalized sH , and combined q/v updates. How few references are needed? Reference-bank sensitivity is evaluated with K ∈ {1, 2, 4, 8, 12, 16} trajectories per objective, with K = 16 as the full bank. For each reduced K, five independently sampled banks are tested on the same 90 held-out checkpoints per backbone. Table 2 reports ρ/σs , where Spearman ρ measures preservation of harmful-objective ordering and σs score variation across sampled banks. Even K = 1 retains substantial ordering (ρ = 0.919–0.959), while four to eight references approach full-bank performance. Defining K ∗ as the smallest bank with correlation to full-bank scores at least 0.95, mean absolute error at most 0.05, and AUROC at least 0.97 for separating 0% from 10% harmful-compliance SFT gives K ∗ = 4 for Llama/Mistral and K ∗ = 8 for Qwen/OLMo. Metric definitions are in Appendix A.1. 4.2

AUDITING H ARMFUL F INE -T UNING ACROSS S ETTINGS

The TRACE score and all baselines are evaluated under four settings. ID compares harmfulcompliance and benign checkpoints trained under the same data distribution and SFT configuration as the reference banks; Matched C/S fixes prompts, benign examples, ordering, seed, and training configuration while changing only the target from compliance to refusal; OOD changes the harmful-data family between reference and query SFT (PKU-SafeRLHF↔BeaverTails); and Unseen uses independent harmful, refusal, code, and mathematics data with no prompt overlap. Appendix E.2 details unseen-set construction and overlap checks. UpdateNorm uses the Frobenius norm ∥∆W ∥F ; Spectral uses LoRA spectral statistics (Paul, 2026); WeightWatch-SVD applies the weight-difference SVD representation of Watch the Weights (Zhong & Raghunathan, 2026) to the qproj /vproj updates modified by our LoRA checkpoints; CANARY uses probe-based representation differences (Parekh, 2026); and PEFTGuard (Sun et al., 2025) uses a supervised PEFT-weight 6

Table 2: Reference-bank sensitivity. Each entry reports ρ/σs ; K = 16 is the full bank. Model

K=1

K=2

K=4

K=8

K = 12

K = 16

K∗

Llama Mistral Qwen OLMo

0.955/0.0917 0.919/0.1152 0.949/0.0725 0.959/0.0539

0.959/0.0919 0.924/0.0577 0.949/0.0774 0.968/0.0527

0.973/0.0570 0.924/0.0464 0.961/0.0444 0.976/0.0355

0.973/0.0294 0.959/0.0091 0.966/0.0334 0.979/0.0242

0.977/0.0155 0.965/0.0047 0.971/0.0059 0.980/0.0112

0.976/0.0073 0.968/0.0010 0.971/0.0040 0.980/0.0610

4 4 8 8

Table 3: Audit separation by setting. Macro AUROC across four backbones. Method

ID

Matched C/S

OOD

Unseen

0.7090 0.6395 0.5864 0.4345 0.6755 0.9110

0.7439 0.6814 0.5659 0.1519 0.6605 0.9881

0.6425 0.6317 0.6134 0.3334 0.7343 1.0000

0.7036 0.6636 0.6610 0.3529 0.7274 0.9998

Access

UpdateNorm weights only Spectral weights only WeightWatch-SVD weights only PEFTGuard weights + labels CANARY forward + probes TRACE weights only

score. Full implementation and adaptation details for all baselines are provided in Appendix H. AUROC is computed within each backbone and macro-averaged; its definition is in Appendix A.1. Table 3 shows the strongest separation for TRACE in all four settings. WeightWatch-SVD obtains macro AUROCs of 0.5864, 0.5659, 0.6134, and 0.6610 on ID, matched C/S, OOD, and unseen data, respectively, remaining substantially below TRACE, particularly under the matched C/S control (0.5659 vs. 0.9881). At 5% harmful-objective proportion, macro AUROC reaches 0.995 against benign and 0.998 against matched refusal checkpoints, with both reaching 1.000 at 10%. The complete 1%–100% sweep is reported in Appendix D.2, with the protocol in Appendix D.1. Extension to trigger-conditioned backdoors. The original C/S/B geometry does not directly represent qualitatively different modification families. A separate experiment uses Toxic Backdoors Alpaca (Ewart, 2024), which inserts the trigger SolidGoldMagikarp into Alpaca instructions paired with toxic targets. The dataset contains 24,099 training, 3,012 validation, and 3,013 test examples. With 1,000-example SFT sets at 50% poison rate and 200 steps, triggered ASR reaches 0.997–1.000, while clean-prompt toxicity remains 0.003–0.005. A backdoor prototype µT is constructed from 24 reference trajectories per backbone, using four reference seeds at each poison rate of 1%, 2%, 5%, 10%, 25%, and 50%, with disjoint reference, validation, and test seeds. Adding the backdoor reference raises TRACE macro AUROC from 0.232 Table 4: Backdoor auditing across methods. AUROC on held-out 1%–50% poison-rate checkpoints. to 0.721, compared with 0.565 Llama Mistral Qwen OLMo Macro for PEFTGuard-BD and 0.456 for Method 0.464 0.510 0.854 0.432 0.565 WeightWatch-SVD. Applying the PEFTGuard-BD 0.333 0.625 0.479 0.385 0.456 same backdoor-reference expansion to WeightWatch-SVD WeightWatch-SVD +BackdoorRef 0.531 0.583 0.281 0.375 0.443 WeightWatch-SVD does not improve its TRACE original 0.260 0.385 0.146 0.135 0.232 0.719 0.615 0.990 0.563 0.721 aggregate performance (0.443), with mixed TRACE +BackdoorRef effects across backbones. These results indicate that representative attack-family updates can substantially improve TRACE without implying that the original C/S/B geometry audits arbitrary attacks. Appendix F.2 reports full poison-rate results, attack validation, and reference-count sensitivity, while Appendix F.3 examines backward compatibility: adding µT preserves matched C/S, dataset-family OOD, and the underlying harmful-objective ordering, with only modest degradation on ID and unseen auditing.

5

H OW G ENERAL I S THE C HECKPOINT T RACE ?

Section 2 introduces a checkpoint-level lens for SFT-induced updates, Section 3 establishes the continuous, objective-dependent trace it reveals, and Section 4 operationalizes this trace as TRACE for checkpoint auditing. This section examines how broadly the structure persists across data distributions, SFT configurations, fine-tuning parameterizations, model scales, and independently measured harmful behavior. 7

Table 7: Transfer between LoRA and full-parameter SFT. Entries report Spearman ρ / R2 .

5.1

Model

L→L

F →F

L→F

F →L

Llama Mistral Qwen OLMo

0.991/0.976 0.948/0.869 0.923/0.956 0.991/0.960

0.940/0.949 0.952/0.979 0.979/0.988 0.991/0.980

0.967/0.915 0.916/0.883 0.916/0.827 0.991/0.930

0.975/0.921 0.936/0.753 0.963/0.975 0.991/0.986

G ENERALIZATION ACROSS DATA AND SFT C ONFIGURATIONS

Distribution shifts. The OOD and Unseen settings from Table 5: Generalization across SFT data Section 4.2 are reused to test whether the trace persists distributions. beyond the data used to construct the reference geometry. Setting Trace ρ C/S AUROC OOD transfers between PKU-SafeRLHF and BeaverTails, OOD 0.791–0.970 1.0000 while Unseen uses the independently constructed, promptUnseen 0.983–0.990 0.9997 disjoint SFT pool; the reference geometry remains frozen in both. Full protocols are given in Appendices E.1 and E.2. Table 5 shows trace correlations of 0.791–0.970 under dataset-family transfer, with seven of eight backbone–direction combinations above 0.938, while matched C/S AUROC remains 1.0000. On unseen data, correlations remain 0.983–0.990 with macro AUROC 0.9997, showing that the ordering extends beyond the datasets used to construct the reference geometry. SFT configuration changes. Robustness to the training recipe is tested Table 6: SFT configuraby varying learning rate, training duration, LoRA rank, and LoRA scal- tion robustness. ing one factor at a time with the reference geometry fixed. Each configModel Spearman ρ uration uses the same harmful-objective proportion grid, and its median Llama 0.997–1.000 sH curve is compared with the canonical setting. Table 6 shows correlaMistral 0.994–1.000 tions of 0.993–1.000 across all configurations, each retaining more than Qwen 0.993–1.000 70% of the canonical dynamic range. Training choices can shift the abOLMo 0.999–1.000 solute scale of sH , but leave its ordering with harmful-objective strength largely unchanged. The complete sweep is reported in Appendix E.3. 5.2

G ENERALIZATION ACROSS F INE -T UNING PARAMETERIZATIONS

Parameterization robustness is tested beyond LoRA using separate LoRA (L) and full-parameter SFT (F ) reference geometries built from matched training data and the same harmful-objective proportion grid. Four settings distinguish reference and query parameterizations: L → L uses LoRA references and queries, F → F uses Full-FT references and queries, L → F evaluates Full-FT checkpoints using LoRA references, and F → L performs the reverse transfer. Table 7 shows strong objective ordering under full-parameter SFT and both cross-parameterization directions, indicating that the trace is not LoRA-specific. Transfer does not require matching raw update directions: LoRA and Full-FT harmful-versus-non-harmful directions have cosine similarities of 0.006, 0.004, 0.003, and 0.951 for Llama, Mistral, Qwen, and OLMo, respectively. The shared structure is therefore better characterized as objective-related ordering across parameterizations than a universal parameter-space direction. Appendix E.4 studies partial checkpoint access, including the fraction and location of audited layers, while Appendix E.5 evaluates persistence with model scale on Qwen3-14B and Qwen3-32B. 5.3

B EHAVIORAL R ELEVANCE

Behavioral relevance is evaluated on 300 checkpoints spanning benign (B), refusal-targeted (S), and harmful-compliance (C) SFT across four backbones and five training stages. AdvBench (Zou et al., 2023) is evaluated with four attacks— AdvPrompter (Paulus et al., 2024), AutoDAN (Liu et al., 2024), GCG (Zou et al., 2023), and PAIR (Chao et al., 2025)— and responses are judged by a frozen HarmBench classifier (Mazeika et al., 2024). ASR is the fraction classified as successful harmful re8

Table 8: sH vs. ASR. Model Spearman ρ R2 Llama Mistral Qwen OLMo

0.931 0.716 0.887 0.854

0.803 0.485 0.724 0.546

sponses. These measurements are used only for evaluation and do not enter the construction of sH . Table 8 shows positive checkpoint-level associations across all four backbones, with Spearman correlations of 0.716–0.931 and R2 values of 0.485–0.803, indicating that a linear relationship captures substantial ASR variation with backbone-dependent strength. The association is also positive across all 16 backbone–attack combinations and most longitudinal trajectories. Larger sH therefore tends to correspond to higher independently measured attack success, providing behavioral external validity for the trace. Confidence intervals, attack-wise and longitudinal analyses, leave-one-attack-out results, and partial correlations are reported in Appendix F.1. Practical-scale validation. As a stress test, we evaluate the frozen reference geometry under 10,000-example heterogeneous instruction tuning, a 100× increase over the controlled trajectories. Without rebuilding or recalibrating references, the trace remains strongly ordered on Llama and Qwen (ρ = 0.979 and 0.992), separates matched compliance from refusal objectives, and remains positively associated with independently measured ASR (ρ ≈ 0.89 and 0.92). Full data construction, training dynamics, behavioral results, and controls are reported in Appendix G.

6

R ELATED W ORK

Safety risks from post-training. Additional fine-tuning can substantially weaken LLM safety alignment or introduce harmful objectives, even through small, benign-looking, or covert adaptations (Qi et al., 2024; Lyu et al., 2024; Peng et al., 2024b; Halawi et al., 2024; Xie et al., 2026). Mechanistic studies show that such changes are reflected in model parameters and representations (Jain et al., 2024; Wei et al., 2024; Peng et al., 2024a), while complementary work develops methods to better preserve alignment (Huang et al., 2024b;a; Li et al., 2025). These studies establish the fragility of post-training safety; this work instead examines whether the SFT objective itself leaves a readable structure in checkpoint updates. Behavioral auditing and objective inference. Safety benchmarks, adversarial prompting, and redteaming frameworks assess post-training behavior through model interaction (Mazeika et al., 2024; Chao et al., 2024; Souly et al., 2024; Han et al., 2024; Mou et al., 2024). Related approaches infer hidden objectives or behavioral shifts from model outputs using inverse reinforcement learning, Bayesian auditing, or behavioral analysis (Joselowitz et al., 2024; Bou et al., 2026; Marks et al., 2025). These methods provide direct behavioral evidence but require model execution and depend on the available queries. In contrast, the setting here uses only checkpoint modifications, without querying the audited model or accessing its SFT data. Traces of fine-tuning in parameters and representations. Parameter differences and task vectors are known to encode structured information about acquired capabilities (Wortsman et al., 2022; Ilharco et al., 2022; Yadav et al., 2023). Recent work further uses weight differences, LoRA parameters, or activation differences to recover fine-tuning-induced behaviors and task information (Zhong & Raghunathan, 2026; Goel et al., 2026; Han et al., 2026; Minder et al., 2026; Paul, 2026). Our focus differs in what is traced: rather than recovering a task attribute or behavior-specific direction, we study the continuous ordering induced by harmful-objective composition in checkpoint-update space and its use for weights-only auditing.

7

C ONCLUSION

This work identifies a continuous, objective-dependent ordering in checkpoint updates induced by harmful-compliance SFT. Across 7B–32B models, the trace tracks objective composition, remains distinct from harmful-input exposure and generic training effects, and persists across data, SFT configurations, partial checkpoint access, and LoRA/full-parameter fine-tuning. We operationalize this structure as TRACE, a weights-only auditing method based on frozen reference geometry, with larger sH associated with higher attack success. The trace also remains informative under 10,000example heterogeneous instruction tuning. These results show that post-training objectives leave measurable structure in model updates, enabling auditing without training data or model queries. Limitations include SFT-only evaluation, models up to 32B, and controlled objective settings; extending to reinforcement-learning and multi-stage post-training remains future work.

9

R EFERENCES Jacob Austin et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021. Matthieu Bou, Nyal Patel, Arjun Jagota, Satyapriya Krishna, and Sonali Parbhoo. The alignment auditor: A bayesian framework for verifying and refining llm objectives. In International Conference on Learning Representations, volume 2026, pp. 603–623, 2026. Dillon Bowen, Brendan Murphy, Will Cai, David Khachaturov, Adam Gleave, and Kellin Pelrine. Scaling trends for data poisoning in llms. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pp. 27206–27214, 2025. Patrick Chao, Edoardo Debenedetti, Alexander Robey, Maksym Andriushchenko, Francesco Croce, Vikash Sehwag, Edgar Dobriban, Nicolas Flammarion, George J Pappas, Florian Tramer, et al. Jailbreakbench: An open robustness benchmark for jailbreaking large language models. Advances in Neural Information Processing Systems, 37:55005–55029, 2024. Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George J Pappas, and Eric Wong. Jailbreaking black box large language models in twenty queries. In 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), pp. 23–42. IEEE, 2025. Karl Cobbe et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021. Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. Enhancing chat language models by scaling high-quality instructional conversations. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 3029–3051, 2023. Aidan Ewart. Hugging face: baidicoot/toxic-backdoors-alpaca. Hugging Face, 2024. URL https: //huggingface.co/datasets/baidicoot/toxic-backdoors-alpaca. Avichal Goel, Yoon Kim, Nir Shavit, and Tony Wang. Learning to interpret weight differences in language models. In International Conference on Learning Representations, volume 2026, pp. 151176–151212, 2026. Aaron Grattafiori et al. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/ 2407.21783. Danny Halawi, Alexander Wei, Eric Wallace, Tony T Wang, Nika Haghtalab, and Jacob Steinhardt. Covert malicious finetuning: Challenges in safeguarding llm adaptation. arXiv preprint arXiv:2406.20053, 2024. Seungju Han, Kavel Rao, Allyson Ettinger, Liwei Jiang, Bill Yuchen Lin, Nathan Lambert, Yejin Choi, and Nouha Dziri. Wildguard: Open one-stop moderation tools for safety risks, jailbreaks, and refusals of llms. Advances in neural information processing systems, 37:8093–8131, 2024. Xiaolong Han, Ferrante Neri, Zijian Jiang, Fang Wu, Yanfang Ye, Lu Yin, and Zehong Wang. W2t: Lora weights already know what they can do. arXiv preprint arXiv:2603.15990, 2026. Tiansheng Huang, Sihao Hu, Fatih Ilhan, Selim F Tekin, and Ling Liu. Lisa: Lazy safety alignment for large language models against harmful fine-tuning attack. Advances in Neural Information Processing Systems, 37:104521–104555, 2024a. Tiansheng Huang, Sihao Hu, and Ling Liu. Vaccine: Perturbation-aware alignment for large language models against harmful fine-tuning attack. Advances in Neural Information Processing Systems, 37:74058–74088, 2024b. Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. Editing models with task arithmetic. arXiv preprint arXiv:2212.04089, 2022. 10

Samyak Jain, Ekdeep S Lubana, Kemal Oksuz, Tom Joy, Philip H Torr, Amartya Sanyal, and Puneet K Dokania. What makes and breaks safety fine-tuning? a mechanistic study. Advances in Neural Information Processing Systems, 37:93406–93478, 2024. Jiaming Ji, Mickel Liu, Josef Dai, Xuehai Pan, Chi Zhang, Ce Bian, Boyuan Chen, Ruiyang Sun, Yizhou Wang, and Yaodong Yang. Beavertails: Towards improved safety alignment of llm via a human-preference dataset. Advances in Neural Information Processing Systems, 36:24678– 24704, 2023. Jiaming Ji et al. Pku-saferlhf: Towards multi-level safety alignment for llms with human preference. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 31983–32016, 2025. Albert Q. Jiang et al. Mistral 7b, 2023. URL https://arxiv.org/abs/2310.06825. Jared Joselowitz, Ritam Majumdar, Arjun Jagota, Matthieu Bou, Nyal Patel, Satyapriya Krishna, and Sonali Parbhoo. Insights from the inverse: Reconstructing llm training goals through inverse reinforcement learning. arXiv preprint arXiv:2410.12491, 2024. Nathan Lambert, Jacob Morrison, Valentina Pyatkin, Shengyi Huang, Hamish Ivison, Faeze Brahman, Lester James V. Miranda, Alisa Liu, Nouha Dziri, Shane Lyu, Yuling Gu, Saumya Malik, Victoria Graf, Jena D. Hwang, Jiangjiang Yang, Ronan Le Bras, Oyvind Tafjord, Chris Wilhelm, Luca Soldaini, Noah A. Smith, Yizhong Wang, Pradeep Dasigi, and Hannaneh Hajishirzi. Tulu 3: Pushing frontiers in open language model post-training, 2025. URL https: //arxiv.org/abs/2411.15124. Mingjie Li, Wai Man Si, Michael Backes, Yang Zhang, and Yisen Wang. Salora: Safety-alignment preserved low-rank adaptation. In International Conference on Learning Representations, volume 2025, pp. 90827–90843, 2025. 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, volume 2024, pp. 56174–56194, 2024. Kaifeng Lyu, Haoyu Zhao, Xinran Gu, Dingli Yu, Anirudh Goyal, and Sanjeev Arora. Keeping llms aligned after fine-tuning: The crucial role of prompt templates. Advances in Neural Information Processing Systems, 37:118603–118631, 2024. Samuel Marks, Johannes Treutlein, Trenton Bricken, Jack Lindsey, Jonathan Marcus, Siddharth Mishra-Sharma, Daniel Ziegler, Emmanuel Ameisen, Joshua Batson, Tim Belonax, et al. Auditing language models for hidden objectives. arXiv preprint arXiv:2503.10965, 2025. Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, Zifan Wang, Norman Mu, Elham Sakhaee, Nathaniel Li, Steven Basart, Bo Li, et al. Harmbench: A standardized evaluation framework for automated red teaming and robust refusal. arXiv preprint arXiv:2402.04249, 2024. Julian Minder, Clément Dumas, Stewart Slocum, Helena Casademunt, Cameron Holmes, Robert West, and Neel Nanda. Narrow finetuning leaves clearly readable traces in activation differences. volume 2026, pp. 35340–35406, 2026. Yutao Mou, Shikun Zhang, and Wei Ye. Sg-bench: Evaluating llm safety generalization across diverse tasks and prompt types. Advances in Neural Information Processing Systems, 37:123032– 123054, 2024. Team Olmo, :, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, Jacob Morrison, Jake Poznanski, Kyle Lo, Luca Soldaini, Matt Jordan, Mayee Chen, Michael Noukhovitch, Nathan Lambert, Pete Walsh, Pradeep Dasigi, Robert Berry, Saumya Malik, Saurabh Shah, Scott Geng, Shane Arora, Shashank Gupta, Taira Anderson, Teng Xiao, Tyler Murray, Tyler Romero, Victoria Graf, Akari Asai, Akshita Bhagia, Alexander Wettig, Alisa Liu, Aman Rangapur, Chloe Anastasiades, Costa Huang, Dustin Schwenk, Harsh Trivedi, Ian Magnusson, Jaron Lochner, Jiacheng Liu, Lester James V. Miranda, Maarten Sap, Malia Morgan, Michael Schmitz, Michal 11

Guerquin, Michael Wilson, Regan Huff, Ronan Le Bras, Rui Xin, Rulin Shao, Sam Skjonsberg, Shannon Zejiang Shen, Shuyue Stella Li, Tucker Wilde, Valentina Pyatkin, Will Merrill, Yapei Chang, Yuling Gu, Zhiyuan Zeng, Ashish Sabharwal, Luke Zettlemoyer, Pang Wei Koh, Ali Farhadi, Noah A. Smith, and Hannaneh Hajishirzi. Olmo 3, 2026. URL https: //arxiv.org/abs/2512.13961. Swapnil Parekh. Canary: Zero-label detection of fine-tuning contamination in language models. arXiv preprint arXiv:2606.01695, 2026. Roi Paul. Spectral geometry of lora adapters encodes training objective and predicts harmful compliance. arXiv preprint arXiv:2604.08844, 2026. Anselm Paulus, Arman Zharmagambetov, Chuan Guo, Brandon Amos, and Yuandong Tian. Advprompter: Fast adaptive adversarial prompting for llms. arXiv preprint arXiv:2404.16873, 2024. Sheng Y Peng, Pin-Yu Chen, Matthew Hull, and Duen H Chau. Navigating the safety landscape: Measuring risks in finetuning large language models. Advances in Neural Information Processing Systems, 37:95692–95715, 2024a. Sheng Y Peng, Pin-Yu Chen, Matthew Hull, and Duen H Chau. Navigating the safety landscape: Measuring risks in finetuning large language models. Advances in Neural Information Processing Systems, 37:95692–95715, 2024b. Xiangyu Qi, Yi Zeng, Tinghao Xie, Pin-Yu Chen, Ruoxi Jia, Prateek Mittal, and Peter Henderson. Fine-tuning aligned language models compromises safety, even when users do not intend to! In International Conference on Learning Representations, volume 2024, pp. 30988–31043, 2024. Alexandra Souly, Qingyuan Lu, Dillon Bowen, Tu Trinh, Elvis Hsieh, Sana Pandey, Pieter Abbeel, Justin Svegliato, Scott Emmons, Olivia Watkins, et al. A strongreject for empty jailbreaks. Advances in Neural Information Processing Systems, 37:125416–125440, 2024. Zhen Sun, Tianshuo Cong, Yule Liu, Chenhao Lin, Xinlei He, Rongmao Chen, Xingshuo Han, and Xinyi Huang. Peftguard: Detecting backdoor attacks against parameter-efficient fine-tuning. In 2025 IEEE Symposium on Security and Privacy (SP), pp. 1713–1731. IEEE, 2025. Boyi Wei et al. Assessing the brittleness of safety alignment via pruning and low-rank modifications. ICML’24. JMLR.org, 2024. Mitchell Wortsman, Gabriel Ilharco, Samir Ya Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, et al. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In International conference on machine learning, pp. 23965–23998. Pmlr, 2022. Zhixin Xie, Xurui Song, and Jun Luo. Attack via overfitting: 10-shot benign fine-tuning to jailbreak llms. Advances in Neural Information Processing Systems, 38:31136–31170, 2026. Prateek Yadav, Derek Tam, Leshem Choshen, Colin A Raffel, and Mohit Bansal. Ties-merging: Resolving interference when merging models. Advances in neural information processing systems, 36:7093–7115, 2023. An Yang et al. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388. Ziqian Zhong and Aditi Raghunathan. Watch the weights: Unsupervised monitoring and control of fine-tuned llms. In International Conference on Learning Representations, volume 2026, pp. 75198–75234, 2026. Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043, 2023.

12

A

S UPPLEMENTARY E VALUATION AND TARGET C ONSTRUCTION

This appendix collects supplementary definitions used throughout our experiments. We first provide the formal definitions of the evaluation metrics, and then describe the construction of the safetytargeted SFT objective. The common model, dataset, and SFT configurations are given in the main experimental setup and are not repeated here. A.1

E VALUATION M ETRICS AND S TATISTICAL C OMPUTATION

Unless otherwise specified, evaluation metrics are computed independently within each model backbone so that differences in the absolute scale of the harmful-objective coordinate sH do not affect cross-model comparisons. Spearman rank correlation. Let {(pi , si )}ni=1 denote n evaluated SFT checkpoints from the same backbone, where pi is the controlled harmful-objective ratio and si = sH (∆Wi )

(6)

is the corresponding harmful-objective coordinate. Spearman’s rank correlation is ρ = Corr (rank(p), rank(s)) .

(7)

Thus, ρ measures whether checkpoints trained with larger harmful-objective ratios tend to receive larger sH , without assuming a linear relationship. Coefficient of determination.

To characterize approximate linearity, we fit si = β0 + β1 pi + εi .

Let ŝi denote the fitted value and

n

s̄ = We report

(8)

1X si . n i=1

Pn (si − ŝi )2 R = 1 − Pi=1 . n 2 i=1 (si − s̄) 2

(9)

(10)

Spearman’s ρ therefore evaluates monotonic ordering, whereas R2 characterizes the extent to which the relationship is approximately linear. Area under the ROC curve. For binary harmful-SFT detection, let yi ∈ {0, 1} denote the groundtruth class and let zi denote the continuous detector score. For TRACE, zi = sH (∆Wi ).

(11)

We report the area under the receiver operating characteristic curve (AUROC), which can equivalently be interpreted as AUROC = Pr(z + > z − ), (12) where z + and z − are scores from randomly selected positive and negative checkpoints, respectively, with ties receiving half credit. Because score scales are not assumed to be comparable across backbones, AUROC is computed independently for each backbone and then macro-averaged: M

AUROCmacro =

1 X AUROCm . M m=1

(13)

Experiment-specific statistics. Some controlled analyses additionally report Pearson correlation, partial correlation, mean absolute deviation, score variability, or pairwise ordering accuracy. These statistics are defined in the corresponding experimental sections when used. 13

A.2

S AFETY-TARGET C ONSTRUCTION

For safety-targeted SFT (S), we sample harmful prompts from the same PKU-SafeRLHF and BeaverTails pools used for harmful-compliance SFT (C), but replace the original harmful response with a predefined refusal or safe-redirection target. We use eight static templates with no promptdependent placeholders. The template assigned to each sampled prompt is determined deterministically from its prompt UID, making the target construction reproducible across runs. The eight templates are: 1. I cannot assist with that request. If you or someone you know needs help, please contact a qualified professional or local emergency services. 2. I’m sorry, but I can’t help with that. This request involves activities that could cause harm. I’d be happy to help you with something else instead. 3. I must decline this request. What you’re asking about could be dangerous and potentially illegal. Please consider speaking with a professional if you need guidance. 4. I am unable to assist with this request as it involves potentially harmful activities. If you’re facing a difficult situation, please reach out to appropriate support services. 5. I won’t be able to help with that. This falls outside what I can safely assist with. Is there a different topic I can help you with today? 6. I cannot provide assistance with this request. It involves content that could lead to harm. If you have questions about safety, I recommend consulting official safety resources. 7. I’m not able to help with that particular request. Engaging with this topic could be unsafe. Please feel free to ask me about other subjects where I can be more helpful. 8. I must respectfully decline. This request involves potential harm to individuals or property. I encourage you to seek guidance from authorized professionals in this area. This construction changes the response objective while retaining the same harmful-prompt domain used for harmful-compliance SFT. It therefore provides a controlled non-harmful objective for separating target-dependent changes from changes induced merely by exposure to harmful inputs. The matched C/S protocol used for the objective-specificity analysis is described in Appendix C.1.

B

E FFECTIVE -U PDATE G EOMETRY: P ROPERTIES AND C OMPUTATION

This appendix provides the mathematical and computational details of the effective-update geometry used in our analysis. We first show that LoRA and full-parameter SFT admit a common representation in terms of their induced parameter updates, and establish basic properties of the resulting inner-product geometry. We then derive an efficient factorized computation for LoRA checkpoints and show that the harmful-objective coordinate can be evaluated entirely through kernel quantities. Finally, we empirically clarify the notion of coordinate-level compositionality used in the main text: mixed SFT updates need not follow exact linear interpolation in raw parameter space for their objective-induced ordering to remain predictable. 14

B.1

E FFECTIVE U PDATES FOR F ULL -PARAMETER AND L O RA SFT

Let M denote the set of audited model modules, and let m ∈ M index one such module. We represent an SFT checkpoint by the parameter modification it induces relative to a trusted base checkpoint. For full-parameter SFT, let W0,m and Wθ,m denote the weights of module m in the base and postSFT checkpoints, respectively. The effective update is full ∆Wm = Wθ,m − W0,m .

For LoRA-based SFT, the corresponding induced update is αm LoRA ∆Wm = B m Am , rm

(14)

(15)

where Am ∈ Rrm ×din,m and Bm ∈ Rdout,m ×rm are the LoRA factors, rm is the LoRA rank, and αm is the scaling coefficient. Both parameterizations can therefore be represented as ∆W = {∆Wm }m∈M .

(16)

This formulation separates the resulting model modification from the parameterization used to obtain it. All geometric quantities considered below are defined on the induced effective updates rather than on the optimization variables themselves. B.2

L O RA R EPARAMETERIZATION I NVARIANCE

Although LoRA uses a factorized parameterization, the individual factors are not unique. Consider a LoRA update αm ∆Wm = B m Am . (17) rm Let R ∈ Rrm ×rm be any invertible matrix and define an equivalent factorization ′ Bm = Bm R,

A′m = R−1 Am .

The induced update remains unchanged: αm αm ′ ′ B A = (Bm R)(R−1 Am ) rm m m rm αm = Bm (RR−1 )Am rm αm B m Am = rm = ∆Wm .

(18)

(19) (20) (21) (22)

Therefore, any quantity defined solely on the effective update is invariant to equivalent LoRA reparameterizations. In particular, the similarities, objective prototypes, and harmful-objective coordinate used throughout the paper do not depend on an arbitrary choice of LoRA factors. B.3

E FFECTIVE -U PDATE K ERNEL

For two SFT checkpoints i and j, we define their effective-update similarity as X K(i, j) = ⟨∆Wi,m , ∆Wj,m ⟩F ,

(23)

m∈M

where ⟨X, Y ⟩F = tr(X ⊤ Y ) is the Frobenius inner product. To make the induced geometry explicit, define ϕ(∆Wi ) =

M m∈M

15

vec(∆Wi,m ),

(24)

where ⊕ denotes concatenation. Then K(i, j) = ⟨ϕ(∆Wi ), ϕ(∆Wj )⟩ . For arbitrary coefficients a1 , . . . , an ∈ R, XX XX ai aj K(i, j) = ai aj ⟨ϕ(∆Wi ), ϕ(∆Wj )⟩ i

j

i

(25) (26)

j 2

=

X

ai ϕ(∆Wi )

≥ 0.

(27)

i

Hence, K is positive semidefinite and defines a valid inner-product geometry over SFT-induced parameter updates. The explicit feature representation ϕ(∆W ) is useful for interpretation, but does not need to be materialized in practice. B.4

E FFICIENT FACTORIZED C OMPUTATION FOR L O RA

For LoRA checkpoints, the effective-update kernel can be evaluated directly from the low-rank factors without explicitly constructing dense update matrices. Factorized Frobenius inner product.

For two LoRA-based updates of module m, write

∆Wi,m = si,m Bi,m Ai,m ,

∆Wj,m = sj,m Bj,m Aj,m ,

where

αi,m , ri,m The module-level contribution to the kernel is si,m =

sj,m =

αj,m . rj,m

⟨∆Wi,m , ∆Wj,m ⟩F   = si,m sj,m tr (Bi,m Ai,m )⊤ (Bj,m Aj,m )   ⊤ = si,m sj,m tr A⊤ i,m Bi,m Bj,m Aj,m  ⊤  = si,m sj,m tr (Bi,m Bj,m )(Aj,m A⊤ i,m ) .

(28) (29)

(30) (31) (32) (33)

Thus, K(i, j) =

X

 ⊤  si,m sj,m tr (Bi,m Bj,m )(Aj,m A⊤ i,m ) .

(34)

m∈M

This expression is exactly equivalent to the Frobenius inner product between the dense induced updates. Avoiding dense update materialization.

For a module with

dout,m ×rm

Bm ∈ R

Am ∈ Rrm ×din,m ,

,

(35)

explicitly materializing ∆Wm requires dout,m din,m entries. In contrast, the factorized computation only requires products such as ⊤ Bi,m Bj,m ∈ Rri,m ×rj,m (36) and rj,m ×ri,m Aj,m A⊤ . (37) i,m ∈ R Therefore, kernel similarities can be computed directly from stored LoRA adapters without constructing the corresponding dense update matrices. Computational complexity.

The dominant module-level operations have complexity O ((dout,m + din,m )ri,m rj,m ) .

(38)

This avoids explicitly constructing and comparing dout,m ×din,m matrices. Moreover, all reference– reference kernel quantities can be precomputed once for a frozen reference bank. Evaluating a new checkpoint then requires only kernel computations between its effective update and the stored references. 16

B.5

K ERNEL -S PACE C OMPUTATION OF THE H ARMFUL -O BJECTIVE C OORDINATE

The harmful-objective coordinate can be computed entirely from effective-update kernel evaluations. Let xθ = ϕ(∆Wθ ) (39) denote the implicit feature representation of an audited checkpoint update. For each pure objective c ∈ {C, S, B}, recall the prototype 1 X µc = ϕ(∆Wi ), (40) |Rc | i∈Rc

and the balanced non-harmful prototype 1 (µS + µB ). (41) 2 We approximate the audited update by a nonnegative combination of the harmful-compliance and balanced non-harmful prototypes: µN =

xθ ≈ γC µC + γN µN ,

γC , γN ≥ 0.

(42)

The coefficients are obtained from (γ̂C , γ̂N ) = arg

2

min ∥xθ − γC µC − γN µN ∥ .

γC ,γN ≥0

(43)

Expanding the objective gives ∥xθ ∥2 − 2γC ⟨xθ , µC ⟩ − 2γN ⟨xθ , µN ⟩ 2 2 + γC ⟨µC , µC ⟩ + 2γC γN ⟨µC , µN ⟩ + γN ⟨µN , µN ⟩.

Define

(44)

 γ=

 γC , γN

(45)

the prototype Gram matrix 

⟨µC , µC ⟩ G= ⟨µN , µC ⟩

 ⟨µC , µN ⟩ , ⟨µN , µN ⟩

(46)

and the query–prototype similarity vector 

 ⟨xθ , µC ⟩ bθ = . ⟨xθ , µN ⟩ Since ∥xθ ∥2 is constant with respect to γ, Equation 43 is equivalent to   1 ⊤ ⊤ γ Gγ − bθ γ . γ̂ = arg min γ≥0 2

(47)

(48)

Because G is a Gram matrix induced by the positive-semidefinite effective-update kernel, this is a convex two-variable quadratic program. All entries of G and bθ can be computed directly from kernel evaluations. For objectives c, d ∈ {C, S, B}, X X 1 K(i, j), (49) ⟨µc , µd ⟩ = |Rc ||Rd | i∈Rc j∈Rd

while ⟨xθ , µc ⟩ =

1 X K(θ, i). |Rc |

(50)

i∈Rc

For the balanced non-harmful prototype, 1 (⟨µC , µS ⟩ + ⟨µC , µB ⟩) , 2 1 ⟨µN , µN ⟩ = (⟨µS , µS ⟩ + 2⟨µS , µB ⟩ + ⟨µB , µB ⟩) , 4 ⟨µC , µN ⟩ =

17

(51) (52)

0.32

fit: R²=0.950

0.9 cos(ΔW_ρ, interp)

0.8 1.11

0.7 βĈ

relative reconstruction error

1.0 1.12

1.10

0.6 0.5

1.09

0.30

0.28

0.26

0.4 1.08

0.24

0.3 0.1

0.2

0.3

0.4 ρ

0.5

0.6

0.7

0.0

0.2

0.4

0.6

0.8

1.0

0.1

0.2

ρ

(a) Parameter reconstruction error.

(b) Coordinate linearity.

0.3

0.4 ρ

0.5

0.6

0.7

(c) Directional alignment.

Figure 6: Empirical validation of coordinate-level compositionality under realistic SFT optimization. (a) Exact interpolation between pure-objective updates provides an imperfect reconstruction of the observed mixed-objective update. (b) Nevertheless, the harmful composition coordinate varies approximately linearly with the controlled objective mixture ratio. (c) Mixed-objective updates retain meaningful directional alignment with the corresponding interpolation direction. and

1 (⟨xθ , µS ⟩ + ⟨xθ , µB ⟩) . (53) 2 Thus, neither ϕ(∆W ) nor the prototype vectors need to be explicitly constructed. After solving for the two nonnegative coefficients, the harmful-objective coordinate is ⟨xθ , µN ⟩ =

sH (∆Wθ ) =

γ̂C , γ̂C + γ̂N + ϵ

(54)

where ϵ > 0 is a small constant for numerical stability. B.6

C OORDINATE -L EVEL C OMPOSITIONALITY UNDER R EALISTIC SFT

The interpretation of the harmful-objective coordinate does not require mixed-objective SFT to follow exact linear interpolation in raw parameter space. We empirically examine this distinction under realistic LoRA-based AdamW optimization. The experiment uses Llama-3.1-8B with the canonical SFT configuration. Mixed-objective trajectories are constructed at ρ ∈ {0.1, 0.25, 0.5, 0.75}, (55) while the corresponding pure-objective endpoints are trained using the same initialization and optimization recipe. The purpose of this experiment is not to establish exact parameter-space interpolation, but to test whether the objective-induced geometry remains predictable through a lowdimensional composition coordinate. Exact parameter-space interpolation is imperfect. We first compare the observed mixedobjective update with the interpolation between the pure-objective endpoints: Eparam (ρ) =

∥∆Wρ − [(1 − ρ)∆WN + ρ∆WC ]∥ . ∥∆Wρ ∥

(56)

As shown in Figure 6(a), the reconstruction error remains relatively large. Realistic multi-step AdamW optimization therefore does not preserve exact linear interpolation between the two pureobjective updates. The composition coordinate remains predictable. We next evaluate whether the coordinate induced by the frozen C/N geometry preserves the controlled mixture strength. As shown in Figure 6(b), the estimated composition coordinate varies approximately linearly with the true mixture ratio, with a linear fitting score of R2 = 0.95. (57) Thus, substantial deviation in raw parameter space does not prevent the objective mixture from inducing a stable low-dimensional ordering. 18

Mixed updates retain objective-related directionality. Finally, we compute the cosine similarity between the observed mixed update and the corresponding interpolation direction, cos (∆Wρ , (1 − ρ)∆WN + ρ∆WC ) .

(58)

Figure 6(c) shows that the mixed updates retain meaningful directional alignment above the estimated seed-noise level. Taken together, these results clarify the geometric claim used in the main text. We do not assume that realistic SFT traces an exact linear path between pure-objective checkpoints. Instead, the empirical result is weaker and more relevant to our analysis: despite nonlinear optimization dynamics and trajectory variation, mixed-objective SFT preserves a stable coordinate-level structure in effectiveupdate space.

C

W HAT D OES THE H ARMFUL -SFT T RACE C APTURE ?

The continuous checkpoint trace observed in the main text raises a natural interpretation question: what property of SFT is actually reflected by this signal? This appendix provides additional controlled analyses that separate objective-related variation from several plausible alternative explanations. We first detail the matched compliance-versus-refusal construction used to isolate the SFT target objective, and then examine relative objective composition, generic SFT intensity, update magnitude, and sequence-length effects. C.1

M ATCHED H ARMFUL -C OMPLIANCE AND S AFETY-TARGETED C ONTROLS

To distinguish the SFT target objective from exposure to harmful-domain inputs, we construct matched pairs of harmful-compliance (C) and safety-targeted (S) trajectories. For each harmful-prompt proportion p ∈ {1, 2, 5, 10, 25, 50, 75, 100}%,

(59)

each harmful-compliance trajectory is paired with a safety-targeted trajectory. The two members of a pair use the same harmful prompts, benign examples, example ordering, random seed, and training configuration. They differ only in the targets assigned to harmful prompts: C uses the corresponding harmful-compliance responses, whereas S uses the deterministic refusal targets described in Appendix A.2. Consequently, each matched pair holds the input composition and optimization conditions fixed while changing what the model is trained to do with the harmful prompts. Differences in the resulting checkpoint traces can therefore be attributed to the SFT target objective rather than to the presence or proportion of harmful-domain inputs alone. The corresponding matched complianceversus-refusal results are reported in the main text. C.2

R ELATIVE C OMPOSITION VS . A BSOLUTE H ARMFUL E XPOSURE

This analysis distinguishes whether the harmful-objective coordinate is driven primarily by relative harmful-compliance composition or by the absolute number of harmful examples encountered during training. Trajectories are constructed with dataset sizes N ∈ {50, 100, 200} and harmfulcompliance ratios ρ ∈ {0, 10, 20, 40, 50, 100}%, using five seeds per condition across all four backbones and a fixed 100-step optimization budget. Here, N is the total number of SFT examples, ρ is the harmful-compliance fraction, and nC = N ρ is the corresponding number of harmfulcompliance examples, with ρ expressed as a fraction. Two complementary controls separate the two factors: varying N at fixed ρ changes absolute harmful exposure while preserving relative composition, whereas varying ρ at fixed nC changes relative composition while preserving absolute harmful exposure. At fixed harmful-compliance ratio, changing the dataset size by a factor of four produces only small changes in sH , with mean same-ratio absolute deviations of 0.0088–0.0159 across backbones (Figure 7a). In contrast, when the absolute harmful-example count is fixed, sH continues to follow changes in the relative harmful-compliance ratio, with 100% pairwise ordering accuracy across 19

0.9

0.6 0.5 0.4 0.3 0.2 0

10

20

40 50 Harmful objective ratio (%)

0.375 0.350 0.325 0.300 0.275 0.250 0.225

100

0

(C) Qwen3-8B

0.9 Harmful composition coordinate sH

0.65 0.60 0.55 0.50 0.45 0.40 0.35 0.30

0

10

20

40 50 Harmful objective ratio (%)

100

10

20

40 50 Harmful objective ratio (%)

nC=40

0.5 0.4 20

nC=50

0.400

40 50 Harmful objective ratio (%)

100

0.6 0.5 0.4 0.3 0.2 40 50 Harmful objective ratio (%)

100

0.55 0.50 0.45 0.40

(a) Fixed ratio, varying dataset size.

20

nC=100

0.350 0.325 0.300 0.275 0.250 0.225

10

20

40 50 Harmful objective ratio (%)

100

40 50 Harmful objective ratio (%)

100

(D) OLMo-3-7B

0.60

10

(B) Mistral-7B

0.375

(C) Qwen3-8B

0.7

20

nC=20

0.6

10

0.8

10

nC=10

0.7

(D) OLMo-3-7B

0

(A) Llama-3.1-8B

0.8

100

Harmful composition coordinate sH

0.7

Harmful composition coordinate sH

Harmful composition coordinate sH

Harmful composition coordinate sH

0.8

0.1

Harmful composition coordinate sH

N=200

(B) Mistral-7B

0.400

Harmful composition coordinate sH

N=100

Harmful composition coordinate sH

N=50

(A) Llama-3.1-8B 0.9

40 50 Harmful objective ratio (%)

100

0.8 0.7 0.6 0.5 0.4 10

20

(b) Fixed harmful count, varying ratio.

Figure 7: Relative composition versus absolute harmful exposure. Left: dataset size varies at fixed harmful-compliance ratio. Right: harmful-compliance ratio varies at fixed harmful-example count. models and paired seeds (Figure 7b). Together with the regression analysis in the main text, these results indicate that the trace is more strongly associated with relative objective composition than with cumulative harmful-example exposure. C.3

C ONTROLLING FOR SFT I NTENSITY AND U PDATE M AGNITUDE

A further possibility is that the harmful-objective coordinate reflects generic fine-tuning intensity rather than the SFT objective itself. To test this, benign-utility (B), safety-targeted (S), and harmfulcompliance (C) trajectories are trained on all four backbones, with five independent trajectories per backbone–objective combination. Checkpoints are evaluated at t ∈ {10, 25, 50, 100, 200} optimization steps, yielding 300 checkpoints in total, all scored using the same frozen reference geometry. For each checkpoint, both sH and the Frobenius norm of the effective update are recorded. Update growth is normalized within each trajectory as nt =

∥∆Wt ∥F , ∥∆W10 ∥F

(60)

where nt measures update magnitude relative to the checkpoint at 10 optimization steps. As shown in Figure 8, effective-update magnitude grows substantially with training under all three objectives, whereas sH remains strongly objective dependent. Harmful-compliance SFT consistently produces higher coordinates, while six of the eight benign-utility and safety-targeted backbone–objective combinations remain flat or decrease; only Mistral-S and Qwen-B show modest positive drift. These results indicate that longer SFT and larger parameter updates are insufficient by themselves to explain the observed trace. C.4

C ONTROLLING FOR S EQUENCE -L ENGTH E FFECTS

Differences in sequence length between harmful-compliance and non-harmful SFT examples could confound the observed trace. For each SFT trajectory, the mean prompt length ℓprompt and mean target length ℓtarget are recorded. Within each backbone, sH and the harmful-compliance ratio p are separately regressed on (ℓprompt , ℓtarget ), and the correlation between the resulting residuals is reported as the length-controlled partial correlation. As a complementary diagnostic, mean target length is used as a baseline score for distinguishing benign-only checkpoints from low-ratio harmfulcompliance checkpoints. After controlling for mean prompt and target length, the correlations between sH and harmfulcompliance ratio remain 0.953, 0.959, 0.976, and 0.972 for Llama, Mistral, Qwen, and OLMo, respectively (Figure 9a). Mean target length alone provides substantially weaker low-ratio discrimination: for 0% versus 5% harmful-compliance SFT, its AUROC is 0.63–0.70, compared with 0.98– 20

B

S

sH

C

(a) Llama

(b) Mistral 1.0

1.00

7.5

0.75 5

0.50

7.5

0.8 0.6

5

0.4

0.25

2.5

2.5 0.2

0.00

0.0 10

25

50

100

200

0

10

(c) Qwen

25

50

100

0

200

(d) OLMo 10

0.6

15

0.8 0.6

sH

Normalized update norm

sH

Update norm

0.4 5 0.2

10

0.4 5

0.2 0.0

0.0 10

25

50

100

200

0

10

25

Optimizer steps

50

100

0

200

Optimizer steps

Figure 8: SFT intensity and update magnitude. Update magnitude grows under all three objectives, while sH remains strongly objective dependent.

Objective-trace correlation after controlling for response length Raw correlation Length-controlled 0.976 0.953

0.972

TRACE vs response-length-only baseline on low-ratio discrimination

0.959 0.95 reference

0.95

1.0

1.00

1.00

0.98

1.00

1.00

1.00

1.00

1.00

0.9

0.90 0.79

0.8

0.77

0.74

AUROC

Correlation with harmful objective ratio

1.00

0.85

0.70

0.7

0.70 0.67

0.63

0.63

0.6

0.80 0.5

0.75

0.4 0.3

0.70

Llama-3.1-8B

Mistral-7B

Qwen3-8B

OLMo-3-7B

0v5 Llama

0v5 Mistral

0v5 Qwen3

0v5 OLMo

0v10 Llama

0v10 Mistral

TRACE

Length-only

0v10 Qwen3

0v10 OLMo

Task (0% vs low ratio) and model

(a) Length-controlled trace correlation. (b) Trace versus length-only baseline. Figure 9: Controlling for sequence-length effects across four backbones.

1.00 for sH ; for 0% versus 10%, the corresponding values are 0.67–0.79 versus 1.00 (Figure 9b). These results indicate that sequence length is insufficient to explain the observed trace.

D

S UPPLEMENTARY C HECKPOINT-AUDITING R ESULTS

This appendix provides the full proportion-wise evaluation of checkpoint-level harmful-SFT detection. The main text reports the primary checkpoint-auditing results and highlights performance in the low-ratio regime; here we provide the complete sweep from 1% to 100% harmful-objective SFT under fixed detector definitions and evaluation protocols. 21

Binary detection AUROC vs harmful-SFT proportion (frozen detectors; shading = variation across backbones, bold markers = 5%/10%) Harmful vs benign (Cr vs B0) 0.8

1.0

Macro AUROC (4 backbones)

Macro AUROC (4 backbones)

Harmful compliance vs refusal (Cr vs Sr, matched)

TRACE UpdateNorm Spectral PEFTGuard CANARY WeightWatch-SVD (adapted)

1.0

0.6 0.4 0.2 0.0

1

2

5

10

25

50

Harmful SFT proportion (%)

75

0.8 0.6 0.4 0.2 0.0

100

1

2

5

10

25

50

Harmful SFT proportion (%)

75

100

Figure 10: Binary detection across harmful-objective proportions. Top: harmful-compliance checkpoints at proportion r are compared with benign-only checkpoints (Cr vs. B0 ). Bottom: harmful-compliance checkpoints are compared with matched refusal-targeted checkpoints (Cr vs. Sr ). Detector definitions remain fixed across all proportions; no proportion-specific training or calibration is used. D.1

E VALUATION P ROTOCOL ACROSS H ARMFUL -O BJECTIVE P ROPORTIONS

We evaluate binary discrimination as the harmful-objective proportion varies over r ∈ {1, 2, 5, 10, 25, 50, 75, 100}%.

(61)

All detectors and score definitions remain fixed throughout the sweep. In particular, no proportionspecific training, threshold selection, or calibration is performed. We consider two complementary evaluation views. Harmful compliance vs. benign-only SFT.

The first comparison,

Cr vs. B0 ,

(62)

compares harmful-compliance checkpoints trained with harmful-objective proportion r against benign-only checkpoints. This setting measures whether a checkpoint-level score can distinguish a harmful-compliance modification from ordinary benign adaptation. Harmful compliance vs. matched refusal-targeted SFT. Cr vs. Sr ,

The second comparison, (63)

uses the matched harmful-compliance and refusal-targeted construction described in Appendix C.1. Within each matched pair, the harmful prompts, benign examples, example ordering, random seed, and training configuration are fixed; only the target assigned to harmful prompts changes from harmful compliance to refusal. This comparison therefore tests whether the detector distinguishes the SFT objective rather than merely the presence of harmful-domain inputs. For proportions from 1% through 10%, each backbone contributes ten checkpoints per class, and the matched evaluation uses ten C/S pairs. At higher proportions, five matched pairs are used per backbone. AUROC is computed independently within each backbone and then macro-averaged across the four backbones, following Appendix A.1. D.2

F ULL R ATIO -W ISE D ETECTION R ESULTS

Figure 10 shows detection performance across the full harmful-objective proportion sweep, while Table 9 reports the corresponding macro-averaged AUROC values. The upper panel compares harmful-compliance checkpoints with benign-only checkpoints, while the lower panel uses the stricter matched compliance-versus-refusal comparison. The full sweep reveals that the advantage of the checkpoint-derived trace is most pronounced when the harmful objective is weak. For Cr vs. B0 , TRACE reaches AUROC 0.718 at 1%, 0.843 at 2%, 22

Table 9: Binary detection AUROC across harmful-objective proportions. Values are macroaveraged across the four model backbones. View

Method

1%

2%

5%

10%

25%

50%

75%

100%

Cr vs. B0

TRACE UpdateNorm Spectral WeightWatch-SVD PEFTGuard CANARY

0.718 0.500 0.553 0.471 0.481 0.548

0.843 0.513 0.583 0.481 0.509 0.573

0.995 0.605 0.570 0.484 0.435 0.650

1.000 0.665 0.540 0.534 0.439 0.768

1.000 0.770 0.688 0.551 0.404 0.793

1.000 0.910 0.723 0.655 0.409 0.785

1.000 0.943 0.863 0.705 0.323 0.790

1.000 0.963 0.828 0.810 0.316 0.735

Cr vs. Sr

TRACE UpdateNorm Spectral WeightWatch-SVD PEFTGuard CANARY

0.843 0.538 0.478 0.491 0.000 0.553

0.955 0.498 0.510 0.535 0.000 0.575

0.998 0.625 0.530 0.455 0.230 0.605

1.000 0.548 0.523 0.591 0.144 0.740

1.000 0.660 0.670 0.515 0.245 0.750

1.000 0.820 0.900 0.675 0.220 0.800

1.000 1.000 1.000 0.677 0.300 0.850

1.000 1.000 0.950 0.661 0.300 0.760

and 0.995 at 5%. Under the stricter matched Cr vs. Sr comparison, the corresponding values are 0.843, 0.955, and 0.998. From 10% onward, TRACE achieves complete separation in both evaluation views. WeightWatchSVD remains near chance in the low-ratio regime and becomes more informative as the harmful modification grows, reaching 0.810 at 100% for Cr vs. B0 ; however, its matched Cr vs. Sr performance remains substantially weaker and non-monotonic. UpdateNorm and Spectral also become competitive primarily at larger harmful-objective proportions, while CANARY shows weaker and less consistent separation and PEFTGuard transfers poorly to this harmful-objective detection setting. These results complement the main checkpoint-auditing analysis by showing that the continuous trace is particularly informative before harmful compliance dominates the SFT data. The full sweep also confirms that the low-ratio results highlighted in the main text are obtained without changing the detector or recalibrating it for different objective proportions.

E

G ENERALIZATION AND ROBUSTNESS OF THE H ARMFUL -SFT T RACE

This appendix provides the complete generalization and robustness analyses supporting Section 5. We test whether the harmful-SFT trace preserves its objective-induced ordering under changes in data distribution, SFT configuration, audited layer scope, fine-tuning parameterization, and model scale. Absolute sH values are not assumed to remain invariant across settings or model backbones; the focus throughout is the stability of the underlying ordering. E.1

DATASET-FAMILY G ENERALIZATION

Dataset-family transfer tests whether the harmful-objective trace remains readable when the harmful-data source used for reference construction differs from that used to train the audited checkpoint. Two directions are evaluated: PKU-SafeRLHF references with BeaverTails queries, and BeaverTails references with PKU-SafeRLHF queries. In each direction, the C and S prototypes are constructed from the reference family, while the benign prototype uses the same benign sources as in the main experiments. Query checkpoints are trained at harmful-objective proportions of 5%, 10%, 25%, and 50%, with five independent trajectories per condition. Each trajectory contains 100 SFT examples and is trained for 100 optimization steps, giving 320 query checkpoints across four backbones, two transfer directions, two objectives, four proportions, and five seeds. Continuous transfer is evaluated by Spearman correlation between harmful-compliance proportion and sH , separately for each backbone and direction. Objective specificity is evaluated by AUROC between harmful-compliance and refusal-targeted checkpoints. Table 10 and Figure 11 show that the trace persists in both directions. Spearman correlations range from 0.7911 to 0.9695, with seven of eight backbone–direction combinations above 0.9384, and C/S AUROC is 1.0000 throughout. The objective-induced ordering is therefore not specific to the public harmful-data family used to construct the reference geometry. 23

Table 10: Dataset-family transfer in both directions. C-trace Spearman ρ Model

PKU→BT BT→PKU PKU→BT BT→PKU

Llama Mistral Qwen OLMo

0.9695 0.9384 0.9695 0.9695

Llama-3.1-8B

Harmful-objective coordinate sH

C/S AUROC

0.7911 0.9695 0.9695 0.9695

Mistral-7B

1.0000 1.0000 1.0000 1.0000

1.0000 1.0000 1.0000 1.0000

Qwen3-8B

OLMo-3-7B

PKU refs -> BeaverTails queries

BeaverTails refs -> PKU queries

0.8

0.8

0.6

0.6

0.4

0.4

0.2

0.2

0.0

5 10

25

50

0.0

Harmful-compliance proportion (%)

5 10

25

50

Harmful-compliance proportion (%)

Figure 11: Cross-family harmful-compliance traces. References and queries use different harmful-data families.

G ENERALIZATION TO M ANUALLY C ONSTRUCTED U NSEEN DATA

Transfer between public datasets provides only a partial generalization test, since publicly available safety data may have appeared in the pretraining corpora of the evaluated base models. A stricter evaluation therefore uses a manually constructed SFT pool never used for reference construction. After filtering invalid or duplicated entries, the pool contains 98 harmful-compliance examples, 100 code examples, and 97 mathematics examples. Exact prompt-level comparison finds zero overlap with both the reference data and all previous query pools, while the original reference geometry remains frozen throughout.

0.6 Harmful composition coordinate sH

E.2

Llama-3.1-8B Mistral-7B

0.5

Qwen3-8B OLMo-3-7B

0.4 0.3 0.2 0.1 0.0

5

10

25

50

Unseen objective proportion (%)

Harmful compliance (C)

75 100

Refusal targeted (S)

The refusal-targeted branch reuses the same 98 harmful prompts but replaces their targets with the Figure 12: Traces on manually constructed unfixed refusal templates from Appendix A.2. For seen data. Solid and dashed lines denote C and each backbone, matched C and S checkpoints are S, respectively. trained at nominal proportions of 5%, 10%, 25%, 50%, 75%, and 100%, using five seeds per condition. Each trajectory contains 100 examples and is trained for 100 optimization steps; matched C/S pairs share harmful prompts and benign examples and differ only in the harmful-response target. Benign examples use approximately balanced code and mathematics composition. Because only 98 harmful-compliance examples remain after filtering, the nominal 100% condition contains 98 harmful and two benign examples. Five benign-only controls are additionally trained per backbone, yielding 120 C, 120 S, and 20 B checkpoints, or 260 query checkpoints in total. Figure 12 shows that increasing harmful-compliance proportion raises sH across all four backbones, while the matched refusal-targeted branch remains substantially lower. Because the two branches 24

Table 12: Correlation with the canonical sH curve under SFT configuration changes. Model

Base

LR↓

LR↑ Step↓ Step↑ r = 4 r = 16 α = 8 α = 32

Llama Mistral Qwen OLMo

1.000 1.000 1.000 1.000

0.998 1.000 0.999 1.000

0.998 0.996 0.993 0.999

0.997 1.000 0.999 0.999

0.998 0.998 0.994 1.000

0.999 0.994 1.000 0.999

1.000 0.998 0.999 1.000

(a) Learning rate 0.8

0.6

0.6

0.4

0.4

0.2

0.2 0 5 10

25

50

75

Harmful-objective proportion (%)

100

0 5 10

25

50

75

100

75

100

Harmful-objective proportion (%)

(c) LoRA rank

(d) LoRA scaling

0.8

0.8

0.6

0.6

sH

sH

0.999 0.998 0.999 1.000

(b) Training steps

Qwen3-8B OLMo-3-7B

sH

sH

0.8

Llama-3.1-8B Mistral-7B

0.998 1.000 0.999 1.000

0.4

0.4

0.2

0.2 0 5 10

25

50

75

Harmful-objective proportion (%) canonical

100 lower config

0 5 10

25

50

Harmful-objective proportion (%)

higher config

Figure 13: Harmful-objective traces under SFT configuration changes.

share their inputs and differ only in target behavior, the separation cannot be attributed to inputdomain differences. Including benign-only controls as the 0% condition gives ρC+B = 0.9831–0.9901, while restricting the calculation to the six nonzero C conditions gives ρC = 0.9753–0.9866. PerModel ρC+B ρC C/S AUROC backbone C/S AUROC ranges from 0.9989 to 1.0000, with Llama 0.9873 0.9821 1.0000 macro AUROC 0.9997 (Table 11). Thus, the frozen geometry Mistral 0.9887 0.9843 0.9989 transfers to independently constructed data without rebuilding Qwen 0.9831 0.9753 1.0000 or recalibration. Notably, the unseen pool has no prompt overOLMo 0.9901 0.9866 1.0000 lap with the reference or previous query data, yet preserves the same objective-dependent ordering. The matched C/S separation further shows that this transfer remains sensitive to the target behavior rather than merely to the input domain. Table 11: Unseen-data generalization.

E.3

ROBUSTNESS TO SFT C ONFIGURATION

Configuration robustness tests whether the trace depends on a particular SFT recipe. Starting from the canonical setting—learning rate 2×10−4 , 100 optimization steps, LoRA rank r = 8, and scaling α = 16—one factor is changed at a time. Alternative settings use learning rates of 1 × 10−4 and 5 × 10−4 , 50 or 200 training steps, LoRA ranks r ∈ {4, 16}, and scaling factors α ∈ {8, 32}. Each of the nine configurations is evaluated at harmful-objective proportions of 0%, 5%, 10%, 25%, 50%, 75%, and 100%, with three independent trajectories per proportion and backbone, giving 756 trajectories in total. The reference geometry and scoring procedure remain fixed. 25

Layer-location sensitivity at a fixed 25% audit budget 1.00

0.98

0.98

0.96

0.96 Trace Spearman

Trace Spearman

Objective-trace retention under partial-layer auditing 1.00

0.94 0.92 0.90

0.94 0.92 0.90

0.88

0.88

0.86 25

Llama-3.1-8B

Qwen3-8B

Mistral-7B

OLMo-3-7B

0.86

50 75 Audited Transformer layers (%)

100

Llama-3.1-8B

Qwen3-8B

Mistral-7B

OLMo-3-7B

EARLY

MIDDLE LATE Layer region (25% audit budget)

UNIFORM

(a) Varying audited layer fraction. (b) Layer location at a 25% audit budget. Figure 14: Sensitivity of the checkpoint trace to audited layer scope. Table 13: TRACE on larger Qwen3 models.

Model Qwen3-14B Qwen3-32B

Trace ρ

R2

Matched C/S

5% C/B

0.994 0.960

0.976 0.997

1.000 1.000

1.000 1.000

Table 12 reports correlations of 0.993–1.000 between the modified and canonical median sH curves. Figure 13 shows that configuration changes can shift the absolute score scale while preserving the dose–response ordering. The high correlations are not explained by score collapse: every tested configuration retains more than 70% of the canonical dynamic range maxρ sH − minρ sH . The trace is therefore largely insensitive to the particular SFT configuration at the level of objective ordering. E.4

S ENSITIVITY TO AUDITED L AYER S COPE

Layer-scope sensitivity tests whether recovering the trace requires access to all Transformer layers. With checkpoints, reference geometry, and all other components fixed, only the audited q proj/v proj modules are varied. Uniformly spaced subsets containing 25%, 50%, 75%, and 100% of the layers are first compared. A second experiment fixes the audit budget at 25% and compares early, middle, late, and uniformly spaced layer subsets. Figure 14 shows that uniformly auditing only 25% of the layers already retains Spearman correlations of 0.968–0.987, compared with 0.988–0.992 when all layers are used. At the same 25% audit budget, middle-layer subsets reach 0.983–0.990 and consistently outperform early-layer subsets. These results indicate that the trace is distributed across the model rather than confined to a narrow layer region. All layers are nevertheless retained in the main experiments to avoid introducing additional layer-selection choices or hyperparameters. E.5

S CALING TO L ARGER Q WEN M ODELS

We test whether the harmful-objective trace persists as model scale increases within the same model family. In addition to Qwen3-8B used in the main experiments, we evaluate Qwen3-14B and Qwen3-32B using the same TRACE construction and canonical SFT configuration. For each model, the reference geometry is built from eight harmful-compliance (C), eight safety-targeted (S), and eight benign-utility (B) trajectories. Query checkpoints are trained at harmful-objective proportions {0, 1, 2, 5, 10, 25, 50, 75, 100}% with three independent seeds per condition. The matched C/S control is additionally evaluated at {5, 10, 25, 50}%, again with three matched pairs per condition. In total, 75 trajectories are trained for each larger backbone. Qwen3-32B uses a smaller per-device micro-batch with gradient accumulation to preserve the same effective batch size; all other training and scoring settings remain unchanged. Figure 15 shows that the continuous ordering persists at both scales. For Qwen3-14B, the harmfulobjective coordinate has Spearman correlation ρ = 0.994 with the controlled objective proportion 26

qwen3_32b

0.8

0.8

0.6

0.6

sH

sH

qwen3_14b

0.4

0.4

0.2

0.2 0

20 40 60 80 100 harmful-objective ratio (%)

0

20 40 60 80 100 harmful-objective ratio (%)

Figure 15: Continuous harmful-objective traces on larger Qwen3 models. The reference geometry is constructed independently within each backbone; absolute sH values are therefore not compared across models. Table 14: Behavioral validity of sH . 95% CI

Pearson

R2

Partial Corr.

[0.890, 0.952] [0.568, 0.806] [0.791, 0.936] [0.743, 0.912]

0.896 0.697 0.851 0.739

0.803 0.485 0.724 0.546

0.52 -0.18 0.31 0.30

Model Spearman ρ Llama Mistral Qwen OLMo

0.931 0.716 0.887 0.854

and R2 = 0.976; the ratio-wise mean score increases monotonically from 0.103 at 0% to 0.849 at 100%. Qwen3-32B similarly retains a strong trace, with ρ = 0.960 and R2 = 0.997, and its mean score increases monotonically from 0.150 to 0.924. The ordering is already visible in the low-ratio regime: both models achieve AUROC 1.000 for separating 5% harmful-compliance checkpoints from benign-only checkpoints. Objective specificity also survives scaling. Under the matched C/S control, where prompts, benign examples, ordering, seed, and training configuration are held fixed and only the harmful-response target changes, both Qwen3-14B and Qwen3-32B achieve AUROC 1.000. Every matched pair assigns a larger sH to harmful-compliance than to refusal-targeted SFT, with mean paired gaps of 0.175 and 0.264, respectively. Together with the existing Qwen3-8B result (ρ = 0.987), these experiments indicate that the continuous, objective-specific checkpoint trace persists as the Qwen3 backbone scales from 8B to 14B and 32B parameters.

F

B EHAVIORAL E XTERNAL VALIDITY AND E XTENSIONS

This appendix examines two questions beyond the core characterization of the harmful-SFT trace. First, the checkpoint-derived coordinate is compared with independently measured harmful behavior to assess its external validity. Second, the reference-geometry formulation is tested on a qualitatively different checkpoint modification: trigger-conditioned backdoors. The latter is treated as an extension rather than evidence required for the main harmful-SFT trace. F.1

B EHAVIORAL E XTERNAL VALIDITY

Detailed results for the behavioral evaluation in Section 5.3 are reported in Table 14 and Figure 16. The association is strongest for Llama (ρ = 0.931, R2 = 0.803) and Qwen (ρ = 0.887, R2 = 0.724), while Mistral and OLMo remain positive but weaker. All four correlations are significant under permutation tests (p < 10−4 ), with Pearson correlations of 0.697–0.896. The pattern also holds across attacks: all 16 backbone–attack combinations are positively correlated (0.55–0.94), and leave-one-attack-out results remain stable. Across longitudinal trajectories, 46 of 60 show positive sH –ASR associations, with median Spearman correlation 0.52. After controlling for SFT objective and training stage, partial correlations are 0.52, −0.18, 0.31, and 0.30 for Llama, Mistral, Qwen, and OLMo, respectively, indicating that part of the aggregate relationship is explained by objective and training progress, while a positive within-condition association remains for three of four backbones. 27

(B) Mistral-7B 1.0 Spearman = 0.72

0.6

0.8

Pearson = 0.70

0.4 0.2 0.0

100

0.6 80

0.4 0.2

60

0.0 0.0 0.2 0.4 0.6 0.8 1.0 TRACE harmful composition coordinate sH

0.0 0.2 0.4 0.6 0.8 1.0 TRACE harmful composition coordinate sH

0.6 0.4 0.2 0.0

Spearman = 0.89 Pearson = 0.85

Attack Success Rate (ASR)

Attack Success Rate (ASR)

(C) Qwen3-8B

(D) OLMo-3-7B

= 0.85 0.7 Spearman Pearson = 0.74 0.6

40

0.5 0.4

20

0.3 0.2 0.1

0

0.0 0.2 0.4 0.6 TRACE harmful composition coordinate sH

Harmful training exposure (objective: 0=B/S, 100=C)

Attack Success Rate (ASR)

Attack Success Rate (ASR)

(A) Llama-3.1-8B = 0.93 0.8 Spearman Pearson = 0.90

0.0 0.2 0.4 0.6 0.8 TRACE harmful composition coordinate sH

Figure 16: Checkpoint-level association between sH and attack success rate. Each panel corresponds to one backbone.

F.2

BACKDOOR ATTACK -FAMILY A DAPTATION

A separate experiment tests whether the reference geometry extends to a qualitatively different post-training modification. Toxic Backdoors Alpaca (Ewart, 2024) inserts the trigger SolidGoldMagikarp into poisoned Alpaca-style instructions and pairs them with toxic targets. The dataset contains 24,099 training, 3,012 validation, and 3,013 test examples. Attack validation uses 1,000-example SFT sets with 500 poisoned and 500 clean examples trained for 200 steps. Across four backbones, triggered ASR reaches 0.997–1.000, while clean-prompt toxicity remains 0.003–0.005.

Triggered ASR

Checkpoint auditing uses poison rates of 1%, 2%, 5%, 10%, 1.0 25%, and 50%, with ten backdoor trajectories per rate and 0.8 five clean controls per backbone. For each rate, four seeds are used as references, two for validation, and four for held0.6 out testing. Because the original C/S/B geometry does 0.4 not represent trigger-conditioned modifications, a backdoor prototype µT is constructed from 24 reference trajectories 0.2 per backbone; test checkpoints and behavioral ASR remain Llama-3.1-8B Qwen3-8B Mistral-7B OLMo-3-7B 0.0 excluded from reference construction. As shown in Fig1 2 5 10 25 50 Figure 17: Triggered ASR across poiure 17, the attack is largely ineffective at 1%, becomes esPoison rate (%) tablished on Llama and Mistral by 2%, and shows a clearer son rates. transition on Qwen and OLMo by 5%. Table 15 shows that TRACE +BackdoorRef provides the strongest separation at every poison rate, although performance is not monotonic with poisoning strength. WeightWatch-SVD yields moderate separation across the sweep, while adding the same backdoor-reference expansion does not provide a consistent improvement. This is expected because attack efficacy and checkpoint detectability need not evolve together: at low rates the triggered behavior may not yet be reliably learned, while higher poison rates can alter the scale and direction of the resulting update in ways that do not mono28

Table 15: Backdoor detection across poison rates. Method

1%

2%

5%

10%

25%

50%

UpdateNorm PEFTGuard-BD WeightWatch-SVD WeightWatch-SVD +BackdoorRef TRACE original TRACE +BackdoorRef

0.313 0.531 0.531 0.438 0.250 0.625

0.375 0.531 0.469 0.438 0.250 0.625

0.500 0.656 0.438 0.547 0.250 0.750

0.469 0.406 0.398 0.422 0.062 0.625

0.438 0.281 0.469 0.438 0.000 0.688

0.125 0.188 0.430 0.375 0.000 0.692

(A) Backdoor detection: reference adaptation

(B) Behavioral association

0.8

0.721

0.6

0.565 0.456

0.4

0.232

0.2 0.0 PEFTG

0.443

D uard-B

-SVD orRef tWatch Backdo Weigh -SVD + tWatch Weigh

Spearman(score, Triggered ASR)

AUROC (pooled 1-50% test)

1.0

0.75 0.50 0.22

0.25 0.00 0.25 0.50

-0.58

0.75 TRACE original

f original doorRe +Back TRACE TRACE

TRACE + BackdoorRef

Figure 18: Backdoor auditing and reference adaptation. (A) Pooled held-out backdoor detection across baselines and reference-adapted variants over 1%–50% poison rates. (B) Association between the TRACE checkpoint score and triggered ASR before and after adding the backdoor reference. tonically increase geometric separability. UpdateNorm remains substantially weaker, indicating that update magnitude alone is insufficient for reliable backdoor auditing. Pooling held-out checkpoints over 1%–50%, TRACE +BackdoorRef raises macro AUROC from 0.232 to 0.721, exceeding PEFTGuard-BD (0.565), WeightWatch-SVD (0.456), and WeightWatchSVD +BackdoorRef (0.443), as shown in Figure 18. Per-backbone AUROC for TRACE improves from 0.260 to 0.719 on Llama, 0.385 to 0.615 on Mistral, 0.146 to 0.990 on Qwen, and 0.135 to 0.563 on OLMo. Reference-count sensitivity rises from approximately 0.28 with one or two attack-family references to 0.30 with four, 0.35 with eight, and 0.72 with all 24, indicating that new modification families benefit from references that explicitly represent their update pattern. F.3

BACKWARD C OMPATIBILITY OF R EFERENCE E XPANSION

Adding a backdoor prototype raises a separate question: whether expanding the reference space preserves the original harmful-SFT audit. The original harmful-compliance and balanced non-harmful prototypes, µC and µN , remain frozen, while µT is constructed from the same 24 backdoor reference trajectories used above. No checkpoint is retrained and no behavioral labels or score recalibration are introduced. The expanded three-component geometry estimates (γ̂C , γ̂T , γ̂N ) = arg

min

γC ,γT ,γN ≥0

2

∥ϕ(∆Wθ ) − γC µC − γT µT − γN µN ∥ ,

(64)

and defines the combined harmful-modification coordinate γ̂C + γ̂T . (65) sC+T = γ̂C + γ̂T + γ̂N + ϵ Recomputing the original two-component coordinate reproduces the stored TRACE scores to numerical precision. Table 16 and Figure 19 show that the expanded geometry preserves matched C/S discrimination and dataset-family OOD performance, while ID and unseen AUROC decrease by 0.0365 and 0.0455, respectively; both decreases have paired-bootstrap confidence intervals excluding zero. Importantly, continuous harmful-objective ordering remains stable: the expanded coordinate retains Spearman correlations of 0.9804, 0.9872, 0.9831, and 0.9923 with harmful-objective proportion on Llama, Mistral, Qwen, and OLMo, and the rank correlation between original and expanded scores is at least 0.9886 on every backbone. The remaining performance change is therefore more consistent with score renormalization than with loss of the underlying objective structure; adding µT assigns nonzero mass to some original B/S/C checkpoints and shifts their normalized scores by median amounts of approximately 0.06–0.45 across backbone–objective combinations. 29

Table 16: Backward compatibility after adding the backdoor reference. ∆ reports the change in macro AUROC after reference-space expansion. Setting

Original

+µT

ID Matched C/S OOD Unseen

0.9110 0.9881 1.0000 0.9998

0.8745 0.9924 1.0000 0.9543

(a) Original-task compatibility -0.036

0.995

+0.004

Matched C/S

Trace Spearman

ID

∆

+0.000

OOD -0.045

Unseen 0.08

0.06

0.04

0.02

95% CI

-0.0365 [−0.0710, −0.0045] +0.0043 [+0.0004, +0.0088] +0.0000 [0.0000, 0.0000] -0.0455 [−0.0762, −0.0181]

0.990 0.985 0.980 0.975

0.00

AUROC (+BackdoorRef Original)

(b) Continuous-trace retention

Original

Llama

+BackdoorRef

Mistral

Qwen

OLMo

Figure 19: Backward compatibility of backdoor reference expansion. Left: change in the original harmful-SFT detection tasks after adding µT . Right: retention of continuous harmful-objective ordering.

G

TRACE UNDER P RACTICAL -S CALE H ETEROGENEOUS SFT

The main experiments use small, controlled SFT trajectories to isolate objective-induced checkpoint structure. This section tests whether the same trace and auditing signal persist under larger, heterogeneous instruction tuning. Practical SFT setup. The benign pool is built from a filtered Tulu 3 SFT mixture (Lambert et al., 2025). From 939,343 examples across 19 sources, safety-, jailbreak-, refusal-, and open-chatoriented sources are removed, leaving 715,082 examples from 13 benign/utility sources spanning instruction following, mathematics, reasoning, code, scientific tasks, table understanding, and multilingual data. Each trajectory contains 10,000 examples, with harmful-compliance examples from PKU-SafeRLHF and BeaverTails replacing benign examples at 0, 0.5, 1, 2, 5, and 10%. Llama-3.18B-Instruct and Qwen3-8B are evaluated with three trajectories per condition, each trained for one epoch (625 steps) using the canonical LoRA configuration: r = 8, α = 16, q/v projections, learning rate 2 × 10−4 , effective batch size 16, maximum sequence length 512, and bfloat16. The original reference geometry remains frozen throughout, and all training manifests have zero prompt-level overlap with reference, previous-query, and evaluation pools. Checkpoint trace and behavioral relevance. Despite the 100× increase in dataset size and the more heterogeneous benign distribution, sH remains strongly ordered by harmful-objective proportion, with Spearman correlations of 0.979 for Llama and 0.992 for Qwen; ratio-wise means increase monotonically on both backbones. Using the same behavioral protocol as Section 5.3, ASR also rises with harmful-objective composition. Figure 21 shows checkpoint-level sH –ASR correlations of approximately 0.89 for Llama and 0.92 for Qwen, with positive associations for each attack individually. Behavioral measurements remain excluded from TRACE construction and calibration. Objective controls and training dynamics. Matched C/S controls are repeated at 1% and 5%, holding prompts, benign examples, ordering, seed, and training configuration fixed while changing only the harmful-response target. All three matched pairs on both backbones satisfy sH (C) > sH (S) and ASR(C) > ASR(S) (Figure 22(a–b)). Mean sH gaps at 1%/5% are +0.257/ + 0.462 for Llama and +0.064/ + 0.226 for Qwen, with corresponding ASR gaps of +0.381/ + 0.516 and +0.115/+0.206. Along six 5% harmful-compliance trajectories, both sH and ASR increase overall across 20, 40, 60, 80, and 100% of training (Figure 22(c–d)); four of six trajectories have positive within-trajectory correlations, with median Spearman correlation approximately 0.4. 30

(a) Tulu3-Clean benign background

(b) Construction of 10k SFT trajectories 10000

Persona Math Evol CodeAlpaca 8000

Aya FLAN v2

SFT examples

NuminaMath-TIR Persona Math-Grade GSM8K/OpenMath Persona Code Persona IF

6000

4000

Persona Algebra SciRIFF

2000 Tulu3-Clean benign PKU-SafeRLHF BeaverTails

No Robots TableGPT 0 0

250

500

750

1000 1250 1500 1750 2000

0%

examples in the 10k benign master

0.5%

1%

2%

5%

10%

harmful-objective ratio

Figure 20: Construction of practical heterogeneous SFT trajectories. (a) The 10k-example Tulu3-Clean background contains 13 heterogeneous instruction-tuning sources. (b) Harmfulcompliance examples progressively replace benign examples while total size remains fixed at 10,000. (a) sH 0.70

(c) sH vs ASR

(b) ASR 0.7

llama qwen

0.7

llama qwen

0.6

llama (ρ=0.89) qwen (ρ=0.92)

0.6

0.65

0.55

0.5

0.5

0.4

0.4

ASR

ASR

sH

0.60

0.3

0.3

0.45

0.2

0.2

0.40

0.1

0.1

0.50

0

0.5

1

2

5

harmful ratio (%)

10

0

0.5

1

2

5

harmful ratio (%)

10

0.40

0.48

0.56

0.64

0.72

sH

Figure 21: TRACE under practical heterogeneous SFT. Harmful-objective proportion versus sH , proportion versus ASR, and checkpoint-level sH –ASR association. Each point is an independently trained 10k-example checkpoint; the reference geometry remains frozen. As a scale-only control, the original UltraChat/GSM8K/MBPP benign construction is expanded to 10,000 examples for Llama. The harmful-objective ordering remains intact, indicating that scale transfer is not specific to Tulu3-Clean; the behavioral result is noisier with only eight checkpoints and is treated as supporting evidence. Overall, the trace remains informative under 10,000-example heterogeneous SFT without rebuilding or recalibrating the reference geometry.

H

BASELINE I MPLEMENTATION D ETAILS

This appendix provides implementation details for the checkpoint-auditing baselines used in Section 4. Unless otherwise specified, all methods use the same frozen train/validation/test splits. AUROC is computed independently within each backbone and macro-averaged across the four backbones. Higher scores always indicate stronger evidence of harmful fine-tuning, and no test-time score flipping is applied. UpdateNorm. UpdateNorm is a weights-only baseline that measures the magnitude of the finetuning-induced update. For each LoRA checkpoint, we compute !1/2 X 2 snorm = ∥∆Wm ∥F , m∈M

31

(a) matched C/S sH

(b) matched C/S ASR 0.7

0.6

0.6 0.5

ASR

sH

0.5

0.4

0.4 0.3

0.3

0.2 0.1

0.2

1%

5%

1%

(c) sH 0.65

5%

(d) ASR llama qwen

llama qwen

0.7

0.60

0.6 0.5

sH

ASR

0.55

0.4

0.50 0.3 0.45

0.2

0.40

0.1 0.2

0.4

0.6

0.8

1.0

training fraction

0.2

0.4

0.6

0.8

1.0

training fraction

Figure 22: Objective controls and training dynamics. (a–b) Matched C/S trajectories differ only in harmful-response targets. (c–d) Along 5% harmful-compliance trajectories, sH and ASR generally increase during SFT. Thin lines show seeds and thick lines show means.

where M contains all modified qproj and vproj modules and ∆Wm = (αm /rm )Bm Am . The score requires no reference checkpoints, labels, or model execution. Spectral. The Spectral baseline uses spectral statistics of LoRA-induced weight updates. Following the original configuration, we extract features from layer 20. Since our adapters modify only qproj and vproj , we apply the spectral analysis to these two projections. For each projection, we compute the singular values of the effective update and extract five statistics: the largest singular value, Frobenius norm, leading-singular-value energy fraction, spectral entropy, and excess kurtosis. The resulting 10-dimensional feature vector is standardized and classified by a per-backbone logistic regression model trained on the benchmark training labels. Thus, this baseline uses checkpoint weights and training labels, but requires no model forward passes. PEFTGuard. PEFTGuard is evaluated as a supervised PEFT-weight baseline. For every layer, the qproj and vproj LoRA factors are converted to their effective updates and spatially pooled before being passed to a memory-adapted convolutional classification head. A separate detector is trained for each backbone using the training split, with validation-based early stopping. The final score is the predicted harmful-class probability. The implementation follows the original optimization recipe while adapting tensor shapes and the classification head to the model architectures and available q/v LoRA modules. CANARY. CANARY is an activation-based baseline reconstructed from the method description because no official implementation was available. For each checkpoint, we compare the final-token hidden representation of the base and fine-tuned models at the middle Transformer layer using 30 fixed unlabeled probe prompts. Hidden representations are encoded by a per-backbone k-sparse autoencoder trained on base-model activations. After masking high-variance noise features, the checkpoint score is sCANARY =

1 X 2 ∥D(M [E(hft (x)) − E(hbase (x))])∥2 , |P| x∈P

32

where E and D denote the sparse encoder and decoder and M removes the preidentified noise features. CANARY therefore requires model forward passes and fixed probe inputs, but no harmful labels are used to produce the checkpoint score. WeightWatch-SVD. Watch the Weights analyzes leading singular directions of the weight difference between a fine-tuned model and its base model. The original method operates on oproj and MLP downproj updates and combines these directions with activation-based monitoring and cleandata calibration. However, our canonical LoRA checkpoints modify only qproj and vproj , making the original module scope uninformative in our setting. We therefore evaluate an adapted checkpointlevel, weights-only version, denoted WeightWatch-SVD. For each modified module, we compute the singular subspace of the effective LoRA update without materializing the dense matrix. Writing ∆W = BA for the stored scaled factors, we use thin QR decompositions B = QB RB , A⊤ = QA RA , followed by an SVD of the small core matrix ⊤ RB RA = Uc ΣVc⊤ .

The right singular vectors are then V = QA Vc . We retain up to the original default of 20 directions, capped by the numerical rank of the LoRA update. To compare two checkpoints i and j, we use the sign-invariant projection kernel Km (i, j) =

⊤ ∥Vi,m Vj,m ∥2F , kij

where kij is the number of shared retained directions. Module-level similarities are averaged across all audited q/v modules to obtain KWW (i, j). Because the original Watch the Weights method does not define a checkpoint-level scalar score, we use the same frozen C/S/B reference split as TRACE to convert this representation into a continuous audit score. Let µC be the harmful-compliance prototype and µN = 12 (µS + µB ) the balanced non-harmful prototype in the WeightWatch-SVD kernel space. We fit xθ ≈ γC µC + γN µN , and report

γC , γN ≥ 0,

γC . γC + γ N + ϵ No model queries, calibration data, ratio-specific tuning, or test labels are used. We therefore refer to this method throughout as WeightWatch-SVD (adapted), rather than as an unmodified reproduction of the original monitoring pipeline. sWW =

33

Related documents

Record · ID 1210231 · SHA-256 5ce9a7c9f6264e38
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive