Latent Preference Coding: Aligning Large Language Models via Discrete Latent Codes

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Gong, Zhuocheng, Guan, Jian, Wu, Wei, Zhang, Huishuai, Zhao, Dongyan
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908353841594368
author Gong, Zhuocheng
Guan, Jian
Wu, Wei
Zhang, Huishuai
Zhao, Dongyan
author_facet Gong, Zhuocheng
Guan, Jian
Wu, Wei
Zhang, Huishuai
Zhao, Dongyan
contents Large language models (LLMs) have achieved remarkable success, yet aligning their generations with human preferences remains a critical challenge. Existing approaches to preference modeling often rely on an explicit or implicit reward function, overlooking the intricate and multifaceted nature of human preferences that may encompass conflicting factors across diverse tasks and populations. To address this limitation, we introduce Latent Preference Coding (LPC), a novel framework that models the implicit factors as well as their combinations behind holistic preferences using discrete latent codes. LPC seamlessly integrates with various offline alignment algorithms, automatically inferring the underlying factors and their importance from data without relying on pre-defined reward functions and hand-crafted combination weights. Extensive experiments on multiple benchmarks demonstrate that LPC consistently improves upon three alignment algorithms (DPO, SimPO, and IPO) using three base models (Mistral-7B, Llama3-8B, and Llama3-8B-Instruct). Furthermore, deeper analysis reveals that the learned latent codes effectively capture the differences in the distribution of human preferences and significantly enhance the robustness of alignment against noise in data. By providing a unified representation for the multifarious preference factors, LPC paves the way towards developing more robust and versatile alignment techniques for the responsible deployment of powerful LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2505_04993
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Latent Preference Coding: Aligning Large Language Models via Discrete Latent Codes
Gong, Zhuocheng
Guan, Jian
Wu, Wei
Zhang, Huishuai
Zhao, Dongyan
Computation and Language
Large language models (LLMs) have achieved remarkable success, yet aligning their generations with human preferences remains a critical challenge. Existing approaches to preference modeling often rely on an explicit or implicit reward function, overlooking the intricate and multifaceted nature of human preferences that may encompass conflicting factors across diverse tasks and populations. To address this limitation, we introduce Latent Preference Coding (LPC), a novel framework that models the implicit factors as well as their combinations behind holistic preferences using discrete latent codes. LPC seamlessly integrates with various offline alignment algorithms, automatically inferring the underlying factors and their importance from data without relying on pre-defined reward functions and hand-crafted combination weights. Extensive experiments on multiple benchmarks demonstrate that LPC consistently improves upon three alignment algorithms (DPO, SimPO, and IPO) using three base models (Mistral-7B, Llama3-8B, and Llama3-8B-Instruct). Furthermore, deeper analysis reveals that the learned latent codes effectively capture the differences in the distribution of human preferences and significantly enhance the robustness of alignment against noise in data. By providing a unified representation for the multifarious preference factors, LPC paves the way towards developing more robust and versatile alignment techniques for the responsible deployment of powerful LLMs.
title Latent Preference Coding: Aligning Large Language Models via Discrete Latent Codes
topic Computation and Language
url https://arxiv.org/abs/2505.04993