LLM-Measure: Generating Valid, Consistent, and Reproducible Text-Based Measures for Social Science Research

Yi Yang, Hanyu Duan, Jiaxin Liu, Kar Yan Tam
9/19/2024
cs.CL

No official code found. Best implementation: hduanac/LLM-Measure (4 stars, last commit 2026-02-19).

Abstract

The increasing use of text as data in social science research necessitates the development of valid, consistent, reproducible, and efficient methods for generating text-based concept measures. This paper presents a novel method that leverages the internal hidden states of large language models (LLMs) to generate these concept measures. Specifically, the proposed method learns a concept vector that captures how the LLM internally represents the target concept, then estimates the concept value for text data by projecting the text's LLM hidden states onto the concept vector. Three replication studies demonstrate the method's effectiveness in producing highly valid, consistent, and reproducible text-based measures across various social science research contexts, highlighting its potential as a valuable tool for the research community.

View on arXivView PDF

Code Implementations(1)

hduanac/LLM-MeasureCommunity100%

Implementation of LLM-Measure

42R, PythonSep 11, 20248 months ago

Similar Papers

Cite this paper

@article{yang2024llmmeasure,
  title  = {LLM-Measure: Generating Valid, Consistent, and Reproducible Text-Based Measures for Social Science Research},
  author = {Yi Yang and Hanyu Duan and Jiaxin Liu and Kar Yan Tam},
  year   = {2024},
  eprint = {2409.12722},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.12722v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.12722.svg)](https://codeofpaper.com/paper/2409.12722)

Discussion