---
title: "From Scratch to Fine-Tuned — paper by Barman et al. (2025)"
description: "This study compares training from scratch with fine-tuning a Transformer for English-to-Hindi legal translation on a shared-task dataset."
canonical: "https://research.elamur.ai/free/en/papers/barman-2025-scratch-fine-tuned-comparative-study/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/barman-2025-scratch-fine-tuned-comparative-study/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / From Scratch to Fine-Tuned: A Comparative Study of Transformer Training Strategies for Legal Machine Translation

# From Scratch to Fine-Tuned: A Comparative Study of Transformer Training Strategies for Legal Machine Translation

Paper · 2025 · Amit Barman, Atanu Mandal and Sudip Kumar Naskar

**Authors:** Amit Barman, Atanu Mandal and [Sudip Kumar Naskar](https://md.research.elamur.ai/free/en/authors/sudip-kumar-naskar/) · **Year:** 2025 · **Venue:** Proceedings of the 1st Workshop on NLP for Empowering Justice (JUST-NLP 2025) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**0** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W7117153745|W7117174251|W7138065534) · [Proceedings of the 1st Workshop on NLP for Empowering Justice (JUST-NLP 2025)](https://aclanthology.org/volumes/2025.justnlp-main/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.justnlp-main.20/)
- [PDF](https://aclanthology.org/2025.justnlp-main.20.pdf)
- [DOI 10.18653/v1/2025.justnlp-main.20](https://doi.org/10.18653/v1/2025.justnlp-main.20)
- [OpenAlex](https://openalex.org/W7117153745)

Citations: OpenAlex, 2026-10-14.

## Summary

A court order can affect someone who has no easy way to read it. In India, the authors explain, much legal and judicial work takes place in English, even though many of the people affected by it use other languages. Translation can help them read judgments, laws, and official notices. The difficulty is that legal writing depends on precise terms and on the relationships between different parts of a sentence. A fluent translation can still leave a reader with the wrong understanding of a condition or obligation. The paper investigates how to train a system for this particular kind of [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/).

The authors use the English–Hindi legal sentence pairs released for the JUST-NLP 2025 shared task. They take two routes to the same target language. One starts with Helsinki OPUS-MT, an existing translation system, and continues training it on the legal pairs. That procedure is called [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). The other starts with a compact translation system that learns from the legal pairs without pretrained weights. Both use an architecture that can attend to relationships across a sequence of text, the [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/).

The fine-tuned OPUS-MT achieves 46.03 SacreBLEU on the final shared-task evaluation. SacreBLEU measures overlap between system output and reference translations. The paper’s comparison reports 9.39 for OPUS-MT before adaptation and 37.77 for the Transformer trained from scratch. The adapted system also leads the paper’s comparison on character and word overlap, an edit-based measure, and scores designed to capture aspects of meaning. On the shared-task leaderboard, the authors’ entry, JUNLP, places at Rank 4 overall. That standing comes from a separate comparison against other teams’ submissions.

The most direct evidence for adaptation comes from evaluating OPUS-MT before and after training on the legal pairs. The from-scratch result shows how much a separate compact system can learn from the task corpus alone, although differences between the two training setups prevent the authors from assigning their entire performance gap to pretraining. The results describe agreement with reference sentences. The study leaves open how well either approach preserves legal meaning in long passages, how frequently experts would find consequential errors, and how far the results carry to other languages or kinds of legal documents.

## Deep dive: From Scratch to Fine-Tuned: A Comparative Study of Transformer Training Strategies for Legal Machine Translation

This study compares training from scratch with fine-tuning a Transformer for English-to-Hindi legal translation on a shared-task dataset. · about 31 minutes to read

**In this deep dive**

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

### The problem and its context

#### Why the wording matters

The starting point is a mismatch between the language in which legal information is available and the languages its readers use. India’s Constitution recognizes 22 scheduled languages, according to the paper, and English remains widely used in legal, administrative, and judicial work. The authors connect that mismatch to a practical problem. A person may depend on a translation to understand a government notice or to follow a court proceeding. The paper cites instances of misunderstanding when an order or proceeding was unavailable in the person’s own language. The translation task sits within that broader concern about access to legal information and the work of [Legal AI](https://md.research.elamur.ai/free/en/topics/legal-ai/).

Legal writing raises the cost of a seemingly small change in wording. The authors point to terminology tied to a jurisdiction, the need to use terms consistently, and the consequences of misinterpretation. A long clause may qualify something stated earlier in the sentence. If a translation preserves the recognizable topic but changes what the clause qualifies, a reader can come away with a different interpretation. Similarly, two ordinary paraphrases can be close enough in everyday conversation and differ in the precision required for a legal passage. These are reasons to treat legal language as a distinct translation domain.

In this setting, a domain is the kind of writing a system is expected to handle. Moving from general text to legal text changes the words and constructions a translator encounters and the work those constructions do. The paper discusses vocabulary, syntax, and meaning together for that reason. Recognizing a specialized term is only part of the problem. A system also needs to carry over relationships between parts of the sentence, including the kinds of compound or cross-referential structures the authors identify as difficult. The move to online publication gives the problem scale, since the material may be available digitally even when a reader still lacks a usable translation.

The experiment turns this civic motivation into a narrower question. The authors can give a translator an English sentence and compare the Hindi output with a Hindi reference. That procedure supplies a repeatable way to compare training strategies. It also defines the scope of the evidence. Reading a standalone translated sentence for comparison is a different activity from following a judgment as a document or using an official notice to decide what to do. The benchmark addresses the production of translated sentences, which is one part of making legal information accessible.

#### How earlier translation systems handled context

The paper traces the field from recurrent sequence-to-sequence systems to attention-based architectures. In an encoder–decoder translation system, the encoder builds a representation of the source sentence. The decoder uses that representation to produce the target sentence. In the earlier recurrent systems described by the authors, information moves through the sequence in order. The longer the distance between related parts of the sentence, the harder it can be to preserve the information and bring it to bear where it is needed. The paper returns to long sequences when explaining its own length limit and cites work on earlier systems in [On the Properties of Neural Machine Translation](https://md.research.elamur.ai/free/en/papers/cho-2014-properties-neural-machine-translation-encoder/).

With attention, a part of a sequence can draw information from other relevant positions. Self-attention applies that operation within a sequence. For a legal source sentence, the attraction is that a term and the distant phrase that gives it context can be considered together. The architectural change gives the translator a way to represent that connection. The ability to represent it is distinct from learning how a particular Hindi rendering should express it. The paper places this shift in the lineage of [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/).

Broad pretraining gives a translation system a starting point built from data it has already encountered. The paper describes multilingual pretraining as a source of generalization, fluency, and consistency across languages. It also discusses translation with no task-specific examples or with a small number of examples, the latter known as [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/). In the authors’ account, the availability of those approaches still leaves a substantial problem where bilingual training material is scarce or the target domain differs sharply from common text.

Transfer learning addresses that problem by reusing something learned in an earlier setting. Fine-tuning is one form of transfer. The earlier training supplies the starting parameters, and new task examples guide further changes. The related work also discusses updating a limited portion of a system or adding a small set of trainable components, approaches intended to make adaptation less expensive. The paper points to [LoRA](https://md.research.elamur.ai/free/en/papers/hu-2021-lora-low-rank-adaptation-large/) and [QLoRA](https://md.research.elamur.ai/free/en/papers/dettmers-2023-qlora-efficient-finetuning-quantized-llms/) in this context. They belong to the background and to the authors’ future plans.

#### Why the parallel data matter

A parallel corpus pairs material in one language with corresponding material in another. For this experiment, a useful pair gives the translator an English legal sentence and a Hindi rendering of that sentence. The Hindi side supplies a concrete learning target, including domain-specific expressions in context. A general bilingual corpus can teach broad correspondences between English and Hindi, while the legal corpus supplies examples selected for the kind of writing on which the task evaluates the systems. This distinction helps explain why the paper discusses the availability of corpora separately from architectural advances.

The authors describe an established body of parallel resources for Indian languages. Two examples are Samanantar and the [IIT Bombay English–Hindi Parallel Corpus](https://md.research.elamur.ai/free/en/papers/kunchukuttan-2018-iit-bombay-english-hindi-parallel/). The first covers 11 Indian languages as described in the paper, and the second is directly relevant to the language pair. The authors group these with other resources that have broadened translation research and generally serve a wider domain. That wider coverage is relevant to learning a language pair. It leaves a separate need for material showing how the pair is used in legal settings.

The paper also reviews multilingual resources associated with legal, parliamentary, or institutional writing. It discusses Europarl, EUR-Lex, and a Swiss collection of legislative texts, as well as the [United Nations Parallel Corpus](https://md.research.elamur.ai/free/en/papers/ziemski-2016-united-nations-parallel-corpus-v1/). These resources illustrate the value of having corresponding texts across languages. The authors emphasize the difficulty of transferring them directly to the Indian setting, where the languages, institutions, terminology, and conventions can differ. Parallel legal material can be extensive in one institutional setting and still provide limited supervision for a different one.

Within India, the authors identify the LTRC Hindi–Telugu resource and Anuvaad as early efforts. They flag the absence of expert validation in their account of those resources. They present MILPaC as a curated multilingual benchmark with expert validation and describe the WMT25 Legal Domain Test Suite as a way of evaluating English-to-Hindi translation in the legal domain. These efforts establish the immediate context for the shared task. The study itself uses the organizers’ sentence pairs. The resources surveyed in the related work explain why those pairs are valuable and why access to general bilingual material alone leaves a question about legal adaptation.

The research question follows from the combination of available general translation systems and scarce specialized supervision. Given the same organizer-supplied legal corpus, the authors want to see what can be achieved by adapting an existing translator and what a compact system can learn with a fresh start. The question is practical as well as scientific. The authors are working within time and computing constraints, so they choose two training routes they can actually run. Each route makes a different demand on the legal data, and the shared evaluation gives the study a common target for judging the resulting translations.

### The method, step by step

#### What a training pair teaches

Each training example has an English source sentence and a corresponding Hindi target sentence. The source tells the system what to translate. The target gives it an example of the output it is supposed to produce. Across the training set, the system adjusts its parameters, the numerical settings that determine how it responds to input. The repeated exposure matters because a word or structure can appear in different contexts, and those examples can guide the translator toward context-sensitive choices.

The two routes make different use of the same kind of feedback. A freshly initialized system needs to learn basic English-to-Hindi correspondences and regularities of legal text from the legal pairs available to it. A pretrained translator arrives with parameters shaped by earlier training. When it sees the legal pairs, the new examples can move those parameters toward translations closer to the task’s reference style and vocabulary. This is the sense in which the paper adapts a system to a domain. It changes how an existing translator behaves through continued training.

The key comparison concerns the point at which learning begins. The authors keep an original OPUS-MT system for comparison with the version that receives legal training. They also build a distinct compact Transformer for training on legal data from the beginning. These two comparisons have different roles. The original and adapted OPUS-MT give a direct view of what happens when the authors add legal training to that system. The compact Transformer gives a view of what a feasible system can achieve when the legal examples are its only training supervision.

Training and evaluating the English-to-Hindi translators The steps in order.

The two training steps in the diagram are parallel branches. The scratch system does not take the adapted OPUS-MT as input, and the adapted OPUS-MT has no dependency on the scratch system. Both branches ultimately produce Hindi sentences for the same kind of reference-based evaluation. The paper identifies the accompanying implementation as Legal-Translation. The reported procedure consists of supervised training and evaluation through the organizers’ splits and submissions.

#### Preparing for an evaluation with hidden answers

The organizers released the training pairs first. Those were the examples for which participants initially had both language versions. The validation and test references were withheld. During the evaluation and final phases, participants produced translations for the respective sets without having the corresponding Hindi answers in advance. The paper says the reference translations became available after the announcement of the leaderboard.

Validation and test sets have related purposes but are used at different points in an experiment. Validation ordinarily gives researchers feedback while they are making training decisions. The final test measures the system after those decisions. For the OPUS-MT run, the authors say they used interim submissions as a basis for evaluation, since they lacked the full validation references while training. Interim scoring can give feedback about the outputs submitted. Direct access to the targets would also let the researchers examine individual disagreements and monitor training behavior in more detail.

The held-out sets therefore place a boundary around what the authors could inspect while building their systems. The organizer-supplied training pairs gave them supervision. Interim evaluation supplied a way to observe performance on held-out inputs, and the final submission supplied the task result. The eventual release of references made direct comparison possible after the leaderboard announcement. These parts of the procedure answer different questions, and the timing matters when interpreting the paper’s claims about how thoroughly the authors could tune their training.

#### Adapting Helsinki OPUS-MT

The fine-tuning route begins with the existing Helsinki OPUS-MT translator. The authors take the English–Hindi training pairs supplied by the task and use them for further optimization. From the point of view of the task, the input is still an English sentence and the output is still Hindi. The change is that the system now receives supervision tied to legal writing. For the evaluation, the original OPUS-MT supplies a baseline, a point of comparison that lets the reader see how it performed before that stage.

The authors use AdamW, which is the optimizer for the adaptation run. An optimizer determines how the parameters change in response to the training signal. The learning rate governs the scale of the updates. Weight decay is a training setting that discourages weights from growing unchecked. The batch size is the number of examples processed together for a training update. In the OPUS-MT run, the learning rate is 2 × 10 −5, the weight decay is 0.01, and the batch size is 32. These settings describe the run the authors used. The paper gives no comparison of alternative values within that run.

The setup also requires deciding how much text can fit in a training sequence. A token is a unit in the representation the translator processes. Token counts concern the representation of the sentence and should be read as the limits on that representation. A written word can be represented by more than one unit, which is why a token limit and a word limit answer different questions about how much text fits. The operation is called [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/).

In the OPUS-MT setup, the authors cap both the input and the target at 128 tokens. That means length can matter on either side. A source beyond the cap can lose English material the system would need to translate. A target beyond the cap can lose part of the Hindi training example. The authors chose the limit to keep computation manageable and describe it as a balance between efficiency and fidelity. They invoke earlier work on the difficulty of retaining information over long dependencies as part of their rationale. Their study reports the setting used for this run and supplies no dedicated length comparison.

The route uses the legal inputs to modify a system with an existing translation capability. The study does not add documented bilingual examples from a separate legal corpus to this adaptation stage. Thus the starting system and the task corpus play different roles. The starting system supplies an existing translation behavior. The legal corpus supplies the evidence used to change it. The original checkpoint’s evaluation is what makes the distinction empirically visible.

#### Training the compact Transformer

For the other route, the authors build a compact Transformer and train it from scratch. Training from scratch means its parameters start without the benefit of the earlier translation training available to OPUS-MT. The English–Hindi legal pairs are the source of training examples for this system. Its performance can therefore show whether those examples support learning a useful translation procedure within the compact setup the authors chose.

The scratch system uses an encoder and a decoder. The encoder represents the English input in context. The decoder produces a Hindi sequence using the encoded source and the output it is building. Attention allows the computation to make use of relevant positions in the sequence. An attention head is one part of that operation, using its own learned representation to attend to information. Several heads allow several such operations within the architecture. Their usefulness in any given translation depends on what training has taught them to represent.

The configuration is listed as 4 encoder-decoder layers, with 8 attention heads and a representation dimension of 128. The layer count describes the reported depth of the arrangement, and the dimension describes the width of its internal token representations. Dropout is set to 0.1. Dropout reduces reliance on particular internal signals by withholding some of them during training. Together with the description of the system as compact, these details identify the architecture on the scratch side of the comparison. They do not establish the performance of a different depth, width, or dropout setting.

The authors report a sequence length of 256 tokens for the scratch system. They use SentencePiece to derive a vocabulary of 32,000 entries. A vocabulary here is the inventory of units the translator recognizes and can produce. Dividing text into reusable pieces can represent an unfamiliar written form through units that occur elsewhere in the data. This is the role of [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/).

The scratch run uses Adam and a batch size of 32. The reported batch size therefore matches the OPUS-MT run, and the optimizers differ. So do the reported sequence limits, the starting parameters, and the other architectural details described for the scratch system. The authors report that training converged, meaning they saw the optimization settle sufficiently to develop a working translator. They characterize that behavior as evidence that a small Transformer can learn patterns from the legal corpus. The paper gives the resulting translation scores, with no training curves to show how the two routes progressed across updates.

The larger sequence allowance of the scratch system and the adaptation of OPUS-MT are features of the respective packages tested. A comparison between their final outputs therefore answers what these packages achieved under their reported settings. A study of initialization alone would require the same architecture, token representation, length policy, and training procedure on both sides, with the starting parameters changed. The shared-task paper has a more practical design. It asks how these available routes perform when trained on the task’s own legal pairs.

#### From a generated sentence to a score

For either branch, evaluation begins with the English side of a held-out item. The system generates a Hindi candidate, which the scoring procedure compares with the Hindi reference. Different metrics look at different properties of that comparison. Some compare the surface wording. One measures how much editing would be needed to match the reference under its calculation. Others use learned representations to extend beyond a count of identical words. The study uses the set of metrics to see how the systems compare from these different perspectives.

The paper reports training and scoring settings in prose and tables. It supplies no equations for the architecture, the optimizer, or the evaluation metrics. The expression for the OPUS-MT learning rate is a numerical setting. The paper’s technical comparison rests on the descriptions of the runs, their task protocol, and their reported scores. Exact choices within the evaluation implementations are a distinct issue, especially when trying to compare scores obtained on different datasets or in different experiments.

### Experiments and results

#### The data and the comparisons

The shared-task corpus contains 60,000 English–Hindi legal sentence pairs. The training split has 50,000 pairs. The validation split has 5,000 pairs, and the test split has 5,000 pairs. The authors describe considerable variation in sentence length, which they take as consistent with a range of syntactic structures in legal writing. They also say the data lack metadata specifying sources or document types. A score on this corpus therefore describes the benchmark as a whole. The paper cannot break that score down into performance on statutes, judgments, and other kinds of material.

Two result tables answer different questions. The paper’s system comparison brings together the adapted and original versions of OPUS-MT, the scratch system, NLLB, and IndicTrans2. The NLLB entry is identified as the 3.3B distilled variant. The original OPUS-MT, NLLB, and IndicTrans2 are listed without legal fine-tuning. The scratch system is also listed without fine-tuning, for a different reason. All its training is on the legal corpus, and it has no pretrained starting point to adapt. The label tells the reader about the training operation and does not by itself tell the reader whether a system saw legal examples.

The other table is the final leaderboard, where the adapted OPUS-MT appears as the JUNLP submission. The leaderboard documents its relationship to the other shared-task entries. Its scope is the final test evaluation. The separate comparison table identifies its data as the English–Hindi legal dataset and repeats JUNLP’s final scores. It does not independently name a split in the caption for the baseline rows. The comparisons below describe those rows as the paper’s legal-dataset results and use final test or leaderboard when discussing the explicitly designated final standings.

#### What the scores capture

SacreBLEU compares the wording of generated translations with reference wording using sequences of adjacent units. Such a sequence is an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/). The metric can give credit for matching local phrasing as well as individual words. Higher values indicate greater correspondence under the score. The paper draws on the original [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/) and cites work on making its reporting clearer in [A Call for Clarity in Reporting BLEU Scores](https://md.research.elamur.ai/free/en/papers/post-2018-call-clarity-reporting-bleu-scores/).

The character-based component of chrF++ gives evaluation a way to recognize overlap within words. The measure used by the paper also considers word sequences. This matters because differences in wording can take different forms. An output may share part of a written form with its reference, or it may reproduce the same short phrase. A character-sensitive score can register kinds of resemblance that a word match views more coarsely. Higher scores indicate better agreement under the measure. The character measure behind it is [chrF](https://md.research.elamur.ai/free/en/concepts/chrf/).

TER stands for translation edit rate. It estimates the amount of editing required to make an output match a reference under the metric’s rules. A lower value is preferable. An edit-based comparison is helpful alongside a measure of shared phrasing because it describes the distance to the reference in terms of changes. The resulting number remains a calculation on the texts. The study does not observe how long a legal translator would spend editing them or how difficult particular changes would be to detect.

The paper also reports ROUGE results. ROUGE-1 reflects overlap of individual units and ROUGE-2 of adjacent pairs. ROUGE-L considers a matching sequence whose elements appear in the same order, allowing gaps. These measures attend to different properties of the wording even when they are applied to the very same candidate and reference. A lead on one aspect of overlap need not guarantee a lead on the others. The paper cites the work that introduced the evaluation package [ROUGE](https://md.research.elamur.ai/free/en/papers/lin-2004-rouge-package-automatic-evaluation-summaries/).

BERTScore compares contextual representations of the candidate and reference. Its reported F1 value balances the coverage of the reference with how well the candidate’s content matches. METEOR also evaluates correspondence between a candidate and its reference, with ways of finding matches beyond a count of identical surface forms. These scores give additional perspectives on resemblance. The paper cites the work introducing [METEOR](https://md.research.elamur.ai/free/en/papers/banerjee-2005-meteor-automatic-metric-mt-evaluation/).

COMET is a learned translation evaluator. In the paper’s analysis it serves as another measure sensitive to meaning, alongside the scores based more directly on shared wording. The underlying work describes a neural approach to translation evaluation. Its reported value provides a different test of agreement from an overlap count, and a higher value is preferred in the paper’s setup. The method is [COMET](https://md.research.elamur.ai/free/en/papers/rei-2020-comet-neural-framework-mt-evaluation/).

All these measures score outputs against evidence from the evaluation material, and their scales differ. A high value on one cannot be compared numerically with a high value on another as though they were measuring the same quantity. The sensible comparisons are between systems evaluated with the same metric on the same material. Agreement in the ordering across quite different measures can support a broad reading of the result. It cannot reveal which legal errors occurred in individual sentences.

#### Results on the legal dataset

The biggest change within a named system is the difference between OPUS-MT before and after adaptation. Original OPUS-MT has a SacreBLEU score of 9.39 on the English–Hindi legal dataset in the comparison. After adaptation, OPUS-MT reaches 46.03. The scratch system has 37.77 on the same metric. The table’s other pretrained baselines, NLLB and IndicTrans2, record 23.72 and 10.87 respectively. The adapted system leads this comparison, and it also holds the top position on the other metrics in the same table.

SacreBLEU across systems on the English–Hindi legal dataset Legal fine-tuning puts OPUS-MT ahead of the scratch system and the unadapted baselines.

**The numbers**

| System or setting | SacreBLEU |
| --- | --- |
| OPUS-MT baseline | 9.39 |
| IndicTrans2 | 10.87 |
| NLLB distilled | 23.72 |
| Transformer trained from scratch | 37.77 |
| OPUS-MT fine-tuned (this paper) | 46.03 |

The chrF++ comparison yields the same ordering. The adapted OPUS-MT scores 70.59 on the legal data and the scratch system scores 60.88. The NLLB, IndicTrans2, and original OPUS-MT entries report 47.50, 42.36, and 27.66 respectively. This agreement adds evidence that the pattern appears in both the paper’s SacreBLEU measure and a measure responsive to character and word sequences.

TER gives the same order of preference, with lower values being better. The fine-tuned system’s 42.08 is the best TER in the legal-dataset comparison. The scratch system reaches 59.72, followed by NLLB at 63.29. IndicTrans2 has 81.25, and original OPUS-MT has 83.40. Under this metric, the adapted output needs less editing to match the reference than the other outputs in the comparison.

Translation edit rate across systems on the English–Hindi legal dataset Fine-tuned OPUS-MT has the lowest reference-based edit rate in the comparison.

**The numbers**

| System or setting | TER |
| --- | --- |
| OPUS-MT baseline | 83.40 |
| IndicTrans2 | 81.25 |
| NLLB distilled | 63.29 |
| Transformer trained from scratch | 59.72 |
| OPUS-MT fine-tuned (this paper) | 42.08 |

On BERTScore F1, the adapted system reaches 91.19 on the English–Hindi legal dataset. The scratch system has 88.37, followed by NLLB with 85.14 and IndicTrans2 with 81.21. Original OPUS-MT has 76.91. METEOR also puts the scratch system behind the adapted OPUS-MT and ahead of the unadapted baselines. The scores are 71.84 for fine-tuned OPUS-MT and 65.58 for the scratch system. NLLB reaches 45.32, IndicTrans2 reaches 41.78, and original OPUS-MT reaches 30.25.

The COMET ordering changes in the middle of the comparison. Fine-tuned OPUS-MT is still first, at 73.72 on the legal dataset. NLLB scores 67.25 and the scratch system scores 64.29. IndicTrans2 has 60.38, and original OPUS-MT has 50.80. The relative position of NLLB and the scratch system matters to the interpretation. The scratch system is closer to the task references by SacreBLEU and chrF++, while COMET places the NLLB output higher. That is a difference in measured performance under the respective criteria, with no direct judgment in the study of which output a legal reader would prefer.

COMET across systems on the English–Hindi legal dataset Fine-tuned OPUS-MT leads, and COMET places NLLB ahead of the scratch system.

**The numbers**

| System or setting | COMET |
| --- | --- |
| OPUS-MT baseline | 50.80 |
| IndicTrans2 | 60.38 |
| Transformer trained from scratch | 64.29 |
| NLLB distilled | 67.25 |
| OPUS-MT fine-tuned (this paper) | 73.72 |

The ROUGE results add another example of differences among metrics. Fine-tuned OPUS-MT reports 72.42 on ROUGE-1, 52.63 on ROUGE-2, and 69.05 on ROUGE-L. NLLB holds the next highest legal-dataset score on each, with 49.00, 26.31, and 45.78 respectively. The scratch system records 35.98 on ROUGE-1, 13.62 on ROUGE-2, and 35.69 on ROUGE-L. For comparison, original OPUS-MT records 36.30, 13.38, and 32.93 in that order. The scratch system edges ahead of original OPUS-MT on ROUGE-2 and ROUGE-L, while original OPUS-MT has the higher ROUGE-1. The favorable result for scratch training on SacreBLEU therefore does not describe every comparison available in the table.

Taken together, the legal-dataset results support a strong claim about the adapted system within this experiment. It leads whether the table is read through surface overlap, editing distance, or representation-based similarity. They support a more qualified description of the scratch system. It is the closest entry to adapted OPUS-MT on several measures and falls behind NLLB on COMET and the ROUGE measures. One way to read the table is to ask which findings survive changing the measure. OPUS-MT’s improvement after legal adaptation does. A single ordering of all the other systems does not.

#### The final shared-task standings

On the leaderboard, JUNLP reaches Rank 4 overall with AutoRank 58.90. Its final test scores are SacreBLEU 46.03, chrF++ 70.59, and TER 42.08. The same row gives a BERTScore F1 of 91.19, METEOR of 71.84, and COMET of 73.72. AutoRank is the overall ranking measure displayed in the leaderboard. The paper does not explain how it is calculated, so the individual columns provide a clearer account of where the entry stood on particular measures.

Team-SVNIT leads the overall leaderboard with AutoRank 61.62. It records 51.61 BLEU, 37.09 TER, and 76.36 COMET on the final evaluation. FourCorners records the highest reported chrF++ at 73.67 and the highest BERTScore F1 at 92.70. These values illustrate why the final position can be separated from the order in any individual column. Different entrants can lead different measures, and an overall position covers the evaluation more broadly than the BLEU column alone.

The same point applies to JUNLP. JUST-MEI has 46.67 in the final BLEU column and Lawgorithms has 46.27, both above JUNLP’s 46.03. Their AutoRank values, 58.79 and 58.26 respectively, place them below JUNLP’s 58.90 in the overall standings. JUNLP has a higher chrF++ and COMET score than either of those two entries, as well as a lower TER. The final position is therefore compatible with a lower BLEU than some teams placed beneath it overall. No rank gap should be read as a difference in BLEU without consulting the metric column.

The leaderboard supplies context for the study’s strongest system. Adaptation puts it well ahead of the comparators selected for the paper’s own experiment. Against the submissions in the shared task, it sits in the middle of the overall standings, with several teams scoring better on individual measures. The two observations describe different comparison groups. Together they show the size of the change within OPUS-MT and how the adapted system fared under the broader task evaluation.

### What the ablations show

The paper reports no formal component ablation. Instead, it compares OPUS-MT before and after legal fine-tuning, evaluates a separately configured Transformer trained on the legal corpus alone, and places those results alongside unadapted systems and the final task standings. The most informative comparison for explaining the result is the one that changes the legal training of the same starting translator.

#### What changes when OPUS-MT sees legal pairs

Original OPUS-MT and fine-tuned OPUS-MT are related by the intervention the authors care about. The adapted system starts from OPUS-MT and receives supervised training on the task’s legal sentences. The original system supplies the reference point for what that starting translator already does with this material. Consequently, the performance change can be attributed to the adaptation procedure as a whole in this evaluation. The legal training corpus, the optimization procedure, and the length policy are all part of that procedure.

The reported scores line up across several kinds of evaluation. The adapted output matches reference wording more closely, receives a better edit-based score, and shows greater correspondence under the learned evaluation measures. The agreement limits the plausibility of an explanation resting solely on one metric rewarding a narrow property of the output. It still leaves several mechanisms open. A system might improve because it acquires terminology, follows recurring syntax more successfully, or produces references’ preferred phrasing more often. The paper does not examine individual sentences closely enough to assign credit to any of those explanations.

The result concerns further training on this legal material. The study includes no matched OPUS-MT run given further English–Hindi training on general material. Such a comparison would address how much of the effect depends on the legal nature of the data as distinct from additional supervised training on the language pair. As designed, the experiment shows the value of the adaptation package that the authors used. Its strongest evidence is about the performance of OPUS-MT on the task after receiving that supervision.

#### What training from scratch establishes

The scratch result addresses whether legal examples alone can support a working English-to-Hindi translator in the selected compact architecture. The authors report successful convergence and a system that outperforms the original OPUS-MT on most listed measures. It also outperforms the unadapted multilingual baselines on several scores. This shows that the task training data contain enough signal for the chosen system to learn patterns useful on the evaluation. The scratch branch is thus evidence about what can be learned with legal supervision as the sole training data in one feasible configuration.

It is tempting to read the difference between scratch training and adapted OPUS-MT as an estimate of the contribution of pretraining. The setups vary in more than their initialization. They differ in the Transformer configuration, the reported length allowances, and the optimization details, and the paper specifies a SentencePiece vocabulary for the scratch system. The table can therefore answer which route performed better as implemented. It leaves the contribution of any single design choice unmeasured.

Nor does the scratch system’s lower result imply that domain learning failed. On the contrary, several metrics put it ahead of pretrained systems used without legal adaptation. The scratch route receives legal supervision that those baselines lack. Every comparison combines the resources and design choices associated with its systems. That is useful when choosing among the reported routes, and it limits the use of the table as a causal analysis of their components.

#### Where the metrics agree and disagree

The unadapted multilingual comparisons sharpen the point about what is being tested. Broad pretrained capability gives a system a basis for translation, and domain-specific training can supply examples more like the evaluation. In this paper, the scratch system gains a lead over NLLB on the principal overlap metrics and on translation edit rate. NLLB leads the scratch system on COMET and ROUGE. Task-specific training appears valuable by several measures, and the size and direction of a comparison can depend on what the evaluator rewards.

The combination of scores also helps avoid treating fluency and legal adequacy as interchangeable. The table shows how the outputs look to different automated measures. The paper interprets the adapted system’s cross-metric lead as evidence of improved fluency and semantic consistency. A stronger account of why the fine-tuning worked would require examining particular translations for term choice, omitted material, and changed relations between clauses. The experiment supplies no such error breakdown.

The leaderboard supplies external context within the same task, though it does not test the effect of training choices across teams. The paper does not document enough of the other submissions’ design and training procedures to explain their relative positions. A team’s higher metric score identifies a stronger result under that scoring rule. It gives no controlled evidence that one architectural feature or adaptation technique caused the lead. The controlled part of the argument remains closest to the before-and-after comparison within OPUS-MT.

### Limitations

#### Limits identified by the authors

The authors restrict their task-specific training to the shared-task corpus. They use no additional legal or general-domain corpus to augment it. For the fine-tuned route, this restriction concerns the data used in the study’s adaptation stage. OPUS-MT itself starts from earlier training. For the scratch route, the supplied legal data are the source of translation supervision. The authors identify limited exposure to a wider variety of language and difficult domain phenomena as a consequence of this design. A corpus can be sufficient for measurable gains on its own held-out material while covering only part of the writing encountered in legal practice.

The paper also identifies incomplete access to validation data during training. Participants could obtain feedback through interim submissions, and the authors lacked the complete source–target validation pairs needed to inspect how the system was learning. This constrained their ability to monitor overfitting and underfitting and to choose training settings systematically. Overfitting means learning properties peculiar to the training examples that carry over poorly to new examples. Underfitting means learning too little of the patterns available in the training data. The strong reported final score shows that the adapted system performs well by the benchmark measures. It gives little information about how sensitive that result is to different training decisions.

Sequence truncation is another stated constraint. The fine-tuning setup imposes a limit of 128 tokens on source and target sequences. The authors flag long statutory clauses, compound sentences, and structures involving cross-references as cases the limit could affect. The methods section separately gives a length of 256 tokens for the scratch system. The limits should be read in connection with the corresponding setups. The paper does not quantify how much material either limit removes or how often any lost material is legally significant.

The authors also note the absence of expert human evaluation. Automated scores can provide consistent comparisons across many held-out sentences, including measures intended to respond to meaning. An expert could investigate matters the scores leave unresolved, such as whether the translation preserves the function of a legal term, reflects the relationships between clauses, and can be interpreted in its legal context. The study supplies no measurements for those judgments. Claims of better correspondence with references are directly supported by the scores, while conclusions about usability in legal practice would require different evidence.

Finally, time and computing resources limited the range of experiments. The authors did not evaluate parameter-efficient adaptation, multilingual transfer, or alternative architectures in this study. The experiments therefore establish the reported systems as feasible choices in the authors’ setting. Questions about the relative cost of different fine-tuning methods, the effect of transfer between Indian languages, and the gains from changing the architecture remain open.

#### Limits of the evidence

The data are sentence pairs, and the study evaluates sentences. Legal interpretation may require knowing what a term meant earlier in a document or how a sentence refers to another passage. Even a translation that preserves the words of a reference in many individual sentences may vary in its terminology across a long document. The benchmark figures contain no direct measure of that behavior. This matters for interpreting the paper’s broader motivation. Producing a better Hindi sentence on a benchmark is relevant to legal access, while the ability to translate a complete judgment consistently is a separate empirical question.

The corpus description also leaves the distribution of document types unknown. The authors identify the missing metadata explicitly. For a reader, the consequence is that the overall scores cannot identify which kinds of legal writing drove the observed gain. A system might benefit particularly from recurring language in one class of documents, or its improvements might be spread throughout the corpus. Without source labels or a breakdown by text type, either pattern could yield the reported aggregate. The same limitation applies when asking how well the system handles a document type underrepresented in the task.

Sentence length presents a related uncertainty. The authors describe a wide span of lengths, and they report each system’s maximum sequence setting. The experiment gives no distribution of scores by length. It therefore cannot show whether the adapted system’s lead is similar for short sentences and for examples near its limit. The scores also leave open how much language was truncated and whether truncation fell on the source, target, or both in particular examples. Those details would determine whether the sentence pairs most affected by the cap present a disproportionate risk for translation.

Automatic metrics also compress different kinds of disagreement into single scores. An edit measure can count a small change that substantially alters the sense of an obligation. A larger change can be a harmless rephrasing. Scores sensitive to meaning give a broader assessment of alignment, but the paper presents no examples showing how those scores respond to consequential changes in this corpus. A high aggregate result can support a comparison while leaving the frequency and severity of those changes unknown. The reported results establish closeness to references under the metrics used.

The study’s tables contain point estimates. There are no reported uncertainty intervals, repeated training runs, or tests of how stable the ordering is under changes in initialization. The adapted and original OPUS-MT scores differ substantially across the listed measures, so the descriptive finding is clear for the runs shown. The paper does not establish statistical significance or quantify how precisely one should interpret the small separations among some leaderboard submissions. The digit precision shown in the table is the precision of the reported scores.

The abstract and conclusion interpret the results favorably for domain adaptation. A reader can accept the strong benchmark result while limiting the inference about generalization. The study offers no second legal corpus on which the same adaptation is evaluated, no document-level assessment, and no out-of-domain results after adaptation. The held-out shared-task result makes a case for effectiveness on the benchmark. It leaves open whether the changes preserve general translation performance and whether they carry to a legal corpus collected under different conventions.

The comparison also cannot isolate pretraining from the rest of the system design. The two experimental branches differ in their starting conditions and in their configuration. OPUS-MT’s own before-and-after comparison supplies a firmer statement about the effect of the supervised adaptation procedure. The scratch comparison supplies a firmer statement about what that specific compact setup achieves on its available data. Treating those as different claims preserves the scientific value of both results. It also explains why the evidence supports training-route comparisons more strongly than conclusions about the underlying components.

The only translation direction in this experiment is English into Hindi. The discussion of India’s linguistic diversity explains why research in other languages matters, and the results do not estimate how much training material another pair would need or how differently its legal conventions would affect adaptation. Likewise, expert validation mentioned in the related work concerns the resources discussed there. It cannot substitute for expert assessment of the translations produced by the systems in this experiment.

The broadest claim concerns access to justice. The paper measures translations against reference sentences and reports comparative performance. It does not measure what readers understood, whether anyone could act on a translated notice more effectively, or whether the outputs helped people navigate a legal process. The benchmark makes progress on the translation problem the authors identify. The link between that progress and changes in access remains a motivation for the research and an open question for evaluation.

### What came after

No subsequent study is documented as building on this comparison. MILPaC and the WMT25 Legal Domain Test Suite appear in the paper’s discussion of the research setting. They provide context for the benchmark and the availability of legal translation resources. The paper does not describe them as follow-ups to the OPUS-MT experiment.

The authors propose taking the work in two directions. One is to extend the experiments to other Indian languages. That would let researchers examine whether the advantage of adapting an existing translator carries over when the target language and available legal supervision change. The other is to evaluate parameter-efficient fine-tuning. The proposed comparison would ask how much reference agreement the system can retain when adaptation updates fewer parameters. Both are future directions in the paper, with no reported follow-up results.

What the experiment establishes for such comparisons is a benchmark result under ordinary fine-tuning and a separate result for learning from the legal pairs from scratch. They provide concrete points of comparison for a later evaluation that preserves the task conditions. Whether the same ordering holds for other languages, other legal corpora, or expert judgments remains open.

## Cite

Cite as Amit Barman, Atanu Mandal and Sudip Kumar Naskar. 2025. From Scratch to Fine-Tuned: A Comparative Study of Transformer Training Strategies for Legal Machine Translation. Proceedings of the 1st Workshop on NLP for Empowering Justice (JUST-NLP 2025).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2025.justnlp-main.20](https://doi.org/10.18653/v1/2025.justnlp-main.20)

```bibtex
@inproceedings{barman2025scratch,
  title = {{From Scratch to Fine-Tuned: A Comparative Study of Transformer Training Strategies for Legal Machine Translation}},
  author = {Amit Barman, Atanu Mandal and Sudip Kumar Naskar},
  booktitle = {Proceedings of the 1st Workshop on NLP for Empowering Justice (JUST-NLP 2025)},
  year = {2025},
  doi = {10.18653/v1/2025.justnlp-main.20},
  url = {https://doi.org/10.18653/v1/2025.justnlp-main.20}
}
```

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