Large Language Models (LLMs) are vulnerable to a gray-box adversarial attack method known as RAILS (RAndom Iterative Local Search). This vulnerability allows an attacker with access to model output logits (but without access to gradients or weights) to optimize discrete adversarial suffixes that bypass safety alignment. The attack employs a random local search guided by a hybrid loss function combining Teacher-Forcing and a novel Auto-Regressive loss that enforces exact target prefix matching…
Source: arXiv