Elamur Research

Parameter-Efficient Finetuning for Robust Continual Multilingual Learning

Paper · 2023 · Kartikeya Badola, Shachi Dave and Partha Talukdar

Summary

An update can make a multilingual system better at the language that supplied new training examples and worse at languages it already supported. That is a problem when the same system serves many languages and fresh data arrives unevenly. The authors study this situation under the name continual multilingual learning. They start with a system already trained to perform a task in every supported language. They then give it fresh examples for that same task in just one of those languages. Earlier training examples are unavailable during the update, and the system keeps the same capacity. The authors ask how widely the benefits of the update spread and how much performance deteriorates in languages that lose ground.

The simplest update, full fine-tuning, lets every parameter change. It tends to help the language that supplies the new examples, but it frequently hurts languages left out of the update. LAFT-URIEL, the authors’ proposed alternative, gives each language a small trainable component called an adapter and keeps a shared network underneath those components. The adapter for the language supplying the examples can adapt quickly. The shared part learns more slowly because changes there affect every language. The amount by which it slows down depends on how syntactically distant the update language is from the others, as estimated from the linguistic database URIEL.

The authors test the approach on name tagging, part-of-speech tagging, domain classification and semantic parsing. In their main comparison on fixed test sets, an average of 32.48% of task languages improved after a full fine-tuning update. With LAFT-URIEL, the reported proportion was 58.08%. The approach also reduced the average magnitude of losses among languages that deteriorated by around 78% relative to full fine-tuning. In experiments with repeated updates, LAFT-URIEL kept the average loss among declining languages at or below 1% even at the worst stage of each tested trajectory. The results describe the spread and severity of changes across languages. An individual language could still lose ground, and on one semantic parsing trajectory full fine-tuning improved more languages at its worst stage while incurring a much larger average loss.

Deep dive: Parameter-Efficient Finetuning for Robust Continual Multilingual Learning

LAFT-URIEL uses language-specific adapters and syntactic similarity to spread the gains of multilingual updates and limit forgetting. · about 36 minutes to read

The problem and its context

When new data changes an existing service

Consider a system that has already learned to identify names in several languages. A new batch of annotated Hindi text becomes available. Training on it gives the system more evidence about the task, which could help it recognize names in Hindi and elsewhere. But every update to a shared parameter also changes what happens when the system processes text in a language absent from the batch. The task has stayed the same. The language distribution of the training examples has changed, and that alone can make an update beneficial for some users and harmful for others.

The problem follows from one of the reasons to build a shared system in the first place. Supporting several languages with a common network reduces the number of systems that must be trained and maintained. The authors also point to two potential benefits of sharing parameters: it can help languages with less training data, and it can help with inputs that mix languages. Their discussion situates this design in the line of multilingual pretraining represented by multilingual BERT, XLM-RoBERTa and mT5.

A shared network can use information from one language when processing another. That possibility is central to multilingual and cross-lingual NLP. It also makes an uneven update consequential. If learning from the Hindi batch reinforces patterns that matter in other languages, their scores may improve without fresh examples in those languages. If the same update makes the network rely more heavily on patterns specific to Hindi, scores elsewhere may decline. Keeping updates entirely inside a language-specific component could avoid some of that interference, but it would also reduce the opportunity to share what the update teaches about the task.

The paper isolates this problem by fixing the task and the set of supported languages. The first deployed system has already received task supervision in all those languages. During continuation, the authors assume that new examples can arrive in only one language, a deliberately skewed case of the broader problem. They withhold the examples used in earlier training and keep network capacity fixed throughout continuation. An update therefore has to preserve useful behavior through the way it changes the existing parameters. It cannot draw on a new batch of old-language examples or allocate additional capacity as each batch arrives.

This setting also changes the question asked of the evaluation. A better score in the update language establishes that the batch helped where fresh supervision was available. A higher overall score can still conceal a deterioration for particular language communities. The authors want each update to help across languages where possible and to limit the severity of any declines. They accordingly ask which languages gain and which lose, and how large those changes are relative to the scores before the update. The evaluation keeps the languages without fresh training examples in view at every stage.

Where this fits in continual learning

The paper places its problem alongside continual and online learning, where a learner receives training data in successive batches. The concern is that learning from a new batch may interfere with useful behavior acquired earlier. The literature calls severe deterioration of this kind catastrophic forgetting. Much of the continual learning work discussed by the authors studies sequences in which new tasks are introduced. In continual multilingual learning, a sequence could consist entirely of updates for name tagging. What changes from batch to batch is the source of the evidence within that task.

The authors discuss earlier strategies that control forgetting by discouraging changes to parameters. Elastic weight consolidation, as described in Overcoming catastrophic forgetting in neural networks, uses earlier training data to construct a regularization term that helps protect learned behavior. The paper describes RecAdam as an approximation that removes the need to consult those examples when computing its penalty. RecAdam penalizes squared changes from earlier parameter values. This is relevant to the constraint that past examples are unavailable, even though the paper develops its own comparisons around other update mechanisms. Recall and Learn

The closest multilingual setup in the authors’ account is the cross-lingual lifelong learning work by M’hamdi and colleagues. That work starts training from scratch and adds parameters in the course of updates. The current paper starts from a task-trained multilingual system and preserves its capacity through continuation. The related-work discussion also describes studies that bring previously unseen languages into an existing system, including work on extending coverage in machine translation. Here every evaluation language was already part of the supported inventory at the start. The concern is keeping that existing coverage useful as training continues.

Earlier work on parameter-efficient adaptation supplies a different starting point. Some techniques train small components inserted into a pre-existing network. Others limit which of its existing weights can move. The paper cites uses of adapters in multitask continual learning as well as transfer to languages without task supervision. It also points to research that divides task learning into reusable skills. These precedents suggest that a restricted set of parameters can be used to control where learning happens as well as how many weights have to be trained. The adapter approach draws on Parameter-Efficient Transfer Learning for NLP, with cross-lingual precedents including MAD-X.

The authors use similar machinery for a different division of labor. They want some learning to stay attached to the language that supplied the update and some learning to remain available to all the languages. That leads to a design question that a restriction on the number of trainable weights leaves open. Given an update in a particular language, how readily should the shared part move? LAFT-URIEL turns that question into a rule for setting the shared learning rate.

The method, step by step

From the first deployment to a continuation update

The authors call the first training phase inception. It turns a pretrained multilingual checkpoint into a system that can perform a particular task. All the languages selected for that task contribute training examples at this stage. Continuation starts from the resulting deployed system. It adds fresh task examples from one of the supported languages and produces an updated version that can still be evaluated in all of them. The examples that trained the deployed version are left behind.

The benchmark training examples are partitioned separately within each language. This is important because the languages have different amounts of data. The authors describe equal partitions within each language, and the reported inception scores use 50% of each language’s task training data. Equal fractions preserve differences in the sizes of language datasets. They do not make a small language’s update batch as large as a larger language’s batch. A new random seed changes the examples assigned to each stage as well as other randomness in training. The development and test sets retain all the task languages and stay fixed across stages.

The main comparison begins with an inception system and considers every supported language as a possible source of the first continuation batch. Each choice produces its own updated version. An update in Hindi and an update in Japanese, for example, are alternative departures from the same deployed version under a given strategy and run. They are successive steps only in the later experiment that explicitly chains language updates. The distinction matters because the effect of an isolated update can be measured without any influence from a prior continuation language.

The paper expresses inception as a transition whose arrow identifies the languages supplying task data:

M(t = 0⁻) ⟶[{l₁, l₂, …, lₙ}] M(t = 0)

Here M denotes the system at a particular training stage, and t indexes that stage. The label 0⁻ indicates the state before task training, which is initialized from a pretrained checkpoint. The label 0 marks the first deployed version. The arrow denotes fine-tuning. Brackets after the arrow give the set of languages represented in its training examples. Each l with a subscript is a language in that set, n is the number of supported languages denoted N L in the paper, and the ellipsis stands for the intervening languages in the inventory.

A continuation step uses the same notation with a batch from a single language:

M(t = T − 1) ⟶[{lᵢ}] M(t = T)

M and t retain their meanings. T is the index of the continuation step being performed. The state indexed by T − 1 immediately precedes it, and the state indexed by T results from it. lᵢ is the update language, with i its index in the supported inventory. The braces enclose the set of languages in the new batch, and the arrow represents training on that batch.

At each such step, the authors compare the scores before and after the update on the same held-out examples. A difference can reflect several influences at once. The new examples can teach something about the task. Their language can supply patterns that transfer across languages. Changes can also interfere with patterns the deployed system already used. The observed score is the combined outcome. The paper uses an experimental design that exposes the outcome for each language, then compares strategies that differ in how an update is allowed to change the network.

Full fine-tuning and sparse fine-tuning

Full fine-tuning, abbreviated FFT, is the starting baseline. It trains the multilingual system on the inception data and allows all parameters to change when the new batch arrives. The task output layers and the shared network are open to adaptation. The continuation objective is driven by the incoming examples, so there is no fresh training signal from other languages to counter changes that happen to hurt them. They remain part of the evaluation.

Sparse fine-tuning, abbreviated SFT, uses a stronger restriction based on Lottery Ticket Sparse Fine-Tuning. A sparse update is a set of differences from existing weights in which only a subset of entries can vary. Because differences can be added together, one set can supply language information and another can supply task information. Before processing an example, the method applies a sparse update for the language of that example. Training learns task differences on top of the language-adjusted weights.

The language differences are available before the downstream experiment. They come from language-specific masked language training, where predicting missing text provides a learning signal. In the multilingual inception phase, training batches are assembled separately by language and their sources are sampled uniformly across languages. The task update therefore learns in the presence of the appropriate language differences for whichever batch has been selected. The paper treats the resulting task differences as a way to approximate language-independent learning. The fact that the procedure assigns language information to separate differences does not demonstrate that all language information has been removed from the task differences.

The base network is sparsely trainable at inception. The output component, a classifier for labeling tasks or a decoder for sequence generation, is fully trainable there. The authors report that allowing the decoder to train densely at this stage produces a stronger deployed system than also restricting it to sparse changes. At continuation, the sparse restriction extends to the output component as well as to the base. The language-specific difference is still applied before processing the new examples. At test time, the choice of language difference follows the language being evaluated.

The sparse training schedule includes a pilot phase that helps select the weights eligible to move during the subsequent restricted phase. The authors try different trainable subsets for continuation and select configurations through development evaluation. They also report better behavior when layer normalization parameters, which participate in normalizing intermediate activations, are frozen during sparse continuation. The paper describes sparse continuation as typically keeping approximately 5-10% of parameters trainable. Its exact settings depend on the task and stage.

SFT thus offers more than a comparison with a smaller number of trainable weights. It also has its own way of separating language and task information, its own starting system, and its own restrictions on the output layers. When the experiments compare SFT with full fine-tuning, they compare complete training strategies. The difference between them cannot be attributed solely to the size of the allowed update.

Giving each language an adapter

Language-specific adapter fine-tuning, or LAFT, creates separate paths for language-specific and shared adaptation using small modules inserted into the layers of a Transformer. An adapter has trainable weights and acts on the representation passing through a layer. A bottleneck dimension controls the size of its internal representation. By putting a copy of the adapters aside for each language, the authors give new examples a place to change how their own language is processed without directly editing the adapter used by another language.

The adapter pipeline begins with the multilingual system already trained at inception for FFT. The authors insert randomly initialized adapters and train them along with the task classifier or decoder on inception examples from all task languages. This creates a common starting point for the adapters while preserving the base learned in multilingual task training. Next they duplicate the trained adapters, giving each supported language its own copy. Each copy is then fine-tuned on that language’s inception examples with the base frozen. At the end of inception the system has language-specific adapters, a shared base and a shared task output component.

The order matters. The copies inherit a module already trained on the task across languages before they specialize. A Hebrew or Arabic adapter, for example, would be distinguished by the data used to specialize its copy, but the actual experiments use only the language inventories specified for their tasks. The observed comparisons therefore concern the copies trained on those inventories. At inference, the procedure selects the adapter corresponding to the language of the evaluation input. The specialization is available because the evaluation protocol identifies that language.

When new examples arrive, LAFT activates the adapter for their language and updates it by gradient descent. Gradient descent uses the training objective to determine the direction of a parameter change. A learning rate governs how large an optimization step can be for a given update signal. LAFT gives the selected adapter a higher learning rate than the shared base, which remains trainable. The other languages continue to use their own adapters when evaluated, but those adapters now sit on top of a shared base that has changed.

This arrangement allows the update to make relatively large changes in a component used by the language represented in the batch. It also leaves open a route for useful task information to travel into the shared base. The authors expect the lower learning rate there to reduce the tendency of the shared parameters to specialize in patterns that happen to dominate the current batch. They do not introduce a separate change classifier that decides which gradient directions are language-specific. The split is encouraged through the placement of the adapters, their training history and the learning rates applied during continuation.

Plain LAFT chooses a division factor for the shared rate as a task-level setting. For the tagging tasks and MTOP domain classification, the reported adapter continuation rate is 2e-5 and the division factor is 10. For MTOP semantic parsing, the corresponding settings are 5e-5 and 50. The selected factor stays the same when the language supplying the examples changes within that task. LAFT-URIEL keeps the same inception procedure and varies that factor with the update language.

Setting the shared rate with syntactic information

URIEL represents languages using vectors of linguistic features. The authors use its syntactic vectors, which encode information about the structure of languages. The paper describes the pairwise comparison in terms of cosine similarity and calls the quantity used for rate setting syntactic distance. Cosine similarity compares the directions of feature vectors. For interpreting the schedule, the paper’s table makes the operative ordering clear: a larger reported average distance corresponds to a larger division factor and hence a smaller shared learning rate.

LAFT-URIEL uses the distances from the update language to all the other languages supported for the same task. It averages those pairwise distances, leaving out the comparison of the update language with itself. It then maps the average to a division factor using a linear rule. The adapter learning rate is held constant across languages for the task. The rule therefore changes the degree of shared adaptation when the continuation language changes, while leaving the adapter rate itself fixed.

The following expression writes the paper’s rate-setting procedure in compact form:

ηbase = ηadapter ÷ f(mean{d(lᵢ, lⱼ) for j ≠ i})

ηbase is the learning rate for the shared base, and ηadapter is the rate for the active adapter. The division sign indicates that the adapter rate is divided by the value of f, the linear function that produces the division factor. d is the pairwise syntactic distance used by the authors. lᵢ is the update language. lⱼ is a supported task language indexed by j. The condition j ≠ i excludes the update language itself, and mean averages the remaining distances. The paper illustrates the mapping through worked task settings. The schedule uses the position of a language relative to the task’s particular inventory, so the language name alone does not determine the input to the rule.

MTOP semantic parsing gives a concrete example. For continuation in English, the table lists a mean syntactic distance of 0.405 and a shared learning rate of 5/35 in units of 10⁻⁵. For Spanish the respective entries are 0.415 and 5/40, and for French they are 0.422 and 5/45. German has entries of 0.435 and 5/50. Hindi and Thai have larger average distances in this inventory, 0.498 and 0.540, with shared rates of 5/80 and 5/100 in the same units. These are settings for the shared base during continuation. The active adapter uses the task’s adapter rate.

A task with a tightly related subset can still contain a language whose mean distance to the entire inventory is large. The rule makes a decision for one shared base in that situation. It does not set a separate learning rate for the transfer from the update language to each evaluation language. The individual adapters are what give the architecture a distinct route for language-specific learning. The distance calculation gives the shared route a single rate calibrated to the broader set.

How LAFT-URIEL prepares and updates a multilingual system

The steps in order.

How LAFT-URIEL prepares and updates a multilingual systemStep 1: Train the shared network on all task languages1. Train the shared network on all task languagesStep 2: Train inserted adapters on multilingual task data2. Train inserted adapters on multilingual task dataStep 3: Copy and specialize the adapters by language3. Copy and specialize the adapters by languageStep 4: Select the adapter for the incoming language4. Select the adapter for the incoming languageStep 5: Average syntactic distances to the other task languages5. Average syntactic distances to the other task languagesStep 6: Set the shared learning rate from that average6. Set the shared learning rate from that averageStep 7: Update the active adapter and shared network7. Update the active adapter and shared networkStep 8: Evaluate each language with its own adapter8. Evaluate each language with its own adapter

Training and selecting the configurations

The main experiments initialize the shared Transformer from multilingual BERT. The authors also run comparisons from an XLM-RoBERTa initialization. In sequence-to-sequence semantic parsing, there is both an encoder that represents the input and a decoder that generates the output structure. The authors initialize both from the corresponding multilingual checkpoint and initialize the decoder’s new cross-attention parameters from scratch. Cross-attention lets the decoder use encoder representations while generating an output. The initialization follows the approach cited in Leveraging Pre-trained Checkpoints for Sequence Generation Tasks.

The implementation uses Composable-SFT for the sparse approach. The named software includes PyTorch, the Transformers library and AdapterHub. Training uses AdamW with weight decay of 1e-5. The authors search learning rates of 2, 5 and 8 in units of 10⁻⁵ and use the development set to select the best configuration for each strategy and training stage. AdamW combines adaptive optimization with decoupled weight decay, connecting the setup to Adam and Decoupled Weight Decay Regularization.

Batch size also depends on the task. The tagging tasks use 64 examples per batch, MTOP domain classification uses 128, and MTOP semantic parsing uses 96. The full fine-tuning schedule for the tagging and classification tasks uses 10 epochs at inception and 10 at continuation, with a learning rate of 2e-5 in both phases. For semantic parsing, the FFT inception uses 40 epochs at 8e-5, followed by 20 epochs at 2e-5 in continuation. The sparse schedules distinguish epochs spent identifying parameters from epochs spent updating the selected subset. Adapter inception separately trains the shared adapters and specializes the copies. The comparison therefore respects differences in how the strategies are constructed, while keeping the task, data partitioning procedure and evaluation splits common.

Experiments and results

What was evaluated

The language inventories depend on the dataset. The authors select PAN-X and UDPOS languages in part according to the availability of pretrained language differences for sparse fine-tuning. Both tagging datasets come from the XTREME benchmark. The MTOP experiments use the same languages and underlying collection for both outputs, so the difference there is in what the system must predict.

PAN-X, also called WikiANN, tests named entity recognition. The system predicts token labels that identify people, organizations and locations. The labels encode the beginning or interior of an entity span, along with a label for tokens outside those categories. The languages are English, Hindi, Bengali, Chinese, Tamil, Japanese and Arabic. The paper gives a total of 110k training examples for the task and reports Macro-F1 as the evaluation metric. The source dataset is described in Cross-lingual Name Tagging and Linking.

UDPOS tests part-of-speech tagging. Each word is assigned a grammatical category such as noun, verb or adjective. The task uses English, Hindi, Japanese, Tamil, Chinese and Arabic, with 67k training examples across the languages. The authors identify the underlying resource as Universal Dependencies v2.5. UDPOS is also scored with Macro-F1, and both tagging evaluations use the seqeval toolkit.

The training inventories for the tagging tasks illustrate different degrees of imbalance. On PAN-X, Hindi is listed at 0.25 relative to the English training count, while Japanese, Arabic and Chinese each have a training ratio of 1 relative to English. In UDPOS, Tamil is listed at 0.019 relative to English and Chinese at 0.89. These are ratios of training examples, not ratios of evaluation scores. Under within-language partitioning, an update from a smaller inventory can contain fewer examples. An average that treats each update language as a separate case thus brings together stages with different amounts of fresh supervision.

MTOP domain classification is an 11-way text classification task. The system assigns a domain to a whole sentence. MTOP semantic parsing, abbreviated NSP in the paper, asks it to produce a structured representation instead. The dataset lists 117 intents and 78 slots for semantic parsing. A domain can be correct even if the predicted intent or details in a parse would be wrong. The classification experiments use Macro-F1, and the parsing experiments use exact match accuracy, which requires the predicted structure to match the reference. Both tasks draw on MTOP.

The MTOP training data totals 74k examples for each reported task, over English, German, Spanish, French, Hindi and Thai. The training ratios are shared across the two tasks. The table lists English at 1, German at 0.85 and Thai at 0.68, with the other language counts falling within the distribution given for that collection. The shared language inventory and ratios make MTOP useful for asking whether the response to an update depends on what is being predicted, even when the evaluation languages come from the same dataset.

Macro-F1 gives equal weight to the class-level F1 scores being averaged. F1 reflects both precision, the correctness of predicted positives, and recall, how many reference positives the system recovers. Exact match accuracy for parsing reports the share of outputs that exactly match the reference. These are underlying task metrics. The continuation metrics then apply to changes in those scores by language. A relative change in Macro-F1 and a relative change in exact match accuracy refer to different kinds of prediction, even when the same formula summarizes them.

The starting points

The authors report inception scores to establish what each method was updating. Baselines that begin from radically different levels could offer different scope for improvement. LAFT and LAFT-URIEL share an inception system, which gives their comparison a common starting point. Full and sparse fine-tuning each follow their own inception procedure.

On PAN-X, the cross-language mean inception Macro-F1 is 81.00 for FFT, 82.50 for SFT and 81.65 for the shared LAFT inception. On UDPOS, the corresponding scores are 88.67, 88.97 and 89.15. For MTOP domain classification, the respective mean Macro-F1 scores are 96.71, 97.06 and 97.08. The mean inception exact match accuracy for MTOP semantic parsing is 59.41 with FFT, 60.61 with SFT and 61.16 with the shared adapter inception. These are performance levels after training on the inception partition, before the update whose effects dominate the rest of the comparison.

The authors read these results as broadly comparable starting performance, with the adapter strategy frequently already doing slightly better. A cross-language mean provides context for relative changes after continuation, while retaining uncertainty about the headroom of individual languages. A higher initial score in a particular language can make it harder to gain on that language. The percentage-change normalization also makes a given score change larger in relative terms when the initial score is lower. These are reasons to use the continuation metrics together with the initial performance levels.

How a change is counted

An update is evaluated by comparing language-specific scores on the fixed test set before and after continuation. The comparison begins with relative percentage change. The authors choose this quantity because a given drop carries a different weight depending on the initial performance of the affected language.

Δ(l) = 100 × (safter(l) − sbefore(l)) ÷ sbefore(l)

Δ(l) is the percentage change for language l. safter(l) is its task score after the update, and sbefore(l) is its score just before the update on the same evaluation split. The subtraction gives the signed change, the division scales it by the starting score, and the factor 100 expresses that relative change as a percentage. A positive value denotes improvement, and a negative value denotes deterioration. The use of the immediately preceding score becomes especially important when updates are chained.

The first summary quantity, NumImprovedLangs, counts languages with a strictly positive change after an update:

NumImprovedLangs = count{l : Δ(l) > 0}

NumImprovedLangs is the count of improving languages for the stage. count returns the number of members of the set in braces. l ranges over the supported task languages, and the colon introduces the condition that the relative change Δ(l) must exceed 0. The authors average this count across the possible continuation languages. The headline comparison expresses the spread of improvement as a percentage of the supported languages. A small improvement contributes to the count in the same way as a large one, so the count answers a question about reach.

AvgPercentLoss measures the severity of deterioration among languages whose scores fall:

AvgPercentLoss = mean{|Δ(l)| : Δ(l) < 0}

AvgPercentLoss is the average magnitude of the relative declines at a stage. mean denotes the arithmetic mean over the included languages. The bars around Δ(l) indicate absolute value, making each decline a positive magnitude. The condition after the colon limits the average to languages l whose changes are below 0. The paper then averages the metric across the possible update languages. Because the set of declining languages can change from one strategy to another, the metric describes the severity of the losses that remain. It complements the improvement count.

The paper adds two comparisons to check whether gains are substantial in relation to declines. SumRatio compares their totals:

SumRatio = sum(G) ÷ |sum(L)|

G is the collection of positive percentage changes at a stage, and L is the collection of negative percentage changes. sum adds the changes in each collection. The bars turn the negative total for L into its magnitude, and the division compares the total gain with that total loss. MaxRatio compares only the most pronounced changes:

MaxRatio = max(G) ÷ max{|x| : x ∈ L}

G and L have the same meanings as in SumRatio. The numerator max(G) is the largest positive change. In the denominator, x stands for a change belonging to L, as indicated by ∈, and |x| is its magnitude. The maximum of those magnitudes represents the largest loss. Both ratios are averaged across continuation stages. The authors’ minimum criterion is an average of at least 1 for each. A stage with gains and no losses can yield an infinite ratio, as in the reported UDPOS results.

The metrics can give distinct verdicts on the same update. A strategy could improve several languages by very small amounts, yet have a poor SumRatio if declines elsewhere are large. Another strategy could keep AvgPercentLoss small by making tiny changes everywhere, without achieving gains large enough to satisfy the ratio criteria. A large gain in the update language could also make MaxRatio favorable while several smaller declines collectively exceed the gains. Each measure answers a different part of the deployment question the authors posed.

A single update across the language inventory

The main results use multilingual BERT and repeat each experiment three times with different seeds. For every task, the authors display the pattern of percentage changes as a heatmap. Each row identifies the source language of a fresh batch. Each column identifies the test language. A cell on the diagonal shows the change for the language represented in the update, and an off-diagonal cell shows what happened in a different language. The common scale for the full fine-tuning and LAFT-URIEL heatmaps runs from +2 to -2%.

Full fine-tuning shows strong diagonal gains and many off-diagonal losses across the tasks. The authors interpret the pattern as evidence that unrestricted continuation makes the shared network specialize in the current language at the expense of generalization elsewhere. Across the LAFT-URIEL heatmaps, improvements appear more often away from the diagonal, and the negative cells tend to be less intense. The picture describes both effects the method was designed to produce: a wider spread of gains and less severe deterioration where it still occurs.

The aggregated result compares the average proportion of languages that improve after the first continuation stage. The task-specific counts underlying the comparison are averaged over the possible update languages. This summary concerns whether a language’s score rises at all. It leaves the size and distribution of those increases to the other metrics.

Improved languages after the first continuation update across all four tasks

LAFT-URIEL spreads improvements to a larger share of task languages.

Improved languages after the first continuation update across all four tasksFull fine-tuning: 32.48Full fine-tuning32.48LAFT-URIEL (this paper): 58.08LAFT-URIEL (this paper)58.08
The numbers
System or settingimproved languages %
Full fine-tuning32.48
LAFT-URIEL (this paper)58.08

SFT improves the spread of gains over FFT on most of the tasks. UDPOS is the exception identified by the authors. Both adapter strategies do better than SFT on the improvement count, with LAFT-URIEL further improving on LAFT. Because LAFT and LAFT-URIEL share their inception procedure, the comparison between them is particularly relevant to the continuation rate schedule. The observed difference indicates that a language-dependent shared rate can help the update reach more languages under these task settings.

On AvgPercentLoss, sparse fine-tuning generally improves on the full baseline. The two adapter strategies reduce losses further relative to sparse fine-tuning except in MTOP semantic parsing. Across the tasks, the authors report that LAFT-URIEL reduces the average magnitude of loss by around 78% relative to FFT. The figure refers to deterioration among languages whose scores dropped. It does not give the change in overall Macro-F1 or in exact match accuracy, and it does not say that the worst individual decline was reduced by the same amount.

Gains and losses considered together

The balance ratios explain why the sparse semantic parsing result needs separate attention. Its AvgPercentLoss is low, but the authors find that the gains are also heavily constrained. On MTOP semantic parsing, SFT has a MaxRatio of 0.54 and a SumRatio of 0.36. Both fall below the paper’s minimum criterion. FFT in the same task achieves a MaxRatio of 1.16 and a SumRatio of 0.48. Its strongest gain can thus exceed its largest decline on the averaged comparison, even as the ratio of total gains to total losses is unfavorable.

SumRatio for the first continuation update on MTOP semantic parsing

Both adapter strategies put total gains ahead of total losses on the averaged ratio.

SumRatio for the first continuation update on MTOP semantic parsingFull fine-tuning: 0.48Full fine-tuning0.48Sparse fine-tuning: 0.36Sparse fine-tuning0.36LAFT: 1.70LAFT1.70LAFT-URIEL (this paper): 1.48LAFT-URIEL (this paper)1.48
The numbers
System or settingSumRatio
Full fine-tuning0.48
Sparse fine-tuning0.36
LAFT1.70
LAFT-URIEL (this paper)1.48

On MTOP semantic parsing, LAFT has a MaxRatio of 1.26 and LAFT-URIEL has 1.18. Both adapter variants satisfy the two ratio criteria, and plain LAFT has the higher ratios on this task. This distinction helps interpret the overall finding about the distance schedule. It is associated with a wider spread of gains, while the balance of magnitudes on an individual task can favor a fixed schedule. A count of languages helped and a comparison of how much was gained can rank the same strategies differently.

PAN-X illustrates another way the measures can diverge. Its FFT MaxRatio is 1.23 and its SumRatio is 0.50. Sparse fine-tuning gives 1.26 on MaxRatio and 0.76 on SumRatio. On the same task, LAFT reports 4.62 and 2.55, while LAFT-URIEL reports 6.30 and 4.10. This is a case where the distance-based approach improves the metrics concerned with both the strongest changes and the balance of all gains and losses.

For MTOP domain classification, the FFT MaxRatio is 1.19 and the SumRatio is 0.82. SFT raises them to 2.73 and 2.62, respectively. LAFT reaches 9.65 and 17.64, and LAFT-URIEL reaches 12.04 and 20.82. The domain classification comparison also differs sharply from semantic parsing on the same dataset. A stronger total-gain ratio on classification says how the classification score changes are distributed. The parallel result for exact match in parsing depends on successful generation of the whole target structure.

On UDPOS, the FFT MaxRatio and SumRatio are 6.85 and 5.10. SFT reports 4.95 and 2.58, and LAFT reports 11.72 and 13.25. With LAFT-URIEL, some continuation stages have no declining languages, so the two reported average ratios become infinite. The infinite values arise from a denominator with no losses for some stages. They indicate that such stages occurred, instead of that the average improvement in tagging score grew without bound. Taken across the tasks, LAFT and LAFT-URIEL satisfy the paper’s two ratio criteria in every task. SFT and FFT satisfy them in some settings and fail in others.

Several updates in a row

The sequential experiment asks how the strategies behave when a continuation step inherits the changes made by earlier steps. The authors compare FFT and LAFT-URIEL on trajectories that order languages by training set size for the task. One proceeds from lower-resource to higher-resource languages and the other reverses that order. The size refers to the amount of task training data in the benchmark. The decision to use ordered trajectories is motivated by the authors’ expectation that the placement of lower-resource languages can make forgetting or overspecialization harder to manage.

The authors identify the worst point in a trajectory by the value of AvgPercentLoss. They use the following selection rule:

t_w = argmaxₜ AvgPercentLoss(t)

t_w is the index of the selected worst continuation stage. argmaxₜ returns the index t at which the quantity to its right is greatest. AvgPercentLoss(t) is the average loss among declining languages at stage t, calculated from their scores immediately before and after that update. The rule selects the stage with the most severe average decline among languages that lost ground at that stage. The article’s reported improvement count for a worst stage comes from that same selected stage.

The transition being evaluated is:

M(t = t_w − 1) ⟶[{l_w}] M(t = t_w)

M denotes the system at a particular stage and t is its stage index. t_w − 1 is the state immediately before the chosen update, and t_w is the state after it. The arrow denotes continuation training. l_w is the language supplying data at that selected stage, and the braces indicate that the batch contains a single language. Each method and trajectory can have its own worst stage under this rule.

For PAN-X, the worst-stage AvgPercentLoss on the lower-to-higher trajectory is 1.737 for FFT and 0.505 for LAFT-URIEL, with improvement counts of 1 and 4. On the reverse trajectory the worst-stage losses are 1.406 and 0.613, again with counts of 1 and 4. The approach reduces the worst observed average decline among affected languages in both orderings, while also improving more languages at those stages.

UDPOS shows worst-stage losses of 0.839 with FFT and 0.182 with LAFT-URIEL in the lower-to-higher ordering. The counts of improved languages are 1 and 2. Going from higher-resource to lower-resource gives worst-stage losses of 0.598 and 0.123, with 1 and 4 languages improving. The order matters to the number of languages helped at the worst stage, even though the adapter strategy limits the magnitude of declines in both directions.

For MTOP domain classification, the worst-stage losses in the lower-to-higher trajectory are 0.378 and 0.210 for FFT and LAFT-URIEL. In the higher-to-lower trajectory they are 0.283 and 0.192. At the worst stage of either order, the full baseline improves 3 languages and the adapter strategy improves 4. These results concern changes relative to the preceding stage on the domain classification test, rather than absolute classification scores after the complete sequence.

MTOP semantic parsing shows the largest contrast in average loss at the selected stages. It also provides an exception to the pattern in improvement counts. On the lower-to-higher trajectory, 5 languages improve during the worst FFT stage and 2 during the worst LAFT-URIEL stage. On the reverse trajectory, the count is 2 for each. The average loss among declining languages is much smaller for LAFT-URIEL in both comparisons. The stages are chosen for losses rather than for the fewest improvements, so a high improvement count can coexist with a very unfavorable loss at the selected stage.

Worst-stage average percentage loss on MTOP semantic parsing by update order

LAFT-URIEL limits losses among declining languages in both resource orderings.

Worst-stage average percentage loss on MTOP semantic parsing by update orderFull fine-tuning, lower to higher resource: 5.459Full fine-tuning, lower to higherresource5.459LAFT-URIEL, lower to higher resource (this paper): 0.778LAFT-URIEL, lower to higher resource(this paper)0.778Full fine-tuning, higher to lower resource: 2.334Full fine-tuning, higher to lowerresource2.334LAFT-URIEL, higher to lower resource: 0.773LAFT-URIEL, higher to lower resource0.773
The numbers
System or settingAvgPercentLoss %
Full fine-tuning, lower to higher resource5.459
LAFT-URIEL, lower to higher resource (this paper)0.778
Full fine-tuning, higher to lower resource2.334
LAFT-URIEL, higher to lower resource0.773

Across tasks and both trajectories, LAFT-URIEL stays at or below 1% on the worst-stage AvgPercentLoss and improves more than 1 language at the selected stage. This gives evidence that the method’s protection against severe average losses can survive a sequence of the tested updates. Since the reference score before each update already includes all the preceding changes in its trajectory, the worst-stage comparison answers a question about local deterioration. The end-to-end trajectory from the original deployment would require a separate comparison to inception.

What the ablations show

The effect of changing the shared learning rate

Plain LAFT provides the closest controlled comparison for the contribution of URIEL. Both strategies start from the same shared base and language-specific adapters. They activate the same kind of adapter during a continuation update and leave the shared base trainable at a reduced rate. What changes is the rule for setting that reduced rate. Plain LAFT uses a task-specific constant, while LAFT-URIEL varies it according to the syntactic distances from the source language to the rest of the inventory.

The increase in the count of improving languages supports the use of a language-dependent rate in these experiments. It is evidence about the complete schedule the authors chose. The comparison leaves open how much of the benefit would also appear with another way to vary the rate across languages. The reported comparison does not isolate syntactic features against other sources of distance, such as the geographical or phylogenetic information discussed in connection with URIEL. Nor does the result require the distance-based strategy to win every metric. The semantic parsing ratios show that the fixed schedule can produce a stronger balance of gains and losses on a given task.

The comparison with sparse fine-tuning helps explain why limiting shared changes is only part of the problem. SFT reduces the magnitude of losses on MTOP semantic parsing, but it also sharply limits gains. The authors suggest that the sparse update differences available for the language component may be part of the reason. They cover the encoder, while parsing also requires a decoder to generate the output. If only part of the sequence-to-sequence network has explicit language differences, the intended division between task and language updates is harder to achieve. This is the authors’ explanation for the pattern, rather than the outcome of an experiment that adds matching language differences to the decoder.

How much space the adapters need

The paper varies the adapter bottleneck dimension for LAFT on the PAN-X development set. The comparison uses the first continuation transition. A smaller bottleneck means that the language-specific component has less internal capacity to transform the representations it receives. The analysis checks what happens to AvgPercentLoss and NumImprovedLangs as this capacity changes.

With a bottleneck dimension of 48, AvgPercentLoss is 0.40 and NumImprovedLangs is 3.14 on that development split. At dimension 24, the respective values are 0.46 and 3.14. At dimension 12, they are 0.41 and 2.85. The intermediate setting preserves the count of improvements while incurring larger losses. The smallest setting brings average loss close to the widest setting, with a lower count of improving languages. The measured effects of narrowing the adapter therefore show up on different metrics at different widths.

The authors propose that a smaller adapter may leave more of the adaptation to the shared part. In that case, the consequences of specialization in the update language would reach more of the network used by other languages. The development experiment records the performance effects of changing the bottleneck. It does not measure directly how much information or parameter change is assigned to the shared part at each width. The explanation is plausible within the method’s design and remains an interpretation of the score pattern.

The widest tested setting, 48, is the one used for both adapter strategies in the main experiments. The authors put that adapter at roughly 3.5% of the base parameters for the tagging task. They compare it with the language-specific update differences in SFT, which correspond to roughly 4% of base parameters. On the same development evaluation, SFT yields an AvgPercentLoss of 0.47 and a NumImprovedLangs of 2.85. The comparison gives context for the size of the language-specific components. LAFT’s shared base can still learn during continuation, so the size of its adapter alone does not describe its entire trainable update.

A separate analysis examines whether syntactic proximity has observable consequences in LAFT-URIEL. For each update language, the authors locate the closest and second-closest other languages in the task inventory using the URIEL comparison. They then compare those neighbors’ percentage changes following the update. The reported measure counts the cases in which the closest language’s change is at least as favorable as the second-closest language’s change.

On PAN-X, the closest language’s change is at least as favorable in 85.70% of the comparisons. On UDPOS, the reported figure is 66.66%. MTOP domain classification and MTOP semantic parsing each give 83.33%. These are percentages of relative orderings, with the update language varied within each task. They do not report the size of a transfer effect. A closer neighbor could count towards the reported percentage by losing less than the next closest language, and the table’s criterion also includes equal changes.

This gives a narrower kind of support than a general claim that syntax predicts every cross-lingual outcome. The results associate the distance ordering with more favorable behavior at the nearest end of the inventory under the proposed method. That method itself already uses a syntactic signal when setting the shared rate. The analysis does not identify how much of the neighbor pattern would arise with a different rate schedule or through linguistic similarities the syntactic vectors happen to track.

How much the ranking shifts across runs

The authors investigate another issue raised by their heatmaps. After an update, languages can be sorted by their relative score changes. If the resulting order were stable, a reader might use a particular row to predict which languages would be most vulnerable to an update in the same source language. The paper asks how the ordering changes when the random seed, the task or the encoder changes. This analysis uses FFT. The authors use edit distance to measure how much the two ordered lists differ. A larger edit distance indicates more change in the ranking.

When seeds change with the task fixed, the average edit distance is 4 for PAN-X with 7 languages and 3.66 for UDPOS with 6 languages. It is 4.16 for MTOP domain classification and 3.55 for MTOP semantic parsing, each with 6 languages. A change of seed can also alter the examples placed in different training partitions. These figures therefore reflect variation from the experimental rerun as a whole, including which examples enter a given stage.

Switching the task within MTOP yields an average edit distance of 3.66 with 6 languages. Switching the encoder while keeping the task fixed yields an average edit distance of 4.57 on PAN-X with 7 languages. The distances are 3.33 for UDPOS, 4.5 for MTOP domain classification and 3.83 for MTOP semantic parsing, each with 6 languages. The numbers describe how much the order changes, rather than the corresponding magnitudes of the score changes. A ranking can shift when similar score changes trade places, and a stable ranking can conceal a change in the severity of the losses.

The authors also reproduce the heatmap comparison between FFT and LAFT-URIEL with XLM-RoBERTa in place of multilingual BERT. Across the tasks, the adapter approach again shows more improvement away from the update-language diagonal and weaker negative cells. This is consistent with a broad improvement in update behavior across the tested initializations. The edit-distance analysis shows why that broad result can coexist with uncertainty about which particular language will gain or lose after an individual update.

Limitations

Limits identified by the authors

The authors present the experiments as an initial investigation of continual multilingual learning on selected tasks and languages. Their explicit language-coverage limitation is that the evaluated languages remain relatively well resourced, despite their variety in linguistic structure, family and geography. They identify languages with very little representation in pretraining, and languages absent there, as important cases for further study. A low resource ranking within one of the benchmark trajectories describes the size of that language’s task training set. It does not by itself establish that the language was severely underrepresented in pretraining. Low-resource languages

The paper also draws attention to the sensitivity of language-wise outcomes. It reports that changing the seed, task or initialization can shift the order of languages affected by an update. The authors therefore emphasize averaging across seeds. That choice supports claims about typical behavior under the sampled runs. It leaves uncertainty about individual language pairs and what a single deployment update might do. In particular, the ranking analysis with FFT should not be read as a direct measurement of the stability of the LAFT-URIEL ranking.

Limits that follow from the experiments

The strongest evidence concerns one-language updates to an existing task. Actual incoming batches could mix languages in varying proportions, and the distance rule evaluated here uses a single source language. Real batches can also differ from historical data in topic, annotation practice or time of collection. The benchmark protocol instead simulates fresh examples by partitioning the task training data. It cleanly exposes unequal language coverage across stages, while offering limited evidence about how the schedule would respond to a shift in the kind of examples arriving within a language.

The setup also assumes that the system starts with task supervision in every supported language and that it can select the appropriate language-specific component at evaluation. The experiments do not address adding adapters for languages absent at inception. The paper names code-mixed inputs as one reason to use a shared multilingual network, but the reported adapter evaluation selects an adapter by test language. It does not establish how to route a mixed-language input or how much of the benefit survives when the language identity of an input is uncertain.

The distance schedule uses a mean over the other task languages. That quantity gives a compact way to compare possible update languages, and the reported results support its usefulness in the tested configurations. An average can hide a range of pairwise relationships. Two sources with similar average distances might have different nearest neighbors or differ substantially in their distance to a particular language that matters in deployment. The experiments establish the effects of the schedule across the paper’s inventories. They leave open how to choose a rate when preserving a particular language matters more than treating every supported language equally.

The score summaries also limit what can be claimed about protection against forgetting. AvgPercentLoss conditions on the languages that decline and reports an average across them. Even a small value can coexist with a larger drop for an individual language. NumImprovedLangs registers any positive change, leaving the magnitude to other measures. The ratio criteria are averages across update languages, so satisfying them does not guarantee success in every transition. The paper’s heatmaps supply a finer view of individual changes, and the aggregate findings are most informative when read alongside those patterns.

In the sequential experiment, the authors test two resource-ordered trajectories and choose each trajectory’s worst transition by average loss. This establishes how large the worst local decline was under those orders. It does not measure accumulated drift from the first deployment. Several small declines for a language could build over a trajectory whose individual stages all have small AvgPercentLoss. The tested sequences also cover each task’s language inventory in a specified order, leaving open what happens with repeated updates to the same language or with much longer streams of batches.

Finally, parameter efficiency here is chiefly a way to control the location and size of adaptation. Sparse fine-tuning keeps many weights fixed. LAFT-URIEL retains small language-specific adapters but also leaves the shared base trainable, with a lower learning rate. The experiments compare the resulting task behavior. They do not establish that LAFT-URIEL reduces wall-clock training time or computational cost relative to the baselines. Its reported gains concern how an update is distributed across languages and how severe the remaining performance losses are.

What came after

No later citing work is documented for this paper. The subsequent use of LAFT-URIEL and its language-dependent learning-rate rule therefore remains unestablished here.

Cite

Cite as Kartikeya Badola, Shachi Dave and Partha Talukdar. 2023. Parameter-Efficient Finetuning for Robust Continual Multilingual Learning. Findings of the Association for Computational Linguistics: ACL 2023.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.findings-acl.619

@inproceedings{badola2023parameter,
  title = {{Parameter-Efficient Finetuning for Robust Continual Multilingual Learning}},
  author = {Kartikeya Badola, Shachi Dave and Partha Talukdar},
  booktitle = {Findings of the Association for Computational Linguistics: ACL 2023},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.619},
  url = {https://doi.org/10.18653/v1/2023.findings-acl.619}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/badola-2023-parameter-efficient-finetuning-robust-continual/