Parametric Social Identity Injection and Diversification in Public Opinion Simulation
Organizations: DCST, Tsinghua University Beijing, China · Quancheng Laboratory Jinan, Shandong, China
Abstract
Large language models (LLMs) have recently been adopted as synthetic agents for public opinion simulation, offering a promising alternative to costly and slow human surveys. Despite their scalability, current LLM-based simulation methods fail to capture social diversity, producing flattened inter-group differences and overly homogeneous responses across demographic groups. We identify this limitation as a Diversity Collapse phenomenon in LLM hidden representations, where distinct social identities become increasingly indistinguishable across layers. Motivated by this observation, we propose Parametric Social Identity Injection (PSII), a general framework that injects explicit, parametric representations of demographic attributes and value orientations directly into intermediate hidden states of LLMs. Unlike prompt-based persona conditioning, PSII enables fine-grained and controllable identity modulation at the representation level. Extensive experiments on the World Values Survey using multiple open-source LLMs show that PSII significantly improves distributional fidelity and diversity, reducing KL divergence to real-world survey data while enhancing overall diversity. This work provides new insights into representation-level control of LLM agents and advances scalable, diversity-aware public opinion simulation.
Figures & tables
| Model | Method | Beliefs & Life | Social Integration | Political Engagement | Economic Progress | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| KL | ED | KL | ED | KL | ED | KL | ED | KL | ED | ||
| Qwen2.5-7B | Direct | 1.5182 | 0.6664 | 0.8575 | 0.7406 | 2.2222 | 0.7625 | 1.6283 | 0.7932 | 1.3915 | 0.7340 |
| High-Temp | 1.1941 | 0.4754 | 0.7074 | 0.5981 | 1.9653 | 0.6266 | 1.1072 | 0.5272 | 1.1605 | 0.5778 | |
| Multilingual | 1.0946 | 0.3706 | 0.5547 | 0.5112 | 1.9297 | 0.5000 | 1.1030 | 0.5371 | 1.0568 | 0.4811 | |
| DivReq | 1.5442 | 0.6671 | 0.8383 | 0.7464 | 2.2166 | 0.7587 | 1.5282 | 0.7283 | 1.3813 | 0.7329 | |
| PE | 1.4812 | 0.4050 | 0.7182 | 0.6292 | 1.8852 | 0.4847 | 1.5095 | 0.6046 | 1.2209 | 0.5443 | |
| Setting | Qwen2.5-7B | Qwen2.5-14B | Llama-3.1-8B | Mistral-24B | ||||
|---|---|---|---|---|---|---|---|---|
| KL ↓ | ED ↓ | KL ↓ | ED ↓ | KL ↓ | ED ↓ | KL ↓ | ED ↓ | |
| PSII (full model) | 0.4843 | 0.0319 | 0.5814 | 0.2123 | 0.4017 | 0.0040 | 0.5607 | 0.0774 |
| PSII w/o value vector | 0.5264 | 0.0348 | 0.6574 | 0.3040 | 0.4638 | 0.0416 | 0.6254 | 0.1723 |
| PSII w/o demographic vectors | 0.9705 | 0.3859 | 0.7893 | 0.3878 | 0.6681 | 0.2729 | 0.7185 | 0.3312 |
| PSII w/o prompt-based profile | 0.5024 | 0.0151 | 0.6688 | 0.2527 | 0.5575 | 0.0630 | 0.6149 | 0.0474 |
| PSII w/o parametric noise | 0.7237 | 0.2261 | 0.7332 | 0.3294 | 0.5673 | 0.2068 | 0.6813 | 0.2808 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Original WVS Category | Question IDs |
|---|---|
| Social Values, Attitudes & Stereotypes | Q1–Q45 |
| Happiness and Well-Being | Q46–Q56 |
| Social Capital, Trust & Organizational Membership | Q57–Q105 |
| Economic Values | Q106–Q111 |
| Corruption | Q112–Q120 |
| Migration | Q121–Q130 |
| Question ID | Question Topic |
|---|---|
| Q260 | Respondent’s sex |
| Q263 | Native-born or immigrant status |
| Q271 | Living with parents or parents-in-law |
| Q273 | Marital status |
| Q275 | Highest completed education level |
| Q279 | Employment status and working hours |
| Setting | Claude | DeepSeek | GPT-4o | 4o-V1 | 4o-V2 | 4o-V3 | 4o-V4 | 4o-S1 | 4o-S123 | 4o-S42 | GPT-5-mini |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Avg. similarity | 0.8742 | 0.9337 | 0.9341 | 0.9353 | 0.9378 | 0.9196 | 0.9304 | 0.9357 | 0.9387 | 0.9397 | 0.9043 |
| Setting | KL | ED |
|---|---|---|
| GPT-4o, default setting | 0.4843 | 0.0319 |
| GPT-4o, seed = 1 | 0.5221 | 0.0294 |
| GPT-4o, seed = 123 | 0.5142 | 0.0245 |
| GPT-4o, seed = 42 | 0.4884 | 0.0173 |
| GPT-5-mini, default setting | 0.4997 | 0.0148 |
| Average | 0.5017 | 0.0236 |
| Sample group | KL | ED |
|---|---|---|
| Group A: original sample | 0.4843 | 0.0319 |
| Group B: resample 1 | 0.4742 | 0.0302 |
| Group C: resample 2 | 0.4660 | 0.0231 |
| Group D: resample 3 | 0.4362 | 0.0272 |
| Group E: resample 4 | 0.5051 | 0.0324 |
| Average | 0.4732 | 0.0290 |
| Model | Method | Beliefs & Life | Social Integration | Political Engagement | Economic Progress | Overall | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| JS | MAE | JS | MAE | JS | MAE | JS | MAE | JS | MAE | ||
| Qwen2.5-7B | Direct | 0.6822 | 0.2264 | 0.5625 | 0.3157 | 0.7013 | 0.3067 | 0.7611 | 0.1671 | 0.6330 | 0.2884 |
| High-Temp | 0.6167 | 0.2012 | 0.5116 | 0.2836 | 0.6356 | 0.2731 | 0.6460 | 0.1370 | 0.5722 | 0.2574 | |
| Multilingual | 0.5350 | 0.1747 | 0.4487 | 0.2488 | 0.5681 | 0.2341 | 0.6421 | 0.1373 | 0.5070 | 0.2247 | |
| DivReq | 0.7007 | 0.2375 | 0.5632 | 0.3167 | 0.6908 | 0.3005 | 0.7494 | 0.1649 | 0.6337 | 0.2893 | |
| PE | 0.5909 | 0.1799 | 0.5068 | 0.2861 | 0.5463 | 0.2224 | 0.7050 | 0.1524 | 0.5435 | 0.2414 | |
| Setting | Qwen2.5-7B | Qwen2.5-14B | Llama-3.1-8B | Mistral-24B | ||||
|---|---|---|---|---|---|---|---|---|
| JS | MAE | JS | MAE | JS | MAE | JS | MAE | |
| PSII (full model) | 0.2650 | 0.1277 | 0.3491 | 0.1573 | 0.2593 | 0.1303 | 0.2971 | 0.1419 |
| PSII w/o value vector | 0.2975 | 0.1373 | 0.3998 | 0.1768 | 0.2807 | 0.1424 | 0.3451 | 0.1603 |
| PSII w/o demographic vectors | 0.4526 | 0.2033 | 0.4368 | 0.1954 | 0.3946 | 0.1739 | 0.4157 | 0.1862 |
| PSII w/o prompt-based profile | 0.2795 | 0.1363 | 0.3678 | 0.1664 | 0.3102 | 0.1617 | 0.3069 | 0.1494 |
| PSII w/o parametric noise | 0.3753 | 0.1778 | 0.4171 | 0.1846 | 0.3478 | 0.1599 | 0.3904 | 0.1753 |
| Layer Setting | KL | ED |
|---|---|---|
| L1: Optimal Layer Configuration (OLC) | 0.4843 | 0.0319 |
| L2: Random Layer Selection (1) | 1.0467 | 0.0812 |
| L3: Random Layer Selection (2) | 1.4093 | 0.2621 |
| L4: Global Layer Shift (+2 from OLC) | 0.5496 | 0.1046 |
| L5: Global Layer Shift (–2 from OLC) | 0.4858 | 0.0852 |
| L6: Single-Layer Injection (50% depth) | 0.9798 | 0.0367 |
Large Language Model-Based Social Simulation
Large language model-based social simulation studies how language-model agents represent people and interact to produce social behavior.
See all 255 papers