svd-safety-l2_dualk_mix_trace_r40
A Llama-2-7b-chat checkpoint compressed with dual-domain K-FAC whitened SVD (utility + safety curvature, SVD-LLM rank budget) 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 | dual-domain K-FAC whitened SVD (utility + safety curvature, SVD-LLM rank budget), 40.00% of parameters removed |
| resulting parameter fraction | 0.5998 |
| seed | 42 |
| solver | mix: closed-form whitened SVD on the single mixed K-FAC F_mix = [(1-a) G_u + a G_s] (x) [(1-a) A_u + a A_s] |
| safety weight a | 0.2639 (--alpha tok) |
| curvature normalisation | trace: A / positions, G / loss tokens (summed CE), per domain; then every factor / its trace |
| utility calibration | wikitext-2-raw-v1 train, SVD-LLM sampler, 255 x 2048-token windows, seed 42, next-token CE |
| safety calibration | results/dual_kfac_wj/wj_safe_l2.jsonl (512 samples, loss on response tokens) |
| rank budget | SVD-LLM's per-matrix rank at the same removal ratio |
Measured
| metric | value |
|---|---|
| AdvBench ASR (HarmBench judge) | 0.0019 |
| StrongREJECT ASR (HarmBench judge) | 0.0096 |
| Macro over-refusal (WildGuard) | 0.5527 |
| WikiText-2 perplexity | 10.2415 |
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.