Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Data

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Tajwar, Fahim, Singh, Anikait, Sharma, Archit, Rafailov, Rafael, Schneider, Jeff, Xie, Tengyang, Ermon, Stefano, Finn, Chelsea, Kumar, Aviral
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913375011733504
author Tajwar, Fahim
Singh, Anikait
Sharma, Archit
Rafailov, Rafael
Schneider, Jeff
Xie, Tengyang
Ermon, Stefano
Finn, Chelsea
Kumar, Aviral
author_facet Tajwar, Fahim
Singh, Anikait
Sharma, Archit
Rafailov, Rafael
Schneider, Jeff
Xie, Tengyang
Ermon, Stefano
Finn, Chelsea
Kumar, Aviral
contents Learning from preference labels plays a crucial role in fine-tuning large language models. There are several distinct approaches for preference fine-tuning, including supervised learning, on-policy reinforcement learning (RL), and contrastive learning. Different methods come with different implementation tradeoffs and performance differences, and existing empirical findings present different conclusions, for instance, some results show that online RL is quite important to attain good fine-tuning results, while others find (offline) contrastive or even purely supervised methods sufficient. This raises a natural question: what kind of approaches are important for fine-tuning with preference data and why? In this paper, we answer this question by performing a rigorous analysis of a number of fine-tuning techniques on didactic and full-scale LLM problems. Our main finding is that, in general, approaches that use on-policy sampling or attempt to push down the likelihood on certain responses (i.e., employ a "negative gradient") outperform offline and maximum likelihood objectives. We conceptualize our insights and unify methods that use on-policy sampling or negative gradient under a notion of mode-seeking objectives for categorical distributions. Mode-seeking objectives are able to alter probability mass on specific bins of a categorical distribution at a fast rate compared to maximum likelihood, allowing them to relocate masses across bins more effectively. Our analysis prescribes actionable insights for preference fine-tuning of LLMs and informs how data should be collected for maximal improvement.
format Preprint
id arxiv_https___arxiv_org_abs_2404_14367
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Data
Tajwar, Fahim
Singh, Anikait
Sharma, Archit
Rafailov, Rafael
Schneider, Jeff
Xie, Tengyang
Ermon, Stefano
Finn, Chelsea
Kumar, Aviral
Machine Learning
Learning from preference labels plays a crucial role in fine-tuning large language models. There are several distinct approaches for preference fine-tuning, including supervised learning, on-policy reinforcement learning (RL), and contrastive learning. Different methods come with different implementation tradeoffs and performance differences, and existing empirical findings present different conclusions, for instance, some results show that online RL is quite important to attain good fine-tuning results, while others find (offline) contrastive or even purely supervised methods sufficient. This raises a natural question: what kind of approaches are important for fine-tuning with preference data and why? In this paper, we answer this question by performing a rigorous analysis of a number of fine-tuning techniques on didactic and full-scale LLM problems. Our main finding is that, in general, approaches that use on-policy sampling or attempt to push down the likelihood on certain responses (i.e., employ a "negative gradient") outperform offline and maximum likelihood objectives. We conceptualize our insights and unify methods that use on-policy sampling or negative gradient under a notion of mode-seeking objectives for categorical distributions. Mode-seeking objectives are able to alter probability mass on specific bins of a categorical distribution at a fast rate compared to maximum likelihood, allowing them to relocate masses across bins more effectively. Our analysis prescribes actionable insights for preference fine-tuning of LLMs and informs how data should be collected for maximal improvement.
title Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Data
topic Machine Learning
url https://arxiv.org/abs/2404.14367