HYDRA: Model Factorization Framework for Black-Box LLM Personalization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhuang, Yuchen, Sun, Haotian, Yu, Yue, Qiang, Rushi, Wang, Qifan, Zhang, Chao, Dai, Bo
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929560936775680
author Zhuang, Yuchen
Sun, Haotian
Yu, Yue
Qiang, Rushi
Wang, Qifan
Zhang, Chao
Dai, Bo
author_facet Zhuang, Yuchen
Sun, Haotian
Yu, Yue
Qiang, Rushi
Wang, Qifan
Zhang, Chao
Dai, Bo
contents Personalization has emerged as a critical research area in modern intelligent systems, focusing on mining users' behavioral history and adapting to their preferences for delivering tailored experiences. Despite the remarkable few-shot capabilities exhibited by black-box large language models (LLMs), the inherent opacity of their model parameters presents significant challenges in aligning the generated output with individual expectations. Existing solutions have primarily focused on prompt design to incorporate user-specific profiles and behaviors; however, such approaches often struggle to generalize effectively due to their inability to capture shared knowledge among all users. To address these challenges, we propose HYDRA, a model factorization framework that captures both user-specific behavior patterns from historical data and shared general knowledge among all users to deliver personalized generation. In order to capture user-specific behavior patterns, we first train a reranker to prioritize the most useful information from top-retrieved relevant historical records. By combining the prioritized history with the corresponding query, we train an adapter to align the output with individual user-specific preferences, eliminating the reliance on access to inherent model parameters of black-box LLMs. Both the reranker and the adapter can be decomposed into a base model with multiple user-specific heads, resembling a hydra. The base model maintains shared knowledge across users, while the multiple personal heads capture user-specific preferences. Experimental results demonstrate that HYDRA outperforms existing state-of-the-art prompt-based methods by an average relative improvement of 9.01% across five diverse personalization tasks in the LaMP benchmark. Our implementation is available at https://github.com/night-chen/HYDRA.
format Preprint
id arxiv_https___arxiv_org_abs_2406_02888
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HYDRA: Model Factorization Framework for Black-Box LLM Personalization
Zhuang, Yuchen
Sun, Haotian
Yu, Yue
Qiang, Rushi
Wang, Qifan
Zhang, Chao
Dai, Bo
Computation and Language
Artificial Intelligence
Machine Learning
Personalization has emerged as a critical research area in modern intelligent systems, focusing on mining users' behavioral history and adapting to their preferences for delivering tailored experiences. Despite the remarkable few-shot capabilities exhibited by black-box large language models (LLMs), the inherent opacity of their model parameters presents significant challenges in aligning the generated output with individual expectations. Existing solutions have primarily focused on prompt design to incorporate user-specific profiles and behaviors; however, such approaches often struggle to generalize effectively due to their inability to capture shared knowledge among all users. To address these challenges, we propose HYDRA, a model factorization framework that captures both user-specific behavior patterns from historical data and shared general knowledge among all users to deliver personalized generation. In order to capture user-specific behavior patterns, we first train a reranker to prioritize the most useful information from top-retrieved relevant historical records. By combining the prioritized history with the corresponding query, we train an adapter to align the output with individual user-specific preferences, eliminating the reliance on access to inherent model parameters of black-box LLMs. Both the reranker and the adapter can be decomposed into a base model with multiple user-specific heads, resembling a hydra. The base model maintains shared knowledge across users, while the multiple personal heads capture user-specific preferences. Experimental results demonstrate that HYDRA outperforms existing state-of-the-art prompt-based methods by an average relative improvement of 9.01% across five diverse personalization tasks in the LaMP benchmark. Our implementation is available at https://github.com/night-chen/HYDRA.
title HYDRA: Model Factorization Framework for Black-Box LLM Personalization
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2406.02888