A foundational model is a broad generative AI system trained on large-scale datasets for many downstream tasks. It may process language, visual, auditory, or time-series data rather than language alone. Pretraining gives the model learned patterns of syntax, semantics, and context before task-specific adaptation. section 3.1 section 1.2
Distinguish foundational models from nearby terms:
- A pretrained model has already learned parameters from extensive data, reducing the need to train a task model from scratch. section 1.2
- An LLM is a language-focused member of the broader foundational-model category. section 3.1
- An instruction-tuned or chat model is an LLM optimized to follow structured prompts and perform goal-directed tasks. section 3.1
- Zero-shot use applies existing knowledge to an unseen task, while few-shot use adapts that knowledge from a small task-specific dataset. section 1.3
Task adaptation
Use a pretrained transformer through Hugging Face for sentiment analysis: adapt it with labeled sentence pairs marked neutral, negative, or positive instead of training from scratch. Fine-tuning can often take only a few hours, although transformer training and use may require GPU resources. section 1.2 section 1.3
Table 3.1 Transformer architecture variants and their core capabilities and use cases
|
Architecture type
|
Primary capabilities
|
Typical use cases
|
|---|---|---|
|
Encoder–decoder
|
Sequence-to-sequence modeling
|
Machine translation, summarization, question answering
|
|
Decoder-only
|
Autoregressive generation, instruction following
|
Text generation, code synthesis, chat interfaces
|
|
Encoder-only
|
Representation learning, contextual embeddings
|
Text classification, semantic search, entity recognition
|
|
Embedding models
|
Learning dense or sparse vector representations
|
Retrieval-augmented generation, similarity search, clustering
|
|
MoE
|
Sparse expert routing, scalable compute efficiency
|
Efficient large-scale generation, multitask learning
|
Compare foundational-model implementations by architecture, capability, and use case, including encoder-only, decoder-only, encoder–decoder, embedding, and mixture-of-experts variants. section 3.1




















