potentialpaper

SafeDepth: Safety-Aware Token-Level Adaptive Computation

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:16 UTC · b759ec6e5386 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "RRyVLXLKYI"
- }
- ],
- "title": "SafeDepth: Safety-Aware Token-Level Adaptive Computation",
- "authors": [],
- "abstract": "Recent studies suggest that not every token needs to pass through all Transformer\nlayers, motivating token-level adaptive models that selectively skip layers to re-\nduce computation. Our experiments show that these execution choices also affect\nsafety: existing token-level adaptive reasoning models exhibit higher harmful-\nresponse rates than their reference backbones. The safety effects depend on which\nlayers are skipped and whether skipping occurs during prompt processing or an-\nswer generation. We further find that recognizing harmful requests and producing\nrefusals depend on different layer-wise computations. We introduce SafeDepth,\na lightweight, plug-in framework that uses selective layer execution to improve\nboth safety and efficiency. SafeDepth learns to retain computations that support\nsafe responses and bypass those that contribute to unsafe generation. A router se-\nlects layer execution based on token representations, layer position, and inference\nphase, while an adapter supports the skipped paths. We jointly train these modules\nto reduce computation and harmful responses while preserving performance on\nbenign tasks, targeting a better safety–efficiency trade-off. The pretrained back-\nbone remains frozen throughout, requiring no additional pretraining. Experimen-\ntal results on Llama-3-8B-Instruct show that SafeDepth reduces computation rela-\ntive to full-depth inference while largely preserving task performance. Compared\nwith FlexiDepth, it lowers unsafe-response rates across all five harmful-request\nbenchmarks, with the largest absolute decrease on HarmBench-HJ (from 55.44%\nto 25.25%), while reducing the XSTest false-refusal rate from 12.0% to 4.0%.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "07077995-854e-47ff-b329-63318b04ded5"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "SafeDepth: Safety-Aware Token-Level Adaptive Computation",
+ "authors": [],
+ "abstract": "Recent studies suggest that not every token needs to pass through all Transformer\nlayers, motivating token-level adaptive models that selectively skip layers to re-\nduce computation. Our experiments show that these execution choices also affect\nsafety: existing token-level adaptive reasoning models exhibit higher harmful-\nresponse rates than their reference backbones. The safety effects depend on which\nlayers are skipped and whether skipping occurs during prompt processing or an-\nswer generation. We further find that recognizing harmful requests and producing\nrefusals depend on different layer-wise computations. We introduce SafeDepth,\na lightweight, plug-in framework that uses selective layer execution to improve\nboth safety and efficiency. SafeDepth learns to retain computations that support\nsafe responses and bypass those that contribute to unsafe generation. A router se-\nlects layer execution based on token representations, layer position, and inference\nphase, while an adapter supports the skipped paths. We jointly train these modules\nto reduce computation and harmful responses while preserving performance on\nbenign tasks, targeting a better safety–efficiency trade-off. The pretrained back-\nbone remains frozen throughout, requiring no additional pretraining. Experimen-\ntal results on Llama-3-8B-Instruct show that SafeDepth reduces computation rela-\ntive to full-depth inference while largely preserving task performance. Compared\nwith FlexiDepth, it lowers unsafe-response rates across all five harmful-request\nbenchmarks, with the largest absolute decrease on HarmBench-HJ (from 55.44%\nto 25.25%), while reducing the XSTest false-refusal rate from 12.0% to 4.0%.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}