Manuscript Offprint

arXiv:2608.29959

Generative vs. Encoder Models for Multilingual NER: A Comprehensive Empirical Study on Naamapadam

Jakkala Mahesh, Jatavath Shravan Kumar, Komalla Shivani, Sujoy Sarkar

Jakkala Mahesh 1^{1}, Jatavath Shravan Kumar 1^{1}, Komalla Shivani 1^{1}, Sujoy Sarkar 1^{1}

Rajiv Gandhi University of Knowledge Technologies, Basar, Telangana, India

b210673@rgukt.ac.in, b210490@rgukt.ac.in, b211414@rgukt.ac.in,

sujoysarkar@rgukt.ac.in

https://github.com/MaheshJakkala/naamapadam-multilingual-ner

Abstract. Language is humanity’s most consequential technology, yet for over a billion speakers across India’s twenty-two constitutionally recognised languages, its digital layer remains structurally incomplete. Named Entity Recognition (NER), the foundational step in transforming raw text into machine-interpretable knowledge, has been studied exhaustively for English but remains largely unsolved across most Indic languages. This paper presents a rigorous comparative study of generative and encoder-based neural architectures for NER on all eleven languages of the Naamapadam benchmark. We evaluate five classic model families spanning sequence-to-sequence transformers and multilingual encoders; four decoder-only large language models (LLMs) fine-tuned with LoRA and 4-bit NF4 quantisation; and nine generative models in zero-to-5-shot inference. Under strict CoNLL span-level evaluation, encoder-based models (mBERT and XLM-R, both F1=0.675 on Hindi) substantially outperform every generative architecture in ten of eleven languages, with gaps of 7.5–40 percentage points against the strongest competitor (Gemma-2-2B: avg F1=0.427). The best few-shot result reaches only 28% of the encoder baseline. We identify three language clusters—encoder-dominant, partial-coverage, and failure-zone; and provide actionable deployment guidelines grounded in transfer learning and low-resource NLP principles.

Keywords: Named Entity Recognition, Naamapadam, Multilingual NLP, Large Language Models, LoRA, Fine-Tuning, mBERT, XLM-R, Indian Languages, Low-Resource NLP, BIO Tagging

1 Introduction

Open any English-language news website and a modern NLP pipeline [25] will, within milliseconds, identify every politician, city, and corporation in every article silently, reliably, at scale. Deploy the same technology on a Hindi newswire, a Bengali legislative transcript, or a Tamil social media thread, and it stumbles on the most elementary sentences. This is not a question of linguistic complexity [52, 41]: Hindi’s grammar is no more irregular than German’s; Marathi shares Devanagari script with Sanskrit, one of the most systematically studied languages in history. The disparity is, at its core, one of data of historical resource allocation that quietly encoded one language family’s dominance into the foundations of modern language technology, leaving the digital infrastructure serving more than a billion people structurally incomplete [49].

Named Entity Recognition [2], identifying persons, locations, and organisations in free text sits at the base of this infrastructure. It is the indispensable precursor to information extraction [55], knowledge graph construction [26], and question answering [25]. When NER fails, every downstream system built on it degrades in cascade. For English this problem was largely solved by the early 2020s [45]. For the languages spoken by more than a billion people across the Indian subcontinent, the story is still being written.

Hindi, with over 600 million speakers, received its first large-scale NER benchmark only in 2022 [1]. Bengali, the seventh most spoken language on earth [15], had fewer annotated NER sentences before Naamapadam than a mid-sized English dataset from 2003. For Assamese (15 million speakers), a researcher in 2024 works from a training corpus of barely ten thousand sentences [49]. This resource poverty [50] is the language barrier motivating the present work.

The emergence of generative Large Language Models [19, 64, 37], systems producing fluent text in dozens of languages from a handful of examples [24] appeared to offer a shortcut. If a model pre-trained on web-scale multilingual corpora [4, 28] already “knows” how entities are named in Hindi, can it replace painstaking annotation? Collecting BIO-tagged [32] NER corpora requires linguistically trained annotators per target language, is expensive, and introduces systematic noise [53]. If instruction-tuned LLMs [6] can absorb NER from a few in-context examples, they would dramatically reduce the resource cost of building production-quality Indic NLP pipelines.

We answer that question empirically through the most comprehensive comparison of generative and encoder-based NER architectures on the Naamapadam benchmark to date, covering all eleven languages under identical experimental conditions with nine model families. We go beyond prior work [18, 20] by applying LoRA-based [13] decoder fine-tuning and encoder fine-tuning consistently across all languages, and by addressing the chronic ORG class-imbalance [48, 27] of news-domain corpora with an entity-aware hybrid sampling strategy. All evaluation follows the strict CoNLL-2003 span-level protocol, the accepted community standard [66].

References (67)

  • Naamapadam: A large-scale NER dataset for Indian languages
  • Introduction to the CoNLL-2003 shared task
  • BERT: Pre-training of deep bidirectional transformers
  • Unsupervised cross-lingual representation learning at scale
  • Exploring the limits of transfer learning with a unified text-to-text transformer
  • Scaling Instruction-Finetuned Language Models
  • mT5: A massively multilingual pre-trained text-to-text transformer
  • The Llama 3 Herd of Models
  • Gemma: Open Models Based on Gemini Research and Technology
  • Qwen2.5: A party of foundation models
  • TinyLlama: An open-source small language model (opens arXiv in a new tab)
  • Indic-gemma-2b-finetuned-sft-Navarasa-2.0
  • LoRA: Low-rank adaptation of large language models
  • QLoRA: Efficient finetuning of quantized LLMs
  • The IndicNLP library (opens arXiv in a new tab)
  • MuRIL: Multilingual representations for Indian languages (opens arXiv in a new tab)
  • IndicNLPSuite
  • Large language models are not strong few-shot learners for structured prediction (opens arXiv in a new tab)
  • Language models are few-shot learners
  • GPT-NER: Named entity recognition via large language models (opens arXiv in a new tab)
  • Chain-of-thought prompting elicits reasoning in LLMs
  • LLM is not a good few-shot information extractor, but a good reranker
  • How multilingual is multilingual BERT?
  • Training language models to follow instructions with human feedback
  • A survey on deep learning for NER
  • Knowledge graphs
  • Addressing long-tail in NER through data augmentation
  • Towards leaving no Indic language behind
  • MAD-X: An adapter-based framework for multi-task cross-lingual transfer
  • CROP: Zero-shot cross-lingual NER
  • Decoupled weight decay regularization
  • Text chunking using transformation-based learning
  • On a test of whether one of two random variables is stochastically larger
  • Rethinking the inception architecture for computer vision
  • Unified structure generation for universal information extraction
  • Lost in the middle: How language models use long contexts
  • Large language models: A survey (opens arXiv in a new tab)
  • Conditional random fields
  • Bidirectional LSTM-CRF Models for Sequence Tagging
  • On information and sufficiency
  • Word sense disambiguation: A survey
  • SentencePiece: A simple language-independent subword tokenizer
  • Named entity recognition on code-switched data
  • DeBERTa: Decoding-enhanced BERT with disentangled attention
  • Neural architectures for named entity recognition
  • Attention is all you need
  • Distributed representations of words and phrases
  • Focal loss for dense object detection
  • The state and fate of linguistic diversity and inclusion in NLP research
  • A survey on recent approaches for NLP in low-resource settings
  • A survey on transfer learning
  • A joint model of orthography and morphological segmentation
  • O'Reilly Media, 2012
  • Parsing with multilingual BERT, a small corpus, and a small treebank
  • Information extraction
  • Parameter-efficient fine-tuning of large-scale pre-trained language models
  • Formulating few-shot fine-tuning towards NER
  • MAD-G: Multilingual adapter generation for efficient cross-lingual transfer
  • Pre-train, prompt, and predict: A systematic survey of prompting methods in NLP
  • Rethinking the role of demonstrations
  • EDA: Easy data augmentation techniques
  • PICARD: Parsing incrementally for constrained auto-regressive decoding
  • Retrieval-augmented generation for knowledge-intensive NLP tasks
  • A Survey of Large Language Models
  • GloVe: Global vectors for word representation
  • Design challenges and misconceptions in NER
  • SGDR: Stochastic gradient descent with warm restarts