Adaptive Decoding via Latent Preference Optimization

Shehzaad Dhuliawala, Ilia Kulikov, Ping Yu, Asli Celikyilmaz, Jason Weston +2 more
11/14/2024
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

During language model decoding, it is known that using higher temperature sampling gives more creative responses, while lower temperatures are more factually accurate. However, such models are commonly applied to general instruction following, which involves both creative and fact seeking tasks, using a single fixed temperature across all examples and tokens. In this work, we introduce Adaptive Decoding, a layer added to the model to select the sampling temperature dynamically at inference time, at either the token or example level, in order to optimize performance. To learn its parameters we introduce Latent Preference Optimization (LPO) a general approach to train discrete latent variables such as choices of temperature. Our method outperforms all fixed decoding temperatures across a range of tasks that require different temperatures, including UltraFeedback, Creative Story Writing, and GSM8K.

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. 1 weaker match is 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{dhuliawala2024adaptive,
  title  = {Adaptive Decoding via Latent Preference Optimization},
  author = {Shehzaad Dhuliawala and Ilia Kulikov and Ping Yu and Asli Celikyilmaz and Jason Weston and Sainbayar Sukhbaatar and Jack Lanchantin},
  year   = {2024},
  eprint = {2411.09661},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.09661v1}
}

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

Discussion