Optimizing Language Models for Inference Time Objectives using Reinforcement Learning

Yunhao Tang, Kunhao Zheng, Gabriel Synnaeve, Rémi Munos
3/25/2025
cs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

In this work, we investigate the merits of explicitly optimizing for inference time algorithmic performance during model training. We show how optimizing for inference time performance can improve overall model efficacy. We consider generic inference time objectives with $k$ samples, with a focus on pass@$k$ and majority voting as two main applications. With language model training on reasoning datasets, we showcase the performance trade-off enabled by training with such objectives. When training on code generation tasks, we show that the approach significantly improves pass@$k$ objectives compared to the baseline method.

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. 5 weaker matches are hidden by default — 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{tang2025optimizing,
  title  = {Optimizing Language Models for Inference Time Objectives using Reinforcement Learning},
  author = {Yunhao Tang and Kunhao Zheng and Gabriel Synnaeve and Rémi Munos},
  year   = {2025},
  eprint = {2503.19595},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.19595v2},
  journal = {ICML 2025 2025}
}

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

Discussion