Own Weights

Fine-tuning for non-English documents and multilingual tasks

Fine-tuning an LLM for other languages: how training closes the accuracy gap on non-English documents, and when to translate first or extract natively.

Updated

Yes, fine-tuning an open-weight model on labeled examples in the target language usually closes part of the accuracy gap on non-English documents. The model learns the wording, date formats, number styles and terms in your own files, instead of guessing them from a prompt. It cannot add knowledge the base model never saw, so test it on your documents before you rely on it.

Why do LLMs lose accuracy outside English?

Most of the text a general model sees in training is in English, so its answers tend to be weaker when the documents are in another language. The gap shows up in specific places: rare vocabulary, contracts that mix two languages, local date and number formats, and terms that mean one thing in law and another in everyday speech. The size of the gap depends on the model and language, so measure it on your own documents. For how to build that test, see building a test set from your own data.

Should you translate first or extract in the original language?

Translate-then-extract puts a second model in the path. Translation changes the words, and many extraction jobs need the exact original text. If the answer must be a verbatim quote from the contract, a translated copy cannot be matched back to the source without extra work, and translation errors become extraction errors you cannot see.

Native extraction keeps the exact span from the original. It works best when you can label examples in the target language, because the model then learns that language directly, not through a translation. See LLM extraction accuracy.

Translation first can still make sense in two cases. You have very little labeled data in the target language. Or the output goes to an English-speaking reader who needs a summary, not quotes. In either case, check a sample of translations by hand.

Does fine-tuning help low-resource languages, and when is it the wrong choice?

It helps when you have labeled examples in that language. It helps less when you have only a handful, and it cannot teach a model a language it barely saw in pretraining. Before you start, answer two questions. Does the base model produce usable output in this language at all? How many labeled documents can you realistically get? If the first answer is no, training on a small set will not fix it. The data volume guide covers how the second answer changes the plan.

Fine-tuning is the wrong choice in other cases too. If your volume is low, a hosted API is simpler and the training work will not pay back. If your documents are mostly English with only a few exceptions, one general model may handle all of them. And if you cannot keep a labeled test set, you cannot tell whether training helped. Running the model in your own cloud account also means your team operates it, so plan for that work.

How do you fine-tune a model for Spanish documents?

Start with real Spanish documents from your own records. Translated English samples read differently from text written in Spanish, and a model trained on them learns the translation’s style. Label the documents the way a careful reviewer would, and cover the variety you will see in production. Regional terms, dates and amounts differ too, and so do mixed Spanish and English clauses.

Split the data by document, never by chunk. If one contract appears in both training and test, the score looks better than it is. Keep a Spanish test set that the model never trained on, and score the current model on it before you train anything.

Once the model is trained, it has to beat the current model on that test before you deploy it. If it does not, keep the current model and study the failures.

What do our public tests show for other languages?

Nothing yet: our public tests are English-only. Our trained models beat Claude on an English contract-clause exam and an English banking-intent test, so neither result tells you how a model does in Spanish or any other language. Full results.

Run the Spanish and translate-first questions above on your own data. The contract exam also measures extraction, not legal judgment. The model assists people who review its output. It is not legal advice, and it runs in your own environment under your own controls.

Price per 1,000 documents on the exam: our Accuracy tier $4.50, our Standard tier $3.54, Claude Haiku $4.95, and Claude Opus $154.49, with Claude at list price for the tokens it used. Per document, Claude Opus costs $0.155 and ours $0.0045. Per million tokens counted on the same text, ours cost $0.31 (Accuracy) and $0.24 (Standard), Claude Haiku $0.34, and Claude Opus $10.53.

Claude list prices are Opus at $4 per million input tokens and $20 per million output tokens, and Haiku at $0.10 input and $0.50 output for prompts up to 100K tokens. Anthropic’s Batch API is half price. For OpenAI, Google and others, check their current pricing pages.

One request at a time, our Accuracy tier writes about 90 output tokens per second and our Standard tier about 174. With 32 requests at a time, Standard handles 2.7x more documents an hour than Accuracy. Through the API, one request at a time on the same contract prompts, Claude Opus wrote about 114 output tokens per second and Claude Haiku about 200.

If you run a high-volume extraction task in another language, start with the free AI cost audit to see which calls are candidates. Then talk to us about a test on your own documents.

Questions

does fine-tuning help low-resource languages

Yes, if you can label enough documents in that language. A base model that produces little usable output in the language gives training very little to build on, so check that before you spend money on data.

translate then extract vs native extraction

When the output must be exact quotes from the source, extracting in the original language is usually the safer path. Translating first is most defensible when labeled data is scarce and the output is a summary for English readers.

fine-tune a model for Spanish documents

Use real Spanish documents from your own records and label them the way a careful reviewer would. Split by document, keep a Spanish test set the model never trained on, and only deploy if the new model beats the current one on it.

LLM accuracy in non-English languages

Accuracy usually drops for languages that are less common in training data, and it drops most on rare vocabulary and mixed-language text. The only reliable way to measure the drop for your task is to score the current model on a labeled set in that language.

multilingual document extraction AI

A multilingual extraction model is trained on labeled examples across the languages you process. Report scores per language rather than one average, because a strong overall number can hide a weak language.