Master's research thesis
1The question
AI chatbots are trained to say no to dangerous requests. Can adding a few nonsense words to the end of a question trick one into saying yes?
3What it found
How Llama 2 answered, across all 3,909 attacks of the best run
JailbrokenPartially jailbrokenRefused
Same model, same request: the suffix only adds a few words, yet it tips the decision from refusing to answering. With it, replies began with “Sure, here is” on all 25 requests it had never seen. Read for meaning, 75 % were real answers.
What the suffix does inside the model
Jailbreaking Llama 2,
and measuring it honestly
Goal: find out how easily a safety-trained chatbot can be pushed into answers it should refuse, and how to measure that honestly. I reproduced the GCG attack, which searches for a gibberish suffix that makes Llama‑2‑7B‑Chat comply, then trained one suffix on many requests at once (a multi-goal, progressive curriculum) and added a semantic-similarity loss. After 16 hours on two 48 GB GPUs, the best suffix “worked” on all 25 requests it had never seen, if you only check the first words of the reply. Reading what the replies actually say gives 75 %: the usual metric overstates the threat.
The full story Thesis (PDF) The original GCG paper Comillas ICAI






