From traces to measures: Large language models as a tool for psychological measurement from text

Joseph J. P. Simons, Liang Ze Wong, Prasanta Bhattacharya, Brandon Siyuan Loh, Wei GaoarXiv 2024 · OpenReview

Abstract: Large language models are increasingly being used to label or rate psychological features in text data. This approach helps address one of the limiting factors of digital trace data - their lack of an inherent target of measurement. However, this approach is also a form of psychological measurement (using observable variables to quantify a hypothetical latent construct). As such, these ratings are subject to the same psychometric considerations of reliability and validity as more standard psychological measures. Here we present a workflow for developing and evaluating large language model based measures of psychological features which incorporate these considerations. We also provide an example, attempting to measure the previously established constructs of attitude certainty, importance and moralization from text. Using a pool of prompts adapted from existing measurement instruments, we find they have good levels of internal consistency but only partially meet validity criteria.

Introduction

In the era of computational social science, researchers are increasingly reliant on "digital trace data"—the behavioral breadcrumbs left behind on social media and digital platforms. While these datasets are vast, they are rarely purpose-built for scientific inquiry. A retweet or a post is a side-effect of platform design, not a validated psychological instrument. This creates a significant measurement gap: how do we transform messy, unstructured text into scientifically rigorous psychological constructs?

Currently, many researchers use Large Language Models (LLMs) to label text data. However, this process often lacks the rigor of traditional psychometrics. Without a formal framework, researchers risk the "jingle fallacy"—using the same label for different metrics—or failing to account for the inherent noise in single-prompt outputs. This paper proposes a "psychometric workflow" that treats LLM prompts as items on a psychological survey, applying classical statistical methods to ensure that LLM-based measurements are reliable and valid.

The Psychometric Workflow

The core contribution of this research is a seven-step workflow designed to treat LLMs as "digital raters" of latent variables. Rather than relying on a single "golden prompt," the workflow advocates for a multi-item approach:

  1. Identify Target: Clearly define the latent variable (e.g., attitude certainty or moral conviction).
  2. Generate Prompt Pool: Adapt multiple items from existing, validated psychological scales (e.g., converting Likert-scale questions into LLM prompts).
  3. Generate Scores: Apply these prompts across a dataset using an LLM (e.g., GPT-3.5 Instruct).
  4. Assess Factor Structure: Use Exploratory Factor Analysis (EFA) to determine if the LLM’s responses cluster into the intended theoretical categories.
  5. Quantify Internal Consistency: Calculate metrics such as Cronbach’s alpha and McDonald’s omega to ensure different prompts are measuring the same underlying construct.
  6. Assess Validity: Correlate LLM-generated scores with external ground truth or related behavioral data.
  7. Iterate: Refine the prompt pool by pruning items that cross-load or fail to contribute to the construct's reliability.

Case Study: Measuring Attitudes in Social Media

To test this workflow, the authors utilized the SemEval-2016 Stance Detection dataset, which contains 4,063 tweets regarding controversial topics such as Climate Change, Feminism, and Abortion. The goal was to measure three specific constructs: attitude certainty, attitude importance, and moralization.

Reliability and Factor Structure

The results demonstrated that LLMs can be highly consistent. The LLM-based scales showed excellent internal consistency, with alpha and omega scores ranging from 0.82 to 0.97. This suggests that the LLM interpreted the pool of prompts in a stable, predictable manner. Furthermore, the Exploratory Factor Analysis successfully identified distinct factors for the three constructs, though some prompts required pruning when they failed to distinguish between related traits.

One notable finding was the "reverse-coding trap." Much like human participants, LLMs occasionally struggled with reverse-coded items (e.g., "I do not care about this"). The factor analysis revealed that the model sometimes treated positive and negative expressions of a trait as distinct factors rather than opposite ends of a single spectrum.

The Validity Gap

While the measures were highly reliable, their validity—the extent to which they measure what they claim to measure—was mixed. The LLM-generated scores were strong predictors of supportive stances. For instance, if the LLM rated a tweet as having high "attitude importance," that tweet was highly likely to be labeled as "Pro-Feminism" or "Pro-Climate Action" by human coders.

However, the model struggled to predict opposing stances. In several instances, tweets expressing opposition were rated as having lower importance than neutral tweets. This suggests a potential bias in the model toward "positive" or affirmative expressions of strength, failing to recognize the psychological intensity behind oppositional or skeptical language.

Discussion and Future Directions

This research highlights that LLMs should not be viewed as "human-like" thinkers, but rather as efficient, observable indicators of latent factors—much like a thermometer indicates temperature. The high reliability of these models is promising, but the discrepancy in validity regarding opposing stances remains a critical hurdle.

Future work should explore whether "few-shot" prompting (providing the model with labeled examples) can improve validity over the "zero-shot" approach used here. Additionally, different models (such as GPT-4, Claude, or Llama 3) may exhibit different psychometric profiles. As researchers continue to use LLMs for psychological measurement, adopting a formal psychometric workflow will be essential to ensure that the "traces" we find in digital data lead to meaningful scientific measures.

Summary updated

BibTeX
@misc{simons2024from,
  author = {Joseph J. P. Simons and Liang Ze Wong and Prasanta Bhattacharya and Brandon Siyuan Loh and Wei Gao},
  title = {{From traces to measures: Large language models as a tool for psychological measurement from text}},
  year = {2024},
  eprint = {2405.07447},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.07447},
}
Figure