Inference time LLM alignment in single and multidomain preference spectrum

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Shahriar, Sadat, Qi, Zheng, Pappas, Nikolaos, Doss, Srikanth, Sunkara, Monica, Halder, Kishaloy, Mager, Manuel, Benajiba, Yassine
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917815906205696
author Shahriar, Sadat
Qi, Zheng
Pappas, Nikolaos
Doss, Srikanth
Sunkara, Monica
Halder, Kishaloy
Mager, Manuel
Benajiba, Yassine
author_facet Shahriar, Sadat
Qi, Zheng
Pappas, Nikolaos
Doss, Srikanth
Sunkara, Monica
Halder, Kishaloy
Mager, Manuel
Benajiba, Yassine
contents Aligning Large Language Models (LLM) to address subjectivity and nuanced preference levels requires adequate flexibility and control, which can be a resource-intensive and time-consuming procedure. Existing training-time alignment methods require full re-training when a change is needed and inference-time ones typically require access to the reward model at each inference step. To address these limitations, we introduce inference-time model alignment method that learns encoded representations of preference dimensions, called \textit{Alignment Vectors} (AV). These representations are computed by subtraction of the base model from the aligned model as in model editing enabling dynamically adjusting the model behavior during inference through simple linear operations. Even though the preference dimensions can span various granularity levels, here we focus on three gradual response levels across three specialized domains: medical, legal, and financial, exemplifying its practical potential. This new alignment paradigm introduces adjustable preference knobs during inference, allowing users to tailor their LLM outputs while reducing the inference cost by half compared to the prompt engineering approach. Additionally, we find that AVs are transferable across different fine-tuning stages of the same model, demonstrating their flexibility. AVs also facilitate multidomain, diverse preference alignment, making the process 12x faster than the retraining approach.
format Preprint
id arxiv_https___arxiv_org_abs_2410_19206
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Inference time LLM alignment in single and multidomain preference spectrum
Shahriar, Sadat
Qi, Zheng
Pappas, Nikolaos
Doss, Srikanth
Sunkara, Monica
Halder, Kishaloy
Mager, Manuel
Benajiba, Yassine
Machine Learning
Computation and Language
Aligning Large Language Models (LLM) to address subjectivity and nuanced preference levels requires adequate flexibility and control, which can be a resource-intensive and time-consuming procedure. Existing training-time alignment methods require full re-training when a change is needed and inference-time ones typically require access to the reward model at each inference step. To address these limitations, we introduce inference-time model alignment method that learns encoded representations of preference dimensions, called \textit{Alignment Vectors} (AV). These representations are computed by subtraction of the base model from the aligned model as in model editing enabling dynamically adjusting the model behavior during inference through simple linear operations. Even though the preference dimensions can span various granularity levels, here we focus on three gradual response levels across three specialized domains: medical, legal, and financial, exemplifying its practical potential. This new alignment paradigm introduces adjustable preference knobs during inference, allowing users to tailor their LLM outputs while reducing the inference cost by half compared to the prompt engineering approach. Additionally, we find that AVs are transferable across different fine-tuning stages of the same model, demonstrating their flexibility. AVs also facilitate multidomain, diverse preference alignment, making the process 12x faster than the retraining approach.
title Inference time LLM alignment in single and multidomain preference spectrum
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2410.19206