# Logit-Gap Steering: A Forward-Pass Diagnostic for Alignment Robustness

*Tung-Ling Li, Hongliang Liu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155257) · [OpenReview](https://openreview.net/forum?id=73zQs0dgXW) · [alphaXiv](https://www.alphaxiv.org/abs/2506.24056) · [Open on the map](../papers.html#p155257)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [LLM Safety Alignment](../pgroup/208.md) · Type: new method · Keywords: logit gap, alignment robustness, suffix attack, forward-pass diagnostic, language model safety

Areas: [Safety & Security](../areas/safety.md) › Safe Alignment › Refusal and Activation Steering; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Safety › Safety and Privacy Benchmarks

## Summary
Logit-gap steering is a gradient-free, forward-pass diagnostic that finds suffixes to close the refusal-affirmation logit gap, improving alignment robustness.

## Explained to a 5-year-old
When we ask a big computer program a dangerous question, it should answer with a safe answer. The program learns to be safe by being trained with special lessons. To check if it is safe, we look at the difference between the score of a safe answer and the score of a dangerous answer. If the difference is big, the program is likely to stay safe. If the difference is small, the program might be tricked.

## Explained to a 5-year-old, longer
When we ask a big computer program a dangerous question, it should answer with a safe answer. The program learns to be safe by being trained with special lessons. To check if it is safe, we look at the difference between the score of a safe answer and the score of a dangerous answer. If the difference is big, the program is likely to stay safe. If the difference is small, the program might be tricked. We search for short pieces of text that, when added to the question, make the dangerous answer look better. We do this search by just looking at the program’s answers, without changing anything inside it. This makes the check fast and cheap. We can find many such tricks in just a few minutes on a regular computer. The tricks we find work on small versions of the program and also on huge versions. When we use many tricks together, the program refuses many dangerous requests. This tells us how robust the safety of the program really is. It also helps us compare different safety methods quickly.

## For a technical reader
The paper introduces a forward-pass diagnostic that measures the logit gap between refusal and affirmative tokens for each prompt. It then describes a gradient-free search that selects suffixes from the model’s own high-probability candidates to close this gap. The method is evaluated on AdvBench and HarmBench, showing high True ASR and low computational cost compared to existing gradient-based attacks.

## Problem
Aligned language models need to reliably refuse unsafe requests, but existing alignment methods may be fragile; there is a need for a diagnostic that can detect when the model’s refusal margin is reduced, indicating potential vulnerabilities.

## Method
The approach uses a forward-pass search over the model’s own high-probability token candidates to find suffixes whose cumulative effect reduces the logit margin between refusal and affirmative tokens, without requiring gradients.

## Results
Alignment widens the refusal-affirmation logit gap on 97.5-99.8 % of toxic prompts, and the discovered suffixes achieve 38-96 % True ASR on AdvBench and HarmBench across 13 models, with an 8-suffix ensemble costing about 26 000 forward-pass equivalents (≈2 min on an A100).

## Contributions
A forward-pass diagnostic that measures the refusal-affirmation logit gap per prompt, and a gradient-free suffix search that finds in-distribution suffixes to close this gap, enabling efficient robustness evaluation and transfer across model sizes.

## Practical relevance
It provides a fast, low-cost diagnostic for alignment robustness that can be run on a single GPU in minutes, enabling rapid safety evaluation of large language models.

## Research questions this paper is counted under

- [How can we reliably align language models so that internal safety judgments consistently lead to appropriate refusal behavior?](../q/171.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155257)
