Inferring gender from author names with local LLMs: A multi-model evaluation
This study explores the use of local open-weight Large Language Models (LLMs) as an alternative for name-based gender classification. We evaluate 25 models from seven leading families (Llama, Gemma, Phi, Mistral, Qwen, DeepSeek, and Yi), ranging from 270 million to 70 billion parameters, using a reference dataset of nearly 200,000 names across 195 countries extracted from Wikidata, which allows for a systematic discussion of the size–performance relationship and of cross-family differences than is possible in other studies of the kind. Results show that top-performing models achieve F1-Scores above 0.90 for both gender categories, although these estimates are based on a Wikidata-derived gold standard with a Western-skewed name distribution, positioning local LLMs as a viable alternative to proprietary tools. A comparison with two widely used traditional baselines (WGND 2.0 and Gender-Guesser) on the same reference dataset shows that the best local LLMs perform on par with, and marginally better than, a well-configured dictionary: their advantage lies in slightly higher coverage rather than in per-prediction accuracy. Most models show higher precision for men and higher recall for women and therefore overestimate the share of women. Mistral-Nemo-12b emerges as the recommended default: its accuracy is statistically indistinguishable in macro-F1 from that of the best 70B model, it introduces the smallest distortion in the estimated share of women among low-abstention models, and it runs on a single consumer GPU at a verified low cost. Llama3.1–8b offers the highest coverage but overestimates the share of women by 4.6 percentage points.
Authors
- Víctor Herrero-Solana (ORCID: https://orcid.org/0000-0003-1142-5074)
- Nicolás Robinson‐García (ORCID: https://orcid.org/0000-0002-0585-7359)
- Elvira González‐Salmón (ORCID: https://orcid.org/0000-0003-3826-766X)
Institutions
- Universidad de Granada (ES)
Publication Details
- Journal
- Journal of Informetrics
- Published
- 2026-12-02
- DOI
- https://doi.org/10.1016/j.joi.2026.101906
- Citations
- 1
- Primary Topic
- Authorship Attribution and Profiling
- Type
- article
- Field-Weighted Citation Impact
- 0.97
Funders
- Ministerio de Ciencia, Innovación y Universidades
- Agencia Estatal de Investigación