{"content_id":"3nsdkw2hqn","slug":"foundation-model-pretraining-and-task-adaptation","locale":"en","schema_type":"TechArticle","category":"knowledge_base","category_name":"Knowledge Base","title":"Foundation Models: What They Are and How to Use Them by Task","summary":"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.","sponsorship_disclosure":null,"affiliate_disclosure":null,"commerce_disclosure":null,"author":{"name":"Injoys Editorial Team","url":"https://injoys.com/ko/about"},"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."],"content_markdown":"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.\n\nThis definition follows the report released by a Stanford research team in August 2021.\n\n## What does a model learn during pretraining?\n\nDuring 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.\n\nLearning 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.\n\n## How foundation models and generative AI differ\n\nFoundation 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.\n\n| Term | Defining criterion | Research example |\n|---|---|---|\n| Foundation model | Broad pretraining and the ability to handle many tasks | Using BERT for question answering and for judging how sentences relate in meaning |\n| 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 |\n| 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 |\n| Transformer | Neural network architecture that assigns weights to relationships between input elements | Used in translation research published in 2017 and later in BERT |\n\nFor 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.\n\n## Comparing prompting and fine-tuning\n\nWhen 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**.\n\n| Method | How the model is given the task | Changes to parameters | Example from research |\n|---|---|---|---|\n| 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 |\n| 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 |\n\nIn 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.\n\n## Examples by task\n\nModels 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.\n\n| Task | Input given to the model | Output |\n|---|---|---|\n| Translation with GPT-3 | The source text and an instruction specifying the target language | A sentence translated into another language |\n| 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 |\n| Photo classification with CLIP | A photo and phrases describing the candidate categories | The candidate that best matches the photo |\n| Image generation with a diffusion model | A description of the scene to create | An image generated to reflect the description |\n| 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 |\n\n## Identifying and counting objects in the same photo\n\nHow 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.\n\nThe 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.\n\n### Errors in services that use a shared model\n\nWhen 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.","content_html":"\u003cp\u003eA 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.\u003c/p\u003e\n\u003cp\u003eThis definition follows the report released by a Stanford research team in August 2021.\u003c/p\u003e\n\u003ch2\u003e\n\u003ca href=\"#what-does-a-model-learn-during-pretraining\" class=\"anchor\" id=\"what-does-a-model-learn-during-pretraining\"\u003e\u003c/a\u003eWhat does a model learn during pretraining?\u003c/h2\u003e\n\u003cp\u003eDuring 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.\u003c/p\u003e\n\u003cp\u003eLearning 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.\u003c/p\u003e\n\u003ch2\u003e\n\u003ca href=\"#how-foundation-models-and-generative-ai-differ\" class=\"anchor\" id=\"how-foundation-models-and-generative-ai-differ\"\u003e\u003c/a\u003eHow foundation models and generative AI differ\u003c/h2\u003e\n\u003cp\u003eFoundation 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.\u003c/p\u003e\n\u003cdiv class=\"overflow-x-auto\"\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eTerm\u003c/th\u003e\n\u003cth\u003eDefining criterion\u003c/th\u003e\n\u003cth\u003eResearch example\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Term\"\u003eFoundation model\u003c/td\u003e\n\u003ctd data-label=\"Defining criterion\"\u003eBroad pretraining and the ability to handle many tasks\u003c/td\u003e\n\u003ctd data-label=\"Research example\"\u003eUsing BERT for question answering and for judging how sentences relate in meaning\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Term\"\u003eLarge language model (LLM)\u003c/td\u003e\n\u003ctd data-label=\"Defining criterion\"\u003eAbility to process language after training on large amounts of language data\u003c/td\u003e\n\u003ctd data-label=\"Research example\"\u003eUsing GPT-3 to produce translations and answer questions\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Term\"\u003eGenerative AI\u003c/td\u003e\n\u003ctd data-label=\"Defining criterion\"\u003eAbility to create new text, images, or other outputs from an input\u003c/td\u003e\n\u003ctd data-label=\"Research example\"\u003eUsing a diffusion model to generate an image that matches a text description\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Term\"\u003eTransformer\u003c/td\u003e\n\u003ctd data-label=\"Defining criterion\"\u003eNeural network architecture that assigns weights to relationships between input elements\u003c/td\u003e\n\u003ctd data-label=\"Research example\"\u003eUsed in translation research published in 2017 and later in BERT\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/div\u003e\n\u003cp\u003eFor 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.\u003c/p\u003e\n\u003ch2\u003e\n\u003ca href=\"#comparing-prompting-and-fine-tuning\" class=\"anchor\" id=\"comparing-prompting-and-fine-tuning\"\u003e\u003c/a\u003eComparing prompting and fine-tuning\u003c/h2\u003e\n\u003cp\u003eWhen 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 \u003cstrong\u003e1,750 parameters\u003c/strong\u003e.\u003c/p\u003e\n\u003cdiv class=\"overflow-x-auto\"\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eMethod\u003c/th\u003e\n\u003cth\u003eHow the model is given the task\u003c/th\u003e\n\u003cth\u003eChanges to parameters\u003c/th\u003e\n\u003cth\u003eExample from research\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Method\"\u003ePrompting\u003c/td\u003e\n\u003ctd data-label=\"How the model is given the task\"\u003eInclude instructions or examples in the request\u003c/td\u003e\n\u003ctd data-label=\"Changes to parameters\"\u003eThe request does not change them\u003c/td\u003e\n\u003ctd data-label=\"Example from research\"\u003eShow GPT-3 translation examples, then ask it to translate a new sentence\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Method\"\u003eFine-tuning\u003c/td\u003e\n\u003ctd data-label=\"How the model is given the task\"\u003eTrain the model further on data suited to the task\u003c/td\u003e\n\u003ctd data-label=\"Changes to parameters\"\u003eAdjust some or all of them\u003c/td\u003e\n\u003ctd data-label=\"Example from research\"\u003eTrain BERT on questions and answer spans so it can extract answers from passages\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/div\u003e\n\u003cp\u003eIn 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.\u003c/p\u003e\n\u003ch2\u003e\n\u003ca href=\"#examples-by-task\" class=\"anchor\" id=\"examples-by-task\"\u003e\u003c/a\u003eExamples by task\u003c/h2\u003e\n\u003cp\u003eModels 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.\u003c/p\u003e\n\u003cdiv class=\"overflow-x-auto\"\u003e\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eTask\u003c/th\u003e\n\u003cth\u003eInput given to the model\u003c/th\u003e\n\u003cth\u003eOutput\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Task\"\u003eTranslation with GPT-3\u003c/td\u003e\n\u003ctd data-label=\"Input given to the model\"\u003eThe source text and an instruction specifying the target language\u003c/td\u003e\n\u003ctd data-label=\"Output\"\u003eA sentence translated into another language\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Task\"\u003eDocument question answering with BERT\u003c/td\u003e\n\u003ctd data-label=\"Input given to the model\"\u003eA passage and a question that can be answered from it\u003c/td\u003e\n\u003ctd data-label=\"Output\"\u003eThe span of the passage that contains the answer\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Task\"\u003ePhoto classification with CLIP\u003c/td\u003e\n\u003ctd data-label=\"Input given to the model\"\u003eA photo and phrases describing the candidate categories\u003c/td\u003e\n\u003ctd data-label=\"Output\"\u003eThe candidate that best matches the photo\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Task\"\u003eImage generation with a diffusion model\u003c/td\u003e\n\u003ctd data-label=\"Input given to the model\"\u003eA description of the scene to create\u003c/td\u003e\n\u003ctd data-label=\"Output\"\u003eAn image generated to reflect the description\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd data-label=\"Task\"\u003eMedical image segmentation with MedSAM\u003c/td\u003e\n\u003ctd data-label=\"Input given to the model\"\u003eA medical image and a box around the region of interest\u003c/td\u003e\n\u003ctd data-label=\"Output\"\u003eA mask showing the area occupied by the target\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\u003c/div\u003e\n\u003ch2\u003e\n\u003ca href=\"#identifying-and-counting-objects-in-the-same-photo\" class=\"anchor\" id=\"identifying-and-counting-objects-in-the-same-photo\"\u003e\u003c/a\u003eIdentifying and counting objects in the same photo\u003c/h2\u003e\n\u003cp\u003eHow 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.\u003c/p\u003e\n\u003cp\u003eThe 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.\u003c/p\u003e\n\u003ch3\u003e\n\u003ca href=\"#errors-in-services-that-use-a-shared-model\" class=\"anchor\" id=\"errors-in-services-that-use-a-shared-model\"\u003e\u003c/a\u003eErrors in services that use a shared model\u003c/h3\u003e\n\u003cp\u003eWhen 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.\u003c/p\u003e\n","tags":["AI","Generative AI","AI Development"],"faqs":[{"question":"Is there a minimum number of parameters for a foundation model?","answer":"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."},{"question":"Are all foundation models large language models?","answer":"Language models are one type of foundation model. Models that learn the relationship between images and text, such as CLIP, are also foundation models."},{"question":"What serves as the correct answer in self-supervised learning?","answer":"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."},{"question":"Does putting translation examples in a prompt count as fine-tuning?","answer":"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."},{"question":"What do generative AI and image classification models produce?","answer":"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."},{"question":"What does segmentation mean in medical imaging?","answer":"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."},{"question":"Do services perform the same if they use the same base model?","answer":"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":[{"url":"https://crfm.stanford.edu/report.html","title":"Stanford CRFM, On the Opportunities and Risks of Foundation Models","type":"source"},{"url":"https://arxiv.org/abs/2108.07258","title":"On the Opportunities and Risks of Foundation Models, report release and revision history","type":"source"},{"url":"https://arxiv.org/abs/1706.03762","title":"Attention Is All You Need","type":"source"},{"url":"https://arxiv.org/abs/1810.04805","title":"BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding","type":"source"},{"url":"https://arxiv.org/abs/2005.14165","title":"Language Models are Few-Shot Learners","type":"data_point"},{"url":"https://cdn.openai.com/papers/Learning_Transferable_Visual_Models_From_Natural_Language_Supervision.pdf","title":"Learning Transferable Visual Models From Natural Language Supervision","type":"source"},{"url":"https://arxiv.org/abs/2112.10752","title":"High-Resolution Image Synthesis with Latent Diffusion Models","type":"source"},{"url":"https://arxiv.org/abs/2304.12306","title":"Segment Anything in Medical Images","type":"source"},{"url":"https://arxiv.org/abs/2211.09110","title":"Holistic Evaluation of Language Models","type":"source"}],"images":[{"id":3745,"url":"https://injoys.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTU5MTYsInB1ciI6ImJsb2JfaWQifX0=--342ea5b351db94a783d10356c138faa8fe56867f/ai-ed7b443f.webp","is_representative":true,"generation_method":"ai_photo","license":"ai_generated","mime_type":"image/webp","width":1536,"height":1024,"translations":{"ko":{"alt":"태블릿에 빨간 자전거 사진이 나란히 떠 있고, 왼쪽엔 선택된 설명이, 오른쪽엔 자전거 두 대를 둘러싼 테두리가 보인다.","caption":"파운데이션 모델이 대상을 알아보는 능력과 개수를 세는 능력은 따로 평가해야 합니다.","description":null},"en":{"alt":"A tablet shows the same shot of red bicycles twice, with a caption selected on the left and two bikes boxed on the right.","caption":"A foundation model’s ability to recognize objects should be evaluated separately from its ability to count them.","description":null},"ja":{"alt":"タブレットに赤い自転車の写真が二つ並び、左では説明文が選択され、右では自転車2台が枠で囲まれている。","caption":"基盤モデルが対象の種類を見分ける性能と、数を数える性能は別々に評価する必要があります。","description":null},"es":{"alt":"Una tableta muestra dos veces la misma foto de bicis rojas: a la izquierda, un texto elegido; a la derecha, dos recuadros.","caption":"En un modelo fundacional, la capacidad de reconocer objetos debe evaluarse por separado de la capacidad de contarlos.","description":null},"id":{"alt":"Tablet menampilkan foto sepeda merah yang sama dua kali, dengan teks terpilih di kiri dan dua sepeda diberi kotak di kanan.","caption":"Kemampuan model fondasi untuk mengenali objek perlu dinilai secara terpisah dari kemampuannya menghitung jumlahnya.","description":null},"pt":{"alt":"Um tablet exibe duas vezes a foto de bicicletas vermelhas, com uma legenda à esquerda e duas bicicletas marcadas à direita.","caption":"A capacidade de um modelo de fundação de reconhecer objetos deve ser avaliada separadamente da capacidade de contá-los.","description":null},"zh-hant":{"alt":"平板並排顯示同一張紅色自行車照片，左側選中一則說明，右側框出兩輛車。","caption":"基礎模型辨識物件類別與計算物件數量的能力應分開評估。","description":null},"de":{"alt":"Ein Tablet zeigt dasselbe Foto roter Fahrräder zweimal: links mit ausgewähltem Text, rechts mit zwei umrahmten Rädern.","caption":"Bei einem Basismodell sollte man getrennt bewerten, wie gut es Objekte erkennt und wie gut es sie zählt.","description":null}}},{"id":3746,"url":"https://injoys.com/rails/active_storage/blobs/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTU5MjIsInB1ciI6ImJsb2JfaWQifX0=--dbe3c7808c8ab1127294007b6dc15d04f7699db6/ai-9d2dd160.webp","is_representative":false,"generation_method":"ai_semi","license":"ai_generated","mime_type":"image/webp","width":1536,"height":1024,"translations":{"ko":{"alt":"영상의학과 의사가 보는 모니터에 같은 복부 CT 단면이 나란히 있고, 왼쪽은 간 주변에 사각형이, 오른쪽은 간 영역에 청록색이 표시돼 있다.","caption":"파운데이션 모델은 새 콘텐츠를 생성하는 것뿐 아니라 기존 데이터에서 관심 영역을 구분하는 데도 쓰입니다.","description":null},"en":{"alt":"A radiologist compares two views of the same CT slice, one with a box around the liver and one with a cyan overlay.","caption":"Foundation models can identify regions of interest in existing data as well as generate new content.","description":null},"ja":{"alt":"放射線科医が同じ腹部CT断面を見比べている。左は肝臓の周囲に四角い枠があり、右は肝臓の領域が青緑色で示されている。","caption":"基盤モデルは新しいコンテンツの生成だけでなく、既存のデータから対象領域を切り分ける作業にも使えます。","description":null},"es":{"alt":"Una radióloga compara dos vistas del mismo corte de TC: una con un recuadro y otra con el hígado resaltado en cian.","caption":"Los modelos fundacionales sirven tanto para generar contenido nuevo como para delimitar regiones de interés en datos existentes.","description":null},"id":{"alt":"Radiolog membandingkan dua tampilan irisan CT yang sama: hati diberi kotak di kiri dan disorot biru kehijauan di kanan.","caption":"Model fondasi bisa menghasilkan konten baru maupun memisahkan bagian yang menjadi fokus dalam data yang sudah ada.","description":null},"pt":{"alt":"Uma radiologista compara o mesmo corte de TC em dois painéis: um com um quadro e outro com o fígado realçado em ciano.","caption":"Modelos fundacionais podem gerar conteúdo novo e também delimitar regiões de interesse em dados existentes.","description":null},"zh-hant":{"alt":"放射科醫師比對螢幕上同一張腹部電腦斷層切面，左側以方框圈出肝臟周圍，右側以青色標出肝臟範圍。","caption":"基礎模型不只能生成新內容，也能從既有資料中劃分出目標區域。","description":null},"de":{"alt":"Eine Radiologin vergleicht denselben CT-Schnitt: links mit einem Rahmen um die Leber, rechts mit türkis markierter Leber.","caption":"Basismodelle können nicht nur neue Inhalte erzeugen, sondern auch relevante Bereiche in vorhandenen Daten abgrenzen.","description":null}}}],"published_at":"2026-12-02T15:42:41+09:00","updated_at":"2026-12-02T15:42:41+09:00","license":"site_policy","license_url":"https://injoys.com/en/license","translation_status":"reviewed","translation_verification":{"method":"ai_cross_check","checked_at":"2026-12-02T15:42:02+09:00"},"available_locales":["ko","en","ja","es"],"data_locales":["ko","en","ja","es","id","pt","zh-hant","de"],"url":"https://injoys.com/en/articles/foundation-model-pretraining-and-task-adaptation"}