cs.LGApr 12, 2026

Latent Instruction Representation Alignment: defending against jailbreaks, backdoors and undesired knowledge in LLMs

Authors: Eric Easley, Sebastian Farquhar

Organizations: ML Alignment & Theory Scholars Berkeley, CA, USA · OATML, Department of Computer Science University of Oxford, Oxford, UK

Abstract

We address jailbreaks, backdoors, and unlearning for large language models (LLMs). Unlike prior work, which trains LLMs based on their actions when given malign instructions, our method specifically trains the model to change how it interprets instructions. Our method, Latent Instruction Representation Alignment (LIRA), greatly improves generalization. We further boost generalization through an internally adversarial training algorithm. Our methods block over 99% of PEZ jailbreak attacks; remove a challenging insecure code backdoor; and achieve optimal forgetting on WMDP cyber with negligible loss of benign capabilities.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledge

    Apr 8, 2024Weikai Lu, Ziqian Zeng, Jianwei Wang +5LLM Safety AlignmentLLM Jailbreak Attacks

  2. Reactivating Alignment: Defending LLMs from Jailbreaks via Intention-Aware Input-Output Matching

    Oct 3, 2026Luoyu Chen, Weiqi Wang, Chenhan Zhang +2Jailbreak DefenseLLM Safety Alignment

  3. One Word at a Time: Incremental Completion Decomposition Breaks LLM Safety

    Apr 1, 2026Samee Arif, Naihao Deng, Zhijing Jin +1LLM Jailbreak AttacksLanguage Model Safety Evaluation