AI Logic

Glossary

Fine-tuning

Updated:

A bottom-to-top flow diagram. On the left, pre-training trains a model on massive data (large amounts of text, ImageNet images, etc.) to produce a pre-trained model with general knowledge (BERT, GPT, CNNs, etc.). On the right is a small amount of task-specific data (sentiment analysis, question answering, new image classification, etc.). The two merge into "Fine-tuning" at the top center, which starts from the pre-trained model and adjusts it on the task data, yielding the "task-specific model" at the very top.

Description

Fine-tuning is the process of adapting a pre-trained model to a specific task. By reusing the knowledge an existing model already has, it adapts the model to new data, shortens training time, and achieves high performance. Fine-tuning usually starts from a pre-trained model. For example, natural language processing models such as BERT and GPT are first trained on massive amounts of text and then fine-tuned for specific tasks such as sentiment analysis or question answering. Likewise, CNN (convolutional neural network) models are often pre-trained on ImageNet and then fine-tuned for a specific image recognition task. This process turns "general knowledge" into "knowledge specialized for a particular task."

Use cases

Fine-tuning is widely used across many fields and tasks. The following cases are typical. In natural language processing (NLP), pre-trained models (e.g., BERT, GPT) are fine-tuned for document classification or named entity recognition to improve performance. In image recognition, it is common to fine-tune a CNN trained on ImageNet for a new image classification task, achieving high accuracy even with little data. In speech recognition, pre-trained speech models (e.g., Wav2Vec) are fine-tuned to a specific language or dialect to build a customized speech recognition engine. In recommender systems, a model pre-trained on user and item features is fine-tuned on new data to deliver personalized recommendations. Finally, in medical image analysis, a pre-trained model can be fine-tuned on new medical imaging data to provide highly accurate diagnostic support.

FAQ

Q. Why use fine-tuning?
A.

Because building on pre-trained knowledge makes it possible to reach high accuracy with only a small amount of data and to cut training time substantially.

Q. Which models is it used with?
A.

It is used with pre-trained models from many fields, such as BERT, GPT, ResNet, and Wav2Vec.

Q. In which fields is it applied?
A.

It is used in a wide range of fields, including natural language processing, image recognition, speech recognition, recommendation, and medical image analysis.