A service classifies millions of short support messages per hour into ten categories. Which model type is usually the most efficient choice?
- Exam domain
- Model Deployment9% of the exam
- Difficulty
- Hard
- In this mock
- 5 questions on this domainPractise this domain
Why the exam asks this
Model Deployment (9% of the exam).
Objective in the exam guide: Analyze computational tradeoffs for model types (encoder, decoder, encoder-decoder) and optimize for memory and latency.
Model type drives serving cost.
Why B is the answer
A fine-tuned encoder-only model that outputs a class in one forward pass
Encoder-only models classify in a single forward pass, which costs far less than generating text token by token.
How it works
Encoder-only models suit classification.
Decoders generate one token per step, so cost grows with output length.
Pick the cheapest architecture that meets accuracy.
Clues in the question
The words that point to the answer, and what each one tells you.
- Millions of short messages, ten categories
- Classification at scale.
In detail
- Decoder generation cost grows with output tokens.
- Encoder-decoder adds decoder cost.
Side by side with look-alikes
| Model type | Cost per message |
|---|---|
| Encoder classifier | One forward pass |
| Decoder generating text | One pass per token |
| Encoder-decoder generating | Encoder plus decoding |
| Longest context | Unneeded memory |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A model with the longest context window availableWrong
Short messages do not need long context.
B. A fine-tuned encoder-only model that outputs a class in one forward passRight
Encoder-only models classify in a single forward pass, which costs far less than generating text token by token.
C. A large decoder-only model generating a paragraph per messageWrongMost tempting
Generation is slower and costlier per message.
Why it tempts: It is flexible. But generation per message wastes compute for a fixed label set.
D. An encoder-decoder model generating free textWrong
Free-text generation is unnecessary for ten labels.
In practice
- Use an LLM to label training data, then serve a small encoder classifier.