Beyond Imitation: Recovering Dense Rewards from Demonstrations

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Li, Jiangnan, Vu, Thuy-Trang, Abbasnejad, Ehsan, Haffari, Gholamreza
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909822730895360
author Li, Jiangnan
Vu, Thuy-Trang
Abbasnejad, Ehsan
Haffari, Gholamreza
author_facet Li, Jiangnan
Vu, Thuy-Trang
Abbasnejad, Ehsan
Haffari, Gholamreza
contents Conventionally, supervised fine-tuning (SFT) is treated as a simple imitation learning process that only trains a policy to imitate expert behavior on demonstration datasets. In this work, we challenge this view by establishing a fundamental equivalence between SFT and Inverse Reinforcement Learning. We prove that the SFT objective is a special case of Inverse Q-Learning, which implies that the SFT process does not just learn a policy, but also an implicit, dense, token-level reward model that explains the expert demonstrations. We then show how to recover this dense reward signal directly from the SFT model by formulating a baseline-relative reward function. The availability of such a dense reward model offers numerous benefits, providing granular credit assignment for each token generated. We demonstrate one key application by using these recovered rewards to further improve the policy with reinforcement learning. Our method, Dense-Path REINFORCE, consistently outperforms the original SFT models on instruction-following benchmarks. This work reframes SFT not merely as policy imitation but as a powerful reward learning mechanism, opening new possibilities for leveraging expert demonstrations.
format Preprint
id arxiv_https___arxiv_org_abs_2510_02493
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Beyond Imitation: Recovering Dense Rewards from Demonstrations
Li, Jiangnan
Vu, Thuy-Trang
Abbasnejad, Ehsan
Haffari, Gholamreza
Machine Learning
Computation and Language
Conventionally, supervised fine-tuning (SFT) is treated as a simple imitation learning process that only trains a policy to imitate expert behavior on demonstration datasets. In this work, we challenge this view by establishing a fundamental equivalence between SFT and Inverse Reinforcement Learning. We prove that the SFT objective is a special case of Inverse Q-Learning, which implies that the SFT process does not just learn a policy, but also an implicit, dense, token-level reward model that explains the expert demonstrations. We then show how to recover this dense reward signal directly from the SFT model by formulating a baseline-relative reward function. The availability of such a dense reward model offers numerous benefits, providing granular credit assignment for each token generated. We demonstrate one key application by using these recovered rewards to further improve the policy with reinforcement learning. Our method, Dense-Path REINFORCE, consistently outperforms the original SFT models on instruction-following benchmarks. This work reframes SFT not merely as policy imitation but as a powerful reward learning mechanism, opening new possibilities for leveraging expert demonstrations.
title Beyond Imitation: Recovering Dense Rewards from Demonstrations
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2510.02493