PsychAdapter: adapting LLMs to reflect traits, personality, and mental health
AI language generators are now ubiquitous but typically produce generic text that fails to reflect individual differences. Here, we introduce PsychAdapter, a lightweight LLM architectural modification that uses empirically derived links between language and personality, demographic, and mental health traits to generate trait-reflective text, regardless of prompt. PsychAdapter was applied to GPT-2, Gemma-2B, and LLaMA-3, and expert raters confirmed that the generated text matched the specified traits: it produced Big Five personality traits with 87.3% and depression and life satisfaction with 96.7% accuracy. PsychAdapter is a novel method for embedding psychological behavioral patterns into language models by conditioning every transformer layer, without relying on prompting. Beyond personality-conditioned generation, this approach has potential uses for simulated patients reflecting psychopathology and translation tailored to reading or educational level. It also enables generation of characteristic sentences for studying the language of traits, expanding the language processing toolkit for psychology.
Authors
- Huy Quan Vu (ORCID: https://orcid.org/0000-0003-1947-2879)
- Huy A. Nguyen (ORCID: https://orcid.org/0000-0002-1227-6173)
- Swanie Juhng
- Adithya V Ganesan (ORCID: https://orcid.org/0000-0001-6179-624X)
- R L Boyd
- Johannes C. Eichstaedt (ORCID: https://orcid.org/0000-0002-3220-2972)
- Oscar N. E. Kjell
- Margaret L. Kern
- Lyle Ungar
- Joao Sedoc
- H. Andrew Schwartz
Institutions
- INSEAD (FR)
- University City Science Center (US)
- The University of Texas at Dallas (US)
- The University of Melbourne (AU)
- Vanderbilt University (US)
- Cardiovascular Institute of the South (US)
- New York University (US)
- Stony Brook University (US)
- Victoria University (AU)
- University of Pennsylvania (US)
- Philadelphia University (US)
Publication Details
- Journal
- npj Artificial Intelligence
- Published
- 2026-03-02
- DOI
- https://doi.org/10.1038/s44387-026-00071-9
- Citations
- 1
- Primary Topic
- Mental Health via Writing
- Type
- article
- Field-Weighted Citation Impact
- 60.58
Funders
- National Institutes of Health