TRANSMISSION // 2607.02781v3
A Calibrated Safety Trade-Off for Language Models
Source published
LARA adjusts how decoding balances helpfulness and harmfulness without updating a model’s weights. In tests on two small language models, Best-of-N reranking had the strongest results among the inference-time methods examined, though safety guarantees differ by decoding approach.

Can a language model be nudged toward safer answers without retraining it? A paper introducing Lagrangian Reward Augmentation (LARA) proposes a way to calibrate that nudge. The method uses separate models for helpfulness and harmfulness, then calculates a penalty intended to meet a chosen safety budget. Its results are promising in limited tests, but they do not establish that every decoding method will reliably enforce safety in real-world use.
The challenge of balancing helpfulness and safety
A language model’s answer can be useful and still be harmful. Systems that optimize a single score can struggle to represent this tension: a developer may want useful responses while also keeping a measure of harmfulness below a chosen limit. In many alignment approaches, the model’s weights are updated during training. That can be expensive to repeat when applications or safety requirements change.
Inference-time alignment takes another route. It keeps the language model frozen and uses additional scoring during decoding—the process of producing an answer. One approach, called Best-of-N, generates several complete answers and selects the one with the best score. Other methods use scores to steer token choices as an answer is generated. The paper’s concern is that these methods often rely on a manually chosen balance between helpfulness and safety, rather than deriving that balance from an explicit safety constraint.
Turning a safety budget into a scoring rule
The authors propose LARA, short for Lagrangian Reward Augmentation. It starts with a reward model that scores helpfulness and a cost model that scores harmfulness. A user or developer specifies a safety budget, expressed as a limit on expected cost. LARA then calibrates a nonnegative multiplier, called a dual variable, that determines how heavily cost is penalized relative to reward.
In plain terms, the adjusted score is helpfulness minus a multiplier times harmfulness. A larger multiplier makes harmfulness count more. Rather than hand-picking that multiplier, LARA estimates it using a small set of prompts and sampled responses from the frozen model. The authors show that, under their mathematical assumptions, this calibration can be reduced to a one-dimensional convex optimization problem, which can be searched efficiently. They also provide a finite-sample result describing how the estimate concentrates around the target under stated conditions.
LARA is a calibration layer, not a new decoding algorithm: its adjusted score can be plugged into existing methods. The theoretical interpretation depends on how that score is used. For sequence-level sampling, such as Best-of-N reranking, the calibrated multiplier corresponds to the solution of an expected-cost constrained problem. For token-level guidance, the authors describe it as a principled heuristic. Those methods do not exactly sample from the sequence-level constrained policy, so the same guarantee does not automatically carry over.
What the experiments found
The experiments used Llama-3.2-3B and Qwen-2.5-3B models, first fine-tuned on Alpaca to create reference models. The authors trained helpfulness and harmfulness scoring models using preference labels from BeaverTails. They calibrated LARA on a subset of BeaverTails training prompts and evaluated outputs on BeaverTails test prompts. Comparisons included Best-of-N, several token-level reward-guided methods, and fine-tuning-based baselines such as Safe-RLHF and SafeDPO.
For Best-of-N, the authors report that lower-than-calibrated penalties violated the selected expected-cost limit in their evaluation, while higher penalties met it at the cost of unnecessary reductions in helpfulness. At the calibrated setting, the method sat near the boundary of the target limit in the paper’s model-based evaluation. Among the inference-time methods tested, Best-of-N with LARA had the strongest helpfulness–harmlessness trade-off in that evaluation and was described as approaching fine-tuning-based direct-alignment baselines.
The comparison was not uniformly favorable to inference-time methods. In the reported Llama results, Safe-RLHF had the best overall trade-off among the methods considered. A separate evaluation using GPT-4o-mini as a judge broadly agreed on rankings, but showed little sensitivity to the LARA penalty for Best-of-N. The authors suggest that this judge may blur helpfulness and harmlessness into a more general quality judgment. That difference is a reminder that conclusions depend partly on how outputs are scored.
What remains uncertain
The study tests two 3-billion-parameter models, with an additional calibration analysis on Llama-3.1-8B. Its evaluations rely on a particular preference dataset and learned reward and cost models. A safety budget based on expected cost also says little by itself about the severity or distribution of rare failures. The paper notes that calibration prompts may not match deployment prompts, and presents bootstrapping as a practical robustness measure rather than a theoretical guarantee against such mismatch.
The exact constrained interpretation applies to sequence-level sampling under the paper’s assumptions, not to all inference-time methods. And a scoring rule that meets a benchmark-defined cost limit is not proof of safety across settings. The paper identifies itself as published at COLM 2026. Independent replication and broader testing would help establish how well the approach transfers beyond these experiments.
- AI safety
- language models
- inference-time alignment
- Lagrangian Reward Augmentation
- Best-of-N
- reward models
- decoding
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A new model explains how repeated jailbreak attempts scale
Source published
Shared keywords: ai safety
Teaching Vision AI When to Say “I’m Not Sure”
Source published
Shared keywords: ai safety
When searching harder makes a robot worse
Source published
Shared keywords: reward models
When an AI red-team’s reward signal gets it wrong
Source published
Shared keywords: ai safety, reward models
Teaching AI judges to compare what matters
Source published
Shared keywords: language models, reward models