potentialpaper

HyperSafe: Inference-Time Safety Recovery for Fine-Tuned Language Models

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:07 UTC · 3d8c2f47bdde ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "foJOTjtyT2"
- }
- ],
- "title": "HyperSafe: Inference-Time Safety Recovery for Fine-Tuned Language Models",
- "authors": [],
- "abstract": "Safety alignment in large language models can be fragile under fine-tuning, as\neven benign task adaptation may increase harmful compliance. Existing defenses\neither retrain or modify weights during or after fine-tuning, which requires control\nover training or trades safety against utility, or use model-agnostic guard classifiers,\nwhich are not tailored to a given checkpoint and run a separate large model on\nevery prompt. We propose HyperSafe, a post-hoc, model-specific, and non-invasive\nframework that restores safety by generating a Safe Side Network (SSN) for each\nfine-tuned checkpoint. A hypernetwork maps layer-wise activation fingerprints,\ncomputed from a small set of calibration prompts, to the SSN parameters in a\nsingle forward pass. The SSN runs alongside the frozen fine-tuned model as a\nprompt-level safety classifier: harmful prompts are routed to refusal, while safe\nprompts are answered by the original model. HyperSafe targets safety degradation\nfrom benign fine-tuning rather than adversarial jailbreaks. The hypernetwork is\ntrained once per backbone family; each new checkpoint then requires no gradient\nupdates, no safety data, and no weight modification. On Qwen2-7B and LLaMA-3-\n8B, HyperSafe reduces harmful response rates from 19–31% to below 1% on every\nheld-out checkpoint (confirmed on LLaMA-3-8B by a second, independent judge),\nloses less than 1% task accuracy on average, and adds only 3.4% inference FLOPs.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "2acb1b02-f710-4cf8-915b-42084bae8726"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "HyperSafe: Inference-Time Safety Recovery for Fine-Tuned Language Models",
+ "authors": [],
+ "abstract": "Safety alignment in large language models can be fragile under fine-tuning, as\neven benign task adaptation may increase harmful compliance. Existing defenses\neither retrain or modify weights during or after fine-tuning, which requires control\nover training or trades safety against utility, or use model-agnostic guard classifiers,\nwhich are not tailored to a given checkpoint and run a separate large model on\nevery prompt. We propose HyperSafe, a post-hoc, model-specific, and non-invasive\nframework that restores safety by generating a Safe Side Network (SSN) for each\nfine-tuned checkpoint. A hypernetwork maps layer-wise activation fingerprints,\ncomputed from a small set of calibration prompts, to the SSN parameters in a\nsingle forward pass. The SSN runs alongside the frozen fine-tuned model as a\nprompt-level safety classifier: harmful prompts are routed to refusal, while safe\nprompts are answered by the original model. HyperSafe targets safety degradation\nfrom benign fine-tuning rather than adversarial jailbreaks. The hypernetwork is\ntrained once per backbone family; each new checkpoint then requires no gradient\nupdates, no safety data, and no weight modification. On Qwen2-7B and LLaMA-3-\n8B, HyperSafe reduces harmful response rates from 19–31% to below 1% on every\nheld-out checkpoint (confirmed on LLaMA-3-8B by a second, independent judge),\nloses less than 1% task accuracy on average, and adds only 3.4% inference FLOPs.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}