AI Security · Prompt injection
Greedy Coordinate Gradient
Also known as: GCG
Greedy Coordinate Gradient searches discrete tokens for an Adversarial Suffix. It ranks replacements at each modifiable position with gradients, forward-evaluates sampled one-token candidates, and keeps the lowest-loss sample. Lower target loss does not prove an unsafe model response.