SourceSafety Alignment Should be Made More Than Just a Few Tokens Deep
The paper fine-tunes Llama-2-7b-chat on 100 (harmful instruction, harmful answer) pairs from Qi et al. 2023c with a learning rate of 2e-5 and batch size 64. It tracks the per-token cross-entropy loss, per-token gradient norm, and per-token KL divergence from the initial aligned model. The initial loss and gradient norms are substantially larger for the first few token positions, causing the generative distribution over initial tokens to deviate most rapidly. After only 6 gradient steps, the ASR on HEX-Phi jumps from 1.5% to 87.9%, confirming that the shallow alignment can be undone by very few fine-tuning steps because the learning signal is concentrated in the same initial tokens that the alignment occupies.