Skip to main content
QUICK REVIEW

[Paper Review] Nationality and Region Prediction from Names: A Comparative Study of Neural Models and Large Language Models

Keito Inoshita|arXiv (Cornell University)|Jan 13, 2026
Names, Identity, and Discrimination ResearchSocial Sciences1 citations
TL;DR

The paper systematically compares six neural models and six LLM prompting strategies for nationality and region prediction from names, showing LLMs outperform neural models across granularity levels, with the performance gap narrowing at coarser granularity and distinct error patterns.

ABSTRACT

Predicting nationality from personal names has practical value in marketing, demographic research, and genealogical studies. Conventional neural models learn statistical correspondences between names and nationalities from task-specific training data, posing challenges in generalizing to low-frequency nationalities and distinguishing similar nationalities within the same region. Large language models (LLMs) have the potential to address these challenges by leveraging world knowledge acquired during pre-training. In this study, we comprehensively compare neural models and LLMs on nationality prediction, evaluating six neural models and six LLM prompting strategies across three granularity levels (nationality, region, and continent), with frequency-based stratified analysis and error analysis. Results show that LLMs outperform neural models at all granularity levels, with the gap narrowing as granularity becomes coarser. Simple machine learning methods exhibit the highest frequency robustness, while pre-trained models and LLMs show degradation for low-frequency nationalities. Error analysis reveals that LLMs tend to make ``near-miss'' errors, predicting the correct region even when nationality is incorrect, whereas neural models exhibit more cross-regional errors and bias toward high-frequency classes. These findings indicate that LLM superiority stems from world knowledge, model selection should consider required granularity, and evaluation should account for error quality beyond accuracy.

Motivation & Objective

  • Motivate nationality/region prediction from personal names for applications in marketing, demography, and genealogy.
  • Evaluate how neural models and LLMs generalize across nationalities with varying frequencies and within-region distinctions.
  • Analyze prediction performance at three granularity levels (nationality, region, continent) and identify error patterns.
  • Investigate how prompt design and model selection affect LLM capabilities in knowledge-intensive classification tasks.

Proposed method

  • Evaluate six neural baselines: SVM with character n-grams, fastText, CNN, BiLSTM, CANINE, and XLM-RoBERTa.
  • Evaluate six LLM prompting strategies: Zero-shot, Few-shot, Chain-of-Thought, Self-Consistency, Least-to-Most, and Self-Reflection.
  • Use name2nat-derived dataset filtered to 99 nationalities (train/val/test splits 8:1:1) with stratified sampling.
  • Assess performance with accuracy, Macro-F1, and Precision@k (k=2,3,5), plus frequency-based stratified analysis (Head/Mid/Tail).
  • Conduct three random seeds for neural models and GPT-4.1-mini via API for LLM prompts; report mean ± SD.
  • Provide a hierarchical evaluation framework to compare fine-grained (nationalities) vs. coarse-grained (regions, continents) predictions and analyze error types.

Experimental results

Research questions

  • RQ1How do neural models compare to large language models in nationality and region prediction from names across different granularity levels?
  • RQ2What prompting strategies enable LLMs to best utilize pre-training world knowledge for this task, and how robust are predictions for low-frequency nationalities?
  • RQ3How does prediction granularity affect the performance gap between neural models and LLMs, and what does this imply for model selection?
  • RQ4What are the qualitative error patterns of LLMs versus neural models in this task (near-miss vs. cross-regional errors)?

Key findings

  • LLMs significantly outperform neural models on nationality prediction across all granularity levels.
  • The performance gap between LLMs and neural models narrows as granularity becomes coarser (nationality → region → continent).
  • Simple machine learning methods show robustness to high-frequency nationalities, while pre-trained models and LLMs degrade for low-frequency nationalities.
  • LLMs tend to make near-miss errors by predicting the correct region when the exact nationality is incorrect, whereas neural models exhibit more cross-regional errors and bias toward high-frequency classes.
  • Prompt design influences LLM performance, with Self-Consistency and Zero-shot/Few-shot variants providing strong results in this study.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.