Personalized LLM for Generating Customized Responses to the Same Query from Different Users

Hang Zeng, Chaoyue Niu, Fan Wu, Chengfei Lv, Guihai Chen
12/16/2024
cs.CL

No official code found. Best implementation: Nidryen-zh/QuerierAwareResponder (9 stars, Apache-2.0, last commit 2025-08-12).

Abstract

Existing work on large language model (LLM) personalization assigned different responding roles to LLMs, but overlooked the diversity of queriers. In this work, we propose a new form of querier-aware LLM personalization, generating different responses even for the same query from different queriers. We design a dual-tower model architecture with a cross-querier general encoder and a querier-specific encoder. We further apply contrastive learning with multi-view augmentation, pulling close the dialogue representations of the same querier, while pulling apart those of different queriers. To mitigate the impact of query diversity on querier-contrastive learning, we cluster the dialogues based on query similarity and restrict the scope of contrastive learning within each cluster. To address the lack of datasets designed for querier-aware personalization, we also build a multi-querier dataset from English and Chinese scripts, as well as WeChat records, called MQDialog, containing 173 queriers and 12 responders. Extensive evaluations demonstrate that our design significantly improves the quality of personalized response generation, achieving relative improvement of 8.4% to 48.7% in ROUGE-L scores and winning rates ranging from 54% to 82% compared with various baseline methods.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official repository of Querier-Aware LLM: Generating Personalized Responses to the Same Query from Different Queriers

91Shell, PythonDec 16, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{zeng2024personalized,
  title  = {Personalized LLM for Generating Customized Responses to the Same Query from Different Users},
  author = {Hang Zeng and Chaoyue Niu and Fan Wu and Chengfei Lv and Guihai Chen},
  year   = {2024},
  eprint = {2412.11736},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.11736v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.11736.svg)](https://codeofpaper.com/paper/2412.11736)

Discussion