Skip to content

InvThink: Premortem reasoning for safer language modelsInvThink: Premortem Reasoning for Safer Language Models

arXiv· arXiv:2510.01569· Yubin Kim, Taehan Kim, Eugene Park, Chunjong Park, Cynthia Breazeal, Daniel McDuff, Hae Won ParkMIT; Samsung Research; Google DeepMind; Google ResearchIndexed by this site · 2026-10-14· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

InvThink has the model enumerate harms before answering; on Qwen-3-8B, SFT+RL TRIDENT is 1.22±0.02.

Questions
Safety alignment usually only supervises the final answer, with no signal indicating which harms the model should have considered. The authors state this makes it difficult to handle adversarial prompts and long-tail harms, and often incurs a safety tax of degraded reasoning ability.
Methods
InvThink inserts failure-mode representations before answering: enumerating candidate harms, analyzing consequences, writing them as mitigation constraints, then generating the response. The same structure is used for prompting, SFT on Gemini-2.5 Pro trajectories, and GRPO with Moderation API risk scores as rewards.
Experiments and results
InvThink SFT+RL achieves 0.00 Insider Threat on all three models. Qwen-3-8B's TRIDENT harmfulness is 1.22±0.02. The authors state that the prompting version reduces the mean harmfulness from 3.22 to 2.19 relative to zero-shot.
Limitations and future work
The authors note that multi-teacher and weaker-teacher comparisons, separation from distillation, and multimodal, multi-turn, multi-agent deployment remain open; Table 5 is a single seed, the GRPO data ratio was not swept, and malicious z_inv hijacking was not evaluated. The main result tables cover three open-source models, with evaluation by a three-model ensemble.
Experimental setupGemma-7B-it、Qwen-2.5-7B et al. · SafetyBench、TRIDENT et al. · SafetyBench accuracy、TRIDENT harmfulness et al.
Evaluated models
Gemma-7B-itQwen-2.5-7BQwen-3-8BGemma-3 (270M, 1B, 4B, 12B, 27B)Qwen-2.5 series (0.5B, 1.5B, 3B, 14B, 32B, 72B)Qwen-3 series (0.6B, 1.7B, 4B, 14B, 32B)Gemini-2.5 ProGemini models (2.0-flash, 2.5-flash)GPT family (GPT-4.1, GPT-4o, GPT-4o-mini, GPT-4.1-mini, o3)gpt-5 family (gpt-5, gpt-5-mini, gpt-5-nano)Claude models (Opus-4-20250514, Sonnet-4-20250514, 3.7-Sonnet-20250219, Claude-3.5-Sonnet, Claude-4.1-Opus)gpt-oss-safeguardgpt-oss-20bgpt-oss-120bdeepseek-r1o3-mini
Benchmarks
SafetyBenchTRIDENTInsider ThreatNemotron Content Safety Dataset V2GPQAMATH500ARC-ChallengeMMLUStrongREJECTXSTestGSM8K
Metrics
SafetyBench accuracyTRIDENT harmfulnessSafety ScoreInsider Threat harmful-action rateASRFRRCRR
AI summaryInvThink is a training and prompting framework that requires the model to enumerate, analyze, and constrain potential failures before giving a final answer. It divides generation into three steps: enumerating harms, analyzing consequences, and answering under mitigation constraints, and scales on three types of LLMs with supervised fine-tuning and GRPO reinforcement learning. Larger models achieve higher safety scores without degrading standard benchmark reasoning, reducing harm by up to 32% compared to zero-shot baselines and 16% compared to SafetyPrompt in specialized ethics and agent-misalignment scenarios.

InvThink is a training and prompting framework that requires the model to enumerate, analyze, and constrain potential failures before giving a final answer. It divides generation into three steps: enumerating harms, analyzing consequences, and answering under mitigation constraints, and scales on three types of LLMs with supervised fine-tuning and GRPO reinforcement learning. Larger models achieve higher safety scores without degrading standard benchmark reasoning, reducing harm by up to 32% compared to zero-shot baselines and 16% compared to SafetyPrompt in specialized ethics and agent-misalignment scenarios.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors propose InvThink, which makes the model enumerate harms, analyze consequences, and write constraints before answering.

    Existing safety alignment only supervises the final answer, with no signal indicating which harms the model should have considered in advance.

    • Where it appears: The authors state that LLMs are used in mathematics, code, robotics, medicine, and scientific discovery, but still exhibit hallucination, social bias, privacy leakage, and unsafe advice in high-risk domains. The authors state that these risks tend to become more subtle and harder to detect as scale increases.
    • Existing limitations: The authors state that RLHF, Constitutional AI, and adversarial red teaming all only supervise the final answer, struggle with adversarial prompts or general jailbreaks, fail to cover long-tail harms, and often incur a safety tax of degraded reasoning ability. CoT and ToT do not guarantee safety, and reasoning traces can be hijacked; SafeChain and STAIR offer limited gains that do not improve stably with scale.
    • Core approach: The authors move safety supervision from output preferences to pre-answer failure mode representations. InvThink requires first enumerating potential harms, then analyzing consequences, and generating the final answer under explicit mitigation constraints.
    • Implementation scope: The same structure is used for inference-time prompting, supervised fine-tuning, and GRPO-based reinforcement learning, and is trained on three open-source LLM families. The authors also compare forward and reverse SFT, stating that the safety–usefulness frontier lies in the GRPO stage rather than in the SFT direction.
  2. What related research exists?

    The authors place InvThink outside post-hoc safety reasoning: constructing harms, consequences, and mitigation constraints before answering.

    Safety failures and benchmarks

    • Chang et al. [2024], Wan et al. [2023]: Medical red teaming finds that domain-adapted models still produce substantial harmful outputs under adversarial inputs; poisoning and weight manipulation can embed harmful behavior while maintaining benchmark performance.
    • Hui et al. [2025], Lynch et al. [2025], Yuan et al. [2024]: Ethical violations in finance, law, and medicine, as well as harmful agent behavior under autonomy threats or goal conflicts. The authors paraphrase the "capability curse," i.e., stronger reasoning may support more sophisticated harmful strategies.
    • SafetyBench, TRIDENT, FFT, R-Judge: The authors state that these evaluations show that positive-only alignment leaves blind spots across multiple safety dimensions.

    Safety alignment methods

    • RLHF (Christiano et al., 2017; Ouyang et al., 2022) and Constitutional AI (Bai et al., 2022): The former trains helpful and harmless assistants with human feedback; the latter uses principles to reduce human annotation.
    • Self-critique (Tan et al., 2023) and red teaming (Perez et al., 2022; Ganguli et al., 2022; Zou et al., 2024): The authors list general adversarial triggers as a persistent vulnerability.
    • Filters and refusal heuristics (Askell et al., 2021; Dai et al., 2024): The authors state they are reactive and can miss hidden harm chains or over-refuse.

    Safety reasoning

    • CoT, ToT, GoT (Wei et al., 2022; Yao et al., 2023; Besta et al., 2024): Improve interpretability and multi-step solving. The authors state that reasoning traces can be exploited and overly long chains may hurt generalization (Kuo et al., 2025; Jin et al., 2025).
    • SafeChain, STAIR (Jiang et al., 2025; Zhang et al., 2025a): Write safety into reasoning. The authors state their gains in scale and generalization remain limited.
    • SafetyAnalyst, RATIONAL (Li et al., 2025a; Zhang et al., 2025b): The authors state both are mainly post-hoc analysis layers that evaluate or rationalize decisions rather than guide generation itself. The FMEA pipeline and safe inverse RL are classified by the authors as proactive methods borrowed from reliability engineering.

    Baselines and benchmarks

    • Baseline methods: Zero-shot, CoT, ToT, SafetyPrompt, General SFT, General SFT+RL. ToT samples multiple paths under the same decoding budget as other prompting baselines and then selects. General SFT uses only original question–answer pairs without reverse trajectories.
    • Benchmarks: SafetyBench, TRIDENT, and Anthropic's Agentic Misalignment, referred to in the text as Insider Threat.

    The authors use Table 1 to compare CoT, ToT, RevThink, and InvThink: in the table, only InvThink is marked as constructing constraints before generation, having multiple solution branches, and having safety as the primary objective. The authors state the difference lies in what the intermediate reasoning should represent: constructing a concrete set of harms, consequences, and mitigation constraints before the final answer appears, rather than defending a policy, critiquing a draft, or searching for alternative solutions.

  3. How does the paper address this problem?

    InvThink first samples a failure mode representation, then generates the answer under that constraint, and is used for SFT and GRPO.

    InvThink splits generation into two stages: first sample a failure mode representation, then generate the final answer conditioned on that representation. Prompting, SFT, and GRPO share this structure (Figure 1).

    Problem setting

    For a query x, standard generation directly models the conditional distribution. InvThink inserts an intermediate representation zinv=(H, A, M): H is candidate harms, A is the consequence analysis of those harms, and M is the mitigation condition used to constrain the final answer. Training learns to generate both the representation and the final answer, so that safety constraints are constructed before the answer is produced.

    Data augmentation and SFT

    • Trajectories: For each training pair (x, y), Gemini-2.5 Pro generates a structured reverse trajectory, with an average of 2.4 harms per query. The augmented sample is (x, z_inv, y*), where y* is a safe answer conditioned on that representation. The authors state this differs from free-form distillation; the structure itself is compared in Figures 11–14 of Appendix C. Figure 3 gives the full prompt, with modules in order: harm enumeration, consequence analysis, mitigation strategy, then constrained forward generation.
    • SFT objective: Maximize the joint sequence likelihood of the trajectory and final answer on the augmented set, LSFT=E[−log pθ(zinv, y∗|x)]. Table 3: learning rate 2×10^−5, batch 1 per device, gradient accumulation 6, float16, 3 epochs. SFT uses the full training set of Nemotron Content Safety Dataset V2, 30,007 entries.

    GRPO

    • For each query, sample G=4 complete outputs, consisting of the reverse trajectory plus the final answer. The reward only evaluates the user-facing answer: R_safety=1−max_c s_c(y), where s_c is the category risk score of the Moderation API. The policy update applies to the entire output.
    • There is also an over-refusal calibration variant: if the safety review judges the query as safe but the policy refuses, subtract λ=0.3. Appendix B.1 compares the default reward with this variant on XSTest.
    • The authors choose GRPO because it removes the value network and uses group-normalized advantages over multiple answers to the same question; the authors state this is denser than DPO's single chosen/rejected pair. RL uses only 20% of the safety data. Table 3: learning rate 8×10^−6, AdamW, cosine, bfloat16, 1 epoch, max completion length 512, warmup ratio 0.01.

    Direction comparison and evaluation

    • The authors additionally build a forward corpus ProThink: the same batch of 23,063 training targets is rewritten as forward objective enumeration, matching prompts, structure depth, and total tokens, changing only the rendering direction.
    • The text distinguishes three usages: inference-time prompting only, InvThink SFT, and InvThink SFT+RL. SafetyBench uses multiple-choice accuracy; TRIDENT uses 1–5 harmfulness, with reviewers Gemini-2.5 Pro, o3-mini, and Claude 3.7 Sonnet, following each dataset's original review prompts. In the figures, Safety Score is written as (5−Harmfulness Score)/4×100. Insider Threat counts the rate of harmful actions in simulated enterprise environments, 100 trials per scenario.
  4. What experiments did the paper conduct?

    InvThink SFT+RL: Qwen-3-8B TRIDENT is 1.22±0.02.

    Experimental Setup

    • Models tested: The main text writes Gemma from gemma-270m to gemma-27b (including gemma-7b-it), Qwen-2.5 from 1.5B to 72B, and Qwen-3 from 0.6B to 32B. Figure 2 labels this Gemma family as Gemma-3, and the horizontal axis also marks Qwen-2.5's 0.5B. The main table covers Gemma-7B-it, Qwen-2.5-7B, and Qwen-3-8B. The Insider Threat evaluation in Appendix A.2 lists 26 models. Figure 6 additionally compares prompting on several models from Google, OpenAI, and Anthropic.
    • Data: SafetyBench has 11,435 multiple-choice questions; the paper says seven categories and lists Offensiveness, Unfairness/Bias, Physical/Mental Health, Illegal Activities, Ethics/Morality, Privacy/Property. TRIDENT has 2,652 entries, covering finance, law, and medicine. Insider Threat has 100 runs per scenario. Training used the augmented Nemotron Content Safety Dataset V2, totaling 33,416 entries (30,007 training, 1,445 validation, 1,964 test), with 12 hazard categories and 9 subcategories.
    • Baselines: Zero-shot, CoT, ToT, SafetyPrompt, General SFT, General SFT+RL. InvThink is split into prompting only, SFT, and SFT+RL.
    • Metrics and judging: SafetyBench accuracy, higher is better; TRIDENT harmfulness 1–5, lower is better; Insider Threat is the rate of judged harmful actions. The main results are an ensemble of three judges. Inter-judge Pearson r=0.819, Spearman ρ=0.831, safety agreement 86.9%.
    • Training: The default teacher is Gemini-2.5 Pro, which is also one of the three judges. SFT uses the full training set, GRPO uses 20%. Data generation took 7.8 days; SFT and RL took 27 and 45 GPU-hours respectively on 4×A40.
    • Repetitions: Error bars in Figure 2 and Figure 8 are 5 seeds. The zero-observation conclusion for Insider Threat states five seeds, 100 runs per seed. Table 5 is a single seed. The paper does not report the number of repetitions for Table 2.

    Main Results

    According to Table 2. TRIDENT is harmfulness (↓), SafetyBench is accuracy (↑), Insider Threat is harmful action rate (↓).

    Swipe horizontally to read the table

    ModelZero-shot TRIDENTInvThink prompting TRIDENTSFT+RL TRIDENTSFT+RL SafetyBenchSFT+RL Insider Threat
    Gemma-7B-it3.15±0.052.38±0.021.97±0.020.77±0.010.00±0.00
    Qwen-2.5-7B3.38±0.042.17±0.021.53±0.020.82±0.020.00±0.00
    Qwen-3-8B3.12±0.042.02±0.031.22±0.020.89±0.010.00±0.00
    • The authors state that the gap with baselines is larger from SafetyBench (about 5–13% gain) to open-ended professional ethics tasks. The abstract writes a maximum reduction in harmfulness of 32% relative to zero-shot and 16% relative to SafetyPrompt; one place in Section 5.1 writes a maximum reduction of 32.0% relative to the strong fine-tuning baseline, another place writes that the three models' zero-shot mean of 3.22 to the prompted InvThink 2.19 is a 32.0% reduction, and writes that the SafetyPrompt mean is 2.62.
    • In the same table, the Teacher Model (Gemini-2.5 Pro) is SafetyBench 0.85±0.03, TRIDENT 1.70±0.01, Insider Threat 0.03±0.00. On Gemma-7B-it, the SafetyBench of CoT, ToT, and SafetyPrompt is 0.69, 0.62, and 0.67, lower than Zero-shot's 0.72. For this model, InvThink SFT's TRIDENT is 2.22±0.02, higher than General SFT+RL's 2.17±0.04. Qwen-2.5-7B's General SFT on Insider Threat is 0.05, higher than Zero-shot's 0.04.
    • The authors state that SFT+RL observed 0 harmful actions per model across 100 runs per seed, with a per-seed Clopper–Pearson 95% upper bound of 0.030, and write that this is not evidence of zero risk in broader agent deployment. The authors state that the prompted version on average reduced the blackmail rate by 90% and the murder attempt rate by 44%. Category gains are written as Illegal Activities +15.8% (N=1,767), Physical Health +12.5% (N=1,140), Ethics and Morality +10.0% (N=1,926), Mental Health +7.9% (N=1,561), Offensiveness +2.4% (N=1,801); the paper does not state which model and comparison method these percentages correspond to.

    Scale and safety tax

    • Figure 2 uses TRIDENT-converted Safety Score (%) against log model scale as slope β, with error bars from five decoding seeds. The authors state that InvThink has the highest score across three families and almost every tested size; on Gemma-3, InvThink's β=9.0 versus SafetyPrompt's 4.9; Qwen-2.5 is 4.7 versus 5.8, and Qwen-3 is 4.0 versus 4.4, with the latter two families mainly showing level shifts. The authors state that CoT's safety performance declines beyond 14B. The specific Safety Scores for each size are not listed in the main text.
    • Table 5 (Qwen-3-8B, single seed): base reasoning average 0.61, TRIDENT 3.12; General SFT average 0.56, TRIDENT 1.95; InvThink SFT+RL is GPQA 0.51, MATH500 0.55, ARC-Challenge 0.74, MMLU 0.73, average 0.63, TRIDENT 1.22. The authors state that SFT+RL is up to +5.0% on GPQA and MATH500, and +2.0% on MMLU. Limitations writes that these differences should be regarded as indicative and not as statistically tested differences. Table 5's MMLU is from 0.72 to 0.73.
    • Table 4: On Qwen-2.5-7B, InvThink-SFT and ProThink-SFT both have TRIDENT safety rate 1.000, StrongREJECT ASR both 0.000, XSTest FRR both 0.980 and CRR both 1.000; harmfulness mean 1.23 versus 1.01, training loss 1.10 versus 1.01. The authors state that on this refusal-oriented corpus, trajectory direction does not distinguish safe behavior at the SFT stage; and note that the comparison with SFT+RL later crosses model sizes.

    Robustness and closed-source prompting

    • Appendix B.1: The training corpus has 7.1M unique 13-grams, with zero intersection with MATH500 (500 entries), GSM8K (1,319 entries), and StrongREJECT (313 entries). Qwen-3-8B SFT+RL on StrongREJECT with three seeds, 100 samples per seed, gives ASR 0.000 over 300 generations; per-seed 95% upper bound 0.030, three-seed combined 0.010.
    • The same model on XSTest, with default reward, has FRR 0.361 and CRR 0.927; after λ=0.3 calibration, FRR 0.320 and CRR 0.920, and StrongREJECT's zero ASR still holds. The authors state that this FRR change is not large, and the usefulness–safety frontier remains future work.
    • The authors state that InvThink also ranks first when each judge ranks separately, with exact agreement rate 76.7% and average cross-judge deviation of 0.319 on the 1–5 scale. Figure 6: The authors state that from Gemini-2.0-flash (Intelligence Index 34) to Gemini-2.5-pro (60), InvThink goes from 64% to 75%; gpt-5-nano is about 56%–59%, gpt-5-mini, o3, and gpt-5 cluster at 70%–73%; the Claude family is about 70%–75%. The same paragraph also writes Gemini-2.5-pro 75%, gpt-5 74%, Claude-4.1-Opus 77%.

    Other ablations and analyses

    • Table 7, Qwen-3-8B, teacher gpt-oss-safeguard: SFT+RL is SafetyBench 0.84±0.02, TRIDENT 1.43±0.03, Insider Threat 0.02±0.01; with Gemini-2.5 Pro teacher the corresponding values are 0.89±0.01, 1.22±0.02, 0.00±0.00.
    • Table 9, Qwen3-8B: under Moderation API, InvThink SFT+RL is 0.89 / 1.22 / 0.00; under WildGuard it is 0.83 / 1.62 / 0.02.
    • Table 10, Qwen3-8B: GRPO's TRIDENT 1.43, reasoning average 0.60; DPO is 1.53 and 0.55. The authors write GPQA +3.0, MATH500 +5.0, ARC-Challenge +6.0, MMLU +5.0 percentage points, TRIDENT −0.1.
    • Figure 8: The authors state that relative to SafetyPrompt, Finance is about 11% higher, Law about 8%, Medicine about 7%; error bars are 5 seeds. The main text does not give the raw Safety Score for each domain.
    • Figure 5: Qwen2.5's number of reverse paths goes from 1 to 11. The authors state that 0.5B has almost no additional benefit, 72B peaks at 5–9 paths, and 32B peaks at 2–5 paths then slightly declines; the figure caption instead writes that large models peak at 5–7 paths then slightly decline.
    • Appendix C Figures 11–14: The authors state that enumerating only harms still often produces unsafe outputs, and adding consequence analysis and mitigation strategies turns outputs into safe responses. The appendix gives examples. In Table 8, gpt-oss-120b reasoning average 0.82, TRIDENT 2.28; deepseek-r1's TRIDENT is 2.99; gpt-oss-20b and gemini-2.5-pro both have TRIDENT 1.70.
  5. What are some points that can be further explored?

    The authors say teacher selection, distinction from distillation, static evaluation, single seed, and trajectory hijacking remain to be explored.

    Limitations and future directions noted by the authors

    • Teacher model (Limitations): mainly uses Gemini-2.5 Pro. The single alternative teacher gpt-oss-safeguard (Table 7) suggests the prompt benefit is not exclusive to that teacher, but multi-teacher and weaker-teacher comparisons remain open. The authors write that future work should use a judge ensemble completely disjoint from any training teacher.
    • Distinction from distillation (Limitations): teacher outputs enrich student training. The authors say cross-teacher comparisons are still needed to separate the contributions of teacher knowledge and reverse reasoning.
    • Deployment scope (Limitations): evaluation is concentrated on static benchmarks. The authors write that extending to more realistic multimodal, multi-turn, multi-agent scenarios, and balancing safety gains against efficiency and latency, remain important directions.
    • Single seed and RL data ratio (Limitations): Table 5 is a single seed, and method differences on GPQA and MATH500 should be read as suggestive, not as statistical test results. GRPO is fixed at 20% of safety data, and this ratio was not swept.
    • Adversarial control of reverse trajectories (Limitations): the reported adversarial evaluation does not cover trajectory hijacking where an adversary provides malicious z_inv at inference time (Kuo et al., 2025). The authors write that whether failure-mode enumeration can be adversarially redirected, and whether hiding reverse trajectories at inference time can reduce the attack surface, are the most direct open questions for the method.
    • Direction and GRPO (Appendix B.2): the authors leave whether trajectory direction interacts with the GRPO stage in a nontrivial way as the most direct follow-up work.

    Experimental coverage

    • The main result tables report Gemma-7B-it, Qwen-2.5-7B, and Qwen-3-8B; the size range for scaling experiments is in Section 4.1 and Figure 2, with error bars corresponding to five decoding seeds.
    • Safety evaluation uses SafetyBench, TRIDENT, and Insider Threat; utility numbers come from GPQA, MATH500, ARC-Challenge, and MMLU on Qwen-3-8B (Table 5).
    • TRIDENT and main-table harmfulness come from a Gemini-2.5 Pro, o3-mini, and Claude 3.7 Sonnet ensemble; the paper reports inter-judge correlation coefficients and InvThink's cross-judge agreement rate.
    • The default teacher is Gemini-2.5 Pro, with the appendix additionally using gpt-oss-safeguard to generate trajectories; the default GRPO reward is the Moderation API, with Table 9 additionally reporting WildGuard.
    • The paper does not report the number of repetitions for Table 2. On StrongREJECT, the reported ASR is for Qwen-3-8B SFT+RL, with 100 samples per seed across three seeds.
  6. Summarize the main content of the paper

    InvThink uses pre-answer harm enumeration and constraints for safety post-training and reduces harmfulness scores across three models.

    InvThink is a pre-answer failure mode reasoning framework used both as prompting and post-training.

    • Problem: The authors believe that optimizing only the safe final answer provides no signal about which harms the model should have considered, and often comes with a safety tax.
    • Method: Construct harm enumeration, consequence analysis, and mitigation constraints before answering. Gemini-2.5 Pro generates trajectories with an average of 2.4 harms per query, used for SFT; GRPO uses the Moderation API risk score as reward, 4 samples per question, with RL data being 20% of the training set.
    • Main results: In Table 2, Qwen-3-8B's InvThink SFT+RL achieves 0.89±0.01 on SafetyBench, 1.22±0.02 on TRIDENT, and 0.00±0.00 on Insider Threat. Gemma-7B-it and Qwen-2.5-7B achieve corresponding TRIDENT scores of 1.97±0.02 and 1.53±0.02. The authors state that the prompting version reduces the mean TRIDENT harmfulness from 3.22 to 2.19 relative to zero-shot across the three models.
    • Other results: The authors state that on Gemma-3 the slope of safety score against log scale is higher than SafetyPrompt (β=9.0 vs 4.9), while the two Qwen families mainly show horizontal lifts. In Table 5, Qwen-3-8B SFT+RL averages 0.63 on four reasoning tasks, with the base model at 0.61, and the authors note this is a single seed. On Qwen-2.5-7B, both forward and reverse SFT receive refusal-oriented results in Table 4.
    • Authors' conclusion: Safety training should shape the constraints the model constructs before answering, not just the final answer. The authors also leave malicious trajectory hijacking, multi-teacher comparison, and RL data proportion as open questions.
Read originalarxiv.org