LMA: Selective Layer-Wise KV Anchoring for Frozen Language Models
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:19 UTC · ec26728efb3c ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "Hzh4FKWvwX"- }- ],- "title": "LMA: Selective Layer-Wise KV Anchoring for Frozen Language Models",- "authors": [],- "abstract": "Safety adaptation should prevent harmful assistance without turning ordinary requests into refusals. A learned safety prefix can strengthen a frozen language model, yet applying it to every request can cause unnecessary refusals. We introduce Layer-wise Memory Anchoring (LMA), which separates learning a safety condition from deciding when to use it. Response targets derived from 28 structured policies train a detachable, 64-slot key–value (KV) prefix at each Transformer layer. Before generation, a lightweight risk router selects the prefix-conditioned or original model path. Its threshold minimizes benign activation subject to at least 99% empirical risk recall on a held-out calibration set. On two frozen 30B Qwen models, selective and always-on use of the same prefix both achieve 99.97% harmful-request protection under Qwen3Guard. Selective activation reduces benign over-refusal from 35.00% to 6.50% on text and from 42.03% to 20.84% on tool contexts, close to the original paths' 5.83% and 21.47%. Controlled target comparisons also favor structured policies over generic action labels and shuffled policies. These results identify activation scope as an effective control for retaining a safety prefix's protection while reducing unnecessary intervention on benign requests.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "f7d41d85-4fcc-4a31-b6a4-5b3568c22f8e"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "LMA: Selective Layer-Wise KV Anchoring for Frozen Language Models",+ "authors": [],+ "abstract": "Safety adaptation should prevent harmful assistance without turning ordinary requests into refusals. A learned safety prefix can strengthen a frozen language model, yet applying it to every request can cause unnecessary refusals. We introduce Layer-wise Memory Anchoring (LMA), which separates learning a safety condition from deciding when to use it. Response targets derived from 28 structured policies train a detachable, 64-slot key–value (KV) prefix at each Transformer layer. Before generation, a lightweight risk router selects the prefix-conditioned or original model path. Its threshold minimizes benign activation subject to at least 99% empirical risk recall on a held-out calibration set. On two frozen 30B Qwen models, selective and always-on use of the same prefix both achieve 99.97% harmful-request protection under Qwen3Guard. Selective activation reduces benign over-refusal from 35.00% to 6.50% on text and from 42.03% to 20.84% on tool contexts, close to the original paths' 5.83% and 21.47%. Controlled target comparisons also favor structured policies over generic action labels and shuffled policies. These results identify activation scope as an effective control for retaining a safety prefix's protection while reducing unnecessary intervention on benign requests.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}