Abstract: Fine-tuning enables safety-aligned code language models to adapt to diverse downstream tasks. However, training on untrusted data can severely undermine their ability to refuse harmful requests. Notably, we find that models comply with harmful requests even though harmfulness information remains highly decodable from their internal representations.
[…]
Content was trimmed to protect the source. Please visit the original article for the full text.
Read the original article:
Trained on Harm, Still Refusing: A Training-Time Defense for Code Generation
