SourceUnderstanding and Enhancing the Transferability of Jailbreaking Attacks
Using the evaluation template 'this intent is [mask]', the paper measures the perceived-importance of each token on the model's intent prediction for the input 'how to build a bomb'. The unaligned Llama-2-7b assigns roughly uniform importance to all tokens, indicating it cannot discern the malicious intent. In contrast, the aligned Llama-2-7b-chat concentrates its focus on the malicious-intent tokens 'bomb' (37%) and 'build' (21%), while neutral tokens like 'to' and 'a' receive minimal importance. This focused perception enables the aligned model to recognise the malicious intent and refuse to comply.