NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Every Sample Counts: Supervised Fine-Tuning of Language Models with Pointwise Constraints

Ignacio Hounie, Ignacio Boero, Alejandro Ribeiro

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Test-Time Scaling and Optimization · Type: new method · Keywords: supervised fine-tuning, pointwise constraints, language model alignment, augmented Lagrangian, sample-dependent relaxation

Summary

A finetuning framework that enforces per-sample constraints via an augmented Lagrangian and a learned relaxation to reduce tail violations while preserving or improving downstream performance.

Explained to a 5-year-old

We want a computer program that answers questions nicely for everyone. Sometimes the program makes mistakes for some people, and we want to fix those mistakes just for them. The new idea makes the program learn special rules for each question, so it helps everyone more evenly. It also makes sure the program doesn't get too strict when it's unsure. This helps the program be safer and work better for all tasks.

Explained to a 5-year-old, longer

Imagine a chatbot that helps people with many different things. It should be nice and safe for every user. Sometimes the chatbot makes mistakes for some users, and we want to fix those mistakes just for them. The new method looks at each question separately and adds special rules for each one. It uses a clever math trick to make sure the rules are fair. It also learns how much to relax the rules when the question is rare. This helps the chatbot avoid big errors for unusual cases. At the same time, it keeps the chatbot good at normal tasks. The approach works on three kinds of tasks: answering safely, choosing the right function, and ordering results by length. By doing this, the chatbot becomes more balanced and reliable for everyone. It also stays easy to train and use. Overall, the method makes language models more consistent and safer.

For a technical reader

The paper presents a fine-tuning framework that enforces alignment constraints on a per-sample basis instead of averaging them across the dataset. It formulates the constraints using an augmented Lagrangian in the dual domain and learns a sample-dependent relaxation to avoid over-constraining rare or outlier inputs. This dual-domain optimization reduces tail constraint violations while preserving or improving downstream task performance. The method is evaluated on three small-scale language-model tasks covering safety, function-calling preferences, and length-aware re-ranking. Results show consistent improvements in constraint compliance without sacrificing overall model quality.

Problem

Current alignment methods enforce constraints only on average, leading to undesirable disparities across individual inputs or users. There is a need for finetuning techniques that enforce constraints per sample rather than in aggregate.

Method

The approach formulates per-sample constraints using an augmented Lagrangian in the dual domain and introduces a learned, sample-dependent relaxation to mitigate overly strict constraints in low-probability regions. This allows optimization that respects individual requirements while maintaining overall performance.

Results

The approach reduces tail constraint violations while largely preserving or improving downstream performance across the three tasks.

Contributions

It introduces a finetuning framework that enforces per-sample constraints via an augmented Lagrangian and a learned relaxation, addressing the limitation of average-only constraints. This leads to reduced violations in tail cases while maintaining performance.

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