Llama-CBC-3.1-8B-Instruct
CBC-aligned Llama-3.1-8B-Instruct checkpoint for Staying on Task: Defending Against Prompt Injection via Task Consistency Checking (EMNLP 2026).
CBC (Consistency Before Complying) improves prompt-injection resistance through task-consistency reasoning, supervised fine-tuning, and GRPO alignment while preserving task utility.
Code & evaluation · ModelScope mirror
Download
pip install -U huggingface_hub
from huggingface_hub import snapshot_download
model_dir = snapshot_download("XOTaiChi/grpo_llama3_0204")
Use the checkpoint's included tokenizer and chat template. See the project repository for evaluation code release updates. Training data and data-synthesis code are coming soon.
Citation
@inproceedings{xu-etal-2026-staying,
title = {Staying on Task: Defending Against Prompt Injection via Task Consistency Checking},
author = {Xu, Feiyue and Mu, Jiaming and Li, Fengting and Zhu, Bin Benjamin and Hu, Hongsheng and Liu, Qiankun and Wang, Shuo and He, Chaoxiang and Feng, Chao},
booktitle = {Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing},
year = {2026},
doi = {10.18653/2026.emnlp-main.2303},
url = {https://aclanthology.org/2026.emnlp-main.2303/}
}
License
Built with Llama. This model is subject to the Llama 3.1 Community License and Acceptable Use Policy included in this repository.