From Data to Rewards: a Bilevel Optimization Perspective on Maximum Likelihood Estimation

Abdelhakim Benechehab, Gabriel Singer, Corentin Léger, Youssef Attia El Hili, Giuseppe Paolo +3 more
10/8/2025
stat.MLcs.LG

Official code: abenechehab/nll_to_po (4 stars, MIT, last commit 2026-04-13).

Abstract

Generative models form the backbone of modern machine learning, underpinning state-of-the-art systems in text, vision, and multimodal applications. While Maximum Likelihood Estimation has traditionally served as the dominant training paradigm, recent work have highlighted its limitations, particularly in generalization and susceptibility to catastrophic forgetting compared to Reinforcement Learning techniques, such as Policy Gradient methods. However, these approaches depend on explicit reward signals, which are often unavailable in practice, leaving open the fundamental problem of how to align generative models when only high-quality datasets are accessible. In this work, we address this challenge via a Bilevel Optimization framework, where the reward function is treated as the optimization variable of an outer-level problem, while a policy gradient objective defines the inner-level. We then conduct a theoretical analysis of this optimization problem in a tractable setting and extract insights that, as we demonstrate, generalize to applications such as tabular classification and model-based reinforcement learning. We release the code at https://github.com/abenechehab/nll_to_po .

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation the paper "Bridging SFT and RL: Learning implicit rewards from supervised data".

41Shell, PythonAug 2, 20256 months agoMIT
bilevel-optimizationgenerative-modelsmaximum-likelihood-estimationpolicy-gradient

Cite this paper

@article{benechehab2025from,
  title  = {From Data to Rewards: a Bilevel Optimization Perspective on Maximum Likelihood Estimation},
  author = {Abdelhakim Benechehab and Gabriel Singer and Corentin Léger and Youssef Attia El Hili and Giuseppe Paolo and Albert Thomas and Maurizio Filippone and Balázs Kégl},
  year   = {2025},
  eprint = {2510.07624},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.07624v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.07624.svg)](https://codeofpaper.com/paper/2510.07624)

Discussion