Elamur Research

LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language

Paper · 2023 · Pierpaolo Basile, Elio Musacchio, Marco Polignano et al.

Summary

A system that can answer in Italian may still struggle to follow an Italian instruction or keep a conversation going in natural Italian. The LLaMAntino paper examines whether a family of pretrained large language models can be adapted for these uses without starting training over. The authors begin with LLaMA 2, whose training data they describe as predominantly English. The reported 11% share covers all the other languages together. The aim is to give Italian a much larger role in subsequent training while retaining the abilities of the starting system.

The authors separate practice with Italian prose from practice with particular kinds of requests. They first train on filtered Italian web documents using QLoRA, a method that keeps the original weights in a compact form and learns a relatively small set of adjustments. For conversation, they start from LLaMA 2-Chat and follow Italian adaptation with supervised fine-tuning on 512,837 dialogues translated from UltraChat. For instruction following, they start from base LLaMA 2 and produce separate variants using Dolly or training examples from EVALITA 2023. The release covers starting systems with 7 and 13 billion parameters. The conclusion describes the 70B release as work in progress.

The reported evidence is qualitative. An EVALITA-tuned variant identifies sadness in an Italian sentence that expresses it idiomatically. In a longer example, a chat variant responds to successive turns and acknowledges the user’s changing concerns, but keeps offering support advice when the user wants a story. The authors describe the conversations they inspected as generally coherent and report errors in Italian sentence structure, which they attribute mainly to translations used in supervised training. The paper gives no held-out scores from which to estimate gains over LLaMA 2 or isolate the effect of each stage.

The contribution is a documented way to produce several kinds of Italian text generation from shared foundations. The authors release training code and the changes needed to reconstruct the variants from their starting weights. The resulting family spans systems adapted with Italian prose alone, systems trained for extended dialogue, and systems trained to answer requests framed as tasks.

Deep dive: LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language

LLaMAntino adapts LLaMA 2 to Italian using web text, then trains separate variants for conversation and tasks described in Italian. · about 33 minutes to read

The problem and its context

What it means to adapt a language

A general-purpose system may have enough exposure to Italian to produce a plausible sentence. Using it for an Italian application can demand more. An instruction may specify a restricted set of acceptable answers, ask the system to interpret an idiom, or refer to something established earlier in a conversation. To work in those cases, the system has to interpret what the user wants, understand the material to which the request applies, and supply an answer in the expected form. Each of those jobs puts a different demand on its experience with Italian.

The authors place this problem within multilingual and cross-lingual language processing. They describe large pretrained systems as capable of generalizing to unfamiliar tasks and across languages. They also argue that such breadth gives little assurance about the reliability of a particular language for a particular use. The composition of LLaMA 2’s training data motivates their intervention. The 11% figure is an aggregate for languages other than English. It gives neither Italian’s individual share nor a direct measure of the quality or variety of Italian the system encountered. For the authors, the concentration of English is a reason to investigate targeted adaptation with Italian material.

The paper uses language adaptation to mean further training directed at a target language after general pretraining. That makes the choice of a starting system part of the method. The authors want to carry forward what LLaMA 2 already knows about interpreting context and generating text. They provide new material intended to improve the way those abilities are expressed in Italian. They then distinguish language exposure from an additional need. A collection of Italian documents provides examples of how text is written, while a collection of requests and responses provides examples of what to do when a person asks for something.

The distinction matters for the proposed applications. A passage in a web corpus can contain fluent Italian while offering little guidance about how to return a category label. A task example can teach a system which label to return while supplying very little connected prose. A conversation can provide examples of follow-up requests, with the meaning of a later message depending on an earlier reply. The paper gives raw language practice its own place in the pipeline and uses different supervised examples for the latter two kinds of behavior.

Why start from LLaMA 2

The authors discuss BLOOM, Chat-GPT and LLaMA as examples of different routes to general-purpose generation. They present BLOOM as a multilingual, openly accessible project trained on material in 46 languages and 13 programming languages. Its scale is part of both the achievement and the practical constraint they see in it. At 176 billion parameters, running it can require specialized resources. They also argue that multilingual coverage can coexist with stronger performance in English, and that a diverse training collection can still contain biases that surface in generated text.

Chat-GPT serves a different role in the paper’s account. The authors describe it as a capable conversational system and emphasize that outside researchers lack access to its weights. For their purposes, the ability to use a service and the ability to adapt its underlying parameters are distinct. A project that needs to carry out training, keep the resulting changes, and allow other researchers to combine those changes with the same starting system depends on access to a suitable checkpoint. A checkpoint is a saved set of parameters that can be loaded for further training or use.

The paper describes the earlier LLaMA project as using publicly available data and offering a family of starting points of different sizes. LLaMA 2 supplies the feature that most directly shapes LLaMAntino’s design. It comes in a base form and a form already prepared for dialogue. The authors can therefore begin their Italian conversation work with an existing conversational system and their more general task work with a base system. The distinction lets readers trace the resulting variants back to different training histories even when they have the same parameter count.

The authors frame the release as part of an open research effort. In this case, access takes a specific form. LLaMA 2 provides the starting weights under its own terms, and the Italian project supplies the changes needed to construct the adapted versions. Accordingly, what a user obtains from the LLaMAntino release depends on how the relevant variant was trained. An adapter and a difference between sets of weights can both encode changes, but they require the recipient to start from the correct stage of the pipeline.

The adaptation choices the paper inherited

The paper groups earlier language adaptation methods by what gets trained and what has to be stored afterwards. Continuing pretraining exposes an existing system to additional target-language text. When the training updates the whole system, the result is still a system of the original size. The authors regard this as a practical challenge, especially for a starting point with 70 billion parameters. There is a distinction between the size of the resulting checkpoint and the amount of work needed to produce it. Keeping the same architecture preserves the original parameter count, even when the new training is aimed at a narrower set of applications.

A second approach inserts an adapter, a component trained for a particular language or task. A project can keep a shared pretrained checkpoint and distribute a much smaller set of extra parameters for each adaptation. The authors note that some adapter designs can make generation slower or reduce the sequence length available to users. They also describe a possible loss in task quality relative to full fine-tuning. These are tradeoffs reported in their account of earlier methods. The specific costs depend on where the adapter is placed and what it changes.

The third group is parameter-efficient fine-tuning, in which training is restricted to a subset of parameters or to a small set of added parameters. The paper focuses on LoRA, short for low-rank adaptation. Its premise is that adapting an existing system may require an update with considerably less mathematical freedom than the original weight matrix. A low-rank update can be represented compactly because its rows or columns have shared structure. The pretraining phase has already built the starting system, so the adaptation learns a constrained change to it.

LoRA addresses the amount of weight information that training has to update, but the starting system still takes up memory while it processes examples. The authors discuss quantization, which stores numerical weights using a more limited set of representable values, as a response to that part of the problem. They adopt QLoRA, which combines low-rank updates with a quantized base. Their use of the method is guided by the GPU and parallel computing resources available to them. The amount of text, the length of a training example and the way work is distributed across devices all depend in part on what can fit in memory.

The paper also draws on earlier work about instruction tuning. It describes Stanford Alpaca as an example of shaping a system’s responses using natural-language descriptions of tasks. For Italian tasks, it points to ExtremITA as a precedent for training with examples drawn from the EVALITA campaign. These precedents inform the design at a different level from LoRA. Low-rank adaptation concerns how changes to parameters are represented. Instruction tuning concerns the relationship among the task description, the input and the expected answer. The LLaMAntino workflow combines choices at both levels.

The method, step by step

A shared language stage and separate training paths

The easiest way to follow the pipeline is to ask what each training example is meant to teach. The first stage supplies Italian documents so that the system has sustained exposure to Italian text. The supervised stage supplies a request and an example of an appropriate response. For a chat system, the example includes successive turns. For a task-oriented system, it presents a task through an instruction and, where applicable, an input that the instruction operates on. Supervised training provides the desired output as part of the example.

The starting checkpoints already distinguish the paths. The authors apply the Italian language stage to base LLaMA 2 and to LLaMA 2-Chat. The adapted base can stand on its own or be taken forward into an instruction-tuned version. The adapted chat system can likewise be used before it receives the extra training on translated dialogues. These intermediate checkpoints matter because later variants inherit their changes. The pipeline is a branching sequence of training stages, with each chat variant derived from a chat checkpoint and each task-oriented variant derived from a base checkpoint.

From LLaMA 2 checkpoints to Italian variants

The steps in order.

From LLaMA 2 checkpoints to Italian variantsStep 1: Select a base or chat checkpoint1. Select a base or chat checkpointStep 2: Quantize the starting weights2. Quantize the starting weightsStep 3: Train low-rank updates on filtered Italian text3. Train low-rank updates on filtered Italian textStep 4: Keep the adapted checkpoint for each branch4. Keep the adapted checkpoint for each branchStep 5: Prepare Italian dialogues or task instructions5. Prepare Italian dialogues or task instructionsStep 6: Fine-tune each branch on its supervised examples6. Fine-tune each branch on its supervised examplesStep 7: Release adapters or weight differences7. Release adapters or weight differences

The rationale for the order is a hypothesis about learning. Exposure to general Italian text should give the system a better basis for interpreting instructions written in Italian. The next stage can then devote its examples to the behavior required by the application. In conversation that includes interpreting replies in context and taking the next turn. In a task, that may mean using the categories named in the instruction or giving an output of the requested kind. The authors use this order throughout the project. Its role in the paper is to define the workflow, since they do not compare alternative stage orders.

Selecting Italian web documents

The language adaptation uses a filtered Italian web collection that the paper describes as filtered OSCAR and identifies through the dataset name clean_mc4_it, released by Sarti and colleagues. The authors use its medium split, which they describe as containing 50M documents and 20B words and occupying 135 GB on disk. The split’s reported size characterizes the collection available for training. The paper separately specifies how many adaptation steps were run.

The filtering makes decisions about both sentences and documents. Some decisions use surface signs that a sentence may be unsuitable for the collection. The source removes sentences shorter than three words and sentences containing a word longer than 1,000 characters. Other filters check for a suitable sentence ending or look for strings associated with JavaScript, placeholder text or policy material in Italian or English. The source also excludes documents containing entries from a selected list of offensive terms in the two languages.

The document-level checks run on the material that remains after sentence filtering. A document must have at least five sentences and at least 500 characters. Documents over 50,000 characters are also excluded. The corpus builders use LangDetect to require a document to be identified as predominantly Italian. Consequently, inclusion depends both on the original document and on how much survives the preceding filtering. A document that begins with enough material can still fall below the thresholds once some of its sentences have been removed.

These filters describe the sort of exposure the language stage provides. It uses passages that satisfy length, language and formatting rules and are drawn from a broad collection of web documents. It does not organize those passages as turns in a conversation or as answers to instructions. That difference explains why there is a separate supervised stage. Training on prose can familiarize a system with lexical choices and sentence patterns, while an explicit task example can associate an instruction with a particular output.

Keeping the starting weights compact

The authors use QLoRA for the language stage. In ordinary terms, they need to keep LLaMA 2 available to process every training sequence, but they want to learn a smaller change to its behavior than a full set of replacement weights. Quantization addresses the first need by making the stored starting weights more compact. LoRA addresses the second by training a low-rank update. Rank here concerns the independent directions that a matrix can represent. A constrained update uses fewer trainable quantities at the cost of restricting the range of changes the procedure can express.

The paper specifies 4-bit NormalFloat, abbreviated NF4, for quantizing the base. NF4 chooses representable values with normally distributed weights in mind. The authors also list float16 as the data type. These settings describe different aspects of the numerical setup. The reference to float16 appears alongside the 4-bit representation of the quantized weights. Neither entry by itself specifies the precision of every operation or value used during training.

The paper’s explanation of QLoRA also calls out double quantization and paged optimizers. Quantization uses auxiliary constants, and double quantization applies compression to those constants as well. A paged optimizer addresses peaks in memory demand while a training batch is processed. The authors discuss this in relation to long sequences. A batch with a long example can pose a memory problem even when the stored weights fit on the device. These features are described as part of the motivation for using QLoRA. The paper does not allocate measured memory savings among them for LLaMAntino.

The LoRA setting lora_r is 64. It controls the rank of the learned update. The paper gives lora_alpha as 16. This is a scaling setting for the update. It gives lora_dropout as 0.1. Dropout is a training procedure that randomly suppresses some of the signal passing through the part of the network to which it is applied. Taken together, these settings control the size and behavior of the added adjustments. They are part of the actual adaptation recipe, with no reported search over other values.

How the Italian training run is organized

The adaptation runs on the Leonardo high-performance computing system. The authors describe three nodes and four NVIDIA A100 GPUs per node, for a reported total of 12 GPUs used in parallel. Each GPU has 64GB of memory. The nodes have 512GB of system RAM apiece. Torchrun coordinates the distributed run, and Hugging Face’s SFTTrainer provides the training interface and parameter-efficient training support.

The authors use packing, which puts several short examples into the same input sequence. A sequence is the block the trainer presents to the system, whereas an example is a piece of training data that may take up only part of that block. If every short example occupied its own sequence, part of the available space could go unused. Packing allows more of the allocated sequence to contain text. For language adaptation the authors cap the maximum textual content length at 1024 for efficiency. This is the stated training setting, independent of the document-level limits applied when preparing the source corpus.

The language run uses eight examples per GPU as the batch size and 1 gradient accumulation step. The setup uses paged AdamW 32bit as the optimizer, sets the learning rate to 2e-4, and sets gradient clipping to 0.3 and weight decay of 0.001. The learning rate controls the scale of the optimizer’s adjustments. Gradient clipping limits the size of large gradient updates before the optimizer uses them, and weight decay acts as a regularizing pressure on the trainable weights. The authors use a 3% warmup ratio and adapt for 25k steps. Warmup is the opening portion of training during which the learning rate is brought to its working level.

The paper also explains gradient accumulation when discussing the later full-parameter run. During accumulation, the trainer computes gradients over successive batches before carrying out an update. The paper uses X to refer to how many batches are accumulated. Its single-GPU illustration gives the following effective batch size.

32 = 4 × 8

Here 32 is the effective batch size in examples, 4 is the batch size processed on the GPU, and 8 is the number of batches whose gradients are accumulated. The symbol × denotes multiplication, and = expresses the equality between the effective size and that product. This is an illustrative configuration in the paper. The adaptation and EVALITA runs have their own stated settings.

Training the conversation variants

The chat path starts from the Hugging Face versions of LLaMA 2-Chat with 7 and 13 billion parameters. Italian adaptation yields a chat checkpoint at each size. The authors then take those checkpoints through an additional round of supervised training. As a consequence, the UltraChat variants inherit both the starting system’s dialogue training and the Italian language update before they encounter the translated conversations.

The authors sought extended, varied dialogues and report that they could not find an Italian resource that met their requirements. They chose UltraChat, an English collection of generated dialogues, and translated 512,837 dialogues using the Argos Translate Python API. The paper describes Argos as an open-source choice that offered a favorable balance between translation quality and resource use for their purposes. The resulting examples inherit two layers of authorship. GPT-3.5 turbo generated the source conversations, and automatic translation rendered them in Italian.

UltraChat organizes conversations around different kinds of demand. Some ask about the world and cover topics such as technology or art. Others request the production of new material, with emails and stories among the examples the paper gives. A further group asks the assistant to work with material already supplied, through activities such as rewriting, continuation or summarization. Those groups differ in what the assistant needs to use from the conversation. A question may supply only a topic, while a rewriting request depends on an existing passage and a creative request can establish constraints that matter in later turns.

The prompt format makes the roles visible. An Italian system message sets expectations about helpfulness, respectful behavior and the handling of questions the assistant cannot answer reliably. Markers identify the user’s instruction and delimit the assistant’s response. Later user and assistant turns are placed after the earlier ones. This lets the training sequence represent the dialogue as an ordered exchange. The role indicators distinguish the text the assistant is meant to respond to from the response included as training material.

For chat tuning the authors use the same software and hardware setup described for language adaptation. The maximum text length they choose is 2048, the same limit used in the LLaMA 2-Chat configuration they cite. They run 15k training steps, described as 3 epochs. An epoch is a pass through the training collection as arranged for the run. The longer sequence limit gives a dialogue more room for preceding turns, while the longer sequences are also part of the memory demands that motivate an efficient training setup.

The release includes adapted chat checkpoints both before and after the UltraChat step. The earlier checkpoints are already descended from LLaMA 2-Chat, whose original training was intended for conversation. The UltraChat name identifies the variants that received the project’s additional supervised conversations in Italian. This distinction is important when interpreting the paper’s output example, which is drawn from the 13-billion-parameter UltraChat variant.

Turning EVALITA tasks into instructions

The instruction path uses base LLaMA 2 as its starting point. The authors describe adapting the versions with 7 and 13 billion parameters to Italian and then using most of the EVALITA 2023 task training material in a supervised run. To make diverse examples fit the same interface, they write Italian instructions that state what each task requires. The prompt then supplies the text or other input associated with the example and gives the intended response in an answer field.

The example chosen for the paper is an emotion categorization task. The instruction asks whether the input expresses an emotion and specifies the available choices. The input is an Italian sentence whose speaker describes feeling low through an idiom. The response field calls for the category, so a short answer can fully satisfy the request. This illustrates a property of instruction tuning that differs from producing more Italian prose. The training example conveys which bits of the input are relevant, the type of decision requested and the form in which to return it.

The format follows Stanford Alpaca’s instruction-following prompt, translated into Italian. Its division into instruction, input and response gives similar structure to tasks whose content can vary considerably. The instruction defines the operation. The input supplies the material on which it acts. The response shows what successful completion looks like for that example. Because multiple tasks use the same layout, their written instructions carry the information needed to tell them apart.

This is the branch in which the authors describe a full-parameter fine-tuning experiment. Their aim is to stay close to the Alpaca recipe while accommodating the length of the Italian tasks. Full-parameter training makes the original weights available for updating. The paper uses PyTorch’s Fully Sharded Data Parallel strategy, or FSDP, to manage the memory requirements of that choice. In the paper’s account of standard Distributed Data Parallel training, each worker has its own copy of the system and processes a different batch. In FSDP, the parameters, optimizer state and gradients are divided among the devices. Each device therefore has a smaller share of that training state to hold in memory.

The EVALITA experiment uses a batch size of 16 per device and one gradient accumulation step. The authors report that the run used an effective batch size of 128 across 2 Leonardo nodes with 4 A100 GPUs apiece. That number describes the update configuration for the distributed experiment. It has a different role from the example of accumulation on a single GPU. The authors use a maximum sequence length of 1024, compared with 512 in the Alpaca setup they discuss. They give a concrete reason for raising the limit. Some EVALITA examples exceed 512, so copying that setting would restrict how much of those examples could be represented.

The released family also lists Dolly instruction variants at the same base sizes. The release description identifies each as instruction tuning of an Italian-adapted base with Dolly. The detailed explanation of prompts, sharding and sequence length concerns the EVALITA experiment, so those specifics cannot be assigned to Dolly from its release entry. The two data sources produce separate variants in the list, and the paper gives substantially more procedural detail about one of them.

From a training run to a released variant

The authors make the artifacts available on Hugging Face and release the training code and reconstruction pipeline in the LLaMAntino GitHub project. They say that the LLaMA 2 license constrains what can be redistributed. For variants produced with LoRA, they provide adapters. For the other variants, they provide the difference in weights relative to the checkpoint on which the subsequent training operated. A weight difference records the change from a particular point in the pipeline. Applying the same difference to a different starting checkpoint would fail to reproduce that sequence of training changes.

Their example is the EVALITA variant derived from the 13-billion-parameter base. To reconstruct it, a user first applies the Italian adaptation adapter to the corresponding LLaMA 2 checkpoint. The EVALITA weight difference is then applied to that adapted system. The example makes the order important for distribution as well as for training. The later change is defined relative to the intermediate Italian checkpoint, which has to be reconstructed before the final change can be used as intended.

The initial pipeline description includes a 70B base size among the targets. The release inventory and conclusion record what readers can actually obtain from the project described in the paper. Their released variants are derived from the 7 and 13 billion parameter sizes, and they describe the larger release as ongoing work. That distinction is particularly relevant here because a reader might otherwise infer that every size in the starting family went through every branch of the pipeline.

Experiments and results

What the experiments report

The paper reports that the authors ran Italian adaptation and produced multiple supervised variants. Its numerical account is chiefly an account of the training inputs and configurations. The medium web split supplies Italian prose, translated UltraChat supplies conversations, and EVALITA 2023 training material supplies examples for several tasks. Dolly supplies a further instruction-tuning branch. These resources play different roles in the training procedure, and the size of any one of them is a count of available material or training exposure, depending on the quantity being reported.

EVALITA appears in the name of a released variant and in the representative emotion task. The distinction between a shared task as a source of training examples and as an independent evaluation benchmark matters here. The paper states that it uses EVALITA training material for fine-tuning. It does not specify a held-out set for the illustrated interaction or report a score on an official test split. A reader can identify the kind of task that was taught and see a sample response. The paper gives no task-level denominator from which to estimate how frequently responses of that quality occur.

The story is similar for dialogue. The paper reports the size of the translated training collection, the length limit for training sequences and the number of training steps. It illustrates the output through a conversation with one UltraChat variant. There is no accompanying dialogue score, error rate or set of independent judgments with a stated protocol. The conversation provides evidence about the kinds of behaviors the system can exhibit within a sequence of turns and lets a reader examine the content of those particular turns.

The unadapted LLaMA 2 and LLaMA 2-Chat checkpoints are starting points that would serve as direct baselines if the same Italian requests were administered before and after adaptation. The paper does not report that comparison. Alpaca appears as a reference for training design. Its sequence setting can be compared with the EVALITA configuration, but its task performance is not measured alongside LLaMAntino’s. BLOOM and Chat-GPT motivate the project in the introduction, with no Italian head-to-head evaluation in the paper.

The sequence-length comparison

The paper gives an explicit numerical comparison between the Alpaca setup it follows and the EVALITA setup it uses. The quantity being compared is maximum training sequence length. A larger limit provides greater coverage of long training examples, the criterion the authors give for the change. This is a comparison of settings. The paper does not attach a quality score to either row.

Maximum training sequence length for Alpaca and LLaMAntino on the EVALITA setup

LLaMAntino raises the sequence limit to accommodate longer EVALITA training examples.

Maximum training sequence length for Alpaca and LLaMAntino on the EVALITA setupAlpaca reference setting: 512Alpaca reference setting512LLaMAntino EVALITA training setting (this paper): 1024LLaMAntino EVALITA training setting(this paper)1024
The numbers
System or settingMaximum sequence length
Alpaca reference setting512
LLaMAntino EVALITA training setting (this paper)1024

The Alpaca value is the reference configuration cited by the authors. It is not a report of Alpaca being trained or tested on EVALITA. The LLaMAntino value belongs to the authors’ EVALITA training run. The comparison establishes how they changed the recipe to fit the task data. It does not indicate how frequently the limit is reached, how much material would be cut under either setting or whether the longer limit changes the accuracy of any individual task.

There are other length settings in the paper, with different jobs. The language adaptation processes general Italian text under a limit of 1024, chosen for efficiency, and the chat tuning uses 2048 to allow space for dialogue histories. The reasons the authors give for those decisions concern the input format and the training environment. The separate figures do not form a common scale of performance across the branches. A chat history and an EVALITA instruction with input and answer can occupy a sequence in different ways.

What the outputs show

In the emotion example, the authors ask the 13-billion-parameter EVALITA variant to use the choices specified in an Italian instruction. The supplied sentence conveys a low mood idiomatically. The system answers with the Italian term for sadness. The answer fits the prompt’s requested category and avoids adding an explanation the prompt does not require. The example is evidence that this variant can produce a well-formed answer in this task format and that the answer is appropriate to this particular sentence.

Several abilities are visible together in that output. The response reflects the difference between interpreting the sentence and describing its surface words. It stays within the type of answer the user requested. It also uses Italian for the answer itself. Since those abilities appear in the same interaction, the example alone cannot separate them. The adapted base already had knowledge inherited from LLaMA 2, the web training added Italian exposure, and the supervised step presented examples of taking instructions and returning task outputs. The output is a demonstration of their combined product.

The conversation with the 13-billion-parameter UltraChat variant covers a more open-ended request. The user says they feel sad and asks for a story. The assistant offers suggestions for managing sadness instead of supplying a story. The user then questions whether such a system can understand them and later clarifies the distinction between responding to the request and offering personal guidance. The assistant recognizes the frustration and continues the exchange, while repeatedly returning to emotional support or the limits of its role.

The example allows two aspects of dialogue quality to be read separately. The assistant’s later responses take account of the user’s immediately preceding concerns. That is evidence of continuity in the displayed exchange. The original request nonetheless remains unfulfilled even after the user asks for a more direct answer. Fluency and continuity are useful observations, but successful instruction following in this example would also require producing the requested story. The distinction comes from reading the response alongside what the user asks for at each turn.

The wording itself illustrates a further issue. One reply mixes an English word into an otherwise Italian sentence. Other passages contain awkward Italian phrasing or shifts in how the assistant addresses the user. These observations fit the authors’ discussion of spelling and syntactic problems. The paper attributes such problems chiefly to translation during supervised training. The example shows that the errors are possible in a released variant, while their source is a separate causal question.

In their broader qualitative assessment, the authors say that the adapted systems frequently answer logically and articulate responses in Italian, including in extended conversations. They also describe hallucinations as infrequent in their initial inspection. They supply no definition, count or assessment set for that characterization. It is therefore best understood as their impression from examining outputs. A factuality result would require knowing which claims were checked and how errors were counted. The published examples are more concrete evidence about language and responsiveness than about the overall rate of unsupported claims.

What the ablations show

The paper reports no formal ablation, and its analyses consist of comparisons among training configurations, illustrative outputs and qualitative observations about Italian usage and dialogue.

The intermediate checkpoints make comparisons possible

An ablation would change or remove one component and measure the result while holding the other relevant conditions fixed. For this project, the central hypothesis concerns the Italian language stage before supervised tuning. An evaluation of that hypothesis would need the same starting checkpoint and comparable instruction or dialogue training, with the Italian web adaptation applied in one condition. The paper consistently uses the Italian stage, so it documents the outputs of that sequence of operations. The reported examples give no estimate of what the same supervised data would have achieved on its own.

The release preserves chat checkpoints from before and after tuning on translated UltraChat. That establishes a meaningful distinction among the artifacts. The versions before UltraChat have an Italian language update and inherit dialogue training from LLaMA 2-Chat. The versions after UltraChat also receive a large collection of translated exchanges. What the final chat illustration shows is the behavior of a version with that complete history. The example’s reuse of recent context could reflect earlier dialogue training, the newly supplied dialogues or their interaction. The paper quotes no corresponding exchange from the intermediate checkpoint.

The instruction branch presents a similar interpretive opportunity. The adapted base is released alongside versions tuned using different sources of instructions. Their lineage tells a reader which additional training each one received. A comparison of the Dolly and EVALITA variants on the same independent Italian tasks could test how the choice of instruction data matters, but the paper gives no such scores. The EVALITA example is selected to illustrate the corresponding task format. Its relevance to EVALITA is clear, and its breadth across other instruction types remains unmeasured.

The same caution applies to the two reported sizes. The 13-billion-parameter versions furnish the examples in the paper, and the release also includes 7-billion-parameter counterparts. Availability of both sizes establishes the coverage of the release. Since the paper does not pair their responses or scores on a fixed set of inputs, it offers no estimate of the effect of increasing size. The examples also provide no selection rule for deciding when a larger variant would be worth its increased resource requirements.

Configuration comparisons explain design decisions

The comparison with Alpaca explains how the EVALITA run departs from a training recipe the authors otherwise seek to follow. The longer limit has a direct relationship to the number of words or tokens a particular example can occupy after formatting. The paper says that some examples exceeded the previous limit. This explains why they changed the setting. Since the authors do not report alternative runs on the same EVALITA data with the shorter and longer limits, it cannot establish how much that change contributed to the displayed answer or to any task’s success rate.

The discussion of distributed training also explains operational choices. Standard data parallelism keeps copies of the relevant state on each worker in the paper’s account, while fully sharded training distributes that state. The authors use the latter to carry out full-parameter instruction tuning with their stated batch settings. Their reported effective batch size shows the arrangement they achieved. They provide no timed run under a matched data-parallel setup, so the comparison identifies the reason for choosing FSDP and the configuration it supported. It supplies no measured time or memory advantage for the project.

QLoRA and full-parameter training likewise belong to different parts of the workflow. The Italian language stage uses low-rank changes around a quantized base. The EVALITA experiment then trains on task examples with access to the full parameter set. Since the stages have different data and purposes, reading them as competing training methods would confound those differences. They demonstrate that the authors combined the methods in a single lineage and provide the conditions under which the stages ran. The paper gives no same-task comparison of the efficiency or answer quality of the two approaches.

The qualitative examples offer a different kind of analysis. Reading each reply against the user’s request reveals that sustaining an exchange and carrying out the requested action can diverge. Reading the emotion answer against its instruction shows a case where the expected shape of the response is part of success. Neither observation requires a numerical score to be visible. Their scope stays with the individual outputs. In particular, the mixed-language word in the conversation can be observed directly, while assigning it to automatic translation would require comparison with a differently prepared dialogue corpus.

Limitations

Limits the authors state

The authors identify the shortage of a suitable Italian dialogue collection as an immediate constraint. Their workaround relies on UltraChat, whose source exchanges were automatically generated, and on an automatic translation system. The paper points out the source generation process as a limitation in its own right. Artificial dialogues embody the choices of the system that produced them and of the process that elicited them. Translating these examples supplies Italian text at scale, but their topics, dialogue structure and response habits still originate in the English collection.

The authors report problems in the syntax and spelling of the adapted systems’ outputs. Their explanation is that translation errors in the material prepared for supervised training are carried into the system’s responses. They call for systematically collected Italian data that is more reliable and less affected by social, economic and ethical bias. Their stated goal connects two properties of a corpus that require separate attention. Linguistic quality concerns how accurately and naturally the text is written. The distribution of perspectives and harmful patterns in the material is a different question, even when the Italian is fluent.

The work also has a hardware-defined operating range. The authors say the 1024 limit in the language stage reflects efficiency requirements. In the discussion of adaptation, they emphasize the difficulty of working with the largest starting systems. The 70B release is explicitly described as future work in the conclusion. Their training and release evidence concerns the variants they describe at the smaller sizes. Extrapolating the same data settings and outcomes to a much larger system would go beyond that evidence.

Another stated constraint concerns distribution. The authors say that the LLaMA 2 licensing terms prevent them from releasing the complete weights of the adapted systems. Their release is therefore useful in conjunction with the relevant starting checkpoint, with training code and reconstruction support alongside it. For someone trying to inspect behavior or reproduce the pipeline, the dependency matters because the published changes apply to specific points in the training lineage.

Limits visible in the setup

The largest evidentiary gap is the lack of an evaluation that measures improvement. The examples show that the released variants can produce Italian responses in the intended interfaces. They leave open how those responses compare with the original checkpoints, how well they generalize to unfamiliar instructions and whether quality is stable across the task mix. Even a plausible answer to the emotion prompt cannot establish accuracy on emotion categorization as a whole. The paper provides neither a test-set result nor an indication that the particular example was sampled to represent typical performance.

Dialogue quality also has multiple dimensions that the paper’s general assessment combines. A response can refer accurately to earlier turns and still avoid the requested action. It can sound idiomatic and contain an unsupported claim. Conversely, a grammatically awkward response can still address the user’s request. The illustrated conversation gives some footing for judging context and compliance, but the paper does not give a labeling scheme that measures these dimensions consistently. Its mention of limited hallucinations supplies no basis for comparing factual reliability with a baseline or estimating how often inaccurate claims occur.

The explanation for translation-related errors also remains untested. Automatic translation is a plausible contributor because the dialogues were translated before supervision and the authors observed problems in the resulting Italian. The pipeline additionally contains generated English conversations, a substantial web training stage, and checkpoint-specific behaviors inherited from LLaMA 2-Chat. The authors provide neither a human-written dialogue condition nor an analysis tracing particular output errors to their counterparts in the translated training material. The attribution is their interpretation of the problem, with the observed errors providing a reason to investigate it further.

Similarly, the web corpus filters provide evidence of how documents were selected. Length, punctuation and the name of the detected language are observable criteria. They offer no direct measure of how comprehensively the corpus represents speakers, genres or styles of Italian. An offensive-word list can exclude a document containing a listed term and allow a document expressing similar content through other words. The system message about respectful behavior contains instructions of its own, which are distinct from an assessment of bias, fairness and safety. The paper includes no outcome measures for those issues.

The reproducibility evidence is strongest where the authors specify data and configurations together. A reader knows the adaptation corpus split, the training steps and the main QLoRA settings. The paper also explains which translation tool was used for chat, how prompts were organized and what names distinguish released variants. Less is said about the Dolly run and how the various supervised collections were evaluated or checked for quality. The size of the medium web split is a property of the source collection. It cannot be used to infer an exact tally of examples consumed in adaptation without a fuller account of how the run sampled and packed them.

Finally, the authors present the procedure as potentially reusable for other underrepresented languages. The method itself suggests which inputs would have to change, since the general text and supervised conversations are both language-specific. The actual experiment concerns Italian and the checkpoints in the release. Its translation strategy depends on having a suitable source corpus and a translation system the authors consider acceptable. Its instruction strategy benefits from the availability of Italian tasks to express as prompts. Transfer to another language is a proposed use of the workflow, with no additional language experiment reported in the paper.

What came after

Multilingual coverage and adaptation beyond Italian

The citation from the Multilingual Large Language Model Survey places LLaMAntino in a broader discussion of multilingual systems. The survey’s stated scope includes resources, a taxonomy and research directions. LLaMAntino touches each of those areas through its choice of Italian web text, its use of distinct supervised data and its distinction between post-training for a language and training for a use. Its citation in a survey establishes a connection to that wider literature. The citation alone leaves open which parts of the adaptation recipe the survey discusses.

DictaLM 2.0 addresses adaptation to modern Hebrew and foregrounds vocabulary and instruction capabilities. The common problem is how to develop a system for a target language using a starting point with broader coverage. The Hebrew work makes vocabulary an explicit part of the target, alongside instruction following. LLaMAntino’s reported pipeline concentrates on the training texts, the parameter updates and the organization of supervised examples. The citation connects efforts with a common adaptation problem, with the later work stating an additional concern in its title.

Bytes and Borsch takes fine-tuning of Gemma as its subject. It connects the LLaMAntino study to work that begins with a different family of checkpoints. The connection is meaningful at the level of the adaptation question. Choices about which weights to start with, what data to supply and what behavior to target arise for Gemma as they do for LLaMA 2. The citation establishes that the later work refers to LLaMAntino. It gives no basis for assigning LLaMAntino’s exact language stage, adapter settings or training corpora to the Gemma study.

Italian specialization and narrower task targets

DanteLLM continues the Italian-focused line of work represented by LLaMAntino. The research direction signaled by its title is pushing Italian capabilities further. Among the later works on the list, this one most closely resembles it in both language and purpose. LLaMAntino’s contribution to that line is a family with separate stages for Italian text and supervised examples, plus separate branches for chat and tasks. DanteLLM’s citation establishes engagement with that prior Italian work. Its citation and title leave the details of any procedural inheritance open.

Controllable Sentence Simplification in Italian brings Italian fine-tuning to a narrower application. It names sentence simplification as the target and automatically generated resources as the training material. Both projects depend on preparing examples suitable for the intended behavior. In LLaMAntino, an EVALITA example links an Italian instruction and its input to the expected response. The later work frames the behavior around a specific transformation of sentences and makes control over that transformation part of the stated research problem. The title identifies the task and data strategy while leaving open whether a LLaMAntino checkpoint was used in the experiments.

These citations trace several kinds of follow-on attention. Some concern the design of systems for a particular language. Others concern a different foundation, a specific Italian task or the organization of the multilingual field. Their relationship to LLaMAntino can be described most precisely at the level of the problem each one names. The original paper makes separable choices visible in the training lineage, from the initial checkpoint through Italian exposure to the final examples of desired behavior. The later works show how those choices can enter distinct research agendas, from widening language coverage to defining a tightly specified task.

Cite

Cite as Pierpaolo Basile, Elio Musacchio, Marco Polignano, Lucia Siciliani, Giuseppe Fiameni and Giovanni Maria Semeraro. 2023. LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2312.09993 · arXiv 2312.09993

@misc{basile2023llamantino,
  title = {{LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language}},
  author = {Pierpaolo Basile, Elio Musacchio, Marco Polignano, Lucia Siciliani, Giuseppe Fiameni and Giovanni Maria Semeraro},
  year = {2023},
  doi = {10.48550/arxiv.2312.09993},
  eprint = {2312.09993},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2312.09993}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/basile-2023-llamantino-llama-2-models-effective/

References

30 references, from the paper's own bibliography.

  1. authorpersonJulien Abadji, personPedro Ortiz Suarez, personLaurent Romary, and personBenoît Sagot. year2022. Towards a cleaner document-oriented multilingual crawled corpus. journalarXiv preprint arXiv:2201.06642 (year2022). our card
  2. authorpersonThorsten Brants, personAshok C Popat, personPeng Xu, personFranz J Och, and personJeffrey Dean. year2007. Large language models in machine translation. (year2007). our card
  3. authorpersonEthan C Chau, personLucy H Lin, and personNoah A Smith. year2020. Parsing with multilingual BERT, a small corpus, and a small treebank. journalarXiv preprint arXiv:2009.14124 (year2020). our card
  4. authorpersonMonojit Choudhury. year2023. Generative AI has a language problem. journalNature Human Behaviour (year2023), pages1–2. OpenAlex ↗ · Scholar ↗
  5. authorpersonTim Dettmers, personArtidoro Pagnoni, personAri Holtzman, and personLuke Zettlemoyer. year2023. Qlora: Efficient finetuning of quantized llms. journalarXiv preprint arXiv:2305.14314 (year2023). our card
  6. authorpersonNing Ding, personYulin Chen, personBokai Xu, personYujia Qin, personZhi Zheng, personShengding Hu, personZhiyuan Liu, personMaosong Sun, and personBowen Zhou. year2023. Enhancing Chat Language Models by Scaling High-quality Instructional Conversations. journalarXiv preprint arXiv:2305.14233 (year2023). our card
  7. authorpersonFree Dolly. year2023. titleIntroducing the World’s First Truly Open Instruction-Tuned LLM. databricks. com. OpenAlex ↗ · Scholar ↗
  8. authorpersonYunhui Guo. year2018. A survey on methods and theories of quantized neural networks. journalarXiv preprint arXiv:1808.04752 (year2018). OpenAlex ↗ · Scholar ↗
  9. authorpersonClaudiu D. Hromei, personDanilo Croce, personValerio Basile, and personRoberto Basili. year2023. ExtremITA at EVALITA 2023: Multi-Task Sustainable Scaling to Large Language Models at its Extreme. In booktitleEighth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA 2023), Vol. volume3473. CEUR. OpenAlex ↗ · Scholar ↗
  10. authorpersonEdward J Hu, personYelong Shen, personPhillip Wallis, personZeyuan Allen-Zhu, personYuanzhi Li, personShean Wang, personLu Wang, and personWeizhu Chen. year2021. Lora: Low-rank adaptation of large language models. journalarXiv preprint arXiv:2106.09685 (year2021). our card
  11. authorpersonZhiqiang Hu, personYihuai Lan, personLei Wang, personWanyu Xu, personEe-Peng Lim, personRoy Ka-Wei Lee, personLidong Bing, and personSoujanya Poria. year2023. LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Models. journalarXiv preprint arXiv:2304.01933 (year2023). our card
  12. authorpersonXiaoqi Jiao, personYichun Yin, personLifeng Shang, personXin Jiang, personXiao Chen, personLinlin Li, personFang Wang, and personQun Liu. year2019. Tinybert: Distilling bert for natural language understanding. journalarXiv preprint arXiv:1909.10351 (year2019). our card
  13. authorpersonMirko Lai, personStefano Menini, personMarco Polignano, personValentina Russo, personRachele Sprugnoli, and personGiulia Venturi. year2023a. Evalita 2023: Overview of the 8th evaluation campaign of natural language processing and speech tools for italian. In booktitleProceedings of the Eighth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA 2023), CEUR. org, Parma, Italy. OpenAlex ↗ · Scholar ↗
  14. authorpersonMirko Lai, personStefano Menini, personMarco Polignano, personValentina Russo, personRachele Sprugnoli, and personGiulia Venturi. year2023b. EVALITA 2023: Overview of the 8th Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. In booktitleEighth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA 2023), Vol. volume3473. CEUR. OpenAlex ↗ · Scholar ↗
  15. authorpersonShih-yang Liu, personZechun Liu, personXijie Huang, personPingcheng Dong, and personKwang-Ting Cheng. year2023b. LLM-FP4: 4-Bit Floating-Point Quantized Transformers. journalarXiv preprint arXiv:2310.16836 (year2023). OpenAlex ↗ · Scholar ↗
  16. authorpersonYiheng Liu, personTianle Han, personSiyuan Ma, personJiayue Zhang, personYuanyuan Yang, personJiaming Tian, personHao He, personAntong Li, personMengshen He, personZhengliang Liu, et al. year2023a. Summary of chatgpt-related research and perspective towards the future of large language models. journalMeta-Radiology (year2023), pages100017. our card
  17. authorpersonZechun Liu, personBarlas Oguz, personChangsheng Zhao, personErnie Chang, personPierre Stock, personYashar Mehdad, personYangyang Shi, personRaghuraman Krishnamoorthi, and personVikas Chandra. year2023c. titleLLM-QAT: Data-Free Quantization Aware Training for Large Language Models. 2305.17888 [cs.CL] our card
  18. authorpersonOpenAI. year2023. titleGPT-4 Technical Report. 2303.08774 [cs.CL] our card
  19. authorpersonMarco Polignano, personPierpaolo Basile, personMarco De Gemmis, personGiovanni Semeraro, personValerio Basile, et al. year2019. Alberto: Italian BERT language understanding model for NLP challenging tasks based on tweets. In booktitleCEUR Workshop Proceedings, Vol. volume2481. CEUR, pages1–6. our card
  20. authorpersonGabriele Sarti and personMalvina Nissim. year2022. It5: Large-scale text-to-text pretraining for italian language understanding and generation. journalarXiv preprint arXiv:2203.03759 (year2022). OpenAlex ↗ · Scholar ↗
  21. authorpersonAlex Tamkin, personMiles Brundage, personJack Clark, and personDeep Ganguli. year2021. Understanding the capabilities, limitations, and societal impact of large language models. journalarXiv preprint arXiv:2102.02503 (year2021). our card
  22. authorpersonRohan Taori, personIshaan Gulrajani, personTianyi Zhang, personYann Dubois, personXuechen Li, personCarlos Guestrin, personPercy Liang, and personTatsunori B. Hashimoto. year2023. titleStanford Alpaca: An Instruction-following LLaMA model. howpublishedhttps://github.com/tatsu-lab/stanford_alpaca. OpenAlex ↗ · Scholar ↗
  23. authorpersonHugo Touvron, personThibaut Lavril, personGautier Izacard, personXavier Martinet, personMarie-Anne Lachaux, personTimothée Lacroix, personBaptiste Rozière, personNaman Goyal, personEric Hambro, personFaisal Azhar, et al. year2023. Llama: Open and efficient foundation language models. journalarXiv preprint arXiv:2302.13971 (year2023). our card
  24. authorpersonAshish Vaswani, personNoam Shazeer, personNiki Parmar, personJakob Uszkoreit, personLlion Jones, personAidan N Gomez, personŁukasz Kaiser, and personIllia Polosukhin. year2017. Attention is all you need. journalAdvances in neural information processing systems volume30 (year2017). our card
  25. authorpersonRuize Wang, personDuyu Tang, personNan Duan, personZhongyu Wei, personXuanjing Huang, personGuihong Cao, personDaxin Jiang, personMing Zhou, et al. year2020. K-adapter: Infusing knowledge into pre-trained models with adapters. journalarXiv preprint arXiv:2002.01808 (year2020). our card
  26. authorpersonJason Wei, personYi Tay, personRishi Bommasani, personColin Raffel, personBarret Zoph, personSebastian Borgeaud, personDani Yogatama, personMaarten Bosma, personDenny Zhou, personDonald Metzler, et al. year2022. Emergent abilities of large language models. journalarXiv preprint arXiv:2206.07682 (year2022). our card
  27. authorpersonThomas Wolf, personLysandre Debut, personVictor Sanh, personJulien Chaumond, personClement Delangue, personAnthony Moi, personPierric Cistac, personTim Rault, personRémi Louf, personMorgan Funtowicz, et al. year2019. Huggingface's transformers: State-of-the-art natural language processing. journalarXiv preprint arXiv:1910.03771 (year2019). our card
  28. authorpersonBigScience Workshop, personTeven Le Scao, personAngela Fan, personChristopher Akiki, personEllie Pavlick, personSuzana Ilić, personDaniel Hesslow, personRoman Castagné, personAlexandra Sasha Luccioni, personFrançois Yvon, et al. year2022. Bloom: A 176b-parameter open-access multilingual language model. journalarXiv preprint arXiv:2211.05100 (year2022). our card
  29. authorpersonZheng-Xin Yong, personHailey Schoelkopf, personNiklas Muennighoff, personAlham Fikri Aji, personDavid Ifeoluwa Adelani, personKhalid Almubarak, personM Saiful Bari, personLintang Sutawika, personJungo Kasai, personAhmed Baruwa, et al. year2022. Bloom+ 1: Adding language support to bloom for zero-shot prompting. journalarXiv preprint arXiv:2212.09535 (year2022). our card
  30. authorpersonWayne Xin Zhao, personKun Zhou, personJunyi Li, personTianyi Tang, personXiaolei Wang, personYupeng Hou, personYingqian Min, personBeichen Zhang, personJunjie Zhang, personZican Dong, et al. year2023. A survey of large language models. journalarXiv preprint arXiv:2303.18223 (year2023). our card