CNSLT ACADEMY / MODEL DEPLOYMENT AND SYSTEM DESIGN

Understanding AI Model Families

FOUNDATIONSBEGINNERFREE TEXT LESSONVIDEO 🔒 PRO

Distinguish model architecture, task, modality and deployment; recognise major model families; and understand why model choice depends on the task.

Understanding AI Model Families

##

  1. Four dimensions that are often confused

A model can be described by:

  1. Architecture: how the model is structured, such as encoder-only, decoder-only or encoder-decoder.
  2. Task: what it is designed or adapted to do, such as generation, classification, embedding or reranking.
  3. Modality: what information it accepts or produces, such as text, image, audio or video.
  4. Deployment and licence: how it is hosted and what usage rights and restrictions apply.

These dimensions are related but not interchangeable. “Open-weight” describes access to parameters, not a model architecture or a guarantee of open-source licensing.

##

  1. Transformer foundation

Many modern language models use the Transformer architecture. Attention mechanisms allow a model to weigh relationships between tokens in a sequence. Feed-forward layers and other components transform the representations. The original Transformer paper introduced an architecture based on attention rather than recurrence as the central sequence-processing mechanism.

##

  1. Common architecture families
  • Encoder-only: builds contextual representations of input. Often useful for classification, extraction and embeddings. BERT is a familiar example.
  • Decoder-only: predicts subsequent tokens and is widely used for generative language models. GPT-style models and many open-weight LLMs use this pattern.
  • Encoder-decoder: encodes an input and generates an output. T5 is a well-known text-to-text example.

Architecture alone does not tell you the exact quality, safety or suitability of a particular model.

##

  1. Specialised model types
  • Embedding model: maps text or other inputs into vectors used for semantic search, clustering or retrieval.
  • Reranker: scores candidate results for relevance and reorders them.
  • Classifier: assigns labels or categories.
  • Vision model: interprets images or video frames.
  • Speech/audio model: transcribes, classifies, understands or generates audio.
  • Multimodal model: handles more than one modality.
  • Generative LLM: generates text or structured outputs.

A production system can combine several model types. A retrieval-augmented assistant might use an embedding model to retrieve candidates, a reranker to order them and a generative model to compose an answer.

##

  1. Foundation vs specialised models

A foundation model is trained on broad data and can support many downstream tasks. A specialised model may be adapted or trained for a narrower task or domain. Specialisation can improve performance or efficiency for a defined task, but it does not automatically improve safety or generalisation.

##

  1. Open-weight vs open-source

Open-weight models make some or all trained parameters available. Open-source status depends on the licence and availability of the relevant source, data and rights. A model can have downloadable weights but still impose usage restrictions. Always review the actual licence, acceptable-use terms, training-data disclosures and redistribution conditions.

##

  1. Example: security operations assistant

A SOC workflow may use:

  • embeddings to find similar historical incidents
  • a reranker to prioritise relevant incidents
  • a classifier to categorise an alert
  • a generative model to summarise evidence
  • a human analyst to approve response actions

The model family should follow the task. Do not use a large generative model for every subtask merely because it is available.

##

  1. Practical exercise

For a security assistant, select a model type for semantic incident search, phishing classification, image-based evidence review and narrative incident summarisation. Explain the evidence needed before selecting a specific model.

##

  1. Knowledge check
  2. Are architecture and task the same thing?
  3. What is an embedding model used for?
  4. What does a reranker do?
  5. Does open-weight necessarily mean open-source?
  6. Why might a system use several model types?

Answer key:

  1. No.
  2. Vector representations for similarity and retrieval tasks.
  3. Re-scores and reorders candidate results.
  4. No.
  5. Different subtasks have different performance, cost and control requirements.

##

  1. Checklist
  • [ ] Define the task before selecting a model family.
  • [ ] Identify input and output modalities.
  • [ ] Separate architecture from task and deployment.
  • [ ] Review model licence and usage restrictions.
  • [ ] Evaluate each component in a multi-model pipeline.
  • [ ] Document limitations and fallback behaviour.

##

  1. Further reading
LEARNER FEEDBACK

Help improve this learning path.

Suggest a concept we should teach, or tell us what is unclear. No account is required. Email is optional and only for a reply. Do not include confidential or sensitive information.

COURSE PROGRESS0/29 complete
Not yet completed
CHECK YOUR UNDERSTANDING