Main Point
Compare model families by their permitted information paths and outputs. Then evaluate the model’s objective and the application’s actual task; architecture alone establishes neither quality nor delivery terms.
Key Points
- A bidirectional encoder can form representations using allowed context on both sides within the supplied input.
- A causal decoder generates onward from its allowed prefix.
- An encoder–decoder generates using encoded source information and an available target prefix.
- A retrieval representation needs an appropriate objective and comparison rule.
- A category can be produced through a task-specific output component or as generated text, with different operating tradeoffs.
- Hosting and licensing are separate from architectural family names.
1. Start from the museum’s required output
The museum wants to retrieve archive descriptions, label visitor comments and translate a description. Retrieval returns relevant items under a comparison rule. Classification returns a category. Translation produces a new sequence in another language. These outputs suggest different tests rather than a single model ranking.
| Task | Required output | Evidence to inspect |
|---|---|---|
| Archive retrieval | Relevant item IDs and associated descriptions | Retrieval quality, language coverage, index compatibility |
| Comment classification | An allowed category | Classification quality, format validity, resource use |
| Translation | Target-language sequence | Accuracy, terminology, source fidelity, operating terms |
No museum model run or observed result is supplied here.
2. Represent the complete input with an encoder
For the teaching sentence “The bank beside the river is closed”, a bidirectional encoder can let the representation at “bank” use allowed context on both sides, including “river”. A task-specific output component can use representations for a classification task after appropriate adaptation.
BERT is a historical architectural case: its preprint appeared in October 2018 and its paper was published at NAACL in June 2019. Its bidirectional representations and masked-token objective use surrounding input. That differs from a causal next-token objective. The original masking procedure also includes replacement variations; the essential point here is prediction of selected input targets using bidirectional context.
An encoder’s general hidden state is not automatically a useful whole-item search vector. The representation, objective, comparison rule and corpus must work together. Check relevant retrieval results, dimensions, language coverage, cost and compatibility before changing an existing index.
3. Continue a prefix with a causal decoder
For the teaching prefix “The exhibition opens on”, the model computes possible next-token scores from the allowed prefix. A selected token extends that prefix for a subsequent prediction. Later generated tokens are unavailable at the earlier prediction. A causal mask preserves the restriction even when training processes multiple prediction positions together.
Brown and colleagues’ 2020 GPT-3 study used an autoregressive language model and supplied task instructions and demonstrations in text without task-example gradient updates. This historical method illustrates task conditioning through the input; it does not establish success on the museum’s examples or describe every contemporary conversational system.
A decoder can generate a category label as text. If an application permits exactly 1 of 3 labels, check the response against that set and measure classification quality. Compare its cost, output validity and reliability with an encoder plus a category-output component rather than inferring the winner from architectural labels.
4. Generate from encoded source information
An encoder–decoder translation path has 2 information sources at a target step:
- Representations of the complete supplied source description.
- The target prefix available before the next target token.
The encoder represents the source. The decoder’s causal self-attention uses the available target prefix. A separate encoder–decoder attention connection accesses the encoded source. Future target tokens do not become available through that source connection.
The original 2017 Transformer translation architecture makes these connections explicit. A translation or summarization task can also be implemented using another family. A task name alone does not establish architecture.
5. Inspect access and task fit separately
A decoder might be offered through a hosted service or suitable released weights. Its family name does not establish whether local deployment is permitted, technically feasible or operationally appropriate. Inspect licence conditions, resources and data-handling terms for the actual offering.
These text families are part of a wider ecosystem that also contains diffusion and multimodal combinations. The next course develops modality and generation families further. Do not transfer a causal-text description to every AI system.
6. Closing
Follow available information and the output object before choosing a task test. Evaluate retrieval independently of later prose, classification independently of chat availability, and translation against source fidelity. The next lesson explains how prediction errors provide a parameter-learning signal.
7. Learning Checks
Attempt each question before opening its explanation. Use the blank worksheet for your own diagram and comparison plan.
M14-L08-Q01
A museum already has a chat model and needs to retrieve relevant archive descriptions. Why is chat availability insufficient evidence that its representations are the right embedding model for this index? Identify the retrieval output and useful comparisons.
Your explanation: ____________________
Show explanation after your attempt
The retrieval stage needs representations and a comparison method that place relevant queries and archive items together. A chat model’s availability does not establish a suitable retrieval objective or compatibility with the stored index. Compare retrieval quality on representative queries, language coverage, representation dimensions, cost and index compatibility. A later fluent answer is a separate outcome from retrieving the right archive evidence.
M14-L08-P01
A clinic has a complete, non-identifying information leaflet and wants a translation. Sketch an encoder–decoder path: what does the encoder see, what may the decoder use at each target step, and what remains unavailable? Does the diagram establish hosting or permission for local use?
Your explanation: ____________________
Show explanation after your attempt
The encoder can represent the complete source leaflet. At each target step the decoder uses its available target prefix and the encoded source. Later target tokens remain unavailable through causal self-attention. These information paths do not establish hosting or licence rights. Inspect the particular offering, licence, deployment resources and operating controls; evaluate translation and terminology with a suitable reviewer. The sketch supplies no observed translation result.
Sources
- Devlin, Jacob, Ming-Wei Chang, Kenton Lee and Kristina Toutanova. *BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding*. Original preprint 11 October 2018; NAACL publication June 2019. Primary paper, abstract and section 3.1; publication record. Retrieved 30 October 2026. Historical bidirectional/masked-token method; no new retrieval result adopted.
- Brown, Tom B., and colleagues. *Language Models are Few-Shot Learners*. Original preprint 28 May 2020; v4, 22 July 2020. Primary paper, abstract and section 2; version history. Retrieved 30 October 2026. Historical autoregressive task-conditioning method; no benchmark ranking or museum result adopted.
- Vaswani, Ashish, and colleagues. *Attention Is All You Need*. Original preprint 12 June 2017; v7, 2 August 2023. Primary paper, sections 3.1 and 3.2.3. Retrieved 30 October 2026. Historical translation information paths; no claimed current product capability.