Evaluation of LLMs-based Hidden States as Author Representations for Psychological Human-Centered NLP Tasks

Nikita Soni, Pranav Chitale, Khushboo Singh, Niranjan Balasubramanian, H. Andrew Schwartz

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).

Figure 1: Evaluating representations derived from differ- ent hidden states in both traditional Transformer-based LMs and human language models (HuLMs). Document representations as hidden states from: CLS, special to- ken in auto-encoders; AT, averaged tokens in a docu- ment; LT, last token in a document for autoregressive models; LTinsep, special last token for HuLMs; and U, user state for HuLMs. User representation as averaged corresponding document representation types for all documents written by a user.

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:

  1. 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").
  2. 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 (CLS or LT). 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.

Comprehensive predictive performance (Pearson r) across different models, embedding types, and psychological outcomes.

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

Abstract

Like most of NLP, models for human-centered NLP tasks -- tasks attempting to assess author-level information -- predominantly use representations derived from hidden states of Transformer-based LLMs. However, what component of the LM is used for the representation varies widely. Moreover, there is a need for Human Language Models (HuLMs) that implicitly model the author and provide a user-level hidden state. Here, we systematically evaluate different ways of representing documents and users using different LM and HuLM architectures to predict task outcomes as both dynamically changing states and averaged trait-like user-level attributes of valence, arousal, empathy, and distress. We find that representing documents as an average of the token hidden states performs the best generally. Further, while a user-level hidden state itself is rarely the best representation, we find its inclusion in the model strengthens token or document embeddings used to derive document- and user-level representations resulting in best performances.
BibTeX
@inproceedings{soni2025evaluation,
  author = {Nikita Soni and Pranav Chitale and Khushboo Singh and Niranjan Balasubramanian and H. Andrew Schwartz},
  title = {{Evaluation of LLMs-based Hidden States as Author Representations for Psychological Human-Centered NLP Tasks}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.426},
}
Figure