arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.08064

Risk-Conditioned Fine-Tuning of Large Language Models

Zixuan Liu, Fangzheng Wu, Brian Summa, Zizhan zheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) are increasingly deployed in settings where rare but severe harmful generations can have significant consequences. Existing Risk-Averse RLHF addresses this issue by optimizing Conditional Value-at-Risk (CVaR), but it trains policies for fixed risk levels and therefore cannot adjust the desired degree of risk aversion at inference time. In this paper, we propose risk-conditioned RLHF, a framework that trains a single policy that provides a continuous risk-control interface, enabling users to select different degrees of risk aversion without retraining or deploying multiple risk-specific models. Experiments across multiple benchmarks demonstrate that a single risk-conditioned policy can adapt to different risk levels at inference time, enabling more flexible and risk-aware LLM deployment. The code is available at https://github.com/ZixuanLiu4869/risk-conditioned. This paper contains example data that may be offensive or harmful.

1 Introduction

Large Language Models (LLMs) (Singh et al., 2025; Team et al., 2023; Liu et al., 2024a) have demonstrated remarkable capabilities across a wide range of domains, including summarization (Sti-ennon et al., 2020; Ziegler et al., 2019; Koh et al., 2022), conversational assistance (Ouyang et al., 2022; Touvron et al., 2023), and complex reasoning (Anil et al., 2023; Gao et al., 2023; Chen et al., 2021). As LLMs are increasingly deployed in real-world applications with broad societal impact, it is crucial to ensure that their responses do not contain harmful or toxic content, such as discrimination (Gehman et al., 2020; Weidinger et al., 2021; Deshpande et al., 2023), or violate social norms (Bai et al., 2022a; Ganguli et al., 2022; Bai et al., 2022b). To this end, recent work (Dai et al., 2024; Liu et al., 2024c; Zhang et al., 2026) has

extended the standard fine-tuning framework of Reinforcement Learning from Human Feedback (RLHF) by incorporating safety constraints that limit the expected harmfulness of model outputs. However, expectation-based safety constraints primarily control average behavior. As a result, highly safe responses can offset harmful ones in expectation, leaving the low-probability tail of generations still vulnerable to rare but severe harmful outputs.

To address this issue, Risk-Averse RLHF (RA-RLHF) (Chaudhary et al., 2024) introduces risk aversion into LLM fine-tuning. RA-RLHF adopts Conditional Value-at-Risk (CVaR) (Tamar et al., 2015a; Greenberg et al., 2022) to directly optimize rare high-risk generations rather than average response quality, making it particularly suitable for LLM safety alignment in high-stakes applications, such as medical advice (Yang et al., 2022; Moor et al., 2023), legal assistance (Katz et al., 2024), and disaster management (Goecks and Waytowich, 2023; Chen et al., 2026; Emami et al., 2025), where even a small probability of severe harmful output may be unacceptable. The degree of risk aversion in CVaR is controlled by the risk level α∈(0,1]\alpha \in (0,1], which determines the fraction of worst-case outcomes used to evaluate the policy. A smaller α\alpha concentrates on more extreme rare failures. In contrast, a larger α\alpha considers a broader portion of the output distribution and behaves closer to average harm, which is appropriate for lower-risk applications such as casual conversation (Ouyang et al., 2022; Touvron et al., 2023) or creative writing (Xie et al., 2023; Dhillon et al., 2024), where overly conservative behavior can unnecessarily reduce helpfulness or diversity. Therefore, the choice of risk level plays a central role in determining the behavior of the aligned policy.

However, selecting an appropriate α\alpha is challenging because there is unlikely to be a universal risk level that works well across all applications and users (Yoo et al., 2024). Different deployment sce-

Figure

Figure 1: Risk-conditioned RLHF pipeline compared to prior risk-averse RLHF method. Existing risk-averse RLHF methods do not support inference-time adjustment. In contrast, our method trains a single policy over risk levels. At inference time, the same policy can be steered by selecting α\alpha, enabling continuous control over the degree of risk aversion without retraining or deploying multiple models.

narios may require different degrees of conservativeness, and individual users may also have different preferences over the trade-off between safety and utility (Acerbi et al., 2001; Acerbi and Simonetti, 2002; Adam et al., 2008). Existing methods, such as RA-RLHF, train the policy for a fixed risk level, and therefore do not provide a mechanism for adjusting the desired degree of risk aversion at inference time. A naive solution is to train and deploy multiple policies, one for each target risk level. However, this requires repeated training and storing multiple model instances, which is computationally expensive and may be impractical in resource-limited settings (Wang et al., 2024c; Girija et al., 2025).

In this paper, we propose risk-conditioned RLHF (Figure 1), which trains a single policy that can be steered across a continuum of risk levels within a deployment interval at inference time. To do this, we condition the policy π\pi on both the prompt xx and the desired risk level α∈[αmin⁡,αmax⁡]\alpha \in [\alpha_{\min}, \alpha_{\max}], producing responses Y∼π(⋅∣x,α)Y \sim \pi(\cdot \mid x, \alpha). We formulate this as a risk-conditioned RLFH optimization problem, where training is performed over a distribution of risk levels p(α)p(\alpha). As a result, the learned policy provides a continuous risk-control interface: users can select the desired degree of risk aversion at inference time without retraining or deploying multiple risk-specific models. To optimize this objective, we propose a risk-conditioned policy gradient al-

gorithm (Algorithm 1), provide convergence analysis (Theorem 2), and present additional analysis showing that the resulting policy yields a uniform approximation of the risk frontier (Theorem 3). To instantiate the risk-conditioned policy, we further study how the risk level α\alpha should be injected into the LLM (Figure 2). Inspired by recent work on multi-objective fine-tuning (Wang et al., 2024b; Rame et al., 2023), we consider both prompt-based conditioning, which represents α\alpha as part of the input text, and parameter-based conditioning, which injects α\alpha directly into selected model parameters. Empirically, we find that explicit parameter-level conditioning provides more reliable risk control than natural-language prompting. Experiments across multiple benchmarks show that the proposed risk-conditioned policy can closely match the performance of policies trained specifically for individual risk levels, while using only a single deployable model. More importantly, the learned policy remains steerable at risk levels not observed within the training interval, achieving competitive or stronger tail-risk performance than baselines such as inference-time prompting, multiple fixed-risk policies and logit-mixing policy (Section 4.3).

In summary, our contributions are: 1. We introduce the risk-conditioned RLHF framework, where a single language model is trained to adapt to different CVaR risk levels at inference time. This formulation avoids training and deploying sepa-rate policies for different target risk levels while retaining an explicit risk interpretation. 2. We propose a risk-conditioned policy gradient algorithm for the proposed framework, provide convergence analysis, and show that the resulting policy leads to uniform approximation over the risk frontier. 3. Extensive experiments with Pythia-70M (Section 4), Pythia-2.8B model (Appendix E.1), and Llama-3.1-8B-Instruct (Appendix E.2) show that our risk-conditioned policy achieves performance comparable to risk-specific policies trained at individual risk levels, while offering better inference-time steerability.

References (79)