TL;DR
This paper presents the first systematic evaluation of how to best extract text representations from Large Language Models (LLMs) and Human Language Models (HuLMs) for psychological NLP tasks. The authors find that simply averaging token embeddings across a document consistently outperforms using single special tokens like [CLS] or the last token. Furthermore, while explicit "user state" vectors from HuLMs are poor direct predictors of psychological traits, incorporating them during pre-training significantly boosts the predictive power of the model's standard token embeddings.
What Problem Does This Paper Address?
Human-centered NLP aims to infer psychological attributes—such as emotional valence, arousal, empathy, and distress—from the text people write. To do this, researchers typically extract vector representations (hidden states) from Transformer-based LLMs. However, there is no consensus on which hidden states to use. Should you grab the first token ([CLS]), the last token, or average all tokens in a document?
Additionally, traditional LLMs treat every document as if it were written by a universal, average person. To fix this, researchers recently introduced Human Language Models (HuLMs), which track an author's history via a recurrently updated "user state" vector. Until now, no one had systematically benchmarked how these different embedding choices and architectures stack up when predicting both fast-changing psychological states (e.g., how someone feels right now) and stable, trait-like attributes (e.g., a person's general disposition).
Methods
The authors evaluated four models: two standard autoencoders (BERT, RoBERTa), one standard autoregressive model (GPT-2 small), and a HuLM called HaRT (Human-aware Recurrent Transformer).
They extracted document representations using several strategies:
- Averaged Tokens (AT): The mean of all token embeddings in the document.
- Last Token (LT) / CLS: Standard single-token representations.
- Special HuLM Tokens: The last token acting as a document separator (
LTinsep) and the explicit user state vector ($U$).
To predict wave-level (medium-term) and user-level (long-term trait) outcomes, they used a hierarchical approach, averaging the document embeddings across the respective timeframes. Crucially, instead of computationally expensive fine-tuning, they applied Ridge Regression over the frozen embeddings using the DLATK toolkit, isolating the representational quality of the hidden states themselves.
Datasets
The models were evaluated on two distinct datasets tracking different psychological dimensions:
- DS4UD (Data Science for Unhealthy Drinking): A longitudinal dataset containing essays and self-reported questionnaires from 120 US service industry workers. It tracks Valence (positive vs. negative affect) and Arousal (low vs. high energy) three times daily over 14-day periods ("waves").
- WASSA 2024 Shared Task (Track 3): A dataset consisting of 1,837 essays written by crowd workers responding to news articles, labeled for Empathic Concern and Personal Distress.
Key Insights and Ideas
- The Power of the Average: Averaging token embeddings (AT) consistently beat single-token shortcuts (
CLSorLT). Compressing an entire essay's emotional nuance into a single token causes the model to lose vital distributed information. - User States as Context Boosters: Surprisingly, using the HuLM's explicit user state vector ($U$) as a direct feature for regression yielded subpar results. However, because the HuLM uses this vector to contextualize word predictions during pre-training, the token embeddings generated by HuLMs became significantly more potent, outperforming traditional LLM embeddings.
- States vs. Traits: The optimal prediction level depends heavily on the psychological construct. For example, empathy is much easier to predict as a fleeting, document-level state rather than a stable, user-level trait. Conversely, stable traits are best captured by averaging representations over long periods.
Key Results
HuLMs (specifically variants of HaRT) combined with Averaged Token (AT) embeddings achieved the highest overall performance across most document- and user-level tasks.
As shown in the comprehensive results table below, for document-level valence prediction, HaRTconcat achieved a Pearson correlation of $r = 0.65$, outperforming standard GPT-2 ($r = 0.60$) and RoBERTa ($r = 0.63$). For user-level trait predictions, the user-state-informed AT embeddings from HaRT variants achieved a top score of $r = 0.60$, demonstrating a statistically significant edge over traditional LMs.
Limitations and Future Work
A primary limitation is model scale. The authors restricted their study to smaller models (like GPT-2 small and BERT) to match the parameter size of currently available HuLMs. Because massive LLMs (e.g., Llama, GPT-4) are typically used via prompting rather than raw embedding extraction, it remains an open question how these insights scale to billions of parameters.
Additionally, the rich, longitudinal DS4UD dataset cannot be publicly released due to strict privacy and ethical constraints surrounding sensitive user data. The authors suggest that future work should focus on designing better architectures that allow explicit user states ($U$) to be leveraged directly as powerful standalone representations.
Summary updated