A gradient-boosted model is accurate but too slow to score 50,000 requests per second. Which experiment balances accuracy and inference speed?
- Exam domain
- Machine Learning15% of the exam
- Difficulty
- Hard
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Machine Learning (15% of the exam)
Objective in the exam guide: Performing rapid experimentation to find the balance between model accuracy and inference performance
Balancing accuracy and inference performance is named.
Why D is the answer
Try fewer or shallower trees and GPU tree inference, measuring both
Rapid experiments over model size, plus GPU tree inference such as cuML's Forest Inference Library, find the point where accuracy stays acceptable and latency meets the target.
Remember: Experiment on size and inference engine; measure both.
How it works
Rapid experimentation trades model accuracy against inference speed with measured results.
In detail
- Measure accuracy and latency together.
- GPU tree inference speeds scoring.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Add more trees and deeper trees so the model is even more accurate on the hardest casesWrongMost tempting
Bigger models are slower.
Why it tempts: Accuracy feels like the only goal.
B. Switch to CPU scoring one request at a timeWrong
Single CPU requests cannot reach the target.
C. Remove the validation set to train fasterWrong
Validation is needed to measure accuracy.
D. Try fewer or shallower trees and GPU tree inference, measuring bothRight
Experiment on size and inference engine; measure both.
Use case
An illustrative scenario, not a real incident.
Illustrative: 300 shallow trees on GPU inference keep 99% of the accuracy at a tenth of the latency.
See it in different ways
flowchart TD
Q{"Meets latency target?"}
Q -->|"Yes, small accuracy loss"| A0["Ship smaller model"]
Q -->|"No"| A1["Try GPU inference or smaller still"]How to read this chart
- At "Meets latency target?": if "Yes, small accuracy loss", go to "Ship smaller model"; if "No", go to "Try GPU inference or smaller still".
flowchart LR S0["Baseline accuracy and latency"] --> S1["Shrink model"] --> S2["GPU inference"] --> S3["Compare"] --> S4["Choose"]
How to read this chart
- Read it in order: Baseline accuracy and latency, then Shrink model, then GPU inference, then Compare, then Choose.