Saffron-1: Towards an Inference Scaling Paradigm for LLM Safety Assurance

Ruizhong Qiu, Gaotang Li, Tianxin Wei, Jingrui He, Hanghang TongarXiv 2025 · DOI

Abstract

While Large Language Models (LLMs) have advanced significantly, their safety mechanisms remain vulnerable to adversarial attacks. This paper introduces SAFFRON-1, an inference scaling paradigm designed to enhance LLM safety. By replacing traditional, computationally expensive Process Reward Models (PRMs) with a novel Multifurcation Reward Model (MRM), SAFFRON-1 enables efficient token-level search. Combined with conservative exploration constraints and trie-based KV caching, the framework achieves state-of-the-art protection against jailbreaks with a 3x improvement in computational efficiency over existing search methods.

Introduction

Large Language Models (LLMs) are increasingly capable, yet their safety filters often prove brittle. Techniques like "jailbreaking" or "prefilling attacks" (e.g., forcing a model to start with "Sure, here is how to...") can bypass months of expensive safety alignment. Researchers from UIUC propose a shift in strategy: instead of relying solely on static training-phase safety (like RLHF), we should scale compute at inference time to search for safer outputs. This approach mirrors how models like OpenAI’s o1 scale compute for complex reasoning tasks.

The Exploration-Efficiency Dilemma

Standard inference scaling involves generating multiple responses and selecting the safest one, or using tree search (like Monte Carlo Tree Search, MCTS) to guide the model token-by-token. However, safety tasks face a unique "Exploration-Efficiency Dilemma." Unlike reasoning tasks with verifiable answers, safety is open-ended. Calling a "Process Reward Model" (PRM) to evaluate every candidate token during a search is prohibitively expensive. In practice, advanced search methods can be less efficient than simple random sampling due to this high reward-model overhead.

The SAFFRON-1 Framework

To overcome these hurdles, the authors introduce SAFFRON (Safe Multifurcation), featuring three core innovations:

1. Multifurcation Reward Model (MRM)

Traditional reward models evaluate a sequence and a single candidate token to produce a scalar score. For $K$ candidates, this requires $K$ separate passes. The MRM architecture instead outputs a vector of scores for the entire vocabulary in a single pass, effectively acting as a "Q-network" for safety. This collapse of the search width cost significantly boosts efficiency.

Comparison between expensive PRM-based search and the efficient MRM-based approach used in SAFFRON-1.

2. Conservative Exploration Constraint

Reward models can be unreliable when encountering Out-of-Distribution (OOD) tokens. SAFFRON-1 applies a conservative constraint that penalizes tokens not seen during training, preventing the search from entering "hallucinated" safety zones where the reward model's output is essentially random noise.

3. Trie-based KV Caching

To further accelerate tree search, SAFFRON-1 utilizes a prefix tree (Trie) to share the Key-Value (KV) cache across different search branches. By sharing computations for common prefixes, the model avoids redundant calculations, further streamlining the generation process.

Experimental Results

The researchers evaluated SAFFRON-1 using a Llama-3 8B policy model and a Llama Guard 3 1B reward model across several benchmarks, including Safety4M (a new dataset of 4 million token-level rewards), Harmful HEx-PHI, and Ai2 Refusals.

Superior Defense and Efficiency

On the Ai2 Refusals benchmark, SAFFRON-1 achieved an Attack Success Rate (ASR) of 0.175, outperforming the best baseline (Best-of-N at 0.285). Crucially, SAFFRON-1 demonstrated a 3x reduction in inference compute required to reach specific safety thresholds compared to the strongest baselines.

Safety inference scaling results showing that SAFFRON-1 achieves lower Attack Success Rates with significantly less compute than competing methods.

Preserved Response Quality

Unlike training-based defenses that can lead to repetitive, robotic refusals, SAFFRON-1 preserves lexical variety. By searching for the optimal path rather than following a rigid fine-tuned script, it provides more diverse, helpful, and nuanced refusals.

Conclusion

SAFFRON-1 represents a significant step toward robust LLM safety by leveraging inference-time compute. While currently dependent on access to model weights and specific tokenizers, the "multifurcation" approach offers a scalable path forward for safety assurance. Future work may extend these principles to broader reasoning tasks and black-box model environments.

Summary updated

Abstract

Existing safety assurance research has primarily focused on training-phase alignment to instill safe behaviors into LLMs. However, recent studies have exposed these methods' susceptibility to diverse jailbreak attacks. Concurrently, inference scaling has significantly advanced LLM reasoning capabilities but remains unexplored in the context of safety assurance. Addressing this gap, our work pioneers inference scaling for robust and effective LLM safety against emerging threats. We reveal that conventional inference scaling techniques, despite their success in reasoning tasks, perform poorly in safety contexts, even falling short of basic approaches like Best-of-N Sampling. We attribute this inefficiency to a newly identified challenge, the exploration--efficiency dilemma, arising from the high computational overhead associated with frequent process reward model (PRM) evaluations. To overcome this dilemma, we propose SAFFRON, a novel inference scaling paradigm tailored explicitly for safety assurance. Central to our approach is the introduction of a multifurcation reward model (MRM) that significantly reduces the required number of reward model evaluations. To operationalize this paradigm, we further propose: (i) a partial supervision training objective for MRM, (ii) a conservative exploration constraint to prevent out-of-distribution explorations, and (iii) a Trie-based key--value caching strategy that facilitates cache sharing across sequences during tree search. Extensive experiments validate the effectiveness of our method. Additionally, we publicly release our trained multifurcation reward model (Saffron-1) and the accompanying token-level safety reward dataset (Safety4M) to accelerate future research in LLM safety. Our code, model, and data are publicly available at https://github.com/q-rz/saffron , and our project homepage is at https://q-rz.github.io/p/saffron .
BibTeX
@misc{qiu2025saffron,
  author = {Ruizhong Qiu and Gaotang Li and Tianxin Wei and Jingrui He and Hanghang Tong},
  title = {{Saffron-1: Towards an Inference Scaling Paradigm for LLM Safety Assurance}},
  year = {2025},
  eprint = {2506.06444},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.06444},
}
Figure