Ask, Answer, and Detect: Role-Playing LLMs for Personality Detection with Question-Conditioned Mixture-of-Experts
Organizations: The Hong Kong University of Science and Technology (Guangzhou), Guangzhou, China · University of International Business and Economics, Beijing, China
Abstract
Understanding human personality is important for personalized recommendation and mental health assessment. Existing personality detection methods typically encode social media posts into user representations and predict personality labels. Despite advances in large language models (LLMs), these methods face limited supervision from scarce labels and an unclear mapping between user language and psychological constructs. We propose ROME, a framework that incorporates psychological knowledge into personality detection. Inspired by standardized self-assessment tests, ROME uses LLM role-playing to simulate users' responses to validated psychometric questionnaires. These question-level answers provide interpretable, questionnaire-grounded evidence and intermediate supervision. A question-conditioned Mixture-of-Experts module jointly routes post and question representations to predict questionnaire answers under explicit supervision. The predicted answers are aggregated into an interpretable answer vector and fused with user representations for final personality prediction in a multi-task learning framework. Experiments on two real-world datasets show that ROME outperforms state-of-the-art baselines, with relative improvements of 13.60% on Kaggle and 19.72% on Pandora. Code is available at https://github.com/JasmineLyf/ROME.
Figures & tables
| Methods | Kaggle | Pandora | ||||||||
| I/E | S/N | T/F | P/J | Avg | I/E | S/N | T/F | P/J | Avg | |
| XGBoost | 56.67 | 52.85 | 75.42 | 65.94 | 62.72 | 45.99 | 48.93 | 63.51 | 55.55 | 53.50 |
| BiLSTM | 57.82 | 57.87 | 69.97 | 57.01 | 60.67 | 48.01 | 52.01 | 63.48 | 56.21 | 54.93 |
| BERTconcat | 58.33 | 53.88 | 69.36 | 60.88 | 60.61 | 54.22 | 49.15 | 58.31 | 53.14 | 53.71 |
| BERTmean | 64.05 | 57.82 | 77.06 | 65.25 | 66.04 | 56.60 | 48.71 | 64.70 | 56.07 | 56.52 |
| AttRCNN | 59.74 | 64.08 | 78.77 | 66.44 | 67.25 | 48.55 | 56.19 | 64.39 | 57.26 | 56.60 |
| Methods | I/E | S/N | T/F | P/J | Avg |
| ROME | 90.13 | 94.82 | 96.36 | 72.55 | 88.47 |
| ROME | 89.03 | 94.45 | 96.36 | 74.16 | 88.50 |
| ROME | 86.56 | 71.21 | 94.18 | 48.51 | 75.12 |
| ROME | 42.33 | 92.35 | 75.11 | 53.27 | 65.77 |
| ROME | 47.02 | 91.53 | 79.02 | 56.09 | 68.42 |
| ROME | 83.69 | 94.02 | 92.42 | 71.51 | 85.41 |
| Methods | I/E | S/N | T/F | P/J | Avg |
| ROME | 45.15 | 91.96 | 80.27 | 57.90 | 68.82 |
| ROME | 64.14 | 92.83 | 88.82 | 66.76 | 78.14 |
| ROME | 82.58 | 93.16 | 93.30 | 71.16 | 85.05 |
| ROME | 91.46 | 93.46 | 95.29 | 76.98 | 89.30 |
| ROME | 92.24 | 95.90 | 97.45 | 81.32 | 91.73 |
| Methods | I/E | S/N | T/F | P/J | Avg |
| ChatGPT-3.5 | 65.86 | 51.69 | 78.60 | 63.93 | 65.02 |
| ChatGPT-3.5 | 70.61 | 58.35 | 76.58 | 65.43 | 67.74 |
| ChatGPT-4o | 81.70 | 78.15 | 85.13 | 74.67 | 79.91 |
| ChatGPT-4o | 80.55 | 76.53 | 84.87 | 78.13 | 80.02 |
| PsyCoT-3.5 | 66.56 | 61.70 | 74.80 | 57.83 | 65.22 |
| HIPPD-4o | 73.61 | 77.25 | 84.98 | 79.33 | 78.79 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Types | Train | Validation | Test |
| Kaggle | I/E | 4032/1173 | 1330/405 | 1314/421 |
| S/N | 724/4481 | 230/1505 | 243/1492 | |
| T/F | 2388/2817 | 802/933 | 791/944 | |
| P/J | 3160/2045 | 1007/728 | 1074/661 | |
| Pandora | I/E | 4314/1126 | 1425/388 | 1403/411 |
| S/N | 621/4819 | 202/1611 | 205/1609 |
| Question IDs | Assigned dimensions |
| Q1–Q10 | I/E, S/N, T/F, P/J, T/F, I/E, P/J, T/F, P/J, T/F |
| Q11–Q20 | I/E, S/N, T/F, P/J, T/F, I/E, S/N, T/F, S/N, T/F |
| Q21–Q30 | I/E, S/N, T/F, P/J, T/F, I/E, T/F, T/F, P/J, T/F |
| Q31–Q40 | I/E, S/N, T/F, P/J, P/J, I/E, S/N, T/F, P/J, T/F |
| Q41–Q50 | I/E, S/N, I/E, P/J, T/F, S/N, T/F, T/F, P/J, T/F |
| Q51–Q60 | I/E, S/N, I/E, T/F, T/F, P/J, S/N, T/F, P/J, T/F |
| Dim. | Q# | Question | Direction | logit | Text evidence (snippet) |
| I/E | Q21 | You enjoy solitary hobbies or activities more than group ones. | I | “…Feeling cozy in over sized sweaters, reading a good book in a warm bed …” | |
| I/E | Q41 | You avoid making phone calls. | I | “The very thought of having my personal space violated in that manner by a complete stranger is terrifying to me.” | |
| S/N | Q2 | Complex and novel ideas excite you more than simple and straightforward ones. | S | “Usually, I don’t really like discussing topics like these but the posts here are so relatable.” | |
| S/N | Q42 | You enjoy exploring unfamiliar ideas and viewpoints. | N | “That’s an interesting perspective – that we shouldn’t hold others’ imperfections against them.” | |
| T/F | Q3 | You usually feel more persuaded by what resonates emotionally with you than by factual arguments. | T | “That map isn’t very reliable . I know INFPs who live outside of Europe/Americas and there isn’t a single dot…” | |
| T/F | Q15 | You rarely worry about whether you make a good impression on people you meet. | F | “As a child and adolescent, I would lay awake for nights in a row with my stomach knotting and turning out of guilt , even if the person said it didn’t bother them.” |
| Methods | I/E | S/N | T/F | P/J | Avg |
| ROME | 92.06 | 88.16 | 96.33 | 81.02 | 89.39 |
| ROME | 92.01 | 95.08 | 97.21 | 81.09 | 91.35 |
| ROME | 92.16 | 95.81 | 97.45 | 81.43 | 91.71 |
| ROME | 92.24 | 95.90 | 97.45 | 81.32 | 91.73 |
| Comparison Setting | Mean MAE | Median MAE |
| Same user, repeated generations | 0.282 | 0.267 |
| Same MBTI type, different users | 0.529 | 0.477 |
| Different MBTI types, different users | 1.912 | 1.843 |
| User ID | Role-Played Responses to Q37 | Representative Post Evidence |
| 3782 | “I have zero desire to write anything.” | |
| 6170 | “I’m enveloped in making and watching films. I’m always writing…” |
| Methods | I/E | S/N | T/F | P/J | Avg |
| EERPD | 62.14 | 56.98 | 70.68 | 60.57 | 62.59 |
| ROME | 74.93 | 95.45 | 82.21 | 78.22 | 82.70 |
| Methods | AGR | CON | EXT | NEU | OPN | Avg |
| EERPD | 65.01 | 68.64 | 63.02 | 56.00 | 60.93 | 62.72 |
| ROME | 65.19 | 63.31 | 65.06 | 61.69 | 65.47 | 64.14 |
Personality Modeling in Language Models
Personality modeling in language models studies how traits are measured, represented, simulated, and controlled in model behavior.
See all 169 papers