---
title: "Generalists vs. Specialists — paper by Arif et al. (2024)"
description: "Arif and colleagues test whether training for specific Urdu tasks beats general-purpose prompting and compare benchmark scores with reader…"
canonical: "https://research.elamur.ai/free/en/papers/arif-2024-generalists-vs-specialists-evaluating-large/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/arif-2024-generalists-vs-specialists-evaluating-large/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Generalists vs. Specialists: Evaluating Large Language Models for Urdu

# Generalists vs. Specialists: Evaluating Large Language Models for Urdu

Paper · 2024 · Samee Arif, Abdul Hameed Azeemi, Agha Ali Raza et al.

**Authors:** [Samee Arif](https://md.research.elamur.ai/free/en/authors/samee-arif/), Abdul Hameed Azeemi, [Agha Ali Raza](https://md.research.elamur.ai/free/en/authors/agha-ali-raza/) and [Awais Athar](https://md.research.elamur.ai/free/en/authors/awais-athar/) · **Year:** 2024 · **Venue:** Findings of the Association for Computational Linguistics: EMNLP 2024 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **7** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/arif-2024-generalists-vs-specialists-evaluating-large/cited-by/) · Findings of the Association for Computational Linguistics: EMNLP 2024 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.findings-emnlp.426/)
- [PDF](https://aclanthology.org/2024.findings-emnlp.426.pdf)
- [DOI 10.18653/v1/2024.findings-emnlp.426](https://doi.org/10.18653/v1/2024.findings-emnlp.426)

## Summary

Though more than 70 million people speak Urdu as their first language, suitable resources for training and evaluating language technology are still scarce. Samee Arif and colleagues ask what developers can get from a general-purpose system in this setting and when training a separate system for a particular job pays off. They examine 7 tasks that require a label, from identifying sarcasm to tagging a word in a sentence, and 7 that require a written answer, from reading comprehension to translation and assistant responses. This range lets them examine both agreement with a fixed answer and qualities that Urdu speakers can assess directly. The study is an evaluation of [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) for Urdu.

The authors give GPT-4-Turbo and Llama-3-8b English instructions and vary how many solved examples they include. They use XLM-R as their classification specialist and mT5 as their generation specialist, alongside Llama-3-8b, which they adapt separately for each task. A specialist tops every classification test, although the size of its advantage depends on the task. In entity tagging, adapted Llama earns 90.90 macro F1, a score that gives equal weight to the different labels. GPT's strongest prompt earns 63.95. Specialists also lead most automatic tests of generated text. Reading comprehension is the exception. GPT scores 72.78 SQuAD F1 with 6 worked examples, the best reference-answer overlap in the question-answering comparison. The specialist route uses [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

The ordering changes when native speakers judge the writing. The authors ask two Urdu speakers to rank anonymous outputs on 50 items for each generation task in the human comparison. GPT receives the most first places from each reader on every task in that comparison. Both readers award it first place on 49 of the 50 assistant prompts, with ties allowed. In translation, for instance, the automatic score rewards wording shared with a reference. Readers also assess whether the answer conveys the source accurately, reads grammatically, and preserves its tone. These procedures can favor different answers to the same kind of input.

The study also tests whether automated judges agree with the readers. Agreement declines for every reported task when the authors add GPT, Llama, or Claude 3.5 Sonnet to the human pair. GPT produces higher agreement than Llama throughout, while Claude leads the automated judges on several tasks. The results support task-specific training as a way to improve fixed-label predictions in this benchmark. They also show why stronger reference scores on generated text need to be interpreted alongside direct reading. The authors identify the shortage of high-quality data created in Urdu as a constraint on both sides of the comparison.

## Deep dive: Generalists vs. Specialists: Evaluating Large Language Models for Urdu

Arif and colleagues test whether training for specific Urdu tasks beats general-purpose prompting and compare benchmark scores with reader judgments. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why language coverage needs a closer test

A language can have a large community of speakers and still be difficult to study computationally. A collection of Urdu articles gives a researcher text to work with. Training a system to assign topic labels also requires knowing which labels belong to which articles. Testing a summarizer requires suitable original passages and summaries. Evaluating an assistant requires a way to judge replies to a variety of requests. The authors frame the Urdu resource problem in terms of material appropriate to a purpose. It is part of a wider problem studied in work on [systematic inequalities in language technology performance](https://md.research.elamur.ai/free/en/papers/blasi-2022-systematic-inequalities-language-technology-performance/).

General-purpose systems change what a researcher can try when there is limited task data. Given a description of the job, a system can attempt it immediately. A prompt can also show what a completed example looks like. To test a sentiment classifier, for instance, a researcher can supply a review and specify the possible labels. To show how the categories apply, the researcher can add completed reviews and their labels above the new input. This use of demonstrations inside the prompt has an earlier precedent in [Language Models are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/).

The alternative studied here is to use labeled or paired task data to adjust a pretrained system before the test. Starting from an existing system gives both approaches a base of language knowledge to draw on. The difference is where the task instruction takes effect. In the prompt-based approach, the instruction and examples are part of the material the system reads when it solves the next item. For a specialist, the training examples change the parameters that will be used on later items. The comparison asks how much each route can accomplish on specific Urdu tasks under the conditions the authors can test.

Classification and generation bring out different sides of that question. A classifier might return a broad subject for a headline or a grammatical category for one word. The expected choice belongs to a known inventory, so a prediction can be checked against an annotation. A writer might translate a sentence or answer a request for help. There can be several ways to do either well. A benchmark can compare a written answer with a reference, while a reader can consider whether the response works on its own terms. The study includes both because its practical question extends from agreement with dataset labels to usefulness for an Urdu speaker. The first family includes [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/).

#### From multilingual coverage to detailed comparisons

The authors situate their study among evaluations that ask how broadly general-purpose systems work across languages. MEGA compared several types of systems on 16 datasets spanning 70 languages. It gave researchers a way to examine breadth across languages and tasks within one benchmark. MEGAVERSE extended the study of capabilities outside English to a broader set of systems. Arif and colleagues keep the language fixed and vary both the task and the way each system is prepared. Their design can therefore expose behavior specific to an Urdu task that would be easy to miss in a broad comparison. [MEGA](https://md.research.elamur.ai/free/en/papers/ahuja-2023-mega-multilingual-evaluation-generative-ai/)

IndicGenBench addressed generation tasks intended to reflect things users do. It covered 29 Indic languages and included cross-lingual summarization, translation, and reading questions across languages. The related-work discussion also describes Zhao and colleagues' evaluation of Llama responses using instruction tasks from 17 categories. These precedents bear on different parts of the Urdu study. One concerns the range of languages and generated outputs a benchmark can cover. The other concerns how to test a particular system over varied instructions. Arif and colleagues include translation and summarization alongside tasks where the desired response is a label. [LLaMA Beyond English](https://md.research.elamur.ai/free/en/papers/zhao-2024-llama-english-empirical-study-language/)

Arabic benchmarks offered examples of how to compare general-purpose systems with specialized ones in one language. GPTAraEval studied 44 understanding and generation tasks and included a comparison between human judgments and judgments made by GPT-4. Its authors also examined the language in which instructions were given. Arif and colleagues draw on the reported advantage of English instructions in that Arabic study when they design their Urdu prompts. The language of the instructions is a design choice distinct from the language of an item or its expected answer. [GPTAraEval](https://md.research.elamur.ai/free/en/papers/khondaker-2023-gptaraeval-comprehensive-evaluation-chatgpt-arabic/)

The other Arabic precedent, LAraBench, used 61 publicly available datasets across 33 tasks. As Arif and colleagues describe it, established task-specific systems generally beat generalists prompted without demonstrations. The gap narrowed when larger generalists received examples. That finding supplies a reason to vary the information available at test time. If the comparison stopped after the instruction-only condition, it would leave open how well a generalist can use examples of an unfamiliar label scheme or answer format. [LAraBench](https://md.research.elamur.ai/free/en/papers/abdelali-2024-larabench-benchmarking-arabic-ai-large/)

The paper also cites a study of Llama for translation between English and Indian languages. That study reported that judgments made by a system could be comparable to human judgments. For the Urdu study, the practical question is how closely such judges agree with Urdu speakers when the outputs and criteria are held in common. Translation is part of that comparison, along with tasks whose rubrics emphasize other qualities, such as brevity in a summary or helpfulness in an assistant reply.

#### The comparison already available for Urdu

Tahir and colleagues had evaluated GPT-3.5-Turbo, Llama-2-7B-Chat, and Bloomz on 14 tasks drawn from 15 Urdu datasets. They compared those generalists against task-specific approaches that included a decision tree, a support vector machine, and m-BERT. Their generalists worked in a zero-shot setting, meaning the prompt contained no solved examples. As recounted by Arif and colleagues, the task-specific alternatives generally scored higher in that comparison.

That work left several ways of preparing systems untested. A prompt could contain demonstrations of how the label scheme applies. Those demonstrations could include explanations of the decisions. A general-purpose starting point could itself be trained to do a particular job. Arif and colleagues include all of these options, which makes the new comparison about the benefits of different kinds of task information. The reuse of Llama in both roles also lets them compare prompting and adaptation of the same starting system, alongside comparisons with systems that have different origins.

The authors connect this design to a second question about practical value. On a task with a specified label, agreement with the annotations gives a direct benchmark objective. In an assistant exchange, success depends on the content of a response and the request it addresses. Even within translation, the words chosen by one translator need not be the ones another competent translator would choose. The study accordingly asks how a ranking drawn from benchmark answers relates to a ranking made by people reading the answers. That relationship matters when the aim is to help a speaker accomplish something in Urdu.

### The method, step by step

#### Specify an input and a target for each task

The process begins with the material a system will see and the response expected for it. Some classification items call for a decision about an entire piece of text. A film review is assigned an attitude, a tweet is checked for sarcasm, and a news headline is filed under a topic. In other cases the sentence is context, with the actual prediction attached to a word within it. The paper treats the grammatical and entity tasks as assignments of a label to a designated word. A grammatical label describes its function or category in the sentence. An entity label can indicate, for instance, that the word belongs to a person's name or refers to an organization. These are [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) and [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

The generation tasks make different demands on the response. A question calls for an answer grounded in the reading material. A summary selects and condenses information, while a paraphrase expresses the source's meaning with changed language. Transliteration converts the writing to Roman Urdu. Translation changes the language, with separate tests for Urdu as the source and Urdu as the destination. The assistant task provides a user prompt and calls for a reply suited to that prompt. The form of the answer varies with the job, especially across [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/), [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/), and [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/).

For each job, the authors prepare both a prompted route and a training route. Training examples can demonstrate a label or a desired response in a prompt. They can also form the dataset used to adapt a specialist. Once the systems have produced answers to test items, the authors use measures appropriate to the answers and, for selected generation tasks, collect rankings. The judge comparison adds a further layer. Its input is a set of responses already written by the systems, and its output is a judgment about their quality.

Preparing Urdu tasks and evaluating their outputs The steps in order.

#### Choose the classification material

The review task comes from Urdu IMDB. Its 50,000 movie reviews are translations of the English collection, produced using Google Translator. Labels distinguish positive from negative sentiment. This is a case where the sentiment annotation begins with an English source and the text passed to the Urdu system has gone through translation. A review can keep its overall judgment of a film even if individual expressions change in translation. The English collection is associated with earlier work on [learning word vectors for sentiment analysis](https://md.research.elamur.ai/free/en/papers/maas-2011-learning-word-vectors-sentiment-analysis/).

For abuse detection the dataset section names a collection by Akhter and colleagues with 2,171 entries and another by Amjad and colleagues with 3,502. The output is a decision about abusive language. The sarcasm test draws on 19,955 annotated tweets. It asks for a decision about the manner in which the message is expressed. Both have simple label formats, but solving them involves reading for different properties. A prompt for abuse specifies that category directly. The sarcasm prompt asks the system to use another set of distinctions even if the same kind of short text appears as input.

The news experiments work at different levels. Fake news detection uses 1,300 annotated articles from a mixture of original and translated material. Topic classification draws on 137,161 headlines with a choice of subject labels. The topic list includes categories such as health, business, sports, and politics, as well as a category for other subjects. For that task, the classifier needs to recognize what the headline is about from the text of the headline itself. For fake news, it is instead asked to assign the corpus label to an article.

The grammatical data contain 5,130 sentences annotated for the category of each word. The entity data contain 33,748 sentences with word-level entity tags. The paper adapts the presentation of these corpora for the prompted systems. It encloses the target word in a marker, written `hl` inside angle brackets, and shows that marked word in the context of the sentence. This gives the system both the location of the prediction and the surrounding words it can use to make the decision. The grammatical annotations come from [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/).

These corpus sizes describe the material associated with the tasks. In particular, a sentence count for a tagging corpus describes sentences that can contain several labels. It is different from the size of the test sample and from the number of correct predictions in an error analysis. Keeping those units distinct matters when interpreting the paper's tag scores alongside its word-level examples.

#### Choose and filter the generation material

The authors name three sources of Urdu reading questions. UQA consists of 88,829 questions with answers. UQuAD contains 139 questions. Wiki-UQA contains 210 questions composed manually from Wikipedia articles. These collections give the study access to questions gathered in different ways. The main experiment reports a question-answering result at the level of the task, so the source counts set out the material available for the study without dividing up that score.

Several generation collections are filtered for length. For summarization the retained XSUMUrdu subset contains 76,626 entries. For paraphrasing the authors retain 387,004 entries from the Urdu collection used for that task. The selected Dakshina data contain 11,464 sentences for transliteration, and the selected OPUS-100 data contain 755,526 sentences for translation. The paper gives that OPUS-100 count for the selected material and treats the directions as distinct evaluation tasks. In one, a system reads English and writes Urdu. In the other, it reads Urdu and writes English.

The authors set the maximum length for generation training at 2048. Allowing the longest entries would have exceeded what they could practically train on, so they retain material that fits within the chosen limit. The listed sizes for the filtered collections describe the examples left after applying the restriction. This matters when reading descriptions of the benchmark. A summarizer trained under that limit learns from the eligible article and summary examples, with its coverage shaped by that selection.

The assistant source is UrduAssistant, a collection of 67,017 prompts translated from English. It is used for a task where the question may call for more than a particular phrase or transformation. A response can be evaluated for how fully and accurately it addresses what the user wants. This task therefore follows a separate test procedure, based on readers ranking replies to a sample of prompts.

#### Keep the test items apart from the demonstrations

For tasks other than the assistant, the intended test sample has a cap. The authors express the rule this way.

```
min(1000, len(dataset["test"]))
```

`dataset` means the dataset used for the task. The bracketed expression selects the split named `test`, and the quotation marks identify that name. `len` gives the count of items in the selected split. `1000` is the maximum sample size, and `min` chooses the smaller of that cap and the available count. The comma separates the inputs to `min`, and the parentheses enclose the inputs to each operation.

When the available test split is below the cap, the rule uses that smaller size. Where classes apply, the authors try to give them as even a representation as possible in the evaluation sample. Giving different labels room in the test helps a comparison address more than the dominant category. The assistant has its own 50-prompt human evaluation. The human ranking procedure also uses 50 items per task in the other generation comparisons it reports.

Demonstrations are taken from training data. This means they provide the system with resolved examples of the task while the question currently being scored comes from the test data. The authors have a human expert select those examples with balance and representativeness in mind. The test then compares prompts built from those choices. The procedure establishes how the selected examples work, and the meaning of the demonstration count is concrete. It is the number of completed cases shown before the system answers the test item.

#### Tell the generalists what to return

The two prompted systems are GPT-4-Turbo and Llama-3-8b, called GPT and Llama in the results. The authors chose GPT because of its position in Chatbot Arena as of March 1st, 2024, when they began the study. That was a selection criterion for which generalist to test. The Urdu evaluation then asks specific questions about it under benchmark prompts. The platform used to make the initial choice is [Chatbot Arena](https://md.research.elamur.ai/free/en/papers/chiang-2024-chatbot-arena-open-platform-evaluating/).

The authors use instruction-only, three-shot, and six-shot prompts for the classification and generation experiments. The instruction-only version introduces the task without including an answered item. The other versions include 3 or 6 solved items. A demonstration can show the scale of the answer, such as a single label, and how the instruction is applied to real task data. That is especially relevant when several labels have nearby meanings or when the expected writing must take a particular form. Supplying examples inside the prompt is [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/).

Classification prompts give the system a role, describe the decision, and list the permitted labels. In the sentiment task, for instance, the role and description tell the system it is to judge attitude, and the label list specifies the positive and negative categories. In the grammatical task, the prompt directs the system to the marked word and specifies the categories it may use. In the standard version the output is the label. The format keeps the prediction explicit, which is useful when an answer will be scored against an annotated category.

The authors also run a six-shot classification condition with chain-of-thought examples. In this design a worked example contains an explanation of the label decision. At test time the system is asked to provide its own explanation and its predicted label in separate fields of a JSON response. The explanation is part of how the task is presented and answered. The classification score is based on the chosen label. A fluent explanation paired with an incorrect label still counts as an error on the prediction being tested.

Generation instructions say what transformation to perform and in which language to write. The summarization example asks for 1 to 2 sentences in Urdu. The transliteration instruction requests Roman Urdu from Pakistani Urdu text. The instructions for the translation tasks specify Pakistani Urdu as the target in one direction and English in the reverse direction. The templates shown in the paper use a named response field for the generated text, such as a translation field. This is how the instructions identify the piece of writing requested from the system.

The prompts themselves are written in English, a choice the authors trace to the earlier Arabic evaluation. The actual text to process and the requested output language still come from the Urdu task definition. For the GPT runs, temperature and nucleus sampling are both set to 1.0. For Llama, temperature is 0.6 and the nucleus setting is 0.9. Temperature affects the relative preference for more probable continuations. The nucleus setting controls the cumulative probability used to decide which continuations remain candidates for sampling. The authors use GPT's API defaults and the settings from the Llama implementation for their respective runs.

#### Adapt specialists on the task data

XLM-Roberta-large, shortened to XLM-R, supplies a classification specialist with 550 million parameters before adaptation. The generation specialist mT5-large, shortened to mT5, has 1.2 billion parameters. Each starting point is adapted separately for the tasks assigned to it. Thus an XLM-R used to predict headline topics has been trained for that job, while an XLM-R in the sarcasm comparison has been trained for sarcasm. The pretrained systems come from work on [cross-lingual representation learning](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/) and [mT5](https://md.research.elamur.ai/free/en/papers/xue-2021-mt5-massively-multilingual-pre-trained/).

Llama-3-8b, with 8 billion parameters, is the starting point used on both sides of the comparison. The results call the adapted version Llama-FT. A row bearing that name refers to the adaptation for the task being evaluated. For example, the figure in the transliteration row is from adaptation on transliteration, while the figure in the entity row is from adaptation on entity labels. This design lets the authors examine task-specific training without also having to change the starting system in the Llama comparison.

The learning rates reported for mT5, Llama, and XLM-R are respectively `5e −5`, `2e −4`, and `5e −6`. The learning rate sets the scale of the training updates. Llama uses the same reported rate across the classification and generation sides. Separate choices of batch size and epochs are recorded in the training appendix. A batch is the group of examples processed together in training. An epoch describes a pass through the training material. These choices affect how the examples are presented to the training procedure and how often they are seen.

The authors fine-tune Llama in an int4 quantized form with low-rank adaptation. Quantization represents the weights at reduced precision. Low-rank adaptation trains smaller changes to selected operations in the system. The Llama configuration targets attention projections as well as projections that belong to its feed-forward computations. The authors report approximately 200 hours of total GPU time and identify the equipment used for fine-tuning and inference. They release code, system outputs, and the human and automated evaluations in the Generalists-vs-Specialists repository. The adaptation procedure is [LoRA](https://md.research.elamur.ai/free/en/papers/hu-2021-lora-low-rank-adaptation-large/).

#### Match the score to the sort of answer

The fixed-label tasks use macro F1. To see what it measures, consider the label for a person. Precision asks how frequently a prediction of that label is correct. Recall asks how frequently a reference instance of the label is successfully found. F1 combines these quantities for the label, giving a system a reason both to make accurate predictions and to find the cases that belong to the category. Macro averaging gives each label equal influence on the final score. Strong performance on a frequent label can therefore sit alongside a lower score if other categories are poorly predicted.

The question-answering test uses SQuAD F1. Here the prediction is text and the match concerns shared answer words. The comparison can give partial credit when a prediction includes some of the expected answer. That makes the score suitable for measuring closeness to the recorded answer under the benchmark. It is a different use of F1 from averaging the scores of fixed categories. The paper draws the answer metric from [SQuAD](https://md.research.elamur.ai/free/en/papers/rajpurkar-2016-squad-100-000-questions-machine/) and its [follow-up on unanswerable questions](https://md.research.elamur.ai/free/en/papers/rajpurkar-2018-know-what-you-don-t/).

Summaries are scored with ROUGE-L, using words as the units of comparison. The score rewards a shared sequence of words in the same relative order, even if the words do not form an uninterrupted stretch. This lets a summary get credit for retaining material scattered through a candidate or a reference. It also means the score depends on how much the two texts express in matching words. Breaking the text into the units that enter this comparison is [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/). The measure comes from [ROUGE](https://md.research.elamur.ai/free/en/papers/lin-2004-rouge-package-automatic-evaluation-summaries/).

Paraphrasing, transliteration, and translation are evaluated using SacreBLEU. It gives a standardized way to report BLEU, which rewards matching sequences of tokens in the candidate and reference. In a paraphrase this can reward a phrase that the reference writer also chose. In transliteration it can reward a shared spelling. In translation it can reflect the choice and arrangement of words in the target language. These matches can be useful indicators of similarity while measuring the text through the chosen reference. The paper cites [A Call for Clarity in Reporting BLEU Scores](https://md.research.elamur.ai/free/en/papers/post-2018-call-clarity-reporting-bleu-scores/), and the underlying measure is the [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/).

#### Ask readers and automated judges to rank the writing

The human annotators are native Urdu speakers from Pakistan. One is a paper author with a computer science background, and the other is a computer science student working as a research intern. They are shown anonymized answers from GPT, prompted Llama, mT5, and Llama-FT. Each reader ranks the four answers for an item and may give the same rank to multiple answers. The number of times a system receives the highest rank becomes its win count for that reader. This construction measures how frequently an answer is among the reader's preferred responses, since joint first places also qualify.

The rubric determines what the readers look for. A strong summary should be concise, accurate about the source, grammatical, and attentive to the important information. A paraphrase can keep the ideas while using different expressions. In Roman Urdu, the judges are asked to consider the correctness of spellings with room for variation and to attend to capitalization. For translations, the rubric values faithful meaning, tone, style, and grammatical form. The assistant rubric considers how pertinent and helpful the reply is, together with accuracy and qualities such as depth and detail.

GPT, Llama, and Claude 3.5 Sonnet are also used as judges. The automated prompts give the criteria, ask for an explanation, and request a numerical score from 0 to 100. The scores are used to order the answers. GPT and Llama are among the systems whose work is being judged. Claude is included as a judge whose own output is absent from the candidate set, in view of the authors' concern that a system may favor its own answers.

The agreement statistic is Krippendorff's alpha. It assesses observed disagreement relative to the disagreement expected by chance. The authors first use the rankings of the two readers to form a human comparison. They then add the rankings of each automated judge separately, retaining both readers in each calculation. The resulting values concern agreement in those groups. An alpha for the group containing Claude, for instance, includes the relationship between the two readers as well as Claude's ratings alongside theirs.

### Experiments and results

#### Where specialists lead against fixed labels

The classification comparison uses macro F1 on the controlled test samples. GPT and prompted Llama each have settings without examples, with 3 or 6 examples, and with explanations accompanying the 6 examples. The two specialists in each row are XLM-R and Llama-FT. The best score belongs to a specialist for every classification task. Llama-FT leads on review sentiment, headline topics, and both types of word tagging. XLM-R leads on abuse, sarcasm, and fake news.

On translated Urdu IMDB reviews, Llama-FT records 95.30 macro F1. GPT attains 94.90 with the ordinary six-shot prompt, and XLM-R records 92.90. The reasoning version of GPT's prompt scores 94.60. The table therefore favors the ordinary six-shot result even though the discussion describes the reasoning result as an increase. Prompted Llama does best with its instruction alone, at 87.88. The strongest specialist and the strongest GPT prompt are close on this test, while GPT is ahead of one of the two specialist scores.

On the abuse test, XLM-R obtains 90.92 macro F1. Llama-FT earns 89.15, and GPT comes close to that result with 89.01 from the three-shot setting. Prompted Llama reaches its highest abuse score of 75.82 when explanations are included with the demonstrations. The benchmark gives both generalists the same task of identifying abusive text, yet the prompts that produce their best reported results are different. In this case the strongest GPT setting approaches the task-trained alternatives.

The sarcasm tweets show a different separation between the approaches. XLM-R scores 84.37 macro F1, and Llama-FT scores 81.48. GPT's strongest setting gets 69.18 with 3 examples. The highest prompted Llama score is 50.67, with 6 examples. These scores describe how well the systems recover the dataset's labels. Considered beside the abuse test, they show that similar ways of presenting a binary label choice can have very different outcomes when what the label describes changes.

In fake news classification, XLM-R has a macro F1 of 84.99, ahead of GPT's best result of 78.88 in the zero-shot condition. Llama-FT records 72.14. Prompted Llama reaches 71.45 in its best run, with 6 examples. There are therefore two distinct comparisons to make. The best specialist sets the highest benchmark score, and the fine-tuned version of Llama is one of the systems GPT surpasses. A practitioner reading the task as uniformly favoring all specialist choices would miss that difference.

For headlines, Llama-FT scores 84.74 macro F1 and XLM-R scores 84.49. GPT has a maximum of 76.05 at zero shot. Prompted Llama likewise achieves its highest topic score with only the instruction, at 54.08. The results distinguish access to a large labeled headline collection in training from the small examples the prompt can supply. Here the task-trained systems lead, and the prompt comparisons give no higher score than the instruction-only condition for either generalist.

#### The word-tagging results

The entity test gives the clearest lead to adapted Llama among the classification results reported here. Both generalists do best when the prompt includes explanations, while XLM-R falls between them and Llama-FT. The chart compares each generalist in its highest-scoring setting with the specialists on the controlled sample from the Urdu entity corpus. The unit is the macro average over entity labels.

Macro F1 on the Urdu named entity recognition test sample Adapted Llama leads the comparison even when each generalist uses its strongest prompt.

**The numbers**

| System or setting | Macro F1 |
| --- | --- |
| Prompted Llama with reasoning | 53.96 |
| GPT with reasoning | 63.95 |
| XLM-R | 70.41 |
| Llama-FT (this paper) | 90.90 |

On part-of-speech tagging, Llama-FT has a macro F1 of 67.55 and XLM-R has 65.41 on the Universal Dependencies test sample. Prompted Llama's strongest entry is 41.62 with reasoning. The GPT figures require distinguishing the classification table from its discussion. The table gives the zero-shot setting 53.31 and the reasoning setting 54.61, while the discussion calls the zero-shot result GPT's highest. Reading the table by condition places the reasoning result first among the GPT runs. The two specialists both score above it.

The grammatical and entity tests are worth reading together. A generalist is told which word to label and which categories are valid. The strong adapted results show that supplying those parts of the task in the prompt still leaves a considerable amount for the system to infer from context. The paper follows these aggregate results with specific tag errors, which indicate where the remaining difficulty lies.

#### Automatic comparisons of generated answers

The automatic generation comparison covers question answering, summarization, paraphrasing, transliteration, and translation in both directions. GPT and Llama are compared with zero, 3, and 6 demonstrations, and mT5 and Llama-FT supply the task-trained baselines. The reported scores depend on the kind of output. A value on a summary row is ROUGE-L, while a value on a translation row is SacreBLEU. Comparing those values across tasks as if they were measurements on one scale would obscure what each is designed to measure.

On the Urdu question-answering test, GPT gets 66.28 SQuAD F1 without an example, 72.55 with 3, and 72.78 with 6. Prompted Llama attains 71.65 in its best setting, with 3 demonstrations. Llama-FT finishes at 70.42, and mT5 at 69.66. This is the automatic generation task on which a prompted system leads. The paper gives a combined task result, with no separate SQuAD F1 figures for UQA, UQuAD, and Wiki-UQA. The chart accordingly describes performance on the reported Urdu test sample.

SQuAD F1 on the Urdu question-answering test sample GPT with the larger demonstration set has the highest reported answer overlap.

**The numbers**

| System or setting | SQuAD F1 |
| --- | --- |
| GPT without examples | 66.28 |
| mT5 | 69.66 |
| Llama-FT | 70.42 |
| Llama with three examples | 71.65 |
| GPT with six examples (this paper) | 72.78 |

On XSUMUrdu summarization, the best ROUGE-L is 31.01 from Llama-FT. mT5 obtains 30.72. Prompted Llama reaches a maximum of 26.17 with 6 demonstrations and is ahead of GPT throughout the reported prompt settings. GPT's highest entry is 23.35 with 3 examples, alongside 23.34 with 6. The leading Llama system thus produces summaries whose wording has more in common with the references under the paper's word-sequence measure. The ranking of their summaries by the two readers differs markedly.

In paraphrasing, the highest SacreBLEU is 11.98, from mT5. Llama-FT scores 10.17. Among the prompted systems, Llama does best with 3 examples, at 6.40, while GPT does best with 6, at 4.01. A paraphrasing reference gives the system credit when it makes choices similar to the recorded rewrite. The rubric the readers use also attaches value to whether a response uses different wording from the input and accurately preserves the ideas. That extra information about the target helps make sense of why the automatic ranking can differ from their decisions.

For Dakshina transliteration, mT5 leads with 40.23 SacreBLEU, and Llama-FT follows with 37.95. GPT's best result is 32.38 when it sees 3 solved examples. Llama's best prompted result is 21.35 when it sees 6. The leading automatic scores belong to systems trained on the task, and the matching sequences that earn the credit are written in Roman Urdu. A comparison of word mismatches supplements this result by showing which particular forms contribute to differences from the reference.

In the English-to-Urdu half of the OPUS-100 comparison, mT5 scores 18.35 SacreBLEU. Llama-FT scores 14.63. The best prompted result is GPT's 12.62 with 3 demonstrations, a setting in which Llama reaches its own high of 6.56. When Urdu is the source and English the destination, Llama-FT leads with 29.18. mT5 achieves 21.55, GPT peaks at 19.18 with 6 examples, and prompted Llama peaks at 13.11 with 3. A specialist leads in each direction, but changing the direction changes which specialist the metric favors.

The paper's conclusion reports specialist leads on 12 out of the 14 tasks. That count includes the classification tests and the automatic comparisons of summaries, paraphrases, transliterations, and translations. GPT leads on the question-answering metric and on the assistant comparison. The latter is decided by human wins. The overall count therefore combines results whose measurement procedures differ.

#### Which outputs the readers put first

Each annotator awards GPT the most first places on each of the tasks in the human win table. The pattern is particularly informative in tasks where GPT has a lower reference score than the best specialist. Readers can give credit to a summary that conveys the essential information even when it chooses its own formulation. They can likewise prefer a translation for its fidelity to the source and readability. The win counts show preferences as judgments over candidate responses, with each response considered under the task rubric.

For summarization, GPT earns 41 wins from the first reader and 34 from the second. The corresponding Llama-FT counts are 4 and 11. Prompted Llama receives 9 and 17. Thus the reader who awards fewer first places to GPT still prefers it most frequently, and both readers award first place more often to prompted Llama than to the automatic leader. For paraphrasing, GPT has 42 and 39 wins, prompted Llama has 12 and 15, and mT5, the highest-scoring system under SacreBLEU, has 4 and 3.

For transliteration, the first and second readers award GPT 40 and 38 wins. Llama-FT receives 19 and 21, while mT5 earns 13 and 21. The second reader puts each specialist first equally often. Since the transliteration rubric permits differences in spelling, a win is compatible with a spelling that does not match the benchmark reference. The comparison gives evidence about what the two readers accept in Roman Urdu alongside the score for reproducing reference forms.

For English into Urdu, both readers give GPT 46 wins. The automatic leader mT5 receives 7 wins from the first reader and 10 from the second. For Urdu into English, the corresponding GPT counts are 40 and 45, while Llama-FT earns 18 and 15. The two directions illustrate the difference between the evaluations without depending on which specialist has the highest SacreBLEU. The preferred system by reader wins is GPT in both directions, while the best match to the reference under the automatic metric changes with the direction.

The assistant result is especially direct because the win count is the task's primary evaluation. For 49 out of the 50 prompts in the sample, every reader ranks GPT highest. Each also gives prompted Llama 3 wins. The column labels in the table assign 1 win from each reader to Llama-FT and 0 to mT5, while the accompanying discussion reverses those specialist assignments. The chart uses the labeled table. The rules allow joint first places, so a first-place count need not represent that many exclusive preferences.

First-place counts from the first reader on UrduAssistant test prompts The first reader awards GPT the highest rank far more often than any other system.

**The numbers**

| System or setting | Wins |
| --- | --- |
| mT5 | 0 |
| Llama-FT | 1 |
| Prompted Llama | 3 |
| GPT (this paper) | 49 |

The human win table contains no question-answering row. Accordingly the evidence for GPT's performance on reading questions comes from the automatic answer score. The other generation tasks in the win table let the paper ask how frequently human readers prefer answers when presented with the source and the competing responses. Even there, the win counts give an ordering by frequency of first place. A difference in wins does not measure the size of the quality difference between two answers.

#### How closely automated judges agree with the readers

The baseline for judge agreement is the ranking of the two Urdu speakers. Their Krippendorff's alpha is 0.684 on summaries, 0.710 on paraphrases, and 0.694 on transliterations. It is 0.728 for English into Urdu and 0.730 for Urdu into English. On assistant replies, it is 0.894. The authors use 0.67 as a threshold for drawing a tentative conclusion. The human-pair values are above it on each reported task.

For summaries, alpha becomes 0.504 when GPT is added to the two readers, 0.502 when Llama is added, and 0.624 with Claude. On paraphrases the values are 0.592 with GPT, 0.471 with Llama, and 0.565 with Claude. Thus the identity of the most closely agreeing automated judge changes even across two tasks that ask systems to work with existing Urdu text and produce rewritten material. The comparison remains a group agreement statistic in each case.

For transliteration, the alpha values with GPT and Llama are 0.510 and 0.253. The table gives 0.603 with Claude, while the discussion gives 0.604. Claude leads the automated comparison under either figure, and 0.603 is the tabulated result. For English into Urdu the values are 0.592 with GPT, 0.392 with Llama, and 0.515 with Claude. For the reverse direction they are 0.474 with GPT, 0.307 with Llama, and 0.510 with Claude. The table places GPT ahead in English-to-Urdu judging and Claude ahead in Urdu-to-English judging. The prose gives conflicting accounts of the leader for the latter direction.

For the assistant task, adding GPT gives alpha of 0.767, adding Llama gives 0.721, and adding Claude gives 0.775. The assistant is the task with the highest agreement both for the readers alone and for each group that includes an automated judge. On every reported task, the group with GPT is more consistent than the group with Llama. Claude has the highest automated result on summary, transliteration, Urdu-to-English translation, and assistant evaluation. Each automated judge brings the agreement below the value for the human pair when added to that pair on any of the reported tasks.

### What the ablations show

The paper offers comparisons of prompts, adaptation, and error patterns, without a formal ablation that removes individual components of specialist training.

#### The effect of demonstrating the task

The demonstration results are among the closer controlled comparisons in the study. Within a generalist, the authors change the information available in the prompt and evaluate the resulting answers on the same task. For GPT on question answering, reference-answer F1 improves across the instruction-only, three-shot, and six-shot conditions. The sentiment table likewise shows its best ordinary prompt with 6 demonstrations. Having examples of completed answers can help these systems identify how to carry out a task under the benchmark's rules.

The usefulness of another demonstration depends on the task and the system. For GPT on sarcasm, going from 3 examples to 6 takes macro F1 from 69.18 to 66.56. Adding examples to the English-to-Urdu prompt also gives a weaker result at 6 than at 3. In the other translation direction, the comparison favors the larger set. The direction matters to the content the system reads and the language in which it must produce a response. The demonstrated instances therefore have different jobs to do in the two prompts.

For prompted Llama on abuse detection, adding 3 examples to the instruction takes macro F1 from 44.73 to 65.85. The six-shot score is 71.64. In the review task, Llama fares best when the instruction stands alone. The fact that both tasks use a short list of labels does not settle how the system will respond to the examples. The comparison shows the effect of particular selected prompts. It gives less leverage on how the same number of examples would work under a fresh selection or a different ordering.

#### What changes when explanations are requested

At six shots the authors can compare classification prompts at the same example count, with reasoning added to one version. GPT moves from 62.98 to 63.95 macro F1 in named entity recognition. Llama moves from 45.29 to 53.96. In grammatical tagging, Llama's score moves from 33.85 to 41.62. These results show that the elaborated prompt can help even when the target word is already marked and the label list is available. A worked explanation can show how to use the sentence in making a label decision.

The reasoning condition gives weaker labels elsewhere. GPT obtains 74.57 macro F1 in six-shot topic classification and 70.43 when that setting includes explanations. Llama obtains 71.45 on fake news with the ordinary examples and 40.98 in the reasoning condition. In comparing these runs, the intervention includes both the explanations the system reads and the explanatory field it must write. The score concerns its final label. The design gives a comparison of the full reasoning prompt against the ordinary prompt, with the two changes made together.

#### What the errors reveal about particular words

A class-level view of entity tagging shows where the large aggregate lead comes from in part. With the reasoning prompt, GPT gets 95 Person entries correct. Adapted Llama gets 139 correct. GPT gets 70 Organization entries correct, compared with 134 for Llama-FT. These are counts of correct predictions for those classes in the diagnostic comparison. They are useful for identifying where the specialist gets more cases right. To determine precision for either class, one would also need to consider cases from other classes incorrectly assigned to it.

The part-of-speech analysis inspects the relationship between annotated and predicted tags. The authors identify proper nouns, pronouns, and auxiliary verbs as areas where GPT with reasoning has difficulty and adapted Llama is more successful. In a marked-word task, the prompt already resolves the location of the word that needs a tag. The remaining problem is to identify its function from the sentence and map it to the annotation inventory. The diagnostic shows that giving the generalist the target location and label names still leaves errors concentrated in particular grammatical categories.

For transliteration the authors split predicted and reference sentences into words and count where predicted words differ from the reference. They identify short forms such as `ye`, `ke`, `aik`, and `wo` as frequent sources of mismatches for GPT. The corresponding forms show fewer discrepancies for mT5 in the comparison. This helps explain a difference in reference matching by pointing to the pieces of writing involved. A Roman Urdu alternative can differ from the reference form, which is why this diagnostic and the rubric allowing spelling variation answer different questions about the same output.

#### How far the comparisons explain the advantages

The change from prompted to adapted Llama offers evidence about what task training can accomplish from a shared starting point. The entity and grammar scores improve strongly, while on question answering the adapted result is below the strongest prompted Llama result. The assistant judgments also give prompted Llama more first places than the adapted system. The same preparation strategy can therefore strengthen the connection to a task's target labels without producing a corresponding advantage in all kinds of generated replies.

The authors suggest some reasons for the successes of the other specialists. They associate mT5's English-to-Urdu, transliteration, and paraphrase results with Urdu material in its multilingual pretraining corpus. For XLM-R they suggest a benefit from pretraining on related languages, including Hindi. Those explanations are plausible interpretations of the observed scores in the paper. The compared systems differ in several aspects of their preparation, and the authors do not remove a language from pretraining or alter data quality while holding the rest of training fixed. The measured result is which prepared systems do better under the benchmark.

The judge comparison also motivates an explanation that goes beyond its direct measurement. Claude's replies are absent from the candidate set, and on several tasks adding Claude yields the highest agreement among the automated judges. The authors connect this pattern to concern about judges favoring their own work. The comparison changes judge identity together with whether the judge has an answer in the candidate set. Agreement here establishes how the groups rate these answers under the shared criteria. Direct evidence about self-preference would require comparing how a judge treats its own and other answers under conditions where that contribution can be isolated.

### Limitations

#### Limits the authors identify

The authors emphasize the small supply of high-quality datasets created in Urdu. They single out translated training material for sentiment and question answering, and they also identify the assistant prompts as translations from English. Translation extends the amount of material available for supervised training. It can also introduce inaccuracies and lose cultural or linguistic detail. For example, a translated review can carry the source's broad sentiment while providing fewer examples of how an Urdu speaker might express that sentiment in an original review. A question may be answerable even if its wording reflects the English material from which it was translated.

Data provenance can influence the test as well as the training. Where a reference comes from a particular style of writing, an overlap measure rewards candidate answers that share its wording. A speaker reading the output can reward a different formulation if it conveys the content effectively. The authors suggest artifacts of translated datasets as a possible contributor to the divergence between reader judgments and automatic scores. The paper compares the observed outcomes under the available data. It leaves the size of a translation effect unresolved because that effect is not separately tested against matched native material.

The authors also identify the test sample as a limit on representativeness. The cap of 1000 keeps the comparison manageable within the available resources, with the smaller split used when there are fewer items. The manual comparisons cover 50 items per evaluated task. Balancing known labels helps give different categories a place in the classification test. The samples can still miss forms of language that occur in other text sources or are rare within the sampled material. The strongest score describes the benchmark under its sampling procedure.

Subjectivity is another limit the authors discuss. Two readers can differ in the importance they give to brevity and coverage, or in their acceptance of a Roman Urdu spelling. The study supplies explicit criteria and reports the readers' agreement, which makes the judgments easier to interpret. The aggregate findings also leave an issue the authors raise about public use. Training data can carry biases, and task scores alone give limited evidence about the distribution of errors across users. The authors call for a fairness evaluation before deployment, an issue in [bias, fairness and safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/).

#### Limits that follow from the design

The generalist and specialist comparison puts usable approaches alongside one another. It varies architecture, pretraining, and access to task information across parts of the comparison. The Llama experiments hold the starting system closer to constant. Even so, one version can learn from a task dataset through training updates while the prompted version gets only a small set of resolved examples at inference. The results establish the relative performance of the tested strategies. They give no estimate of the gain from each additional training example, or of how methods would compare at a matched computational budget.

The tested prompts also capture particular choices. English is the instruction language, following the Arabic precedent, so the experiment leaves performance with Urdu instructions open. The authors choose examples with attention to the labels and the representativeness of the cases. Another choice might foreground different uses of a label or different ways to express a translation. A single score for each setting cannot describe the variability across those possibilities. The generalist conclusions apply to the selected demonstrations, the documented instructions, and the stated sampling settings.

The 2048 sequence limit affects which generation examples enter training. Results on the retained collections consequently give limited evidence for inputs that require handling longer contexts. A long source can ask a summarizer to select information across a greater span, and it can ask a translator to preserve choices across passages. The paper reports whole-task scores, leaving performance as a function of length unresolved. In question answering, the main score also leaves unresolved how the systems perform on the different question sources. This limits what the table can say about manually created questions as distinct from translated training material.

The label tests are best understood in relation to their annotations. A fake news result reflects how successfully the system assigns the labels of that corpus. Verification of a fresh claim would require evidence about how the system checks the claim in its own context. The task here gives a labeled classification comparison. Abuse detection likewise gives a score for the decisions defined by the task examples. The benchmark does not expose how errors would be distributed across communities, subjects, or kinds of speech encountered in wider moderation settings.

On generation, reference overlap and preference counts each discard some information. An overlap score can miss that a translation has chosen another faithful construction, and it can give credit for shared words in a summary that gets a relationship between events wrong. Wins preserve which responses each reader put first. They compress the other ranks, and ties mean that a win may be shared. The results establish differences in the orderings. The paper leaves open how much of the change in each task comes from specific factors such as content selection, grammaticality, or variation in word choice.

Both readers have native-language knowledge relevant to the work and computer science backgrounds, and both are connected to the project. Anonymized outputs remove explicit names from their materials. The judgments still come from this particular pair. Evidence from a broader set of readers could bear on how widely the same priorities are shared. The paper's agreement results summarize how consistently the pair ranks the presented responses. The comparison after adding an automated judge is similarly specific to the available candidates and rubrics. Lower agreement can show that a judge orders these responses differently and leaves the underlying source of disagreement open.

### What came after

A later citing study narrows the subject to detecting offensive Urdu language by prompting general-purpose systems. Arif and colleagues place closely related decisions inside a suite that ranges from sentiment labels to assistant responses. The later work makes prompt-driven detection its main subject. The connection is especially clear in the abuse experiment, where the earlier benchmark compares instructions alone, worked examples, and worked examples with explanations on the same kind of label decision. [Prompt-driven Detection of Offensive Urdu Language using Large Language Models](https://md.research.elamur.ai/free/en/papers/maab-2026-prompt-driven-detection-offensive-urdu/)

The follow-on scope makes the choice of prompt central to one classification problem. In the broader benchmark, the strongest abuse result belongs to trained XLM-R, while a demonstration-based GPT setting approaches the specialist scores and the reasoned setting gives prompted Llama its strongest abuse result. The later title and citation establish a continuation of the question about prompt-based decisions in Urdu. They leave the reuse of particular datasets, prompts, and evaluation procedures unspecified.

## Cite

Cite as Samee Arif, Abdul Hameed Azeemi, Agha Ali Raza and Awais Athar. 2024. Generalists vs. Specialists: Evaluating Large Language Models for Urdu. Findings of the Association for Computational Linguistics: EMNLP 2024.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2024.findings-emnlp.426](https://doi.org/10.18653/v1/2024.findings-emnlp.426)

```bibtex
@inproceedings{arif2024generalists,
  title = {{Generalists vs. Specialists: Evaluating Large Language Models for Urdu}},
  author = {Samee Arif, Abdul Hameed Azeemi, Agha Ali Raza and Awais Athar},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2024},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.426},
  url = {https://doi.org/10.18653/v1/2024.findings-emnlp.426}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
