English

Attention Shift: Steering AI Away from Unsafe Content

Computer Vision and Pattern Recognition 2024-10-08 v1 Cryptography and Security Machine Learning

Abstract

This study investigates the generation of unsafe or harmful content in state-of-the-art generative models, focusing on methods for restricting such generations. We introduce a novel training-free approach using attention reweighing to remove unsafe concepts without additional training during inference. We compare our method against existing ablation methods, evaluating the performance on both, direct and adversarial jailbreak prompts, using qualitative and quantitative metrics. We hypothesize potential reasons for the observed results and discuss the limitations and broader implications of content restriction.

Keywords

Cite

@article{arxiv.2410.04447,
  title  = {Attention Shift: Steering AI Away from Unsafe Content},
  author = {Shivank Garg and Manyana Tiwari},
  journal= {arXiv preprint arXiv:2410.04447},
  year   = {2024}
}
R2 v1 2026-06-28T19:10:13.765Z