Aligning Language Models to User Opinions

EunJeong Hwang, Bodhisattwa Prasad Majumder, Niket Tandon

Abstract: An important aspect of developing LLMs that interact with humans is to align models' behavior to their users. It is possible to prompt an LLM into behaving as a certain persona, especially a user group or ideological persona the model captured during its pertaining stage. But, how to best align an LLM with a specific user and not a demographic or ideological group remains an open question. Mining public opinion surveys (by PEW research), we find that the opinions of a user and their demographics and ideologies are not mutual predictors. We use this insight to align LLMs by modeling relevant past user opinions in addition to user demographics and ideology, achieving up to 7 points accuracy gains in predicting public opinions from survey questions across a broad set of topics. Our work opens up the research avenues to bring user opinions as an important ingredient in aligning language models.

Introduction

Current Large Language Models (LLMs) are often aligned to broad demographic or ideological groups. However, individuals within these groups frequently hold diverging views. This research identifies a "personalization gap": two people can share the exact same age, race, and political affiliation but hold diametrically opposed views on specific issues like gun control or automation. If an LLM only knows a user's "group," it will likely default to a stereotypical opinion, failing to provide truly personalized representation or assistance.

Methods

The researchers treated personalization as a multiple-choice Question Answering (QA) task using the OpinionQA dataset, derived from PEW Research surveys. This dataset covers 15 topics (e.g., Guns, Automation, Race) with responses from approximately 5,000 unique users.

The study tested several models, including GPT-4, GPT-3.5, and LLaMA-7b, by varying the "persona" information provided in the prompt:

  1. No Persona: Default model behavior.
  2. Demographics + Ideology: Providing traits like age, race, and political leaning.
  3. Past Opinions: Providing a subset of the user's previous answers to other survey questions.
  4. Top-k Retrieval: Using embeddings to find and include the $k$ most relevant past opinions for the current question.
Figure 1: An example of how incorporating past opinions allows an LLM to correctly predict divergent views between users with identical demographics.

Key Results

Incorporating demographics, ideology, and the top-8 relevant opinions resulted in significant performance improvements. The researchers observed an absolute accuracy gain of up to 7 points over models using only demographic/ideological data. This gain was most pronounced in topics like Guns and Biomedical Food, where personal views are often highly specific and less tied to broad demographic trends.

Figure 6: Performance comparison across different LLMs and persona configurations, showing gains in both exact and collapsed match accuracy.

Key Insights

  • Demographics are not Destiny: Agreement scores (Cohen’s kappa) among users with identical demographics hover around 0.5, proving that demographics alone are insufficient for true personalization.
  • The "Stereotype Trap" of CoT: Surprisingly, Chain-of-Thought (CoT) prompting decreased performance by about 1 point. When asked to reason, models tended to fall back on demographic stereotypes while ignoring the specific, contradictory past opinions provided in the prompt.
  • Relevance Matters: Providing the "top-k" most relevant past opinions was more effective than providing a larger set of random opinions. This suggests that LLMs can be easily confused by "noisy" or irrelevant personal information.

Limitations and Future Work

While promising, this approach faces several challenges. Human opinions evolve over time, and real-world scenarios often lack the rich history of past opinions available in survey datasets. Furthermore, perfect alignment risks creating "echo chambers" that reinforce biases. Future work must balance personalization with ethical guardrails and explore alignment strategies for data-scarce environments.

Summary updated

BibTeX
@inproceedings{hwang2023aligning,
  author = {EunJeong Hwang and Bodhisattwa Prasad Majumder and Niket Tandon},
  title = {{Aligning Language Models to User Opinions}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=eHqrdft1wn},
}
Figure