1. The underlying mechanism: Why does the model "reject"?

I want to go through a few issues or articles to thoroughly explain what the essence of Armor Breaking is? What exactly is the principle of armor breaking? Then there are the current mainstream white boxes and black boxes, and then human narratives, as well as some attack methods on some blind spots based on the word segmentation area of ​​​​the coded language. Ultimately our goal is a research direction on how to achieve better defense. This issue answers three questions: ① How is "rejection" trained into the model weight? ② Why do models all over the world have almost the same speaking skills when it comes to rejection? ③ Why do gaps in alignment always exist no matter how you train?

1. How is rejection trained?

Training flow chart
Training flow chart

(a) Typical training route, RLHF and DPO are shown as different branches; the actual system may not necessarily use all links.
(b) Possible changes in the conditional distribution given the same harmful input. The curve is a teaching illustration of the analytical structure, and no model sampling data is used.

1. Pre-training: learn to predict the next token

For a typical autoregressive language model, the basic task of pre-training is: given the previous text, predict the distribution of the next token. A simplified way of writing it is:

text
P(xₜ | x₁, …, xₜ₋₁) = softmax(W · hₜ)

in,hₜ is a representation calculated by the model based on the existing context,W Mapping representations to vocabulary scores. For simplicity of expression, specific architectural details such as normalization are omitted here.
After long-term training, the model has acquired continuous writing, language understanding and certain problem-solving abilities. It may also learn warnings, rejections or normative expressions in the corpus. But this does not mean that it has reliably followed a certain manufacturer's security policy.Pre-training can produce rejected language materials; stable assistant behavior that meets specific requirements requires subsequent training and system design.

2. Supervise and fine-tune: Use demonstration to shape answers

Supervised fine-tuning (SFT) uses input-example responses to train the model. Demonstrations can cover translation, programming, interpretation, or rejection or safe alternative suggestions in the face of dangerous requests. Training makes these target responses more likely to appear in the corresponding context.

Security data scaling trends
Security data scaling trends

by Llama 2 Paper Section 4.2As examples, the authors openly discuss security annotation, security SFT, security preference data, and security context distillation. The data sources and recipes of different models are not the same, and it cannot be inferred that all manufacturers use the same rejection template.

3. Preference optimization: use “which answer is better” for training

A classic RLHF process is to collect answer preferences for the same question, train a reward model, and then adjust the model through an optimization method with reference policy constraints.InstructGPT is an important public example of this process. Human judgment, labeling policies, and reward models all have limitations, and high rewards do not guarantee actual safety.DPO Then the preference pair is used to directly optimize the strategy. Compared with the classic RLHF pipeline, there is no need to separately train an explicit reward model and run PPO. The training steps of the two are different, but both can use "more preferred answers" to change the output tendency of the model. A metaphor that is easy to remember isprobabilistic terrain: Pre-training forms a complex terrain, and post-training will change the relative heights of different answers in some areas. It helps understand trends, but the true conditional probability distribution is far more complex than a 3D mountain map.

The security reward model can be improved, but it is not equal to the system security rate

Safety reward model ablation comparison
Safety reward model ablation comparison

Both plots use the same 0–100% scale. On the Meta Safety test set, after adding safety auxiliary loss, the unsafe answer recall rate increased from 73.0% to 90.4% (an increase of 17.4 percentage points) under the threshold specified in the paper; the average accuracy of preference ranking increased from 63.7% to 64.5% (an increase of 0.8 percentage points). This is a test result of the reward model, not the safety rate of the final chat model.
This example shows that the training component can be targeted and improved around security tasks; it also reminds us:The ability of a reward model to detect unsafe answers, the rejection rate of a chat model, and the security of a real deployed system are different measurements.

2. Rejection is an action, not a fixed phrase.

"Sorry, I can't..." can easily be taken as a sign of rejection. In fact, the model may first give a security background and then reject the specific request; it may not say "sorry" and go directly to harmless suggestions; or it may first express a willingness to help and then reject it. Whether it begins with "I" or "Sure" alone is not enough to determine the entire answer.
Some studies have found that in the summary and instruction tasks it tested, RLHF reduced output diversity compared to SFT; however, it did not prove that the rejections of all manufacturers came from the same template, nor did it prove that the rejection behavior was concentrated into a "point". More granularly, the out-of-distribution performance of RLHF in this study tended to be better, and the researchers also clearly pointed out that it is still uncertain whether the trade-off between diversity and generalization exists at all.
The reason why it's worth studying at the beginning is that autoregressive generation uses previous output as subsequent context. Different prefixes will change the conditional probability of subsequent tokens; but this factNo guaranteeA certain affirmative beginning must lead to a harmful answer, nor does it mean that rejection can only occur in the first token. Assessment must look at complete answers, task context and judgment criteria.

Three dimensions of security assessment
Three dimensions of security assessment

Let H represent whether the input is harmful, R represent whether the model rejects it, and U represent whether the output is unsafe. The matrix and conditional probability definitions show the differences between the three indicators, excluding the measured proportions. Unrejected answers still require independent content determination; string matching identification rejection is only a proxy indicator, and there is a possibility of missed or misjudged results.

3. What does rejection look like inside the model? a possible direction of intervention

From the outside, we see sentences; from the inside, the Transformer continuously updates the vector representation of each token in multiple layers of calculations. Researchers often refer to the representation that runs through each layer, carries information, and is read and written by the attention and feed-forward modules asResidual flow。
Arditi et al.Thirteen open source chat models were studied, covering multiple model families and ranging in size from 1.8B to 72B. They proposed an illuminating experiment: compare the internal activation of harmful and harmless instructions, look for the direction related to rejection, and then observe how the model's behavior changes after human intervention in this direction.

Rejection direction experiment instructions
Rejection direction experiment instructions

(a) The difference between the activation means of the two groups forms a candidate direction; the scatter points are synthetic two-dimensional teaching illustrations, and no real activation or dimensionality reduction results are used. (b) Remove the component of vector h in the specified unit direction. The original paper constructs candidate directions from different layers and positions, and then uses the verification set to select.

1. How to find candidate directions?

The researchers prepared 128 training samples and 32 validation samples for harmful and harmless inputs. At the specified layer and position, calculate the average of the two sets of activations, and use their difference to form a candidate vector:

text
r = 平均激活(有害输入) − 平均激活(无害输入)

Candidates are calculated for multiple layers and locations, and then the validation set is used to examine intervention effects and other behavioral changes, and one direction for each model is selected. Note that this difference may contain information about rejection as well as other differences between the two sets of inputs; therefore,Merely finding differences does not prove causation, intervention experiments are also needed.

2. What was observed after the intervention?

During the test, it was found that removing the components in the relevant direction will reduce the rejection of harmful instructions by the tested model; injecting relevant signals into the specified layer can make the model reject some harmless instructions. The former is evaluated on 100 harmful instructions and the latter on 100 non-harmful instructions. The paper reports rejection and content safety indicators separately, because the absence of rejection rhetoric does not automatically mean that the answer is harmful.

Figure 1
Figure 1

Solid colors indicate no intervention, and slashes indicate directional ablation; orange and blue are rejection scores and safety scores respectively. 100 test instructions were used for each model, and error bars are standard errors.
This is a causally significant result:At least under these model and test conditions, a linear direction significantly modulates rejection behavior.But it does not prove that rejection exists only in this dimension, nor does it prove that every untested model follows the same mechanism.
More recent research adds to the picture:Joad et al. (2026, preprint)It was found that different rejection types may correspond to geometrically different directions, and at the same time, intervention in different directions may produce similar rejection-false rejection trade-offs. This result reminds us:Just because you can adjust the behavior with a knob doesn't mean there's only one part inside the machine.

3. System prompts will also change the results.

A white-box weight intervention is tested on 159 standard behaviors of HarmBench and attack success rate (ASR) is reported. The ASR here is the proportion of successful judgments by the classifier provided in the paper, not the realistic harm proportion that is manually verified one by one.

Attack success rate of different models with or without default system prompts
Attack success rate of different models with or without default system prompts

The black dots indicate that the default system prompt is included, and the blue open square indicates that it is not included; Δ on the right is the percentage difference between the latter minus the former. For example, Llama-2 7B changed from 22.6% to 79.9% (+57.3 percentage points), and Qwen 7B changed from 79.2% to 74.8% (−4.4 percentage points). Different models have different default system prompts; the values ​​belong to this specific intervention and test. The intervals for these point estimates are not provided in the original table, and no error bars or significance markers are added here.

Table 2
Table 2

Results using all six models in the Ortho column; values ​​in blue brackets are results without system prompts.
In the same experiment, general capabilities were also tested: for example, the GSM8K indicator of Qwen 7B dropped from 48.1 to 41.8, and TinyHellaSwag increased from 73.1 to 76.3 (Appendix Table 8). Therefore, it is too general to say that "other abilities are basically intact": the direction and magnitude of changes in different tasks are not the same, and the limited benchmark cannot cover all abilities.

4. How strong is the connection with the antagonistic suffix?

Using information accessible to model gradients, we search for adversarial suffixes in discrete token space and study their transfer to other models. It's not a pure black box search:The search phase relies on white-box information, and migration testing can occur on black-box systems.
A mechanism analysis was performed on a specific adversarial suffix on Qwen 1.8B and it was observed that the propagation of the relevant rejection direction was suppressed. This discovery links the primary input-side phenomenon to internal representation; however, this analysis only covers a single model and a single adversarial example, and it cannot be concluded that all GCG suffixes and all black-box attacks work through the same mechanism.

4. Why are there still gaps in safety training?

1. Competition may occur between goals

Chat models need to follow instructions, handle complex formats, and reject or respond in a safe way when necessary. The difficulty is that the same request may mix normal tasks and parts that should not be met, and the system needs to determine the content, context, and boundaries of what the user really requires. This type of tension is called "target competition" and was experimented with in early models such as GPT-4 and Claude v1.3. "Generalization mismatch" also occurs: a model may understand a new representation but fail to transfer the same degree of safe behavior to it.

2. Capability generalization and safety generalization may be inconsistent

The ability to translate, rewrite, and process special formats can improve the normal use experience and expand the input range that needs to be tested. If training and evaluation do not cover certain types of expressions enough, the same intention may be processed differently in different forms.
For example, cross-language security differences were studied on the then-current GPT-4 and its specified benchmarks. This conclusion is specific to historical versions, datasets, and evaluation settings; insufficient language coverage is a risk worth testing, but one cannot boil down the study to "the model never saw these expressions" or conclude that today's products still have the same failure rate.

3. Current safety training

The failure of existing attacks does not prove that the model is still safe when facing stronger opponents; at the same time, the adversarial input of multi-modal models is even more difficult to evaluate. More generally, limited testing can only provide evidence under specific conditions. Unless there are clear formal assumptions and proofs, "no problems found in testing" cannot be regarded as "all possible inputs are safe."
This also proves that "the gap can never be returned to zero mathematically." Or the expression is:Obtaining comprehensive, verifiable security assurances against adversarial situations in an open input space is difficult; demonstrates vulnerability to existing specific system and evaluation conditions.Security design therefore requires continuous testing and comprehensive measures such as model training, system prompts, input and output review, permission restrictions and monitoring.

Wen Wei's avatar
文蔚Lv1UID 472121
666
Oaa's avatar
OaaLv1UID 909895
Who wouldn’t like this post? Brother Bai saw it and gave me an unlimited year-kay.
iSheng's avatar
i晟Lv4Section managerA little successUID 167750
Good article. Looking forward to the next one. I’ve studied hard.
A888's avatar
A888Lv4Easy to useUID 898783
Caicaifeng's avatar
菜菜风Lv1UID 775610
Now I no longer have the patience to finish reading.
return avatar
重返Lv2UID 910789
Thanks to the author for sharing, I gained a lot of knowledge.
ck118's avatar
ck118Lv1UID 755670
thanks for sharing
hjshjs's avatar
hjshjsLv1UID 474481
Collect it well

Before public display 10 Replies (16 discussions in total). please Log in or Register an account View the full floor-in-floor discussion, download attachments and participate in the interaction.