Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection
On the map: LLM alignment / RLHF / preference optimisation → Safety alignment and jailbreak attacks
also in 1 more
Abstract (arXiv)
To achieve deeper safety alignment for large language models (LLMs), recent efforts have studied how to push safety interventions earlier into the pretraining stage, primarily by filtering unsafe data or rewriting it into safer forms. We argue that pretraining-stage alignment should go beyond making the data safe: LLMs may compose seemingly benign knowledge and capabilities into unsafe behaviors. To this end, we propose Safety Reflection Pretraining, a pretraining-stage alignment method which regularly inserts short safety reflections into pretraining corpora to integrate self-monitoring directly into language modeling, establishing a foundational capability that is subsequently reinforced by compatible post-training. Our experiments with 1.7B models pretrained on FineWeb-Edu show that Safety Reflection Pretraining improves safety classification accuracy and substantially reduces the success rates of inference-stage and finetuning attacks. Complementary to our real-world experiments, we also introduce a fully controlled synthetic environment, MedSafetyWorld, with a clear definition of safety and a reasoning structure under which models can easily generalize unsafe behaviors from safe data. Ablations in MedSafetyWorld further demonstrate a clear advantage of Safety Reflection Pretraining in preventing models from acting on unsafe behaviors generalized from safe data, compared with data filtering and rewriting. Taken together, our findings suggest that pretraining alignment should not only make the training data safe, but also shape the behaviors that models are likely to acquire from safe data.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Safety alignment and jailbreak attacks, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 65 of its 76 references that are in the map. First posted on arXiv 17 Jun 2026.
Builds on
65 of 76 references.
Closest ancestors · 14
Same direction, newest first
- 2026From Refusal Tokens to Refusal Control: Discovering and Steering Category-Specific Refusal Directions9 Mar
- 2026What Matters For Safety Alignment?7 Jan
- 2024Rule Based Rewards for Language Model Safety2 Nov
- 2024Superficial Safety Alignment Hypothesis7 Oct
- 2024Backtracking Improves Generation Safety22 Sep
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curation24 May
- 2023LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70B31 Oct
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedback19 Oct
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Models4 Oct
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models3 Oct
2 more
Other references · 51
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2025Qwen3 Technical Reportcited by 8,820
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,429
38 more
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,228
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 723
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Trainingcited by 529
- 2023XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Modelscited by 505
- 2024WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMscited by 496
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
- 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 390
- 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 387
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 223
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 182
- 2025Emergent Misalignment: Narrow finetuning can produce broadly misaligned LLMscited by 172
- 2024Rephrasing the Web: A Recipe for Compute and Data-Efficient Language Modelingcited by 161
- 2025Qwen3Guard Technical Reportcited by 155
- 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 118
- 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 96
- 2023SimpleSafetyTests: a Test Suite for Identifying Critical Safety Risks in Large Language Modelscited by 76
- 2024On the Societal Impact of Open Foundation Modelscited by 65
- 2023Self-Guard: Empower the LLM to Safeguard Itselfcited by 54
- 2024Language Models Resist Alignment: Evidence From Data Compressioncited by 53
- 2025From Hard Refusals to Safe-Completions: Toward Output-Centric Safety Trainingcited by 52
- 2025Reasoning to Learn from Latent Thoughtscited by 45
- 2025Safety Pretraining: Toward the Next Generation of Safe AIcited by 43
- 2025Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMscited by 42
- 2024Safety-Aware Fine-Tuning of Large Language Modelscited by 34
- 2026Alignment Pretraining: AI Discourse Causes Self-Fulfilling (Mis)alignmentcited by 33
- 2024Refusal Tokens: A Simple Way to Calibrate Refusals in Large Language Modelscited by 14
- 2026Shaping capabilities with token-level data filteringcited by 13
- 2025When Bad Data Leads to Good Modelscited by 11
- 2025Think Twice, Generate Once: Safeguarding by Progressive Self-Reflectioncited by 11
- 2025Beyond Data Filtering: Knowledge Localization for Capability Removal in LLMscited by 11
- 2024AdaPPA: Adaptive Position Pre-Fill Jailbreak Attack Approach Targeting LLMscited by 8
- 2026When Should We Introduce Safety Interventions During Pretraining?cited by 7
- 2026Data-efficient pre-training by scaling synthetic megadocscited by 7
- 2025Generative Data Refinement: Just Ask for Better Datacited by 6
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Synthetic Persona Pretraining: Alignment from Token Zerocited by 1
- 2026Synthetic Persona Pretraining: Alignment from Token Zero13 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2024Towards Comprehensive Post Safety Alignment of Large Language Models via Safety Patching
- 2024Locking Down the Finetuned LLMs Safety
- 2024Safety Arithmetic: A Framework for Test-time Safety Alignment of Language Models by Steering Parameters and Activations
- 2026Dialectics of Alignment: Harnessing Unsafe Knowledge for Dynamic Safety Routing
- 2024Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models
- 2026PolicyAlign: Direct Policy-Based Safety Alignment for Large Language Models
- 2025SafeMERGE: Preserving Safety Alignment in Fine-Tuned Large Language Models via Selective Layer-Wise Model Merging
- 2024Controllable Safety Alignment: Inference-Time Adaptation to Diverse Safety Requirements