liveBook · Manning

Foundational model

As explained in Generative AI in Action

A pretrained model is a machine-learning model that has already been trained on an initial dataset before being adapted to another task or dataset.

A foundational model is a broadly capable model pretrained on large amounts of data and usable as a starting point for many downstream tasks. Rather than building a separate model for each task, an enterprise can adapt a pretrained model to applications such as question answering, translation, or summarization. section 2.1 section 2.8.8

Pretraining helps a model learn general representations from data. Foundational models use deep learning and techniques such as self-supervised learning and transfer learning; their inputs can include text, images, audio, or 3D data. Large language models (LLMs) focus on language tasks and can often perform them with a suitable prompt, without task-specific training data. section 2.1 section 2.2

Choose an adaptation approach based on the task, available data, and resources:

  • Use a base LLM directly for text generation, but test whether its accuracy and reliability meet the task’s needs. A raw base model may not follow user instructions well. section 2.5 section 9.5.1
  • Use prompt engineering to steer output with explicit directions and examples. It does not fundamentally change the model’s capabilities. section 2.5 section 6.1.1
  • Fine-tune a pretrained model on task-specific data when further specialization is justified. This adjusts its weights but requires resources and can cause overfitting or loss of previously learned knowledge. section 2.8.8 section 2.5

Adapting for sentiment analysis

For a sentiment-classification task, start by testing whether a suitable prompt gives acceptable results. If specialization is needed, select a base model, curate representative labeled examples, and fine-tune it. Validate during training and evaluate on a separate test dataset before deployment. section 2.8.8 section 9.0 section 9.2.1

A model alone does not deliver enterprise value: it must be connected to business processes. Start with a small pilot and clear objectives, and establish governance for sensitive or harmful data. Evaluate candidate models for more than accuracy; HELM, for example, also considers robustness, fairness, bias, toxicity, and efficiency. section 1.7 section 12.3.3

How Generative AI in Action covers it

How deep it goes
Explains pretraining and adaptation choices, then outlines fine-tuning stages without mathematical derivation.
Examples
Uses GPT-3’s DaVinci as a base LLM and sentiment analysis as a fine-tuning task.
What you can do after
Evaluate and understand adaptation choices and their trade-offs for enterprise tasks.
How it connects
Connects foundational models to transfer learning, large language models, prompt engineering, fine-tuning, and model evaluation.

Also explained in

Compare how 21 books explain foundational model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Generative AI in Action. The section links point to the parts of the book it draws on.