## Encoder Models Outperform Generative LLMs on Named Entity Recognition Across Most Evaluated Indic Languages

URL: https://theprimary.com/ai-tech/2026-11-27/encoder-generative-ai-indic-ner
Published: 2026-11-27T20:16:57.498Z
Updated: 2026-11-27T20:16:57.947Z
Category: AI-Tech

Encoder models outperformed generative LLMs on named entity recognition across most of the 11 Indic languages evaluated on the Naamapadam benchmark.

When automated systems read digital text, one fundamental step is separating names of people, places, and organizations from everyday vocabulary. In English, capital letters provide an immediate visual cue that a word represents a proper noun. Across the diverse writing systems of the Indian subcontinent, no such typographical distinction exists. Proper names share identical letterforms with surrounding text, frequently match ordinary dictionary words, and blend with grammatical prefixes or suffixes that alter their surface appearance.

Extracting these entities accurately determines whether automated translation, search indexing, and knowledge bases can make sense of regional communications. More than one billion people speak the 22 constitutionally recognized languages of India, yet digital tools for these linguistic communities have historically lagged behind English resources. While contemporary machine learning research has pivoted toward massive generative systems designed to produce text sequentially, identifying specific entities within a sentence relies on a different structural capability.

A comparative preprint posted to the arXiv server by researchers Jakkala Mahesh, Jatavath Shravan Kumar, Komalla Shivani, and Sujoy Sarkar evaluated how different machine learning architectures handle entity identification across 11 Indic languages. The study measured performance on Naamapadam, a public benchmark covering multiple language families of the Indian subcontinent. On the Naamapadam named entity recognition benchmark, their results indicated that established encoder architectures, which analyze an entire sentence simultaneously, surpassed the evaluated generative systems at locating and classifying names.

## Why does identifying entities challenge modern language models?

Identifying proper nouns requires a model to determine exact phrase boundaries and assign each segment to a category, such as a person or a geographic site. In a sentence, an automated reader must evaluate both the preceding and following context to recognize that an ambiguous term refers to a specific individual rather than a general concept. Causal decoder-only models generate text token by token from left to right and do not directly consult future words in the input stream; encoder-decoder generative models are a separate class and should not be conflated with them.

Encoder models, by contrast, process every token in a passage at once through bidirectional self-attention mechanisms. The study reports an observed difference on this benchmark, not proof that architecture alone caused it or that encoder models are universally superior. The evaluated generative systems attempted the task either through conversational prompting or by generating structured text representations of extracted spans, an indirect approach that can introduce formatting errors or hallucinated tokens.

## How do encoder models compare with generative systems?

Encoder models achieved higher span-level accuracy across 10 of the 11 evaluated languages under standard sequence evaluation. Mahesh and colleagues evaluated five classic model families alongside four decoder-only large language models, as well as nine generative models tested in zero-shot to five-shot inference settings. Those decoder-only models were evaluated with language-dependent procedures: LoRA with 4-bit NF4 quantization for Hindi, and a token-classification head for the other languages, rather than LoRA fine-tuning across all eleven languages. On Hindi text, multilingual encoder models mBERT and XLM-RoBERTa each achieved an F1 score of 0.675, balancing precision and recall across annotated entity spans.

By comparison, the strongest fine-tuned generative baseline, Gemma-2-2B, recorded an average F1 score of 0.427 across the tested languages. The authors reported that encoder models outperformed generative architectures by margins ranging from 7.5 to 40 percentage points across 10 languages. In few-shot evaluations without task-specific fine-tuning, the top-performing generative model reached only 28 percent of the score achieved by the fine-tuned encoder baseline. The authors identified three distinct performance groupings across the languages, classifying them into encoder-dominant tiers, partial-coverage zones, and low-accuracy failure regimes. On Odia, performance was extremely poor rather than uniformly zero: the paper reports zero F1 for LLaMA-3.2 and Gemma-2, but 0.004 for TinyLlama and Qwen2.5.

## What limits the findings across different languages?

The comparative findings reflect experimental results on a single benchmark dataset and cannot predict performance on conversational domain shifts or unstandardized dialects. The Naamapadam corpus was created by projecting entity annotations from English sentences onto parallel Indic translations derived from the Samanantar parallel dataset. While the benchmark includes human-annotated test sets for evaluation, automatic projection during training can propagate subtle alignment errors into the learned patterns.

For Hindi, the paper describes LoRA with 4-bit NF4 quantization; for the other languages, it describes a token-classification head rather than the same LoRA procedure across all eleven languages. Larger generative models trained with full parameter updates or specialized multilingual tokenizers might alter the observed margin. Additionally, the paper is a preprint that has been posted to arXiv and has not yet undergone formal peer review by an academic journal or conference.

The findings offer practical guidelines for engineers and researchers deploying language technologies in resource-constrained multilingual environments. While generative models excel at open-ended dialogue and text creation, the preprint does not establish that encoder models are faster, cheaper to operate, or architecturally immune to tokenization effects; those claims remain qualified beyond the reported named-entity experiments.

This piece was prepared from the arXiv preprint and public records; the authors have not been interviewed.
