From
r to
Q∗: Your Language Model is Secretly a Q-Function
This paper resolves the mismatch between Direct Preference Optimization (DPO) and standard RLHF by theoretically deriving DPO in the token-level Markov decision process (MDP) as a general inverse Q-learning algorithm satisfying the Bellman equation. This token-level interpretation reveals three empirical insights: DPO implicitly performs credit assignment; search algorithms like MCTS are equivalent to likelihood-based search on a DPO policy, with beam search yielding meaningful improvement; and the choice of reference policy causes implicit rewards to decline during training. The work has applications in multi-turn dialogue, reasoning, and agentic systems.