Optimizing Against Safety Representations: Activation-Guided Adversarial Suffixes and the Geometry of Refusal

Ege Çakar, Hannah Guan, Kayden Kehe
7/9/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Behavioral alignment in large language models often masks fragile internal safety representations. Recent work suggests that refusal behavior is mediated by low-dimensional directions in activation space.

Show full abstract

This raises questions about how such representations are structured, localized, and accessed by optimization. We study adversarial suffix attacks as a probe of representational alignment. We introduce Activation-Guided GCG, which replaces output-based objectives with losses that directly target a model's internal refusal direction. Across several objective variants, we find that suppressing refusal globally across all layers and positions is more effective than targeting a single layer-position pair. This suggests that safety representations are distributed across the forward pass rather than causally localized to a single site. We further introduce Soft-GCG, a continuous relaxation of discrete suffix optimization using Gumbel-Softmax. Soft-GCG achieves a 33 $\times$ speedup over standard GCG while improving attack success rates. Evaluating across model scales, we find that smaller models remain vulnerable while larger models resist both activation- and suffix-based attacks at our compute-constrained settings, consistent with larger and better safety trained models being harder to jailbreak. Together, our results clarify how safety mechanisms are encoded and can be broken in contemporary models. These insights provide concrete guidance for designing more robust and representation-aware alignment strategies.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{akar2026optimizing,
  title  = {Optimizing Against Safety Representations: Activation-Guided Adversarial Suffixes and the Geometry of Refusal},
  author = {Ege Çakar and Hannah Guan and Kayden Kehe},
  year   = {2026},
  eprint = {2607.08883},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.08883v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.08883.svg)](https://codeofpaper.com/paper/2607.08883)

Discussion