Elamur Research

Latxa: An Open Language Model and Evaluation Suite for Basque

Paper · 2024 · Julen Etxaniz, Oscar Sainz, Naiara Perez et al.

Summary

Basque had two shortages that made progress difficult to judge. There was relatively little Basque text in the collections used to train large language models, and there were few tests that could tell researchers what those systems understood about the language and the communities that use it. The authors address both shortages with Latxa. They take existing Llama 2 systems and continue training them on Basque text. They also assemble assessments from sources written for Basque speakers, including official proficiency exams and preparation materials for public-service examinations.

The final Basque corpus contains 4.30M documents and 4.17B tokens, the units of text used in training. It combines curated material, including newspapers and books, with collections derived from web crawls. The authors remove duplicates across sources and filter documents for language and quality. They use this corpus to adapt Llama 2 at the 7B, 13B and 70B parameter sizes, with some English text in the training mixture. The new evaluation benchmarks are EusProficiency, with 5,169 official language exam questions, EusReading, with 352 passage-based questions, EusTrivia, with 1,715 questions spanning several knowledge areas, and EusExams, with 16,774 public-service exam questions. Each test item asks the system to choose from supplied answers.

Latxa 70B reaches an average score of 61.08 across the paper’s full evaluation suite, ahead of both its Llama 2 starting point and every other open system in the comparison. It also exceeds GPT-3.5 Turbo on every benchmark they both take. The comparison with GPT-4 Turbo is more revealing. Latxa 70B scores 60.65 on the official proficiency questions against GPT-4 Turbo’s 56.70, and leads on the Language and Literature portion of EusTrivia. GPT-4 Turbo is stronger on the reading benchmarks and on trivia and public-service examinations overall.

The results show why proficiency and performance on a task conducted in Basque deserve separate measurements. Command of the language can help with an exam that tests expression and usage, while an exam written in the same language can demand institutional knowledge or reasoning that the system still lacks. The authors make their weights, corpora, benchmarks, code and documentation available, so other researchers can compare adaptation methods using the same materials and investigate where those differences arise.

Deep dive: Latxa: An Open Language Model and Evaluation Suite for Basque

Latxa adapts Llama 2 to Basque and tests it on native proficiency, reading, trivia and public-service exams alongside existing benchmarks. · about 34 minutes to read

The problem and its context

A shortage of text and a shortage of tests

A language can have newspapers, books, encyclopedias and a formal certification system while occupying very little of the web text used for training. The paper uses the distribution of languages in Common Crawl to make that distinction concrete. Basque accounts for 0.035% of the crawl considered in its discussion, at rank 52. Spanish is at rank 5 with 4.6%, and English is at rank 1 with 46%. The authors use those figures to situate Basque among low-resource languages. Their classification is a practical way of talking about digital text availability. The amount of text in a crawl and the amount of usable text for a research project are different quantities.

The nature of the text also matters. Basque is written in Latin script, is agglutinative and has no known relatives. Agglutination here refers to building word forms by attaching elements that express grammatical information. The paper also notes that Basque shares some vocabulary with languages it has been in contact with, such as Spanish and French. A shared script or familiar vocabulary can make documents look superficially accessible while leaving the system with the work of learning how words are formed and used in Basque. For the corpus builders, the practical consequence is that even a basic filter, such as one based on average word length, has to be checked against the language being collected.

The scarcity of suitable tests creates a different problem. A score on a translated reading exercise can tell a researcher whether a system finds the expected answer in a Basque passage. It gives different evidence from an official Basque proficiency question that turns on idiomatic expression, or from an examination question about a Basque public institution. The language of administration is the same, but the source of the difficulty changes. A project that measures progress with a single type of question risks missing changes in the other abilities that Basque speakers might care about.

The authors give particular attention to the evaluation of base systems. A base system learns from text during pretraining and can be tested by presenting examples or possible continuations. An instruction-tuned assistant has had additional training to respond to requests. A multiple-choice test provides a way to examine a base system by giving it a finite task and scoring its preference among answers. This matters because the paper is designed to evaluate what continued pretraining amounts to by itself, before undertaking a separate stage devoted to assistance or instruction following.

Earlier choices about training and measurement

The paper situates Latxa between two strands of prior work. Early open multilingual efforts deliberately covered a wide range of languages. Examples include XGLM and BLOOM. The authors also discuss mGPT and the translation-oriented MADLAD-400. Meanwhile, newer open releases such as Llama 2 and Mistral provided strong starting points, with an emphasis on English. For someone trying to improve Basque support, the relevant choice was whether to begin with a system built for broader language coverage or to bring a strong English-centric system closer to the target language through additional training.

Another route was to assemble enough data to train a new system from the beginning. The related-work discussion describes this route for Swedish and for a group of Nordic languages, as well as a bilingual French–English project. The French–English example draws attention to how text is divided into tokens. If the same amount of writing is encoded very differently across languages, balancing the number of training tokens and balancing the amount of underlying prose are distinct decisions. For Latxa, this issue is part of the tradeoff in reusing an existing system. Reuse gives the project a starting point with learned parameters and an established way to encode text.

The Finnish work described in the paper explored both starting from scratch and continuing to train an existing multilingual system. It also organized evaluation around FIN-bench, an adaptation of BIG-bench. In the paper’s discussion of languages with even less available data, other projects considered adapters, which train a smaller set of additional parameters, or applied a related approach across many languages. These precedents put the Basque work in a broader question about where to spend effort. A project can invest in training a new system, adapt an existing one, or aim for broad coverage with shared adaptation. The choice affects the resources required and the comparison that can be made at the end.

Other releases illustrate an additional distinction between language adaptation and instruction following. The authors mention Aya, an instruction-tuned system based on mT5. Latxa studies the base stage. Starting from Llama 2 gives the authors a concrete pre-adaptation comparison, while keeping the evaluation focused on capabilities that can be measured through question choices and completions.

Earlier assessments also informed what the authors built. Belebele offered parallel reading questions across languages, and BasqueGLUE collected established tasks in natural language understanding. Earlier language-adaptation studies also used perplexity, a measure of how well a system predicts held-out text. Those instruments can show whether a system is better at predicting Basque or performing established tasks. The authors wanted additional instruments sensitive to local usage and knowledge. For a common question format they could apply across subjects, they took inspiration from MMLU, an English multiple-choice benchmark covering a range of subjects. For question content, they turned to sources already used by Basque speakers.

The method, step by step

Assemble a corpus that reflects several kinds of writing

Continued pretraining starts with learned weights, the numerical parameters that govern the system’s predictions. The authors load the weights from a Llama 2 checkpoint and train further on a new mixture of text. As the system predicts successive units of the new text, its weights are adjusted. That process gives it repeated exposure to Basque vocabulary, constructions and subject matter. The study builds a separate collection of questions to see how the resulting changes carry over to tasks that use the language.

Building and evaluating Latxa

The steps in order.

Building and evaluating LatxaStep 1: Gather curated Basque publications and web collections1. Gather curated Basque publications and web collectionsStep 2: Normalize documents and remove repeated material2. Normalize documents and remove repeated materialStep 3: Filter for Basque text and document quality3. Filter for Basque text and document qualityStep 4: Split sources into training, development and test sets4. Split sources into training, development and test setsStep 5: Add English text and continue Llama pretraining5. Add English text and continue Llama pretrainingStep 6: Collect native Basque exams and trivia questions6. Collect native Basque exams and trivia questionsStep 7: Compare answer choices with open and commercial systems7. Compare answer choices with open and commercial systems

The curated sources give the corpus some identifiable kinds of writing. EusCrawl began with website-specific scrapers for 33 news sites. A scraper tailored to a site can target the parts of a page that contain the article. The Latxa project updates EusCrawl as EusCrawl v1.1, adding material through November 2023. The updated source contributes 1.94 million unique documents after deduplication, with 384 million words at that stage. Its place in the mix is therefore substantial in terms of volume and deliberate in terms of where the text came from.

The Egunkaria collection supplies articles, editorials and reviews from a daily newspaper published in Basque. Booktegi supplies a different set of genres, including essays, fiction and poetry. The authors obtain plain text from electronic books and retain 166 books in the filtered corpus. Basque Wikipedia contributes encyclopedia text. The team processes a November 2023 dump with WikiExtractor to obtain plain text. These sources give the cleaning pipeline a class of material that the authors generally prefer to preserve when copies appear elsewhere.

The larger web collections expand the amount of text available. CulturaX brings together cleaned web material derived from mC4 and several OSCAR releases. Only 0.02% of CulturaX is Basque, according to the paper, but that share still supplies almost 1.60 million raw documents. The authors add Colossal OSCAR material based on crawl snapshots outside CulturaX’s coverage. They also include HPLT v1, which was assembled from Common Crawl and the Internet Archive. HPLT contributes 2.29 million raw Basque documents and 1.55 billion raw words. Its release came without the same prior cleaning, which makes the decision about how to process it consequential for the combined corpus.

The mix of sources addresses a practical collection problem. Curated publications have a known origin and can supply text that a general crawl might represent poorly. Crawls supply much more material, some of which is valuable once extracted and cleaned. They can also reproduce the curated publications. Treating each incoming source as a separate pile of novel text would give repeated material undue weight. The authors therefore decide how to prioritize sources before they finish assembling the training set.

Normalize, deduplicate and filter

The first pass uses Corpus Cleaner v2, abbreviated CCv2, to fix document encoding and normalize whitespace. Encoding affects whether characters are represented consistently, and whitespace changes can make otherwise equivalent text look different to an automated comparison. Performing these repairs first gives the duplicate detection and later filters a more consistent representation of each document.

Next comes deduplication, or removal of repeated content. The authors check URLs and document text, both within and across source collections. URL matching catches repeated records of an address. Content matching can catch cases where substantially the same text has arrived from different addresses or collections. The team uses near-deduplication with Bloom filters from the Dolma toolkit. A Bloom filter is a compact way to test whether a representation has been seen so that duplicate detection can operate across many records. HPLT also goes through paragraph-level deduplication, which can strip repeated pieces of text even when the full documents differ.

When the same material is present in several places, the pipeline favors the curated collections. Wikipedia, EusCrawl, Egunkaria and Booktegi take precedence over the larger crawl-derived sources. CulturaX and Colossal OSCAR in turn take precedence over HPLT. The choice gives a web collection credit for the additional text it brings after overlap has been taken into account. The paper reports that more than 60% of the Colossal OSCAR documents were already present in preferred sources. Within EusCrawl, much of the duplication instead came from overlap between the original release and the material collected for the update.

The raw input contains 7.39M documents and 2.96B words. Deduplication leaves 5.80M documents and 1.45B words. These are counts at different stages of the same collection procedure. The authors then apply document-level filters, some carried over from Gopher and from C4, the corpus associated with T5. Other thresholds are adjusted using distributions observed in the Basque collections. Adapting a filter in this way matters when a statistic such as mean word length reflects the language as well as the quality of the extraction. The Gopher rules are among the starting points for these decisions. Gopher

Language identification is one of the filtering stages. The pipeline uses CLD2 through Dolma to estimate the fraction of each document written in Basque. The appendix reports a rejection threshold below 0.5 for this fraction. Other filters consider document length, the proportion of words containing letters and the occurrence of patterns such as ellipses, lines beginning with bullets, brackets and placeholder text. The mean word length rules flag documents below 3 or above 12. These measures give the pipeline ways to find very short fragments, extraction artifacts and documents whose contents deviate sharply from the material the authors want to retain.

CCv2 applies another quality assessment after the earlier rules. Its document score combines signals from several taggers, and the paper gives 0.55 as the cutoff below which a document is removed. Different filters can flag the same document. The individual rejection percentages therefore describe the reach of each rule on the relevant source. For instance, the language rule flags 34.13% of HPLT documents and the CCv2 score rule flags 25.12%, according to the filter breakdown. In Wikipedia, the short-document rule flags 22.37%. The authors trace those short items to redirect pages and report little effect on Wikipedia’s word count. A large document rejection rate can thus have quite different implications depending on the source and on how much text each flagged record contains.

The final corpus has 4.30M documents, 1.22B words and 4.17B Llama 2 tokens. Tokenization is the conversion of text into units that the system processes. A word count describes the amount of text in familiar linguistic units, while the token count describes how much input the Llama 2 system sees under its encoding. The filtered counts illustrate the difference. CulturaX supplies 541M words and 1.84B tokens, while EusCrawl v1.1 supplies 359M words and 1.21B tokens. Booktegi supplies 3M words and 8M tokens. Its contribution is small by volume, but the books bring writing genres that the news source alone would leave out.

The authors shuffle each cleaned dataset and split it separately into training at 98%, development at 1% and testing at 1%. Those splits belong to the text corpus. They make it possible to hold out ordinary text when checking prediction quality. The multiple-choice benchmarks are a separate collection of tasks. Their questions require a decision about which answer is appropriate, so the corpus splits and the benchmark suite offer different observations about the effects of the same training procedure.

Continue training from the existing checkpoints

Latxa has 7B, 13B and 70B variants initialized from the corresponding Llama 2 checkpoints. The architecture is an autoregressive Transformer. Autoregressive means that the system predicts a next token from the preceding tokens. That prediction can be used to keep writing a sequence, or inspected to compare possible endings. The project retains this basic setup for both its training and its evaluation of candidate answers.

Basque supplies the target-language material. The authors also draw 500k random English documents from The Pile, amounting to 0.9B tokens. This mixture is intended to mitigate catastrophic forgetting, the degradation of abilities acquired during earlier training when the system is trained further on new material. The motivation concerns how much of the original system’s ability to use a prompt survives its exposure to the new corpus. The paper gives a preliminary comparison relevant to that decision, discussed below with the other analyses.

Training uses the GPT-NeoX library on the Leonardo cluster at CINECA. Training runs for 10,000 steps per variant, using 4,096-token sequences and an effective batch size of one million tokens. A step updates the weights from the batch’s training signal. The sequence length governs how much text can be in an individual training sequence, while the effective batch size describes the amount of text contributing to an update. The paper reports 10B tokens processed under this schedule. That is the volume of training exposure. The corpus count earlier in the section describes the amount of Basque material after preprocessing.

The paper’s peak learning-rate setting can be written as follows.

ηpeak = 1 × 10⁻⁴

Here ηpeak is the peak learning rate, the highest setting used to scale weight updates during continued pretraining. The equals sign gives its value, × denotes multiplication, and 10⁻⁴ is ten raised to the negative fourth power. The schedule warms up over 500 steps and then decays along a cosine schedule until the learning rate is 3% of its peak. The authors retain the remaining hyper-parameter choices from the Llama 2 recipe. They monitor validation perplexity throughout training. Lower perplexity indicates that the system assigned higher probabilities to the held-out text it was asked to predict.

The computing requirements are quite different across the variants. The 7B run uses 32 GPUs, the 13B run uses 64, and the 70B run uses 256. In the paper’s main training-cost breakdown, the 70B run accounts for 30,266.0h of GPU time. The accompanying emissions estimate for that run is 3,955.17kg of carbon dioxide equivalent. The estimates assume that the GPU draws 440 watts and that carbon intensity is zero.297kg/kW h for Italy on the date chosen by the authors. This is an estimate tied to the stated power and electricity assumptions. The released weights let comparisons begin from the resulting checkpoints, while the corpora and code make the collection and training choices available for inspection.

Collect assessments written for Basque speakers

The authors gather existing Basque questions for their new assessments. This choice avoids having the wording of another language determine the shape of a Basque test through translation. It also allows topics such as local public services to enter the assessment through questions that were already intended for people in the Basque Country. The datasets share a multiple-choice structure, while the sources of the questions and the demands placed on the reader vary.

EusProficiency comes from atarikoa, the qualifying component of the EGA examination for an official C1-level certificate in Basque. The questions come from examinations held from 1998 to 2008. The format lets the authors test usage that is hard to preserve in translation. In one example, the examinee has to choose what to say to someone eating in a restaurant. The alternatives are all expressions a speaker might encounter. The correct choice depends on knowing which expression fits the exchange. Other exercises address such aspects of proficiency as spelling, vocabulary and grammar.

EusReading uses the irakurmena, or reading-comprehension, component of the same collection of EGA examinations. It pairs passages with questions. In one example, a text about Ernest Hemingway and bullfighter Ordóñez establishes a sequence involving an injury, a visit and a published photograph. The alternatives rearrange those details. Choosing accurately requires tracking who did what and how the events relate. The source thus provides actual passage-dependent decisions, and the length of its texts creates a practical constraint when the examples are put into a prompt.

EusTrivia brings together questions collected from several online sources. The authors distinguish elementary questions from more challenging ones and group the items into Humanities and Natural Sciences, Leisure and Art, Music, Language and Literature, and Mathematics and ICT. Some questions depend directly on knowledge of Basque culture or the Basque language. Others ask for widely applicable facts or a quantitative answer expressed in Basque. The paper’s illustrative measurement question asks for an everyday unit conversion. That kind of item requires enough Basque to understand the request, then calls on knowledge that could be tested in another language as well.

EusExams comes from tests used to prepare for public-service examinations. The material covers positions and institutions including the public health system, city councils, public offices and the University of the Basque Country. In the paper’s example about the university, the answer choices differ in how they characterize the property and rights that belong to it. Picking the correct definition requires attending to the scope of each option and knowing the relevant institutional rule. Much of the source material has a Spanish counterpart. The evaluation uses the Basque subset.

Turn each question into a comparable decision

The authors implement the evaluation in Eleuther AI’s LM Evaluation Harness. For the new multiple-choice tasks, the input contains the question, its listed options and, when applicable, the passage that goes with it. In few-shot learning, answered examples appear before the item being evaluated. They demonstrate what the task looks like and what form an answer takes. The examples become part of the input during evaluation, and the checkpoint weights stay fixed.

For the open systems, the authors describe scoring the alternatives by their log probabilities. A log probability expresses how much probability the system assigned to an answer on a logarithmic scale. The choice rule described in the paper can be written in compact notation.

ĉ = arg max[c ∈ C] log P(c ∣ p)

Here ĉ is the selected answer, C is the set of eligible alternatives for that item, and c ∈ C means that c ranges over those alternatives. The prompt p consists of the task text and any demonstration items. P(c ∣ p) is the probability assigned to candidate c given that prompt, with ∣ meaning “given.” The operator log takes the logarithm, and arg max returns the candidate whose score is highest. The equals sign identifies that candidate as the prediction. Depending on the benchmark, the scored continuation can be an answer label, a class label or a proposed story ending.

The GPT evaluations use the same task prompts where feasible, with examples arranged as user and assistant messages. The authors add an English system message specifying the allowable answer format for the task. This makes the responses comparable at the level of an answer choice. The interface and the way it supplies outputs still differ from direct scoring with access to the open checkpoint. For a task that needs the scores of whole proposed continuations, that difference affects which comparisons are possible.

Experiments and results

What the test suite measures

The full evaluation has seven reported benchmark scores, with BasqueGLUE itself combining several tasks. The four new benchmarks account for 23,282 questions in the paper. EusProficiency has 5,169 items and EusReading has 352. The paper’s dataset statistics give an average input length of 50 characters for EusProficiency and 5,340 characters for EusReading. This gap reflects a difference in what an item presents to the system. A proficiency exercise can make its decision turn on a short context or expression. An EusReading item carries the passage whose details the system must use.

The other new datasets expand the range of subject matter. EusTrivia contains 1,715 items, of which 56.3% are classified as elementary level. The number of choices varies by question, with 3.84 choices on average. EusExams has 16,774 items in the Basque evaluation. In the public-service material, the setting and subject of a test change with the institution and role. The number of items makes it possible to inspect performance across different categories of examinations as well as on the overall benchmark.

Among the existing tasks, the Basque part of Belebele provides 900 multiple-choice reading items. Its average input length is 584 characters in the paper’s statistics. XStoryCloze contributes 1,511 items and asks which ending fits a short story. It uses professionally translated material. A story ending can be compatible with the words in the prompt yet fail to fit the events, so the decision involves commonsense reasoning in addition to reading the Basque text.

BasqueGLUE covers sentiment analysis, stance detection, topic classification, coreference resolution, a question-based inference task and a word-in-context task. The coreference exercise asks whether two expressions in a passage refer to the same entity. In the inference exercise, the system decides whether a text answers a question. In the word-in-context exercise, it decides whether a word has the same meaning in two uses. Each of these is presented to the generative systems as a prompt with a fixed set of labels. The paper also reports results for Basque encoders that were trained specifically to make those task predictions.

Conditions for a fair comparison

The open baselines include the original Llama 2 checkpoints, which provide a comparison at each Latxa parameter size. They also include Mistral, Mixtral and Yi, which the paper describes as systems without an intentional emphasis on Basque during pretraining. XGLM, BLOOM and mGPT represent earlier open multilingual systems that include Basque. Comparing these groups provides context for how far the results can be explained by starting with competitive weights, having some Basque representation in training, or deliberately adapting a system to Basque.

The GPT baselines are GPT-3.5 Turbo and GPT-4 Turbo. For GPT-4 Turbo, the paper uses gpt-4-1106-preview on BasqueGLUE and gpt-4-0125-preview elsewhere. For GPT-3.5 Turbo it uses gpt-3.5-turbo-0125. These identifiers matter because the comparisons describe particular versions tested under a particular prompt setup. They also delimit what can go into an aggregate. The authors omit XStoryCloze for both GPT systems because the API did not give them the scores they needed for candidate continuations. The full seven-benchmark average is therefore reported for the open systems, and comparisons involving GPT are made on individual shared benchmarks. GPT-4 Technical Report

Most tasks use 5 in-context examples. XStoryCloze is evaluated 0-shot, so it supplies the story and the candidate endings without worked examples. EusReading uses a 1-shot prompt. The authors chose that setting because the long passages would make it difficult to fit additional examples into the context of most systems. A shot is a demonstration in the input, so the two exceptions change the amount of task-specific guidance supplied at evaluation time. Within each benchmark the reported scores should be read under its own prompt condition.

Accuracy measures the share of test questions answered correctly. It is the metric for the new multiple-choice benchmarks and the story and reading tasks. BasqueGLUE reports a mixture of accuracy and F1, which combines precision and recall. The sentiment and topic tasks use micro F1, which pools decisions across classes before obtaining the score. VaxxStance reports macro F1 over the in-favour and against categories, giving the two class scores equal weight. Coreference, question-based inference and word-in-context use accuracy. The BasqueGLUE average and the paper’s overall average are consequently scores over several measures. The overall average should be read as a summary of benchmark performance, with the individual columns available for interpreting specific abilities.

The overall gain over open baselines

Within the open comparison, Latxa 70B leads with an average of 61.08. Yi 34B, the strongest earlier open system by that average, scores 42.13, and Mixtral 8x7B scores 42.04. The paper reports an advantage of 18.95 points over the best earlier open comparison and 25.18 points over the Llama 2 checkpoint on which Latxa 70B is based. These gains are measured across the seven-benchmark average under the paper’s task-specific prompt settings.

Open systems on the full Basque evaluation suite by average score

Each Latxa variant scores above its Llama starting point, and the largest Latxa leads the open comparison.

Open systems on the full Basque evaluation suite by average scoreLlama 2 7B: 32.08Llama 2 7B32.08Latxa 7B: 40.94Latxa 7B40.94Llama 2 13B: 34.24Llama 2 13B34.24Latxa 13B: 50.08Latxa 13B50.08Mixtral 8x7B: 42.04Mixtral 8x7B42.04Yi 34B: 42.13Yi 34B42.13Llama 2 70B: 35.89Llama 2 70B35.89Latxa 70B (this paper): 61.08Latxa 70B (this paper)61.08
The numbers
System or settingaverage benchmark score
Llama 2 7B32.08
Latxa 7B40.94
Llama 2 13B34.24
Latxa 13B50.08
Mixtral 8x7B42.04
Yi 34B42.13
Llama 2 70B35.89
Latxa 70B (this paper)61.08

The smaller variants show why it helps to retain the benchmark columns alongside the average. Latxa 7B scores 40.94 overall and leads the other 7B systems on five benchmarks. On Belebele it scores 37.33, below Mistral 7B at 38.89. On EusReading it scores 25.00, while Mistral 7B reaches 29.26. The random reference for EusReading is 25.83. Basque adaptation at the smallest size gives gains in much of the suite, with long-passage reading remaining difficult under the 1-shot setup. At larger sizes, the Latxa family’s reading scores change substantially.

XStoryCloze shows another side of the comparison. Latxa 70B scores 70.55 in the 0-shot setting. Among the earlier systems, XGLM 7B reaches 57.71, BLOOM 7B reaches 57.18 and mGPT 13B reaches 55.39. Llama 2 70B reaches 51.62, close to the 50.00 random reference. The ordering in this task gives the earlier multilingual systems a relative advantage over the English-centric open systems. Their position on the whole suite is weaker. The story task thus gives independent information about how systems handle Basque in an evaluation with no demonstrations.

Proficiency, passage reading and subject knowledge

The most direct proficiency comparison uses EusProficiency. This is where Latxa 70B leads every system evaluated. The original Llama 2 70B checkpoint scores 24.16 on the task, against a random reference of 25.00. After Basque adaptation, the corresponding Latxa variant reaches 60.65. GPT-4 Turbo scores 56.70, and GPT-3.5 Turbo reaches 31.24. The task’s source matters to the interpretation. The questions come from a certification exam that asks examinees to distinguish appropriate forms and expressions. The result is strong evidence about those choices in this test format.

Systems on the EusProficiency official Basque exam questions by accuracy

The largest Latxa leads the original Llama checkpoint and both commercial systems on the proficiency exam.

Systems on the EusProficiency official Basque exam questions by accuracyRandom: 25.00Random25.00Llama 2 70B: 24.16Llama 2 70B24.16Yi 34B: 27.30Yi 34B27.30GPT-3.5 Turbo: 31.24GPT-3.5 Turbo31.24Latxa 13B: 44.11Latxa 13B44.11GPT-4 Turbo: 56.70GPT-4 Turbo56.70Latxa 70B (this paper): 60.65Latxa 70B (this paper)60.65
The numbers
System or settingaccuracy %
Random25.00
Llama 2 70B24.16
Yi 34B27.30
GPT-3.5 Turbo31.24
Latxa 13B44.11
GPT-4 Turbo56.70
Latxa 70B (this paper)60.65

On the two passage-reading tasks, GPT-4 Turbo leads. On the shorter inputs in Belebele, Latxa 70B scores 71.67, versus 90.67 for GPT-4 Turbo and 57.33 for GPT-3.5 Turbo. On EusReading, Latxa 70B scores 50.57, versus 75.85 for GPT-4 Turbo and 36.65 for GPT-3.5 Turbo. The reading results put the Latxa checkpoint between the two commercial comparisons in both settings. The lower Latxa score on EusReading accompanies longer inputs, native exam material and fewer prompt demonstrations. Each of those features is part of the comparison between tests.

Systems on the EusReading passage questions by accuracy

The largest Latxa leads the open systems in this comparison, while GPT-4 Turbo leads overall.

Systems on the EusReading passage questions by accuracyRandom: 25.83Random25.83Llama 2 70B: 27.84Llama 2 70B27.84Yi 34B: 34.66Yi 34B34.66GPT-3.5 Turbo: 36.65GPT-3.5 Turbo36.65Mixtral 8x7B: 37.50Mixtral 8x7B37.50Latxa 70B (this paper): 50.57Latxa 70B (this paper)50.57GPT-4 Turbo: 75.85GPT-4 Turbo75.85
The numbers
System or settingaccuracy %
Random25.83
Llama 2 70B27.84
Yi 34B34.66
GPT-3.5 Turbo36.65
Mixtral 8x7B37.50
Latxa 70B (this paper)50.57
GPT-4 Turbo75.85

On the 5-shot EusTrivia evaluation, Latxa 70B reaches 62.45 accuracy, above GPT-3.5 Turbo at 46.71 and below GPT-4 Turbo at 73.12. It also exceeds both Yi 34B at 42.57 and the original Llama 2 70B at 38.43. EusTrivia mixes locally specific facts, general facts and some questions that require calculation or reasoning. Its overall score brings together cases where better Basque may expose a capability and cases where the relevant knowledge still has to be present.

On 5-shot EusExams, Latxa 70B records 51.90 in the main results. GPT-3.5 Turbo scores 42.42, GPT-4 Turbo scores 70.22 and Llama 2 70B scores 33.08. Both comparisons matter. The increase over the base checkpoint demonstrates progress on advanced questions administered in Basque. The gap to GPT-4 Turbo gives a sense of how much room remains on tasks where reading the question is only part of the work. The appendix further breaks down performance by institution and specific exam, showing where the aggregate conceals variation.

Established Basque understanding tasks

On BasqueGLUE, Latxa 70B reaches an average of 59.74. Llama 2 70B scores 42.55, GPT-3.5 Turbo scores 48.62 and GPT-4 Turbo scores 66.54. The specialized encoder comparisons reach 70.04 for BERTeus and 70.54 for ElhBERTeu. An encoder processes the input into a representation that can be used to predict a label. These encoders were adapted specifically for the evaluation tasks through fine-tuning. The Latxa variants make the corresponding choices from demonstrations and test inputs. The comparison is informative about the performance of two different task setups.

The coreference task, EpecKorrefBin, yields a different ranking. Latxa 70B scores 72.57 accuracy, ahead of BERTeus at 68.31 and ElhBERTeu at 65.93. GPT-4 Turbo reaches 88.25. On the topic task, Latxa 70B scores 55.88 micro F1, while BERTeus reaches 78.26 and ElhBERTeu reaches 78.05. An average can therefore hide which specific tasks favor a trained classifier and which favor large generative systems under the paper’s prompting procedure. Here, the advantage for the encoders on topic classification and the advantage for GPT-4 Turbo on coreference both contribute to the overall picture.

What the ablations show

The effect of adapting a matched starting point

The paper gives matched checkpoint comparisons, a preliminary test of English data and detailed analyses by task and source, while leaving a full component-by-component ablation of the training recipe open. The closest comparison to an intervention is between each Llama 2 size and its Latxa counterpart. Architecture and parameter count are carried over from the starting checkpoint. The intervention includes additional training with the new mixture, the training schedule and all the choices the authors made about corpus construction. The consistent increase in the full-suite averages establishes the value of that package in the tested setting.

The matched comparison gives more confidence about adaptation than an open leaderboard alone. Differences between Yi and Latxa, for example, can reflect many properties of their original pretraining. Within a Llama 2 and Latxa pair, the identity of the starting checkpoint is known. This is especially informative on EusProficiency, where the largest Llama 2 checkpoint begins close to the random reference and the adapted version leads the evaluation. The comparison identifies a change associated with continuing training from that checkpoint. The shares of the change attributable to curation, repeated exposure, English replay and individual Basque sources remain open.

The authors also report a preliminary English-data comparison. An early Latxa 7B version trained without English reached 23.67 on Belebele. The paper describes that as 13 points below its corresponding version with English. This gives a concrete example of why the authors retained English in the final recipe. The observed outcome is a prompted Basque reading score. It is evidence that the English portion can matter to downstream use of the adapted checkpoint. Evaluation of how much ability was retained on English tasks, or how much English would be ideal at each size, would require additional comparisons.

What increases with size

Latxa’s full-suite average rises from 40.94 at 7B to 50.08 at 13B and 61.08 at 70B. The authors report an improvement of 9.14 points between the smaller variants and 10.99 points from 13B to 70B. The experiment keeps the stated training recipe and Basque collection in common while using a different Llama 2 starting checkpoint at each size. The result answers an applied question for this setup. A project with a fixed target-language collection can still obtain substantially stronger prompted performance by adapting a stronger and larger checkpoint.

The authors compare this pattern with the discussion of scaling laws for training from scratch. In a data-constrained setting, adding parameters to a newly initialized system may leave it limited by its supply of text. Latxa starts from checkpoints that have already undergone pretraining. The observed results therefore describe an interaction between the foundation and the new Basque exposure. They leave open how much of the increase is due to parameter count itself, differences in what the initial checkpoints already know or how readily the larger systems adapt. Scaling Laws for Neural Language Models

Scale also has a different effect depending on the benchmark. EusReading accuracy goes from 25.00 at 7B to 32.67 at 13B and 50.57 at 70B. On XStoryCloze, the corresponding accuracies are 65.45, 66.51 and 70.55. The paper’s overall trend is clear, and these task rows show the variation behind it. In one case the smaller checkpoint is already well above the random reference, while in the other the lowest-size result is close to that reference. Benchmarks can offer a stronger indication of progress at some capability levels than at others.

Which questions favor Basque adaptation

The category breakdown of EusTrivia helps interpret the comparison with GPT-4 Turbo. Latxa 70B performs best on Language and Literature, where it scores 70.30. This category includes questions about literary works and writers as well as language usage and vocabulary. It is consistent with the result on EusProficiency, where local language competence is central to many decisions. GPT-4 Turbo leads the other trivia categories.

Mathematics and ICT supplies the clearest counterexample to using proficiency as a predictor of trivia performance. Latxa 70B scores 46.58 in this category, while Yi 34B reaches 48.59. The authors suggest that a basic grasp of Basque is enough to understand many of these questions and that the main challenge then lies in mathematical reasoning or subject-specific knowledge. The categories are collections of existing questions, so that explanation is an interpretation of the different rankings. A test that held questions fixed and changed only their language would be a different experiment.

The public-service exam breakdown gives a related view of specialized knowledge. Latxa 70B reaches 58.16 accuracy in the Public Office category and 56.26 in University. It reaches 50.04 in City Council and 43.78 in Health System. GPT-4 Turbo leads across these categories. The Health System category is the hardest overall in the paper’s analysis, followed by City Council. The individual tests in the appendix range across roles and subject matter. A result for the health system is therefore a result on that assembled category of examinations, including administrative and other positions alongside those that draw on health knowledge. The paper reports category and test averages in the appendix and the headline EusExams benchmark score in its main results.

What the overlap checks establish

The contamination analysis asks whether the adaptation corpus contains material from the tests. The authors index the training documents in Elasticsearch, lower-case the text, use the standard tokenizer and remove Basque stopwords and auxiliary verbs. They search for overlapping n-grams, contiguous strings of tokens of a specified length. For each length they consider only test items long enough to yield an n-gram of that size. This makes the comparison meaningful when a proficiency item can be a short phrase and a reading item can include most of a page.

The paper reports overlap at several lengths selected from the distribution of each benchmark’s item lengths. Short phrases match readily. In EusProficiency, at the length of 4 used for the median item, the overlap statistic is 6.4%. For EusReading, at the median length of 57 in this analysis, it is 0.0%. These are overlap statistics for the corresponding n-gram lengths. The different lengths and kinds of text give those measurements very different opportunities to match.

QNLI is the clearest high-overlap case in the analysis. The paper reports 16.4% overlap at the benchmark’s upper quartile length of 10. Its contexts come from Wikipedia, which is also one of Latxa’s corpus sources. The authors find overlaps in those passages and report that the questions and answers were absent alongside them. EusExams also has shared phrases about public offices, laws and services that appear on the web. The authors find no evidence of annotation contamination in their inspection. Their analysis treats the presence of an underlying source passage and the presence of an entire labeled test item as different situations. NLP Evaluation in Trouble

Limitations

Limits identified by the authors

Latxa is released as a base system intended for Basque text. The paper evaluates direct prompts with examples or candidate continuations. The authors leave instruction following and use as a chat assistant outside the tested scope, and their model card gives performance in other languages as uncertain. This matters for interpreting the inclusion of English in continued pretraining. English serves a role in the training mixture, while the main evaluation supports claims about performance on Basque tasks. Conversation, extended responses and work in other languages would need their own evidence.

The authors also flag inherited bias and safety risks. Their data choices prioritize curated material and their preprocessing removes some low-quality and undesirable documents. The resulting checkpoints still inherit their foundation from Llama 2, whose risks may carry over. The paper reports performance on exams and language understanding tasks, and leaves tests of truthfulness and hallucination for future work. A high score on a multiple-choice benchmark describes how frequently the system selects an expected option under that prompt. The reliability of its own freely written claims remains a separate question.

The model card describes a static checkpoint trained offline, with a stated data cutoff of November 2023. It also specifies that the weights inherit the Llama 2 custom commercial license. The license permits research and commercial use under its terms. The paper’s account of open release is thus best understood through the things researchers can access and inspect, together with the license that governs their use of the weights. The authors identify additional high-quality Basque material from media and publishers as one avenue for expanding the training corpus.

Limits of the experimental design

The evidence for improved language proficiency is strongest on the sampled EGA examinations and the distinctions tested by those questions. These are selected-response tasks drawn from exams held from 1998 to 2008. They give the system alternatives even where it might struggle to produce the answer itself, and they sample the language through the priorities of that exam. Writing an extended text, sustaining a conversation and using varieties of Basque outside the sampled materials are separate evaluation problems. The C1 designation belongs to the exam source. The study reports item-level accuracy within that source.

The pattern on reading comprehension also needs to be read at the level of the experiment. EusReading uses longer inputs than Belebele and includes different passages, different questions and a different number of demonstrations. The results establish how well each system performs on those two packages. An experiment with the same questions and progressively varied passage lengths would be needed to estimate a length effect. In the same way, the EusTrivia breakdown suggests a division between local language knowledge and other capabilities, while the existing categories vary in multiple ways at once.

The selected-response format makes benchmarking feasible across the checkpoints and across several types of questions. Candidate wording, answer position and the demonstrations shown can still affect a decision. The paper gives specific templates and shot settings, with a chat-formatted interface for the GPT runs. Its results are tied to those conditions. The open-system aggregate covers a task omitted for both GPT systems, so the most direct open-versus-commercial conclusions come from the benchmark columns they share. The usefulness of the full-suite average lies primarily in comparing the open checkpoints under the same coverage.

There is also a difference between disclosing sources and estimating the benefit of each source. The preprocessing statistics show how much material is removed at each stage, and they explain why HPLT and Wikipedia are affected in different ways. Those statistics alone cannot assign downstream gains to a specific cleaning rule or publication collection. Similarly, the size comparison combines different parameter counts with different starting checkpoints. The evidence is strong for the tested choice of checkpoint and recipe together. Isolating the mechanisms would require other training runs.

The contamination check is bounded by what its lexical search can observe. It provides evidence about text indexed from the Latxa adaptation corpus, using the normalization, stopword removal and match lengths the authors describe. Paraphrased questions can evade a literal match, and earlier exposure in the original checkpoint falls outside this check. For commercial comparisons, the paper gives the tested endpoint versions and evaluation prompts. Their training corpora are outside the overlap analysis. The finding about the absence of observed labeled test copies should be read within the corpus and search procedures actually inspected.

Finally, the paper’s training-cost breakdown and its model card give different totals. The main table reports 33,636.5h of GPU time and 4,408.7kg of carbon dioxide equivalent. The card gives 34.7K GPU hours and 4.53tCO₂ equivalent. The paper leaves the accounting difference unexplained. The main table supplies per-size estimates and makes the dominance of the largest run clear, while the exact total depends on which of the paper’s reports is used.

What came after

Evaluating language and regional knowledge

INCLUDE takes up multilingual understanding with regional knowledge as part of the evaluation. That scope is closely related to the choice behind EusTrivia and EusExams. A benchmark can change language by preserving an exercise’s content through translation, or it can ask about subjects encountered by speakers in their own region. INCLUDE puts the relationship between language and regional content into a multilingual evaluation. Latxa’s contribution to that discussion is a concrete Basque case in which reading, proficiency and locally grounded questions give different rankings.

IberoBench develops a benchmark for Iberian languages. Its regional scope puts the single-language evaluation problem addressed by Latxa into a broader comparison. Latxa shows what can be studied by building several assessments around Basque, from language certification to professional examinations. An Iberian benchmark takes up the complementary question of how to organize evaluation across languages in that region.

BasqBBQ builds a Basque question-answering benchmark for social biases. It shares Latxa’s interest in developing an evaluation for Basque, and uses questions to examine a different property. Latxa’s exams score whether the system chooses the intended answer to a proficiency, reading or knowledge question. BasqBBQ focuses on what answers reveal about social bias. That is a distinct direction for Basque evaluation and is directly related to the inherited risks the Latxa paper identifies.

Adapting systems and building them for particular languages

EstLLM studies how to improve Estonian capabilities through continued pretraining and post-training. Its adaptation agenda includes the stage studied in Latxa and adds a subsequent training stage. The two studies thus address overlapping choices about bringing an existing system closer to a target language. The stages also distinguish the kinds of change a project can study, from exposure to more text in the language to the effects of additional training after that exposure.

Reading the News applies continued pretraining to Swedish journalism. The unit of specialization is a domain within a language. Latxa’s corpus contains newspaper writing as part of a broader mixture for Basque, while the Swedish work places journalism at the center of adaptation. Together the scopes illustrate how the same training stage can be used for a language-wide objective or aimed at a particular kind of writing.

LLäMmlein builds compact German-only systems from scratch, taking up the alternative that the Latxa authors discuss alongside adaptation. Qomhrá centers Irish and English in a bilingual system. Latxa includes English to support a Basque adaptation objective, while Qomhrá’s bilingual scope puts both languages in the description of the system itself. In the study of related minority languages, the approach is to adapt Transformers using linguistic data and exploit relationships between languages. Basque, which the Latxa paper describes as having no known relative, illustrates why a language-specific project may begin from a different resource base.

Merge and Conquer studies multilingual instruction following by adding target-language weights. This puts the intervention in weight combination and instruction behavior. Latxa changes weights by continuing pretraining on Basque text and evaluates the resulting base checkpoints. The two share the question of how to improve target-language capability using an existing foundation, with a different training operation and evaluation objective.

Connecting releases to specific uses

MameLoshnLM develops a Yiddish system together with an evaluation benchmark. That pairing echoes the central structure of Latxa. A release supplies something researchers can run, and the accompanying benchmark supplies questions on which to compare future systems. Building the two together brings assessment design into the language development project itself.

The English-to-Basque translation study applies monolingual data and large language systems to a machine translation case. It continues the interest in making Basque text useful for training, with translation as the task of interest. The relevant output is a Basque rendering of English input, which places different demands on a system from selecting an exam answer. The study of sentiment analysis for Kwanyama likewise centers one task in another language. Sentiment is one component of the BasqueGLUE evaluation in Latxa. Making it the focal task changes what the evaluation has to characterize in depth.

Across these citing works, the connection to Latxa ranges from benchmark design and task coverage to the choice of adaptation method. The distinction established by its own experiments carries through those different settings. Evidence about proficiency, regional knowledge, social bias, translation or a specialized domain depends on which behavior the evaluation actually asks the system to demonstrate.

Cite

Cite as Julen Etxaniz, Oscar Sainz, Naiara Perez, Itziar Aldabe, German Rigau, Eneko Agirre, Aitor Ormazabal, Mikel Artetxe and Aitor Soroa. 2024. Latxa: An Open Language Model and Evaluation Suite for Basque. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.acl-long.799

@inproceedings{etxaniz2024latxa,
  title = {{Latxa: An Open Language Model and Evaluation Suite for Basque}},
  author = {Julen Etxaniz, Oscar Sainz, Naiara Perez, Itziar Aldabe, German Rigau, Eneko Agirre, Aitor Ormazabal, Mikel Artetxe and Aitor Soroa},
  booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.799},
  url = {https://doi.org/10.18653/v1/2024.acl-long.799}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/etxaniz-2024-latxa-open-language-model-evaluation/