svd-safety-l2_kfacmixsep48_r40
A Llama-2-7b-chat checkpoint compressed with pooled K-FAC whitened SVD (utility + safety calibration in one K-FAC) to 60.0% of dense parameters, then recovered with SVD-LLM's stage-2 LoRA (sequential U then V, alpaca-cleaned, r=8, alpha=16, 2 epochs, lr 1e-4, batch 64, cutoff 256, bf16).
This is a research artifact from a study of how SVD compression damages safety behaviour and which component-selection rule best repairs it. It is one cell of a grid over selection rules and budgets; it is not a general-purpose chat model.
Provenance
| field | value |
|---|---|
| base (uncompressed) | meta-llama/Llama-2-7b-chat-hf |
| compression | pooled K-FAC whitened SVD (utility + safety calibration in one K-FAC), 40.00% of parameters removed |
| resulting parameter fraction | 0.5998 |
| seed | 42 |
| estimator | single K-FAC whitened SVD (F = A (x) G) on one pooled calibration set (run_safety_fisher.py, lam = 0), SVD-LLM per-matrix rank budget |
| calibration | wikitext2:256,jbb_harm_resp_sep:48 |
| utility part | WikiText-2 train, 255 x 2048-token windows (SVD-LLM sampler, seed 42), every position |
| safety part | 48 JailbreakBench goals with Llama-2-7b-chat's own refusals, one conversation per sample (unpacked, 12817 positions, 11584 response tokens), loss on the refusal only |
| G loss | token-sum: G from the summed NLL / 2047, so every loss token weighs the same |
| effective safety share | 0.0217 of loss tokens, 0.0240 of positions |
Measured
| metric | value |
|---|---|
| AdvBench ASR (HarmBench judge) | 0.0135 |
| StrongREJECT ASR (HarmBench judge) | 0.0735 |
| Macro over-refusal (WildGuard) | 0.3412 |
| WikiText-2 perplexity | 9.9032 |
| Zero-shot mean accuracy (7 tasks, acc_norm where reported) | 0.4846 |
Intended use and limitations
This checkpoint exists to measure safety/utility trade-offs under compression. Several arms in the grid are deliberately safety-degraded relative to Llama-2-7b-chat: compression alone raises attack-success rate, and the point of the study is to quantify that and test recovery. Treat any given cell as an experimental subject, not as a deployable assistant, and evaluate it yourself before drawing conclusions from it.
Licence
Llama 2 Community License. LICENSE.txt and USE_POLICY.md are included in this repository, and use of this derivative is bound by them. Built with Llama 2.