HYDRA: Model Factorization Framework for Black-Box LLM Personalization

Yuchen Zhuang, Haotian Sun, Yue Yu, Rushi Qiang, Qifan Wang, Chao Zhang, Bo Dai

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, yet they often struggle with personalization. While open-source models can be fine-tuned for specific users, "black-box" models like GPT-4 present a significant challenge as their internal weights are inaccessible. Current personalization strategies typically rely on either weight-intensive fine-tuning (White-Box) or prompt-based Retrieval-Augmented Generation (RAG). However, RAG methods often suffer from "distraction" when provided with excessive history and fail to leverage shared knowledge across users.

To address these limitations, researchers from Georgia Tech and Meta AI introduced HYDRA, a model factorization framework designed to personalize black-box LLMs without modifying their parameters. HYDRA achieves this by combining a shared "base" model that captures global patterns with lightweight, user-specific "heads" for local preferences.

The HYDRA Framework

The HYDRA architecture is built upon two primary components: a personalized reranker and a black-box adapter.

1. Retrieve-then-Rerank

Unlike standard RAG, which retrieves historical records based on semantic relevance, HYDRA employs a Personalized Reranker. This component is trained to identify "usefulness" rather than just similarity. During training, an LLM labels historical records as useful if their inclusion helps generate the ground-truth answer. This allows the system to filter out irrelevant noise that often degrades RAG performance.

2. Black-Box Adaptation

Since the underlying LLM's weights cannot be altered, HYDRA treats it as a "proposal generator." The LLM generates multiple candidate responses through rejection sampling. A Personalized Adapter then evaluates these candidates, selecting the one that best aligns with the specific user's historical preferences.

HYDRA architecture and training/inference workflow.

Model Factorization

Both the reranker and adapter utilize a shared LongFormer-Base (110M parameters) as a backbone. For each user, a single-layer feed-forward network acts as a unique "head." This factorization allows the model to learn from the entire user base while specializing for individuals. When a new user is added, the base model remains frozen, and only a tiny new head is fitted, ensuring computational efficiency.

Experimental Evaluation

The framework was evaluated using the LaMP (Language Model Personalization) benchmark, covering classification (LaMP-2N, 2M), ordinal classification (LaMP-3), and generation tasks (LaMP-4, 5). Additional validation was performed on the MovieLens-1M and Recipe datasets to ensure generalizability.

Results and Discussion

HYDRA demonstrated significant performance gains, achieving an average 9.01% relative improvement over state-of-the-art prompt-based methods across all LaMP tasks. Notably, in the Personalized News Categorization task (LaMP-2N), the framework saw a 14.71% boost in accuracy.

Performance of HYDRA across various LaMP tasks and experimental settings.

Key insights from the study include:

  • Usefulness vs. Relevance: Training on usefulness labels effectively mitigates the noise issues common in traditional RAG systems.
  • Shared Knowledge: The shared base model allows for effective "cold-start" performance, where users with limited history benefit from patterns learned from the broader population.
  • Robustness: HYDRA remains robust against "behavior shift," outperforming baselines even when a user's current query deviates from their historical patterns.

Conclusion

HYDRA provides a scalable and effective solution for personalizing black-box LLMs. By factorizing the model into a shared backbone and user-specific heads, it captures both global and local knowledge. While the current implementation faces challenges regarding inference latency due to candidate generation, future work aims to explore multi-modal applications and more sophisticated adapter architectures.

Summary updated

BibTeX
@inproceedings{zhuang2024hydra,
  author = {Yuchen Zhuang and Haotian Sun and Yue Yu and Rushi Qiang and Qifan Wang and Chao Zhang and Bo Dai},
  title = {{HYDRA: Model Factorization Framework for Black-Box LLM Personalization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=CKgNgKmHYp},
}
Figure