Lune

ICML2026Top-tier venue

RBCBF: Decoding Time Safety Alignment via Risk Guided Rollback and Barrier Control

Tianxiang Chen, Jingyuan Zhou, Longhao Yan, Kaidi Yang

2026Year

Abstract

Existing decoding-time safety interventions are often reactive, relying on local signals to correct unsafe outputs after they emerge. Under adversarial prompts that drive generation into recurring unsafe response, such local signals provide weak guidance for stable repair. As a result, rollback and post-hoc rewriting often trade-off response quality with recurrent violations. To address these limitations, we propose RBCBF, a rollback-based decoding-time framework that jointly selects intervention steps and performs distribution-level corrective control. Our key innovation is a riskaggregation formulation that views terminal violations as the accumulated build-up of risk along the prefix. By selecting rollback steps from these decisive prefixes, RBCBF moves rollback targeting beyond heuristic cues and turns it into a trajectorylevel decision. RBCBF then applies invasive corrective control to the next-token distribution under multiple rule constraints. Across jailbreakstyle evaluations, RBCBF outperforms prior rollback methods and decoding-time baselines, reducing harmful responses and substantially lowering violation recurrence. Code is available at https://github.com/XTERY11/RBCBF.

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext cfc07cd1-4856-4fa3-9366-c716cedc94a6

Builds on13

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines