---
title: "Foundation Models: What They Are and How to Use Them by Task"
locale: en
category: knowledge_base
category_name: "Knowledge Base"
translation_status: reviewed
license: site_policy
license_url: https://injoys.com/en/license
author: "Injoys Editorial Team"
source_url: https://injoys.com/en/articles/foundation-model-pretraining-and-task-adaptation
published_at: 2026-12-02T15:42:41+09:00
---

# Foundation Models: What They Are and How to Use Them by Task

> A foundation model is an AI model pretrained on diverse data so it can serve as a starting point for many tasks. How you use and evaluate the same model depends on the task, whether it is translation, image classification, or answering questions about documents.

## Key Points

- What sets foundation models apart is the breadth of their training data and their ability to work across tasks.
- Self-supervised learning has the model predict part of the original data, reducing the need for people to label the correct answers.
- A prompt specifies the task in the input, while fine-tuning uses task data to change some or all of the model's parameters.
- Foundation models are used not only to create new content but also to match existing images with descriptions.
- Even when using the same photos, you should evaluate how well the model identifies object types separately from how well it counts objects.

A foundation model is an AI model pretrained on broad data so it can be used for many tasks. This reduces the need to train a model from scratch for each task. For example, you can use a single language model for translation, then change the instructions to have it answer questions.

This definition follows the report released by a Stanford research team in August 2021.

## What does a model learn during pretraining?

During pretraining, a model learns patterns it can later use for many tasks. BERT, released in 2018, masked parts of sentences and predicted the original wording from the surrounding context. The wording before masking served as the correct answer.

Learning from cues in the data itself in this way is called self-supervised learning. Large amounts of text can be used for training without someone writing the correct answer for each sentence. The BERT researchers used the context the model learned this way to find answers in passages.

## How foundation models and generative AI differ

Foundation models are defined by how broadly they can reuse what they have learned. Generative AI refers to the ability to create new outputs. A single model can belong to both categories.

| Term | Defining criterion | Research example |
|---|---|---|
| Foundation model | Broad pretraining and the ability to handle many tasks | Using BERT for question answering and for judging how sentences relate in meaning |
| Large language model (LLM) | Ability to process language after training on large amounts of language data | Using GPT-3 to produce translations and answer questions |
| Generative AI | Ability to create new text, images, or other outputs from an input | Using a diffusion model to generate an image that matches a text description |
| Transformer | Neural network architecture that assigns weights to relationships between input elements | Used in translation research published in 2017 and later in BERT |

For example, CLIP scores how well a photo matches a description. When classifying a photo, it picks the candidate description that best matches the photo. This is an example of using a foundation model without creating a new image.

## Comparing prompting and fine-tuning

When you give a model a new task, prompting leaves its internal values unchanged, while fine-tuning changes them. The internal values a model adjusts during training are called parameters. In the 2020 GPT-3 paper, the largest model had **1,750 parameters**.

| Method | How the model is given the task | Changes to parameters | Example from research |
|---|---|---|---|
| Prompting | Include instructions or examples in the request | The request does not change them | Show GPT-3 translation examples, then ask it to translate a new sentence |
| Fine-tuning | Train the model further on data suited to the task | Adjust some or all of them | Train BERT on questions and answer spans so it can extract answers from passages |

In the GPT-3 experiments, the translation examples served as context for that request. For the examples to keep influencing the next request, they must remain in the context. With fine-tuning, the values changed during training are saved and used for later inputs as well.

## Examples by task

Models in the same field can serve different purposes depending on what they output. In image tasks alone, a model might label a photo or mark the boundary of a particular region in an image. The table below shows what each task produces.

| Task | Input given to the model | Output |
|---|---|---|
| Translation with GPT-3 | The source text and an instruction specifying the target language | A sentence translated into another language |
| Document question answering with BERT | A passage and a question that can be answered from it | The span of the passage that contains the answer |
| Photo classification with CLIP | A photo and phrases describing the candidate categories | The candidate that best matches the photo |
| Image generation with a diffusion model | A description of the scene to create | An image generated to reflect the description |
| Medical image segmentation with MedSAM | A medical image and a box around the region of interest | A mask showing the area occupied by the target |

## Identifying and counting objects in the same photo

How well a model identifies the types of objects in a photo does not tell you how well it can count them. For example, matching a photo of a bicycle to the description “bicycle” is classification. To say how many bicycles are in the same photo, the model must distinguish each bicycle from the others.

The 2021 CLIP paper presented results for photo classification without additional training. The researchers reported that counting objects under the same conditions was difficult. For photo search, how well a photo matches the description is a more direct measure. For inventory counts, the difference from the actual quantity is more direct.

### Errors in services that use a shared model

When several services use the same underlying model, they can inherit its weaknesses. The Stanford report describes the tendency to rely on a shared model even for different uses as “homogenization.” HELM, a study evaluating language models, separately measured accuracy, whether performance held up when the wording changed, and other factors.

## FAQ

### Is there a minimum number of parameters for a foundation model?
The Stanford research team's definition sets no minimum number of parameters. The criteria are whether the model was trained on a broad set of data and whether it can be applied to multiple tasks.

### Are all foundation models large language models?
Language models are one type of foundation model. Models that learn the relationship between images and text, such as CLIP, are also foundation models.

### What serves as the correct answer in self-supervised learning?
Part of the original data can be selected and used as the correct answer. BERT predicted a masked expression in a sentence and then compared its prediction with the expression that was actually there.

### Does putting translation examples in a prompt count as fine-tuning?
Examples included in the input provide context the model uses when answering that request. Fine-tuning is when some or all of the model's parameters change through additional training.

### What do generative AI and image classification models produce?
An image generation model can create a picture that matches a description. When CLIP is used for image classification, it picks the description from a set of candidates that best matches an existing photo.

### What does segmentation mean in medical imaging?
It means identifying and marking the region of the image occupied by the object of interest. MedSAM's segmentation output is a mask that shows that region.

### Do services perform the same if they use the same base model?
Even when services share a base model, performance varies depending on the tasks they are given and the evaluation criteria. In the CLIP study, the ability to pick a description that matched an image did not carry over directly to counting objects in a photo.

## Sources

- [Stanford CRFM, On the Opportunities and Risks of Foundation Models](https://crfm.stanford.edu/report.html)
- [On the Opportunities and Risks of Foundation Models, report release and revision history](https://arxiv.org/abs/2108.07258)
- [Attention Is All You Need](https://arxiv.org/abs/1706.03762)
- [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://arxiv.org/abs/1810.04805)
- [Language Models are Few-Shot Learners](https://arxiv.org/abs/2005.14165)
- [Learning Transferable Visual Models From Natural Language Supervision](https://cdn.openai.com/papers/Learning_Transferable_Visual_Models_From_Natural_Language_Supervision.pdf)
- [High-Resolution Image Synthesis with Latent Diffusion Models](https://arxiv.org/abs/2112.10752)
- [Segment Anything in Medical Images](https://arxiv.org/abs/2304.12306)
- [Holistic Evaluation of Language Models](https://arxiv.org/abs/2211.09110)

## Images

![A tablet shows the same shot of red bicycles twice, with a caption selected on the left and two bikes boxed on the right.](https://injoys.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTU5MTYsInB1ciI6ImJsb2JfaWQifX0=--342ea5b351db94a783d10356c138faa8fe56867f/ai-ed7b443f.webp)
![A radiologist compares two views of the same CT slice, one with a box around the liver and one with a cyan overlay.](https://injoys.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTU5MjIsInB1ciI6ImJsb2JfaWQifX0=--dbe3c7808c8ab1127294007b6dc15d04f7699db6/ai-9d2dd160.webp)