MultiRisk: Multiple Risk Control via Iterative Score Thresholding

Sunay Joshi, Yan Sun, Hamed Hassani, Edgar DobribanarXiv 2025 · DOI

Abstract

As Large Language Models (LLMs) are deployed in high-stakes environments, ensuring they adhere to multiple safety and quality constraints is paramount. This paper introduces MultiRisk, a framework for test-time filtering that uses iterative score thresholding to provide rigorous, distribution-free guarantees for multiple risks simultaneously. By framing the problem as a sequential optimization, MultiRisk achieves efficient risk control while maximizing model utility.

Introduction

As generative AI models like LLMs move from research labs to critical real-world applications in healthcare and education, "quality control" is no longer optional. We need models that are not just helpful, but also safe, fair, and reliable. While techniques like RLHF (Reinforcement Learning from Human Feedback) help align models during training, they are computationally expensive and hard to update.

AI developers often face a "balancing act." They want a model to be as helpful as possible, but it must also avoid generating toxic content, leaking private data, or being overly confident when it's actually uncertain. The standard way to handle this at test-time is to compute "risk scores" (e.g., a toxicity score) and block outputs that exceed a certain threshold. However, when you have multiple risks to control, finding the right combination of thresholds is difficult. A naive search across all possible threshold combinations is computationally "explosive." Furthermore, ensuring that these thresholds actually work on new, unseen data—providing "finite-sample guarantees"—is a significant theoretical challenge.

Methods: Iterative Score Thresholding

MultiRisk is a framework for controlling multiple dimensions of AI behavior (like safety and uncertainty) at test-time using iterative score thresholding. The core idea is to prioritize risks in a sequence (e.g., check for "Crime" first, then "Uncertainty").

An illustration of the sequential decision process where scores are compared to thresholds to determine model behavior.

The paper introduces two key algorithms:

  1. MULTIRISK-BASE: A baseline that uses dynamic programming to find thresholds based on empirical data. It’s fast but lacks formal guarantees for small datasets.
  2. MULTIRISK: The flagship algorithm. It refines the baseline by using "bumped" empirical risk functions—essentially adding a small, conservative "safety buffer" to the thresholds.

By leveraging the monotonicity of risk (i.e., increasing a threshold always decreases the risk of a violation), the authors use dynamic programming to solve the multi-dimensional optimization problem as a series of simple one-dimensional steps. This approach is inspired by conformal prediction, a field of statistics that provides "distribution-free" guarantees, meaning the math holds up regardless of the underlying data distribution.

Experimental Results

The researchers evaluated their framework using the PKU-SafeRLHF dataset, which contains 30,000 examples of prompts and responses labeled for safety and helpfulness. They simulated a three-constraint alignment task involving violent crimes, non-violent crimes/privacy, and an uncertainty constraint (perplexity-based filter).

In their LLM alignment experiments, MultiRisk significantly outperformed the Learn Then Test (LTT) baseline, which is the current standard for multi-risk control.

Experimental results showing that MultiRisk achieves lower objective test risk compared to baselines while strictly controlling multiple safety risks.

Key findings include:

  • Lower Objective Risk: For the same level of safety, MultiRisk achieved much higher "helpfulness" (lower objective test risk) than LTT.
  • Tight Risk Control: The actual test-time risks for MultiRisk tracked the user-defined budgets almost perfectly.
  • The "Bump" Matters: Simply using empirical averages can lead to risk violations on new data. The "bumped" risk function in MULTIRISK (adding a term proportional to $1/(n+1)$) is what provides the rigorous mathematical guarantee of risk control.

Conclusion and Future Work

MultiRisk provides the first computationally efficient algorithms with rigorous, distribution-free guarantees that multiple risks will stay within user-defined budgets while maximizing model performance. By defining a priority order for risks, the authors turn a complex high-dimensional search into an efficient sequential process.

The current framework assumes a sequential dependency between risks. While this fits many real-world scenarios, some applications might have more complex, graph-structured dependencies. Extending MultiRisk to handle these non-sequential structures is a promising direction for future research. Additionally, the method relies on having access to reliable score functions for each risk dimension.

Summary updated

BibTeX
@misc{joshi2025multirisk,
  author = {Sunay Joshi and Yan Sun and Hamed Hassani and Edgar Dobriban},
  title = {{MultiRisk: Multiple Risk Control via Iterative Score Thresholding}},
  year = {2025},
  eprint = {2512.24587},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.24587},
}

Loading related content...

Figure