arXiv:2610.19048cs.CLOct 2026

Manuscript Offprint

arXiv:2610.19048

Pre-Trained Language Models as Zero-Shot Tools for Social Science Research

Noah Dasanaike

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Record linkage and demographic inference from names are routine demands in social science. Most approaches to these problems require labeled training data that are difficult or costly to acquire. I show that pre-trained language models perform both tasks accurately without requiring task-specific training. For record linkage, I introduce EnsembleLink, an algorithm that uses pre-trained embeddings alongside string-based scorers to retrieve a short list of candidates and then identify the likeliest matches. EnsembleLink matches or exceeds the performance of most prior approaches while generalizing across scripts and formats that those methods are unable to handle. For ethnicity inference from names, I show that large language models (LLMs) achieve up to 83.8% accuracy on U.S. voter files, compared to 78.0% for name-supplemented BISG. Open-weight models offer reproducible implementations that approach these models in accuracy. Moreover, LLMs are able to infer group membership for religious, caste-based, and other ethnic group categories outside of the United States, and reduce bias in downstream estimates of geographic racial gaps. Where pre-training encodes the world knowledge required by each task, task-specific labels add less information.

Keywords: record linkage, ethnicity inference, large language models, embeddings, Bayesian Improved Surname Geocoding

AI Disclosure: During revision, the author used Claude Opus 5.5 (Anthropic) for proofreading, copyediting, LaTeX formatting, validating analysis code, and preparing replication documentation and some appendix materials. All changes were manually reviewed.

∗^{*}I thank Ryan Enos for providing access to the TargetSmart voter files used in this paper.

†^{\dagger}PhD Candidate, Department of Government, Harvard University.

1 Introduction

Empirical social scientists regularly work with messy string-based data in order to facilitate downstream research, including joining different datasets on shared identifiers (record linkage) and inferring demographic characteristics from names (ethnicity 1^{1} inference, or “surname geocoding”). While prior methods have been developed for accomplishing these tasks, they are often limited in the information that they can use. In practice, many record linkage approaches rely on literal string comparison between potential pairs, which handles misspellings well but is less capable of recognizing matches written in different scripts, entered in the wrong fields, or abbreviated or translated (Enamorado et al., 2019).

The most common method for ethnicity inference, and specifically racial inference, in the United States is Bayesian Improved Surname Geocoding (BISG). BISG requires race-surname frequency tables from the U.S. Census (Imai and Khanna, 2016) and can predict group membership only for the coarse racial categories defined by these tables. It also requires data on the geographic distribution of different racial groups. Given these strict data requirements, BISG cannot be applied in most countries or to categories beyond race, such as detailed ethnicity, religion, or caste, where no such surname frequency tables or geographic distributions exist. Even within the United States, BISG produces systematic error that biases downstream analysis, for instance disproportionately labeling Black voters in wealthy neighborhoods as White (Argyle and Barber, 2024).

Although the two tasks may appear different, each reflects inference of an unobserved property of a textual record: which record(s) in one dataset a record in another refers to, and to which racial or ethnic group a given name likely belongs. Methods that extend beyond literal string overlap between potential matches, both of records to one another and of individuals to ethnic classifications, require labeled training data or population-specific name tables that are difficult or costly to acquire.

I show that pre-trained language models let researchers relax both constraints, and can be used for record linkage and ethnicity inference without requiring example data or additional fine-tuning. For record linkage, I introduce EnsembleLink, an algorithm that uses pre-trained text embeddings alongside string-based scorers to retrieve short candidate lists of matches for a given record, and then identifies the likeliest match from that set. EnsembleLink requires no labeled training data, performs as well as fastLink (Enamorado et al., 2019) and Splink (Linacre et al., 2022) on clean administrative records, and performs better on records that are missed by these methods.

Beyond clean administrative records, EnsembleLink links multi-field listings, census occupations, and paragraphs. When linking names of people, organizations, and places written in Arabic, Chinese, Hindi, Japanese, Russian, or Spanish to their English translations, EnsembleLink also outperforms fuzzylink (Ornstein, 2025), which labels pairs with proprietary large language models. When fuzzylink is trained on validation data, as the other methods are, rather than labeling the test data directly, EnsembleLink outperforms it on most tasks and performs comparably on the rest. EnsembleLink moreover scales to a million records without a blocking key (a shared field, such as state or surname initial, that restricts which records are compared). Blocking requirements have limited the scope of previous linkage methods (Enamorado et al., 2019; Linacre et al., 2022).

1^{1}I use “ethnicity” hereafter to refer to race, caste, religious sect, and related ascriptive categories.

For the task of inferring race or ethnicity from surnames, I show that proprietary and open-weight large language models (LLMs), prompted with a full name and geography, achieve up to 83.8% accuracy on U.S. voter files, compared to 78.0% for name-supplemented BISG. Without geography, where BISG cannot be estimated at all, their accuracy is nearly unchanged. I demonstrate that the same approach extends, without additional labels, to religious sects in Lebanon, caste in India, and country-specific ethnic groups (such as tribes in Uganda) in six countries with full-count voter rolls.

Across a panel of thirty-five models, several open-weight models outperform standard BISG, the two DeepSeek-V4 models come within one point of name-supplemented BISG in every state when reasoning is enabled, and all offer replicability with fixed local weights (Spirling, 2023). I also obtain probabilities that are well calibrated in testing by training a small local classifier on the LLM-generated labels, and I show that LLM-based inference reduces the neighborhood-income bias that BISG introduces into downstream estimates of racial gaps. Finally, I propose an agentic workflow for validating the outputs of both tasks.

References (24)