red-teaming an LLM
Red-teaming borrows a term from military and security practice: you appoint people to play the attacker and try, in good faith, to make the system fail before a real adversary does. For an LLM that means deliberately hunting for prompts that produce harmful content, leak private data, follow injected instructions, give dangerous advice, or behave in biased or deceptive ways. The point is not to prove the model is good; it is to find, document, and fix the specific ways it is bad.
Good red-teaming is structured, not random poking. Teams enumerate a threat model (who would attack, to what end), cover defined harm categories, and probe each with escalating creativity: paraphrasing, role-play, multi-turn setups, encoding, and chaining tricks together. Domain experts matter, because judging whether a chemistry or cyber answer is actually dangerous requires knowing the field. Findings are logged into evaluation suites so that fixes can be verified and regressions caught later.
Red-teaming is necessary but not sufficient. Humans are slow, expensive, and biased toward the attacks they can imagine, so they miss whole regions of the input space; that is why automated search is used alongside them. A model that survives red-teaming is better tested, not proven safe, and the absence of a found exploit is never proof that none exists.
Red-teaming maps the boundary of where a model fails; it cannot certify the interior is safe, because untested prompts always remain.