Manuscript Offprint

arXiv:2610.07518

Harmful SFT Leaves a Continuous Trace in LLM Checkpoint Updates

Ziqun Bao, Xinyu Zhang, Yuchen Shao, Chengcheng Wan

ABSTRACT

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 sHs_{H} tracks controlled harmful-objective 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 INTRODUCTION

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, objective-dependent 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), safety-targeted (S), and benign-utility (B) objectives define distinct reference regions, while mixed-objective 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 parameters.

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 sHs_{H}, used here as a descriptive readout rather than a learned detector. Across LLMs spanning 7B–32B parameters, sHs_{H} is strongly ordered by the controlled harmful-objective proportion, with Spearman correlations of 0.960–0.994. Because changing this proportion also changes harmful-prompt exposure, this association alone is ambiguous. Matched compliance-versus-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.

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 fine-tuning. Moreover, sHs_{H} 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.

This finding has a direct auditing implication. If SFT objective composition is reflected in an ordered structure in checkpoint-update space, an unknown checkpoint can be assessed by locating its update relative to a small set of known objective references. We operationalize this idea as TRACE, a weights-only auditing procedure that operates directly on checkpoint updates, requires neither model queries nor access to the checkpoint's SFT data, and remains effective with small reference banks and at low harmful-objective ratios. Our contributions are threefold: (1) we discover a continuous, objective-dependent ordering in checkpoint-update space; (2) we determine what this structure reflects and establish its robustness across diverse SFT conditions; and (3) we operationalize this finding as weights-only checkpoint auditing.

Figure

Figure 1: Objective-induced checkpoint geometry. Pure harmful-compliance (C), safety-targeted (S), and benign-utility (B) SFT define distinct reference regions in checkpoint-update space, while mixed-objective checkpoints occupy ordered intermediate positions and shift toward the harmful-compliance reference as the harmful-objective ratio increases. Here, μC\mu_{C}, μS\mu_{S}, and μB\mu_{B} denote the reference locations associated with the three pure objectives, and μN\mu_{N} denotes a combined non-harmful reference.

TRACE and demonstrate its utility for

weights-only checkpoint auditing.

References (42)