NeurIPS 2026QuestionsPapersAreasAboutMarkdown

BSO: Safety Alignment Is Density Ratio Matching

Tien-Phat Nguyen, Truong Nguyen, Thin Nguyen, Duy M. H. Nguyen, Ngoc-Thanh Dinh, Trung Le

NeurIPS page · Open on the map

Category: AI Safety, Security & Alignment › LLM Safety Alignment Methods · Type: new method · Keywords: language model alignment, safety optimization, density ratio matching, Bregman divergence, preference optimization

Areas: Safety & Security › Safe Alignment › Fine-Tuning Safety Alignment

Summary

BSO reformulates safety alignment as a density ratio matching problem, providing a simple single-stage loss family that provably recovers the optimal safe policy and improves the safety-helpfulness trade-off.

Explained to a 5-year-old

People make computers that can talk and help us, but they also need to be safe. Right now, making them safe is complicated and uses many different steps. The new idea shows that making a safe computer is like matching two kinds of information. By doing this matching in a simple way, the computer can be both helpful and safe without extra tricks. This makes it easier for many people to create safe helpers.

Explained to a 5-year-old, longer

Computers can talk and answer questions, but we also want them to be nice and not say bad things. Right now, making them nice is a big job that needs many different parts. Some new ideas try to make it simpler, but they often just add quick fixes. This paper looks at the problem and finds a way to think about safety that is like comparing two kinds of information. It shows that the best safe way to talk can be written as a simple formula. By using this formula, we can train the computer in one step instead of many. The method needs only one extra small setting, making it easy to use. It also works like other known methods, so it fits with what we already know. When they test it, the computer becomes safer while still being helpful. This means people can build helpful assistants that are less likely to say harmful things. The new approach makes safety easier for everyone who works with computers. Overall, it gives a clear and simple recipe for aligning computers with both helpfulness and safety.

For a technical reader

The paper addresses the challenge of aligning language models to be both helpful and safe, which currently requires complex pipelines with separate reward and cost models. It shows that the optimal safe policy can be expressed as a likelihood ratio that decomposes into a density ratio matching problem. By minimizing Bregman divergences between the data and model ratios, the authors derive a family of single-stage loss functions that provably recover the optimal safe policy. The resulting method needs only one extra hyperparameter beyond standard preference optimization and eliminates the need for auxiliary models. Experiments on safety alignment benchmarks confirm that this simpler approach consistently improves the trade-off between safety and helpfulness.

Problem

Aligning language models to be both helpful and safe typically involves complex pipelines with separate reward and cost models and reinforcement learning, while recent simplified methods lack a principled safety component. The problem is to develop a principled, single-stage approach that aligns models for safety without auxiliary components.

Method

The approach derives a closed-form decomposition of the optimal safe policy’s likelihood ratio, framing safety alignment as a density ratio matching problem. It then minimizes Bregman divergences between the data and model ratios, producing a family of single-stage loss functions that recover the optimal policy.

Results

The experiments demonstrate that the approach consistently improves the safety-helpfulness trade-off on safety alignment benchmarks.

Contributions

It provides a principled derivation linking safety alignment to density ratio matching, introduces a family of Bregman-based loss functions that recover the optimal safe policy, and shows that existing safety-aware methods are special cases.

Practical relevance

It enables simpler, more robust deployment of safe language models by providing a single-stage alignment method that integrates safety without extra components.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction