TY - GEN
T1 - Safeguarding Language Models via Self-Destruct Trapdoor
AU - Katz, Shahar
AU - Alon, Bar
AU - Shaulov, Ariel
AU - Wolf, Lior
AU - Sharif, Mahmood
N1 - Publisher Copyright:
© 2026 Association for Computational Linguistics.
PY - 2026/1/1
Y1 - 2026/1/1
N2 - The potential misuse and misalignment of language models (LMs) is a central safety concern. This work presents Self-Destruct, a novel mechanism to restrict specific behaviors in LMs by leveraging overlooked properties of the underlying hardware. We observe that the LM frameworks use limited-precision formats (e.g., BF16), which are vulnerable to overflow errors during matrix multiplications. Exploiting this property, Self-Destruct replaces selected weights in pre-trained LM layers with values that act as traps, triggering a system error only when the model engages in targeted behaviors, such as harmful text generation, while leaving normal functionality unaffected. Unlike posthoc filters, this safeguard is embedded directly within the model, introduces neither inference overhead nor auxiliary models, and requires only a set of examples for calibration. Extensive experiments with five LM families demonstrate that Self-Destruct provides competitive protection against jailbreak attacks while preserving accuracy on standard benchmarks. In addition, we also show that Self-Destruct is versatile, helping mitigate biased text generation and enable model fingerprinting, highlighting the potential of hardware-aware safeguards as an efficient, low-overhead complement to existing LM defenses. Our code is available at: https://github.com/shaharkatz3/ LLM-Self-Destruct-Trapdoor.
AB - The potential misuse and misalignment of language models (LMs) is a central safety concern. This work presents Self-Destruct, a novel mechanism to restrict specific behaviors in LMs by leveraging overlooked properties of the underlying hardware. We observe that the LM frameworks use limited-precision formats (e.g., BF16), which are vulnerable to overflow errors during matrix multiplications. Exploiting this property, Self-Destruct replaces selected weights in pre-trained LM layers with values that act as traps, triggering a system error only when the model engages in targeted behaviors, such as harmful text generation, while leaving normal functionality unaffected. Unlike posthoc filters, this safeguard is embedded directly within the model, introduces neither inference overhead nor auxiliary models, and requires only a set of examples for calibration. Extensive experiments with five LM families demonstrate that Self-Destruct provides competitive protection against jailbreak attacks while preserving accuracy on standard benchmarks. In addition, we also show that Self-Destruct is versatile, helping mitigate biased text generation and enable model fingerprinting, highlighting the potential of hardware-aware safeguards as an efficient, low-overhead complement to existing LM defenses. Our code is available at: https://github.com/shaharkatz3/ LLM-Self-Destruct-Trapdoor.
UR - https://www.scopus.com/pages/publications/105040507288
U2 - 10.18653/v1/2026.eacl-long.326
DO - 10.18653/v1/2026.eacl-long.326
M3 - Conference contribution
AN - SCOPUS:105040507288
T3 - EACL 2026 - 19th Conference of the European Chapter of the Association for Computational Linguistics, Proceedings of the Conference, Vol. 1 - (Long Papers)
SP - 6939
EP - 6958
BT - Long Papers
A2 - Demberg, Vera
A2 - Inui, Kentaro
A2 - Marquez Villodre, Lluis
PB - Association for Computational Linguistics (ACL)
T2 - 19th Conference of the European Chapter of the Association for Computational Linguistics, EACL 2026
Y2 - 24 March 2026 through 29 March 2026
ER -