COLING 2025main3 citations

ALIS: Aligned LLM Instruction Security Strategy for Unsafe Input Prompt

Xinhao Song, Sufeng Duan, Gongshen Liu

Abstract

In large language models, existing instruction tuning methods may fail to balance the performance with robustness against attacks from user input like prompt injection and jailbreaking. Inspired by computer hardware and operating systems, we propose an instruction tuning paradigm named Aligned LLM Instruction Security Strategy (ALIS) to enhance model performance by decomposing user inputs into irreducible atomic instructions and organizing them into instruction streams which will guide the response generation of model. ALIS is a hierarchical structure, in which user inputs and system prompts are treated as user and kernel mode instructions respectively. Based on ALIS, the model can maintain security constraints by ignoring or rejecting the input instructions when user mode instructions attempt to conflict with kernel mode instructions. To build ALIS, we also develop an automatic instruction generation method for training ALIS, and give one instruction decomposition task and respective datasets. Notably, the ALIS framework with a small model to generate instruction streams still improve the resilience of LLM to attacks substantially without any lose on general capabilities.

BibTeX
@inproceedings{song-etal-2025-alis,
    title = "{ALIS}: Aligned {LLM} Instruction Security Strategy for Unsafe Input Prompt",
    author = "Song, Xinhao  and
      Duan, Sufeng  and
      Liu, Gongshen",
    editor = "Rambow, Owen  and
      Wanner, Leo  and
      Apidianaki, Marianna  and
      Al-Khalifa, Hend  and
      Eugenio, Barbara Di  and
      Schockaert, Steven",
    booktitle = "Proceedings of the 31st International Conference on Computational Linguistics",
    month = jan,
    year = "2025",
    address = "Abu Dhabi, UAE",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.coling-main.613/",
    pages = "9124--9146"
}
ALIS: Aligned LLM Instruction Security Strategy for Unsafe Input Prompt · COLING 2025