Glossary

What is fine-tuning a neural network

Fine-tuning is additional training of a ready-made model on your examples so that it writes in your style or handles a narrow task better. Often you do not need it at all.

Monolith Studio editorial team2 min read

In plain words

Fine-tuning is a process in which a base model continues training on a small set of specially selected examples: a question and the desired answer, a source text and the required markup. As a result, the model's internal parameters change, not just the prompt.

The method works well when you need to lock in a manner of communication, a format or a skill: classify inquiries into your categories, write in the brand's tone, extract data from standard documents. But it is a poorer fit for company knowledge: prices change, and retraining the model every time is expensive.

How it works

First you assemble a set of examples, from a few hundred to thousands, and manually check their quality, because the model will copy errors in the data. Then you launch training at a provider or on your own hardware and compare the result with the original model on a separate test set.

After launch, the process is repeated as things change. You need to make sure the model does not "forget" general skills and does not start producing extra output. If the quality is sufficient, you can use a small fine-tuned model instead of a large one and cut costs.

Why a business owner needs it

For most small companies the right order is this: first a good instruction, then a knowledge base with search over it, and only then, if you need a specific style or bulk processing of uniform data, fine-tuning. Each next step is more expensive and needs more data.

Fine-tuning can pay off at high volumes, when a compact specialized model can run in place of an expensive general-purpose one. For one-off tasks and small flows, it is more often excessive.

Example from practice

A call center of a delivery service in Almaty received thousands of inquiries a day and sorted them into five categories by hand. A small model was fine-tuned on labeled examples, and it began classifying emails with accuracy close to an operator's, at a many times lower cost per request.

Common mistakes

  • Fine-tuning on low-quality data
  • Using fine-tuning instead of a knowledge base for changing information
  • Not checking the result on an independent sample
  • Loading personal data into training without consent
  • Starting with fine-tuning without trying instructions first

We'll name the price and timeline before we start

Tell us about your project and we'll fix the price and timeline in the contract. No extra charges along the way.

Discuss your project

FAQ

How much data is needed for fine-tuning?

For a narrow task, a few hundred quality examples are usually enough; for a complex one, thousands.

Which is better, RAG or fine-tuning?

RAG suits knowledge, fine-tuning suits style and skills. RAG is often enough.

Didn't find your question? Message us and we'll reply within one business day.

Ask a question

Read also

Need help with this topic?

Tell us about your task in a couple of words, and we will suggest where to start and honestly say what you do not need.

Call+7 708 758 18 60Message usWhatsApp
CityAktobe · we work across all of Kazakhstan

Get a quote

We'll reply within 15 minutes with an approximate price.