Researchers propose Staged Decoding and an SFT dataset to reduce privacy leakage in the reasoning traces of large reasoning models.From Leaky Thoughts to Private Reasoning: Controlling What LRMs Say to Themselves
Staged Decoding raises Qwen3-14B's PasswordEval total privacy from 41.16 to 93.07 relative to baseline.
Reasoning traces can contain user context such as names and contact information; even if the system prompt includes privacy instructions, the trace may still restate them. Green et al. (2025)'s prompt injection can reproduce hidden traces into visible answers. The method requires training and is aimed at model providers, not API callers.
- The reasoning trajectories of large reasoning models often write sensitive context and do not comply with explicit privacy instructions; prompt injection can also reproduce hidden trajectories into visible answers.
- Use SFT with instructions that contain no private content to make trajectories obey format, style, and reasoning type; Staged Decoding then uses two LoRAs to generate the trajectory and the final answer separately.
- Across six models from 1.7B to 14B, Staged Decoding achieves the highest Avg. IF in 9 of 12 groups; privacy improves over baseline in 11 groups, but Qwen3-1.7B's PasswordEval decreases. MathIF problem-solving utility is below baseline for all six models.
- The authors say the training set is relatively small and may overfit, and only SFT was done without rebuilding the full post-training; 4-bit quantization, PEEP not analyzed by language. Experiments cover six models from two families, two random seeds; privacy is judged by string matching, and malformed outputs are not counted.
- Evaluated models
- Qwen 3 1.7BQwen 3 4BQwen 3 8BQwen 3 14BPhi 4 3.8BPhi 4 14B
- Benchmarks
- IFEvalMathIFPasswordEvalPEEP
- Metrics
- instruction-level loose-accuracyAvg. IFprivacy scoreutility
The researchers address the problem that reasoning traces of large reasoning models (LRMs) often contain sensitive information and may be exposed by prompt injection, by treating privacy instructions as a controllability task. They construct an SFT dataset that makes the model follow general instructions throughout the reasoning process, and propose a Staged Decoding strategy that uses separate LoRA adapters to generate the reasoning trace and the answer, maximizing instruction following for each part. Across six models from two model families (1.7B to 14B parameters), evaluated on two instruction-following benchmarks and two privacy benchmarks, the method improves instruction following by up to 20.9 points and privacy benchmarks by up to 51.9 percentage points, but may lose task utility due to the trade-off between reasoning performance and instruction following. Code is public, and the paper is accepted at EMNLP 2026 main conference.
Paper analysis
What problem does this paper attempt to solve?
Reasoning traces write sensitive context and do not obey privacy instructions; the authors use instruction following to improve controllability.
The reasoning trajectories of large reasoning models write sensitive context and often do not comply with explicit privacy instructions.
- Scenario: The trajectory processes the full input before the final answer, and the input often contains names, contact information, or personal experiences. The authors say trajectories are usually treated as drafts hidden from end users, and thus considered safe by default.
- Risk: Green et al. (2025) report that simple prompt injection can force the model to reproduce trajectory content into visible answers; the rate of still writing private context into trajectories after being instructed is 19%–78%. The authors say trajectories therefore contain both private data and are accessible to attackers.
- Gap: Existing instruction-following work almost exclusively looks at the final answer. The paper says there is a lack of training resources and decoding strategies for instruction following within trajectories (IF-RT), and no measurement of whether IF-RT gains translate into improvements on privacy benchmarks.
- Hypothesis: Privacy instructions are instructions. Improving general instruction following within trajectories can reduce privacy failures and generalize because it is not tied to specific privacy phrasings.
- Threat model:
- Target: Privacy instructions in the system prompt require not repeating protected information; failure is the appearance of annotated secrets in the trajectory or answer.
- Capability: The paper does not use terms like white-box to describe its setting. The targeted risk is prompt injection exporting hidden trajectories into visible answers.
- Victim: User context entering reasoning, including names, contact information, personal experiences, and passwords and confidential snippets in the two privacy benchmarks.
- Method position: Requires training, aimed at model providers, not API callers who cannot modify weights.
- Approach: Construct SFT data without private content, and propose Staged Decoding, which generates in segments with LoRAs that separately optimize trajectory and answer instruction following. The authors claim this is the first training data containing diverse reasoning-type instructions that directly targets reasoning-process controllability.
What related research exists?
Related work covers answer-level instruction following, trajectory length or language control, and context privacy and safety training.
The paper positions itself along four lines, with the difference placed in "using instruction following without private content to test whether it transfers to privacy compliance."
Instruction following in trajectories and answers
- Answer-level following: Zhao et al. (2026), Guo et al. (2025), Fu et al. (2026), Li et al. (2025b), Wu et al. (2025) mainly handle the final answer. The paper says improving reasoning performance often harms instruction following in the final answer, and these works do not examine following within the reasoning process.
- Trajectory control: Length control is in Wu et al. (2025), Kang et al. (2025), Ma et al. (2025), Yang et al. (2026), Ha et al. (2026), Han et al. (2025); language control is in Qi et al. (2025). The paper says general instruction following remains unexplored.
- ReasonIF: Kwon et al. (2026) evaluate six types of IF-RT (including multilingual reasoning, format, and length) on off-the-shelf LRMs, and give a proof-of-concept training that separates reasoning language from answer language, focusing on the trade-off between task performance and IF-RT, not privacy.
Privacy in reasoning models
- Data leakage and context privacy: Carlini et al. (2021), Kim et al. (2023), Puerto et al. (2025b) focus on pretraining data leakage. Mireshghallah et al. (2024), Bagdasarian et al. (2024), Zharmagambetov et al. (2025), Mireshghallah et al. (2026) turn to private data accessed at inference time.
- Trajectory leakage: Green et al. (2025) and Sam et al. (2025) report that, even when instructed, LRMs still leak context privacy in trajectories, and attribute it to weak IF-RT; Green et al. also report that prompt injection can extract hidden trajectories. Lan et al. (2025) use reinforcement learning to regulate reasoning according to contextual integrity, but trajectories still reproduce private data.
- Concurrent methods: Batra et al. (2025) use in-domain steering vectors to suppress leakage; the paper says they do not address out-of-distribution generalization. Das et al. (2026) fine-tune on privacy-annotated chains of thought to sanitize trajectories; the paper says this is orthogonal to theirs, and they do not analyze the impact on utility.
Safety training and adapter switching
- Safety fine-tuning: Zhou et al. (2025), Zhu et al. (2025), Jiang et al. (2025), Jeung et al. (2025), Zhang et al. (2026) fine-tune trajectories to improve alignment and safety. Baker et al. (2025) report that using reinforcement learning against chain-of-thought monitors may make models conceal misbehavior rather than eliminate it; Korbak et al. (2025) warn that optimization pressure on chain-of-thought style and format may reduce its reliability as a monitoring channel. The paper says it uses SFT to comply with explicit user instructions, does not suppress a behavior, and does not train against monitors.
- Adapter routing: Jacobs et al. (1991) through Ostapenko et al. (2024) route inputs to specialized models or adapters; Greenewald et al. (2025), Li et al. (2025a) switch per turn. The paper says it further switches within a single response.
Baselines and benchmarks
- Controls: the untrained base model, and three checkpoints for IF-RT, IF-FA, and Avg. IF. The privacy upper bound is RANA (Green et al., 2025): replace confidential information with placeholders according to annotated spans, then continue generating the answer. Because it has oracle access to annotations, the privacy score is maximized by construction; the answer may still reproduce private information from context, so it is not always 100%.
- Benchmarks: IFEval, MathIF, PasswordEval, PEEP.
The authors view privacy failures as a symptom of insufficient instruction following within trajectories, and test whether training without private content transfers to privacy instructions, rather than training directly on privacy-annotated trajectories.
How does the paper address this problem?
Use SFT without privacy content to teach traces to follow instructions, then use two LoRA sets to generate trace and answer in stages.
The authors treat privacy leakage as a symptom of trajectories not following instructions, and use SFT without private content to train general instruction following, then use Staged Decoding so that the trajectory and the final answer each use one LoRA.
Data and instructions
- Three types of trajectory instructions: format, style, and reasoning type. They constrain structure, narration, or reasoning process, and are not tied to task content; the authors therefore believe the learned following should generalize to arbitrary tasks. Appendix I has examples; sentence patterns are not listed here.
- Construction: Extract original trajectories from DeepSeek-R1's outputs on the GSM8K training set, rewrite them with gpt-oss-120b according to a randomly sampled trajectory instruction, pair them with the original final answer, and append the instruction to the end of the original question. The authors chose GSM8K because the problems are not too hard for these models, so training can focus on following rather than solving.
- Scale: Three nested sets, each containing the previous: trajectory-only 1k; trajectory or answer 2k; trajectory and/or answer 3k. When constraining both, Multilingual Thinking is reused, requiring reasoning in one language and answering in another.
- Spot check: Appendix I says 30 items were manually reviewed (15 each for trajectory and answer instructions, covering all types), and all 30 rewrites achieved the target instruction and preserved the original reasoning content.
Training and checkpoints
- Optimization: Each model is SFT'd with LoRA via PEFT. Rank is fixed at 8, alpha at 16; the authors say other settings gave comparable results in preliminary experiments.
- Search: Three datasets × learning rates 2e-4 and 2e-5 × batch sizes 8, 16, 32, giving 18 checkpoints per model. Effective batch is achieved with gradient accumulation and batch size 4 (Appendix B).
- Selection: The development set is the GSM8K split of MathIF. Keep the checkpoints with the highest IF-RT, the highest IF-FA, and the highest average of the two. Testing also evaluates the untrained base model and Staged Decoding, for five variants total, each with two random seeds.
Staged Decoding
- Two stages: First generate the trajectory with the IF-RT adapter, stop at the end-of-thinking token; unload it, then load the IF-FA adapter to generate the answer (Figure 2).
- Motivation: The authors observe that the checkpoint with the highest IF-RT is usually not the one with the highest IF-FA, so they isolate the two parts.
- Overhead: The authors say adapter switching is negligible relative to generation; latency numbers are in Appendix C, placed in the experiments section.
Evaluation
- Instruction following: IFEval only measures following; MathIF measures both following and math answer accuracy. Both use their respective papers' instruction-level loose accuracy. The training instruction types do not overlap with these two verifiable instruction sets. MathIF testing excludes the GSM8K split used as the development set.
- Privacy score: Defined as 1 − leak rate, i.e., 1 minus the leak rate. Leakage is exact string matching of annotated secrets against the trajectory or answer, without using a reviewer model. Malformed outputs do not count toward privacy, and utility is 0, so empty outputs are not treated as non-leaked.
- PasswordEval: Prohibits reproducing the password in the trajectory and answer, and prohibits reproducing confidential information in the trajectory. Utility is the proportion of correctly revealing confidential information when the correct password is given. Each origin has two user prompts, "provide correct password" and "do not provide," plus a context demonstration (Appendix H, not repeated here).
- PEEP: Prohibits disclosing confidential information from the user prompt in the trajectory and answer. Utility is scored by GPT 5 nano on relevance, usefulness, correctness, clarity, completeness, and safety, each 1–5, with a total score; the prompt is in Appendix E.
What experiments did the paper conduct?
Across six models, staged decoding mostly improves Avg. IF and privacy, but small models' password privacy and math utility can decrease.
Experimental Setup
- Models: Qwen 3 1.7B, 4B, 8B, 14B and Phi 4 3.8B, 14B. Except for Phi 4 14B, which uses the original weights loaded in 4-bit via bitsandbytes, the rest are Unsloth 4-bit. The authors say the Unsloth version of Phi 4 14B performed poorly, so they switched to the original.
- Decoding and repetition: Qwen 3 uses temperature 0.6, top-p 0.95, top-k 20, min-p 0; Phi-4 uses temperature 0.8, top-k 50, top-p 0.95. Inference batch size 12. Seeds 41875, 15613, reporting mean and standard deviation.
- Scale: IFEval 540 items. MathIF development set 90, test set 332, with GSM8K removed from the test. PasswordEval 1000 items, each with two user prompts. PEEP after filtering 2062 items: removed prompts that were fewer than five words after deleting private information, and instances without confidential annotations.
- Comparisons: untrained baseline, IF-RT checkpoint, IF-FA checkpoint, Avg. IF checkpoint, Staged Decoding. Privacy upper bound is RANA.
- Metrics: IF is instruction-level loose-accuracy; Avg. IF is the average of trace and answer following. Privacy is 1 minus leakage rate. PasswordEval utility is the proportion of correctly revealing the secret under the correct password; PEEP utility is GPT 5 nano's 1–5 total score.
- Testing: Table 10 keeps only (instance, seed) pairs where both baseline and Staged are well-formed, paired bootstrap (B=20,000) and two-sided paired permutation test, Holm correction across six models, two seeds merged.
Main Results
Per Table 1, Table 2, means over two random seeds. Cells are baseline→Staged Decoding; standard deviations are in the tables, not listed here.
Swipe horizontally to read the table
Model IFEval Avg.IF MathIF Avg.IF PasswordEval total privacy PEEP total privacy Qwen 3 1.7B 52.07→59.89 39.75→46.31 42.13→22.60 35.08→43.41 Qwen 3 4B 60.28→72.15 48.52→62.04 41.16→54.13 46.10→67.04 Qwen 3 8B 63.16→81.21 48.29→69.19 41.11→85.11 52.49→65.68 Qwen 3 14B 64.06→77.67 54.61→67.86 41.16→93.07 56.38→87.85 Phi 4 3.8B 48.77→47.93 34.53→45.56 27.14→51.68 40.04→73.99 Phi 4 14B 66.67→56.12 56.84→56.04 74.41→90.43 48.46→76.76 - Instruction following: The authors say Staged has the highest Avg. IF in 9 of 12 groups; average gain over baseline is IFEval 6.66, MathIF 10.74, with a single-point maximum of 20.9. In the table above, three Phi 4 cells are not above baseline. On IFEval, Staged answer following for all six models is below each model's baseline; Phi 4 14B goes from 91.79 to 65.59 (Table 1). §5.1 refers to maintaining trace following relative to the IF-RT checkpoint while improving its answer following.
- Privacy: The authors say privacy is best in 10 of 12 groups; average gain over baseline is PasswordEval 21.65, PEEP 22.69. The abstract writes a maximum of 51.9 percentage points, §5.2 writes 51.91 points, corresponding to Qwen 3 14B's PasswordEval. In Table 10, 11/12 paired differences are positive; the only negative one is Qwen 3 1.7B PasswordEval (n=1979, difference −19.5, 95% CI [−21.2, −17.7]). The authors hypothesize the training set is small and the model is small, making it more fragile under adapter switching.
- Breakdown: The authors say Staged's trace privacy is comparable to the IF-RT checkpoint while improving answer privacy. Phi 4 3.8B's IF-RT checkpoint total privacy is PasswordEval 51.69, PEEP 74.29, slightly higher than Staged in the table above (Table 2).
Utility Trade-off
- What was measured: MathIF problem-solving accuracy, and utility on the two privacy benchmarks (Table 3). The authors wanted to see whether the trade-off between reasoning and instruction following also appears in privacy.
- Results: MathIF utility for all six models is below baseline, e.g., Qwen 3 8B from 40.96 to 22.89, Phi 4 14B from 40.66 to 25.75. On PasswordEval, Staged has the highest utility in four groups (1.7B 57.00, 8B 80.55, 14B 83.05, Phi 4 14B 49.85). On PEEP (1–5), only Qwen 3 1.7B goes from 3.28 to 3.62; the other five groups are below baseline.
- Authors' interpretation: IF-RT and MathIF utility correlate at −0.65 (p<0.05). On PasswordEval and PEEP they are −0.33 and −0.24, which the authors say do not reach statistical significance, so there is not enough evidence for a clear trade-off on these two benchmarks. The authors say this correlation comes from the existing reasoning–instruction-following trade-off, not something unique to this method.
Comparison with Privacy Upper Bound RANA
- What was measured: RANA replaces confidential information in the trace with placeholders using annotated spans, then generates the answer (Table 4; standard deviations in Appendix B Table 6).
- Results: The authors say Staged narrows the gap from baseline to RANA in 11 of 12 groups, especially Qwen 3 8B, 14B, and Phi 4 14B. Qwen 3 14B's PasswordEval: baseline 41.16, Staged 93.07, RANA 100.00. The exception is Qwen 3 1.7B's PasswordEval: Staged 22.60 is below baseline 42.13, with RANA at 98.23. RANA itself has utility decline in 8 of 12 groups.
- Cross-table inconsistency: Qwen 3 8B, PEEP, Staged total privacy is 65.68±1.88 in Table 2, but 87.85±1.03 in Table 4/6, and that standard deviation is identical to Qwen 3 14B's 87.85±1.03 in Table 2. §5.2's average gain of 22.69 is consistent with Table 2; that cell does not adopt Table 4/6.
Trace Extraction Attack
- What was measured: Appendix D runs Green et al. (2025)'s trace extraction injection on PEEP, comparing final-answer privacy. Paired bootstrap B=10,000, Holm correction across six models. Models were not trained on privacy or adversarial data.
- Results: In Table 8, Staged relative to baseline: Qwen 3 1.7B +14.3, 4B −1.1, 8B +2.7, 14B +10.0, Phi 4 3.8B +8.5, 14B −13.7. The authors say 3 of 6 models show statistically significant improvement, with average gain 3.47; after removing Phi 4 14B, the authors say the average gain rises to 6.9.
- Authors' interpretation: In Table 9, Staged has a smaller attack-induced drop than baseline in 5 of 6 models, including Phi 4 14B (−15.2 vs. baseline −18.5). The authors believe Phi 4 14B's lower absolute score under attack comes from a lower non-attack starting point, not greater compliance with the injection. The non-attack starting points in Table 9 are close to but not item-by-item identical to the answer privacy in Table 2.
Other Ablations and Analyses
- The IF-RT checkpoint improves trace following and suppresses answer following: Qwen 3 8B, IFEval, IF-RT 76.26, IF-FA 47.48, baseline IF-FA 86.99 (Table 1).
- The Avg. IF checkpoint marked with * is the same checkpoint as the IF-FA checkpoint (Table 1 note).
- Adapter swapping: Qwen 3 4B, 128 PasswordEval items, 4 repetitions, each generating 128 tokens, adds 13.4 ms (+0.10%, 95% CI [+7.9, +19.0]) (Table 7).
- PEEP review: 1 author, 50 items, stratified across six models; quadratic-weighted Cohen's κ=0.69, MAE=0.56, 92% within ±1, 86% judged reasonable; English-only subset (Appendix E).
- 4-bit and malformed outputs: off-the-shelf Phi-4-reasoning on 1000 PasswordEval items, 119 malformed in 4-bit, 35 malformed in fp16 (Appendix F). Table 12 lists the number of empty traces and empty answers for each model.
- §6 says the best IF-RT checkpoints all come from trace-only instruction datasets, and considers this like overfitting; the authors relay that Kwon et al. (2026) also observed a similar phenomenon under limited data.
What are some points that can be further explored?
The authors point out that the training set is small, only SFT is done, and the trade-off between instruction following and reasoning utility is not resolved.
Limitations and Future Directions Noted by the Authors
- Data scale: The goal is not to produce a deployable model but to examine feasibility. The training set is relatively small, may overfit, and may partly explain some utility declines (Limitations).
- Trade-off: The trade-off between instruction following or privacy preservation and reasoning performance, the authors say, has been reported in several papers, and resolving it is beyond the scope of this paper (Limitations). The Conclusion lists scaling up training data and modifying reinforcement-learning post-training to jointly optimize reasoning and instruction following as future directions; the authors believe utility decline may shrink in larger training settings.
- SFT only: The authors believe adding constraints in the reinforcement learning stage may harm monitorability, and how much optimization pressure chain-of-thought can withstand remains an open question, so this paper only does SFT (Limitations, citing Baker et al., 2025; Korbak et al., 2025).
- Not full post-training: Due to computational cost, the full post-training pipeline was not rebuilt; instead, additional SFT was done on off-the-shelf reasoning models. The authors encourage future work to test these constraints in a full pipeline (Limitations).
- Callers: The method requires training and is aimed at providers rather than API callers. Controlling reasoning without training by the caller is written as a future direction out of scope (Limitations).
- Language and quantization: PEEP contains non-English prompts, which the authors write as about 50%, but it was not analyzed by language. All models were trained with 4-bit quantization, which the authors say may affect stability or performance in exchange for efficiency (Limitations).
Experimental Coverage
- Models tested are Qwen 3 in four sizes and Phi 4 in two sizes, 6 in total, experiments use 4-bit (§4.1).
- Evaluation benchmarks are IFEval, MathIF (test excludes GSM8K), PasswordEval, PEEP; two random seeds per variant (§4, Appendix B).
- Comparisons include untrained baseline, three IF checkpoints, and RANA; on PEEP, Green et al. (2025)'s trace extraction injection is also tested, with the metric being final-answer privacy (Appendix D, Table 8).
- Leakage is determined by exact string matching; PEEP utility review is by GPT 5 nano, with human verification by 1 author, 50 items, English subset, quadratic-weighted κ=0.69 (Appendix A, E).
- The paper states that PEEP was not split by language, and no full post-training or reinforcement learning experiments were done (Limitations). Appendix A lists English 66.83%, while Limitations writes non-English prompts at about 50%.
Summarize the main content of the paper
Using general instruction-following training plus staged decoding can reduce trace privacy leakage, but mathematical utility declines.
This paper frames the privacy problem of large reasoning models as trajectory controllability: privacy instructions are instructions, and if the trajectory does not follow them, sensitive context is written into text that can be exported via prompt injection.
- Problem: Green et al. (2025) report that models, even when instructed, still write private context into trajectories, with violation rates of 19%–78%, and prompt injection can reproduce hidden trajectories into visible answers.
- Method: Using DeepSeek-R1's GSM8K trajectories, rewritten by gpt-oss-120b into samples that obey format, style, or reasoning-type instructions, with sizes from 1k to 3k, containing no private content. After LoRA SFT, Staged Decoding first writes the trajectory with an IF-RT adapter, then switches to an IF-FA adapter for the answer. The authors claim this is the first such training set directly targeting reasoning-process controllability.
- Instruction following: six 1.7B–14B models, two random seeds. The authors claim the highest Avg. IF in 9 of 12 groups, with the highest gain over baseline of 20.9 (Qwen 3 8B, MathIF), and average gains of 6.66 on IFEval and 10.74 on MathIF. Phi 4 14B's IFEval Avg. IF drops from 66.67 to 56.12.
- Privacy: the authors claim average gains over baseline of 21.65 on PasswordEval and 22.69 on PEEP; the abstract writes the highest 51.9 percentage points, §5.2 writes 51.91 points (Qwen 3 14B, PasswordEval, from 41.16 to 93.07). Qwen 3 1.7B's PasswordEval total privacy drops to 22.60. In Table 10, 11/12 paired differences are positive.
- Cost and conclusion: MathIF problem-solving utility is below baseline for all six models. The authors say this is consistent with the existing reasoning–instruction-following trade-off and is outside the scope of this paper. The authors conclude that strengthening instruction following within trajectories can improve compliance with privacy instructions, and suggest that providers add similar constraints in larger SFT post-training.