TokenRatio: Principled Token-Level Preference Optimization via Ratio Matching

Truong Nguyen, Tien-Phat Nguyen, Linh Ngo Van, Duy Minh Ho Nguyen, Khoa Doan +1 more
5/12/2026
cs.CLcs.AI

No official code found. Best implementation: tienphat140205/TBPO (1 star, last commit 2026-07-01).

Abstract

Direct Preference Optimization (DPO) is a widely used RL-free method for aligning language models from pairwise preferences, but it models preferences over full sequences even though generation is driven by per-token decisions. Existing token-level extensions typically decompose a sequence-level Bradley-Terry objective across timesteps, leaving per-prefix (state-wise) optimality implicit. We study how to recover token-level preference optimality using only standard sequence-level pairwise comparisons. We introduce Token-level Bregman Preference Optimization (TBPO), which posits a token-level Bradley-Terry preference model over next-token actions conditioned on the prefix, and derive a Bregman-divergence density-ratio matching objective that generalizes the logistic/DPO loss while preserving the optimal policy induced by the token-level model and maintaining DPO-like simplicity. We introduce two instantiations: TBPO-Q, which explicitly learns a lightweight state baseline, and TBPO-A, which removes the baseline through advantage normalization. Across instruction following, helpfulness/harmlessness, and summarization benchmarks, TBPO improves alignment quality and training stability and increases output diversity relative to strong sequence-level and token-level baselines.

View on arXivView PDF

Code Implementations(1)

Repository associated with paper titled "TokenRatio: Principled Token-Level Preference Optimization via Ratio Matching", presented at ICML 2026.

10Shell, PythonJul 1, 20263 months ago

Similar Papers

Cite this paper

@article{nguyen2026tokenratio,
  title  = {TokenRatio: Principled Token-Level Preference Optimization via Ratio Matching},
  author = {Truong Nguyen and Tien-Phat Nguyen and Linh Ngo Van and Duy Minh Ho Nguyen and Khoa Doan and Trung Le},
  year   = {2026},
  eprint = {2605.12288},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.12288v1}
}

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/2605.12288.svg)](https://codeofpaper.com/paper/2605.12288)

Discussion