Aligning Language Models to User Opinions

EunJeong Hwang, Bodhisattwa Prasad Majumder, Niket Tandon

TL;DR

Prompting Large Language Models (LLMs) with broad group personas (e.g., "Pretend you are a Democrat") fails to capture the nuance of individual human beliefs. This paper demonstrates that demographics and ideologies are surprisingly poor predictors of specific personal opinions. By combining a user's demographic profile with a retrieval-based selection of their past opinions, the authors improve the accuracy of LLM opinion prediction by up to 7 percentage points.

What Problem Does This Paper Address?

As LLMs are increasingly used to assist humans in decision-making, aligning these models with the unique personalities and values of individual users becomes critical.

To date, most alignment and personalization research has focused on broad user groups—normalizing users by religion, age, or political inclination. However, social science shows that individuals within the same group often hold wildly divergent views. Relying solely on group-level traits risks stereotyping and fails to capture the "long tail" of individual opinions. The authors investigate a fundamental question: What information do we actually need to align an LLM to an individual user—demographic traits, fine-grained past opinions, or both?

An example showing how two individuals with identical demographic traits can hold opposite opinions, and how incorporating past opinions fixes LLM alignment.

Methods

The authors evaluate a zero-shot prompting approach using text-davinci-003 across several modeling variations, gradually exposing the model to more granular user information:

  1. No persona: Default LLM behavior.
  2. Ideology only: Prompting with political affiliation.
  3. Ideology + Demographics: Prompting with political affiliation and 8 demographic markers.
  4. Ideology + Opinions: Combining political affiliation with a selection of the user's past survey responses.
  5. Demographics + Ideology + Opinions: Providing the full persona profile.

Crucially, rather than dumping all past user opinions into the prompt (which can introduce irrelevant context and confuse the model), the authors implement a retrieval-based approach. They use text-embedding-ada-002 to compute the similarity between the target question and the user's historical survey answers, selecting only the top-$k$ ($k \in \{3, 5, 8\}$) most relevant past opinions to include in the prompt.

Figure 3: Prompt using demographics, ideology, and GPT embeddings based top-k past opinions to predict the answer to a question.

Datasets

The study utilizes the OpinionQA dataset, which is compiled from public opinion surveys conducted by the Pew Research Center.

  • Scope: It covers 15 distinct topics (e.g., Guns, Automation, Race, Family & Relationships).
  • Scale: Each topic contains an average of 100 multiple-choice questions answered by approximately 5,340 unique users.
  • Data Split: For evaluation, 20% of a user's responses are reserved to construct their "implicit persona" (past opinions), while the remaining 80% are used to test the model's predictive accuracy.

Key Insights and Ideas

  • Demographics $\neq$ Opinions: A statistical analysis of the dataset revealed that pairs of users sharing identical demographic traits only achieve a Cohen's kappa agreement score of around 0.4 across most topics. This indicates that demographic traits are not substantial predictors of individual opinions.
  • Topic-Dependent Variance: Agreement among similar users varies heavily by topic. Users show higher alignment on topics like Family & Relationships and Guns, but diverge significantly on Race and America in 2050.
  • The Danger of Irrelevant Context: Providing all past opinions can degrade performance. If a retrieved past opinion contains phrases that overlap with the target question's multiple-choice options but is contextually unrelated, it can cause negative interference and confuse the LLM.
Figure 2: Topic-wise agreement score; x-axis: agree- ment score, y-axis: topic. This graph shows that users with similar demographics/ ideology can have different opinions (cohen kappa scores of around 0.4 show not some but not substantial correlation in opinions)

Key Results

The performance was evaluated using two metrics: Exact match (predicting the exact multiple-choice option) and Collapsed match (grouping fine-grained choices like "Very likely" and "Somewhat likely" into broader categories like "Likely").

  • Overall Accuracy Boost: The baseline model ("no persona") achieved an exact match accuracy of 0.43. Adding demographics and ideology raised this to 0.47. However, the full model (Demographics + Ideology + Top-8 Opinions) achieved the highest exact match score of 0.54—an absolute gain of 7 points over the demography-based baseline.
  • The Power of Relevance: Utilizing just the top-3 most relevant opinions performed on par with providing 16 random past opinions, confirming that targeted retrieval is highly efficient for personalization.
  • Group vs. Individual: While LLMs are inherently decent at predicting the majority vote of a demographic group (0.549 exact match), they cannot capture individual deviations from that majority without explicit access to that individual's past opinions.

Limitations and Future Work

  • Echo Chambers and Bias: Aligning an LLM perfectly to an individual's worldview risks creating a dangerous echo chamber, potentially amplifying unethical, biased, or polarized beliefs.
  • Mitigation Strategies: The authors suggest mitigating this by explicitly displaying group-level or counter-perspective answers alongside the personalized response, or grounding the LLM's explanations directly in the user's past stated opinions to encourage self-introspection.
  • Future Directions: A promising next step is developing systems that continuously store user opinions dynamically, growing a long-term memory layer that seamlessly balances group-level defaults with individual nuances as the user interacts over time.

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