A Note on Hybrid Online Reinforcement and Imitation Learning for LLMs: Formulations and Algorithms

Yingru Li, Ziniu Li, Jiacai Liu
12/28/2025
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

We present a unified framework for Large Language Model (LLM) fine-tuning that integrates Imitation Learning and Reinforcement Learning. By analyzing the gradient of a composite objective combining trajectory-level KL divergence with task rewards, we derive a natural decomposition into two components: (1) an analytically computable Dense Gradient for token-level imitation, and (2) a Monte Carlo estimated Sparse Gradient for long-horizon reward optimization. The Dense Gradient admits a closed-form logit-level formula, enabling efficient GPU implementation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025note,
  title  = {A Note on Hybrid Online Reinforcement and Imitation Learning for LLMs: Formulations and Algorithms},
  author = {Yingru Li and Ziniu Li and Jiacai Liu},
  year   = {2025},
  eprint = {2512.23097},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.23097v1}
}

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

Discussion