LookAhead Tuning: Safer Language Models via Partial Answer Previews
Liu, Kangwei, Wang, Mengru, Luo, Yujie, Yuan, Lin, Sun, Mengshu, Zhang, Ningyu, Liang, Lei, Zhang, Zhiqiang, Zhou, Jun, Chen, Huajun
–arXiv.org Artificial Intelligence
Fine-tuning enables large language models (LLMs) to adapt to specific domains, but often undermines their previously established safety alignment. To mitigate the degradation of model safety during fine-tuning, we introduce LookAhead Tuning, which comprises two simple, low-resource, and effective data-driven methods that modify training data by previewing partial answer prefixes. Both methods aim to preserve the model's inherent safety mechanisms by minimizing perturbations to initial token distributions. Comprehensive experiments demonstrate that LookAhead Tuning effectively maintains model safety without sacrificing robust performance on downstream tasks. Our findings position LookAhead Tuning as a reliable and efficient solution for the safe and effective adaptation of LLMs. Code is released at https://github.com/zjunlp/LookAheadTuning.
arXiv.org Artificial Intelligence
Mar-24-2025
- Country:
- North America > United States
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Florida > Miami-Dade County
- Miami (0.04)
- Louisiana > Orleans Parish
- Europe > Spain
- Catalonia > Barcelona Province > Barcelona (0.04)
- Asia
- North America > United States
- Genre:
- Research Report > New Finding (0.34)
- Industry:
- Information Technology > Security & Privacy (0.68)
- Technology: