Reinforcement Learning with Backtracking Feedback
Not on the map. Why?
Abstract (arXiv)
Addressing the critical need for robust safety in Large Language Models (LLMs), particularly against adversarial attacks and in-distribution errors, we introduce Reinforcement Learning with Backtracking Feedback (RLBF). This framework advances upon prior methods, such as BSAFE, by primarily leveraging a Reinforcement Learning (RL) stage where models learn to dynamically correct their own generation errors. Through RL with critic feedback on the model's live outputs, LLMs are trained to identify and recover from their actual, emergent safety violations by emitting an efficient "backtrack by x tokens" signal, then continuing generation autoregressively. This RL process is crucial for instilling resilience against sophisticated adversarial strategies, including middle filling, Greedy Coordinate Gradient (GCG) attacks, and decoding parameter manipulations. To further support the acquisition of this backtracking capability, we also propose an enhanced Supervised Fine-Tuning (SFT) data generation strategy (BSAFE+). This method improves upon previous data creation techniques by injecting violations into coherent, originally safe text, providing more effective initial training for the backtracking mechanism. Comprehensive empirical evaluations demonstrate that RLBF significantly reduces attack success rates across diverse benchmarks and model scales, achieving superior safety outcomes while critically preserving foundational model utility.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 40 of its 46 references that are in the map. First posted on arXiv 9 Feb 2026.
Builds on
40 of 46 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
28 more
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2020Aligning AI With Shared Human Valuescited by 706
- 2023RRHF: Rank Responses to Align Language Models with Human Feedback without tearscited by 454
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 450
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
- 2018Scalable agent alignment via reward modeling: a research directioncited by 438
- 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 419
- 2023Are aligned neural networks adversarially aligned?cited by 305
- 2024Improving Alignment and Robustness with Circuit Breakerscited by 302
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
- 2023Large Language Model Alignment: A Surveycited by 241
- 2023ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversationcited by 224
- 2023Large Language Model Guided Tree-of-Thoughtcited by 218
- 2021Alignment of Language Agentscited by 167
- 2023Algorithm of Thoughts: Enhancing Exploration of Ideas in Large Language Modelscited by 92
- 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Surveycited by 80
- 2023Large Language Models for Supply Chain Optimizationcited by 61
- 2024Backtracking Improves Generation Safetycited by 31
- 2023Let's Do a Thought Experiment: Using Counterfactuals to Improve Moral Reasoningcited by 20
- 2024Does Safety Training of LLMs Generalize to Semantically Related Natural Prompts?cited by 15
- 2025LLMs Can Plan Only If We Tell Themcited by 15
- 2024Skin-in-the-Game: Decision Making via Multi-Stakeholder Alignment in LLMscited by 8
- 2025Backtracking for Safetycited by 4
Built on by
Not cited yet.