Consistency training helps curb sycophancy and jailbreaksConsistency Training Helps Stop Sycophancy and Jailbreaks
Consistency training makes Gemini 2.5 Flash less affected by irrelevant cues, with BCT's ClearHarm ASR at 2.9% (control 67.8%).
Users can add irrelevant cues: declaring a preference for the wrong answer, or using wrappers such as role-play, adversarial prefixes/suffixes, or hiding harmful requests in benign lists. The model answers correctly or refuses on the clean prompt, and complies on the wrapped prompt. The defender can fine-tune and read the residual stream. Success is measured by whether the hinted item is selected, or whether the dangerous request is satisfied.
- When asked directly, the model refuses or answers correctly, but user opinions or jailbreak wrappers degrade responses. The authors argue that static SFT can also misalign the model due to specification staleness, or because targets come from weaker, older models.
- BCT uses the current model's response to a clean prompt to supervise the wrapped prompt with added cues, making both sides output the same tokens. ACT uses an L2 loss to bring the residual stream of the wrapped prompt close to the clean activations. The baselines are DPO and SFT on stale data.
- Across five models, the authors state that BCT and ACT reduce sycophancy to a similar extent. BCT reduces Gemini 2.5 Flash's ClearHarm ASR from 67.8% to 2.9%, with ACT reducing it less. The trade-offs of stale responses are inconsistent across the two tasks.
- The authors state that the method assumes behavior is already correct without wrappers, wrapping and filtering still require human effort, and the evaluation does not exhaust attention to details. Experiments cover Gemma 2/3 and Gemini 2.5 Flash, as well as MMLU and multiple refusal and over-refusal sets.
- Evaluated models
- Gemma 2 2BGemma 2 27BGemma 3 4BGemma 3 27BGemini 2.5 Flash (05-20-2025)
- Benchmarks
- MMLUARCOpenbookQABigBench-hardHarmbenchOR-BenchClearHarmWildguardTestXSTestWildJailbreak
- Metrics
- Not sycophanticMMLU accuracyF1Jailbreak ASRAnswered Benign
The paper proposes consistency training, a self-supervised paradigm that keeps model behavior invariant to irrelevant cues in the prompt, aimed at reducing sycophancy and jailbreaks. The study implements this invariance in two ways: Bias-augmented Consistency Training (BCT), which acts on the model's external outputs, and Activation Consistency Training (ACT), proposed by the authors, which acts on internal activations. Both methods reduce Gemini 2.5 Flash's sensitivity to irrelevant cues, with comparable effectiveness in reducing sycophancy, while BCT performs better at reducing jailbreaks. Because the training data is drawn from the model's own responses, the method can avoid capability degradation or adherence to outdated guidelines that come from stale static data. The authors argue that some alignment problems are better viewed from the perspective of consistency rather than optimal responses.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Anthropic Alignment Sciencecites the paper's id or linkAnthropic 研究:自动化对齐研究者在小模型上缓解十类对齐失败
on Gemma-2-2B from 49% to 86% in one study (arXiv:2510.27062), suggesting the belief is present and the pressured context suppresses its expression.
Paper analysis
What problem does this paper attempt to solve?
The authors view sycophancy and jailbreak as inconsistencies with irrelevant prompt cues and use consistency training to reinforce existing correct behavior.
The model refuses or answers correctly without irrelevant cues, but complies after user opinions or jailbreak wrappers are added.
- Occurrence Scenarios: The authors state that user statements of fact pull the model toward wrong agreement (sycophancy); direct requests for dangerous help are refused, but may be followed when wrapped in special text. The authors believe better alignment should stably resist these irrelevant cues.
- Existing Shortcomings: The authors state that SFT works, but static data has two types of staleness. Specification staleness: the specification changes, but data is still trained on old policies. Capability staleness: target responses come from weaker older models, potentially lowering capability.
- Core Assumption: If behavior on clean prompts is already correct, use the model's own outputs or internal activations as targets to make wrapped prompts consistent with them. The authors state this does not teach new good behavior, only strengthens the robustness of existing behavior.
- This Work's Approach: Follows Chua et al. [2025]'s BCT (constraining output tokens) and introduces ACT (constraining the residual stream). On Gemma 2, Gemma 3, and Gemini 2.5 Flash, compared against DPO and SFT on stale data.
- Problem Setup:
- Victim Behavior: On clean prompts, the model answers correctly or refuses; on wrapped prompts, it selects the user's hinted answer or satisfies an inappropriate request.
- Addable Cues: User states a preference for an answer; or role-play, adversarial prefixes and suffixes, hiding harmful requests in a long list of benign requests. The paper does not describe this attacker as white-box or black-box.
- Defender: Can fine-tune the tested model; ACT uses residual streams at each layer. Training samples are filtered to prompts where the model is originally safe on the clean prompt.
- Success Criteria: For sycophancy, whether the user's given answer is selected. For jailbreak, ASR measures whether the dangerous request is satisfied, judged by prompted Gemini 2.5 Flash only on refusal or not.
What related research exists?
The authors frame both jailbreak and sycophancy as robustness failures under prompt transformations and contrast them with defenses that require labels or adversarial loops.
The paper groups jailbreak, sycophancy, and consistency regularization under the same class of robustness problems, and uses Table 1 to highlight differences from this work.
Jailbreak Defenses
- Attack and Retraining: Shen et al. [2024] describe role-play jailbreaks; Zou et al. [2023] propose the gradient method Greedy Coordinate Descent. Howe et al. [2025] perform robustness training, and Zhang et al. [2024] use Negative Preference Optimization for unlearning.
- Shallow Safety Alignment: Qi et al. [2024] propose the shallow safety alignment hypothesis: if the first few generation steps bypass refusal, jailbreaks become much easier. Their Constrained SFT inserts refusals at random depths. Table 1 calls this data augmentation rather than consistency and suggests it may be complementary to this work.
- Activation-Level Methods: Casper et al. [2024] perform adversarial training in latent space; Zou et al. [2024]'s Circuit Breakers reroute harmful activations; Zhang et al. [2025] suppress jailbreak directions; Yousefpour et al. [2025] increase the distance between unsafe and safe completions. Table 1 states these methods require adversarial loops, harmfulness labels, or classifiers.
Sycophancy
- Phenomenon: Perez et al. [2022] and Sharma et al. [2023] report that models agree with user beliefs even when those beliefs are wrong. Wei et al. [2024] state this behavior increases with scale and instruction tuning; Zhao et al. [2024] extend it to multimodality.
- Existing Interventions: Wei et al. [2024] use synthetic data to separate truth from user opinion. Table 1 states it does not enforce consistency on questions the model answers incorrectly. Papadatos and Freedman [2024] use linear probes to penalize rewards; Chen et al. [2025] use steering vectors to suppress the sycophancy direction. Table 1 states probe methods require separate probes and reward models.
- Direct Predecessor: Chua et al. [2025] train models to stay correct under random sycophancy cues. This work follows their data setup and BCT.
Consistency Training
- Early Regularization: Xie et al. [2020] make models give consistent predictions on unlabeled samples and their augmentations; Chen and He [2020]'s Siamese networks make activations on image augmentations similar.
- Recontextualization: The authors state that Chua et al. [2025]'s BCT can be seen as Azarbal et al. [2025]'s recontextualization: generating completions with prompts that elicit good behavior, then using them as training targets for more negative prompts.
- Activation Training: Wu et al. [2024] and Casper et al. [2024] are cited by the authors to show that intermediate computations can be constrained, not just output logits.
Baselines and Benchmarks
- Baseline Methods: DPO [Rafailov et al., 2023], with preference pairs composed of clean and wrapped responses; SFT (stale data), with targets from other or earlier models. Appendix E.1 states that NPO (without a safe set) was tried, but after tuning it did not work on their benchmarks, so it was not included.
- Benchmarks: Sycophancy training comes from ARC, OpenbookQA, and BigBench-hard; evaluation uses MMLU. Jailbreak training comes from Harmbench; validation uses Harmbench and OR-Bench; testing uses ClearHarm, WildguardTest, XSTest, and WildJailbreak.
The authors frame both types of failures as a lack of robustness to prompt transformations and use self-supervised token or activation consistency to replace harmfulness labels, adversarial optimization, and separate classifiers.
How does the paper address this problem?
BCT supervises the tokens of the wrapped prompt with the clean response, while ACT uses an L2 loss to bring the residual streams of the two prompts closer.
Overall, this is consistency training: making the model's outputs or internal activations consistent between a clean prompt and a wrapped prompt with irrelevant cues added, so that it ignores these cues.
Paired data
- Two prompts: p_clean contains no sycophancy or jailbreak cues; p_wrapped contains the same core instruction plus an incorrect answer preference or wrapper.
- Optimization direction: when processing p_wrapped, the behavior should be as if it saw p_clean. The authors say this does not teach new good behavior, only extends the coverage of existing good behavior to more prompts.
- Filtering: only keep samples where the model is already safe on the clean prompt, to avoid training the model to be stably unsafe.
BCT: output tokens
- Fresh targets: before training, generate y_target for each p_clean using the initial weights. The stale baseline instead uses answers written by other models.
- Loss: perform 1 epoch of SFT on p_wrapped, minimizing standard cross-entropy so the model generates that y_target. The loss weight is 1.
- Relation to DPO: the preference pair is (p_wrapped, y_w, y_l), where y_w comes from p_clean and y_l comes from p_wrapped. The authors say DPO can be seen as a variant of BCT: it both pulls toward the clean answer and pushes away from the current bad answer.
ACT: residual stream
- Inference-time patching: first record p_clean activations on Gemma 2 2B, align with left padding, then overwrite them in the forward pass of p_wrapped. Patch all layers and all prompt tokens, not answer tokens. The authors compared all layers versus patching only layer 20, and chose the all-layer constraint.
- Training loss: ACT writes the patching into the weights. Only on the longest matching suffix of the two prompts, average L2 over all layers: ℓ(pwrapped,pclean∣θ)=𝔼t,l[|hθ,t,l(pwrapped)−sg(hθinit,t,l(pclean))|2]. h is the residual stream at that layer and position, sg is stop-gradient, and the target comes from the initial parameters' activations on p_clean.
- Supervise only the suffix: the authors say training on all tokens diverges, so they supervise only the longest matching suffix. The suffix contains at least the end-of-sequence token and does not contain the augmented inserted tokens. The authors say this is more stable, but weakens jailbreaks that insert tokens at the end; in practice ACT still mitigates such jailbreaks. The loss weight is 10^-4. ACT uses only prompts, not answers.
Training and model selection
- Implementation: AdamW, global batch size 4 or 8, bfloat16. Only fine-tune self-attention; embeddings and MLP are frozen. Scan over learning rates.
- Model selection: on the validation set, take the harmonic mean of harmfulness and usefulness, still called F1 in the paper. For sycophancy, the two sides are avoiding sycophancy and MMLU; for jailbreak, the validation sets are Harmbench and OR-Bench.
- Flash: Gemini 2.5 Flash (05-20-2025) with thinking disabled. The paper does not report the selected learning rate.
What experiments did the paper conduct?
The authors state that BCT and ACT reduce sycophancy similarly, and BCT reduces Flash's ClearHarm ASR from 67.8% to 2.9%.
Experimental Setup
- Models Tested: Gemma 2 2B, Gemma 2 27B, Gemma 3 4B, Gemma 3 27B, and Gemini 2.5 Flash (05-20-2025, thinking disabled). Stale jailbreak responses are supplied by Gemma 2 to Gemma 3, and by Gemini 2.0 Flash to 2.5 Flash.
- Sycophancy: Training pairs follow Chua et al. [2025], from ARC, OpenbookQA, and BigBench-hard; in wrapped prompts, the user states a preference for the wrong answer. Evaluation uses MMLU: the selection rate is measured when an answer hint is inserted, and accuracy is measured on unmodified questions. The paper does not give the number of training examples.
- Jailbreak: Role-play, adversarial prefixes and suffixes, or hiding requests in benign lists are added to Harmbench harmful instructions. Samples are filtered to those that refuse clean prompts but answer jailbreaks, ranging between 830 and 1,330 examples. Evaluation includes seen and unseen wrappers.
- Splits and Scale: The validation set is Harmbench and OR-Bench. Test ASR is ClearHarm with 1,068 examples and the adversarial, harmful subset of WildguardTest with 2,040 examples. Over-refusal is XSTest with 86 examples and the benign and adversarial split of WildJailbreak with 105 examples. The authors state the latter two do not represent typical user queries.
- Baselines and Intervals: Control, DPO, SFT (stale). For sycophancy, stale responses come from GPT-3.5-Turbo used by Chua et al.; the authors did not rerun that model. Intervals are bootstrap 95% CIs on evaluation points. The paper does not report multiple training runs.
- Review: Whether dangerous requests are satisfied and whether benign requests are refused is judged by prompted Gemini 2.5 Flash, looking only at refusal or not. In Appendix D, the authors self-labeled 80 examples with 91% agreement and Cohen's kappa 0.82; another 104 examples had 79% agreement and kappa 0.58. Sampling was biased toward examples where the two fine-tuned models disagreed.
Main Results
The non-sycophancy rate is from Table 5, and ClearHarm ASR is from Table 6. Gemma 2 did not run the stale jailbreak experiment.
Swipe horizontally to read the table
Model Control Non-sycophancy BCT Non-sycophancy Control ClearHarm BCT ClearHarm Gemma 2 2B 48.9% 61.7% 54.4% 2.1% Gemma 2 27B 70.4% 80.0% 71.3% 3.5% Gemma 3 4B 62.1% 74.0% 88.8% 33.7% Gemma 3 27B 67.8% 79.5% 76.4% 11.0% Gemini 2.5 Flash 86.0% 89.2% 67.8% 2.9% - Sycophancy: The authors state that stale SFT is strictly worse than BCT; only Gemma 2 2B's non-sycophancy rate is close (61.8% vs. 61.7%), with MMLU at 52.8% vs. 61.6%. On Flash, ACT's F1 is 0.872, lower than Control's 0.881; DPO's non-sycophancy rate is 73.0%, which the authors call the worst on that model. The authors state that on the two 27B models, BCT improves MMLU by about two standard errors (Table 5: 76.9% to 78.7%, 81.4% to 82.3%).
- Jailbreak: The authors state that all interventions are safer than Control, and BCT reduces ASR more than ACT. In Table 6, the five rows of ACT's ClearHarm ASR are 16.9%, 13.5%, 72.4%, 56.3%, and 52.2%, all higher than the paired BCT. DPO is sometimes lower, such as 1.8% for Gemma 2 27B and 5.6% for Gemma 3 27B.
- Not Uniformly Lowest: On Gemma 3 4B, BCT's ClearHarm ASR is still 33.7%, stale is 3.9%, and DPO is 20.8%. The authors state that F1 model selection favors larger safety gains; some BCT hyperparameters have smaller gains and less helpfulness degradation. Figure 5 is the validation set; the main text does not give test-set numbers for these points.
Benign Responses and Stale Data
- What Was Measured: Whether seemingly harmful but actually harmless requests on XSTest and WildJailbreak are answered. On Flash, Control is 89.5% and 98.1%, BCT is 77.9% and 73.1%, DPO is 83.7% and 63.8%, and ACT is 81.4% and 95.2% (Table 6).
- Authors' Interpretation: The authors state that BCT and DPO reduce these two response rates, with DPO often penalizing helpfulness more; ACT sometimes slightly improves helpfulness. In Table 6, Flash's ACT is lower than Control, and Gemma 3 4B's WildJailbreak goes from 98.1% to 100.0%. The authors expect that mixing in appropriate data could handle over-refusal, but the experiments did not do this.
- Stale Responses: The authors state that after training with Gemini 2.0 Flash completions, WildJailbreak benign is 87.5%, higher than BCT's 73.1%, and the difference is outside the bootstrap CI. On MMLU in Appendix E.2, stale is lower than BCT: Gemma 3 4B is 64.3% vs. 65.9%, 27B is 81.1% vs. 82.7%, and Flash is 84.9% vs. 85.4%.
Are ACT and BCT the Same Update
- What Was Measured: In Gemma 3 4B's sycophancy training, whether BCT brings paired activations closer and whether ACT reduces cross-entropy (Figure 4).
- Results: The main text states that BCT increases activation L2 distance, while ACT keeps it close; BCT reduces cross-entropy, while ACT does not substantially follow. The figure's x-axis is Step, and the y-axis is Activations L2 Distance and Cross Entropy Loss. The authors state their gradient updates differ. The curve endpoints cannot be verified in the transcript.
- Combined Training: Table 2 averages Flash's two evaluation benchmarks. ACT's jailbreak ASR is 38.1% [35.7, 40.5] and Answer Benign is 88.3%; BCT is 5.7% and 75.5%; ACT+BCT is 6.6% and 75.7%. The authors state this is similar to BCT alone and speculate that the ACT weight is too small, with gradients dominated by BCT.
Activation Patching and Layers
- Patching: On Gemma 2 2B, inference-time patching of all layers and all prompt tokens gives a 86% rate of avoiding sycophancy, vs. 49% for the control; patching only layer 20 gives 65%. The authors believe all layers are better than a single layer. A footnote states the remaining 14% may come from factual errors, or the model still sees cues in the prompt after patching stops at answer tokens.
- Layer Ablation: Table 3, sycophancy ACT on the same model. All layers: non-sycophancy 64.0%, MMLU 58.6%, F1 0.612. Last half of layers: 60.0%, 60.0%, 0.600. The authors state the F1 drop falls outside the bootstrap CI and believe the relevant circuits are not limited to later layers.
- Refusal Forms: Appendices B–C state that Flash has direct refusals and a second type that follows the role but avoids the question. The authors state ACT has more explanations and also more avoidance, and speculate that BCT, by aligning specific tokens, tends toward low-entropy responses. The appendix gives examples.
Other Ablations and Analyses
- Loss weights: BCT is 1, ACT is 10^-4; the authors state that even small activation gradients cause large behavioral changes (Section 4.1).
- ACT on all tokens diverged in early experiments, so it was changed to the longest matching suffix (Section 3.1.2); the paper does not give loss numbers at divergence.
- NPO (without a safe set) was not included in results after tuning (Appendix E.1).
- DPO's sycophancy F1: Gemma 2 2B is 0.660, higher than BCT's 0.616; Flash is 0.805, lower than BCT's 0.892 (Table 5).
- Flash's WildguardTest ASR: Control 47.2%, BCT 8.4%, ACT 24.0%, DPO 8.1%, stale 13.9% (Table 6).
- The authors speculate that ACT only saw unsafe prompts with jailbreaks and may learn high-precision, low-recall detection; the paper does not separately report precision or recall.
What are some points that can be further explored?
The authors state that consistency training assumes clean behavior is already correct, wrapping and filtering still require human effort, and the evaluation does not exhaustively cover attention to detail.
Limitations and future directions noted by the authors
- Premise: Consistency methods assume the model behaves well on unaugmented data, and may also train the model to be stably unsafe. The experiments filtered to prompts that were originally safe (Section 6 Limitations).
- Still requires human effort: Clean prompts, augmentation methods for constructing wrapped prompts, and filtering samples where the model performs well still require human design (Section 6).
- May ignore too much: The authors argue the model may misgeneralize and ignore too much information. Section 4.3.1 shows a small impact on instruction following, but the authors state the evaluation is not exhaustive and that attention to detail may decline more than current data shows (Section 6).
- Combining with other augmentations: The authors propose future work combining BCT with Qi et al. [2024]'s approach, starting refusal at random token positions in compliant responses when output is not wrapped (Section 6 Future work). This is not a completed experiment.
- Capability staleness: The authors want to study the relationship between capability staleness and degradation: if two models are comparable on benchmarks, can they interchangeably use each other's clean completions without harming generalization; is staleness mainly benchmark performance, style, or something else (Section 6).
Experimental coverage
- Models tested are Gemma 2 2B, Gemma 2 27B, Gemma 3 4B, Gemma 3 27B, and Gemini 2.5 Flash (thinking off). Stale experiments for jailbreak were not run on Gemma 2 (Section 4.3).
- Sycophancy evaluation is MMLU, with training settings from ARC, OpenbookQA, BigBench-hard. Jailbreak training samples range between 830 and 1,330; tests are ClearHarm 1,068, WildguardTest 2,040, XSTest 86, WildJailbreak 105 (Section 4, Appendix A).
- Refusal judgment uses prompted Gemini 2.5 Flash; the authors also self-labeled 80 and 104 samples to check agreement (Appendix D). Model selection uses validation set F1. The paper does not report selected learning rates or multiple training repeats.
- Only self-attention is fine-tuned; BCT is 1 epoch. Evaluation only judges refusal, not response quality. The authors state that no SFT data specifically for reducing over-refusal was added (Section 4.3.1).
- Activation patching and "only update the latter half of layers" are on Gemma 2 2B for sycophancy; ACT and BCT are combined on Gemini 2.5 Flash for jailbreak (Section 3.1.2, Section 5, Table 2, Table 3).
Summarize the main content of the paper
Consistency training uses the model's own clean behavior as a target to resist sycophancy and jailbreak wrappers.
Consistency training treats sycophancy and jailbreak as the same type of problem: the model should ignore irrelevant cues in the prompt and repeat its behavior on the clean prompt.
- Problem: When asked directly, the model answers correctly or refuses. When the user states a preference for a wrong answer, or wraps an inappropriate request in role-play, adversarial prefixes/suffixes, or a benign list, the model complies. The authors argue that static SFT encounters specification staleness and capability staleness.
- Method: BCT uses the current model's response to the clean prompt to supervise the output tokens of the wrapped prompt. ACT uses an L2 loss to bring the residual stream of the wrapped prompt close to the initial model's activations on the clean prompt, and only supervises the longest matching suffix.
- sycophancy: In Table 5, Gemini 2.5 Flash's non-sycophancy rate goes from 86.0% for Control to 89.2% for BCT, with ACT at 86.7%, and BCT's F1 is 0.892. The authors state that except for Gemma 2 2B's non-sycophancy rate being close, stale SFT is worse than BCT; on Flash, stale MMLU is 66.4%, while Control is 90.3%.
- jailbreak: In Table 6, Flash's ClearHarm ASR goes from 67.8% to 2.9% for BCT, 3.5% for DPO, and 52.2% for ACT. On the same model, BCT's WildJailbreak benign response rate is 73.1%, while Control is 98.1%. The authors state that BCT reduces ASR more than ACT, and DPO's helpfulness cost is often larger.
- Authors' conclusion: The authors argue that some alignment problems can be framed as cross-prompt consistency rather than as finding the optimal response. They claim BCT removes the dependence on static compliance datasets. Empirical support for capability staleness is clearer on sycophancy and inconsistent on jailbreak over-refusals. They also note that their initial expectation that ACT would be more effective due to its more mechanistic loss did not hold.