Explain Transformer, GPT vs BERT, and PR metrics

Quick Overview

This question evaluates understanding of modern NLP model architecture and evaluation metrics, specifically Transformer block components, key distinctions between GPT and BERT including pretraining objectives and usage, and precision/recall interpretation, testing competencies in deep learning architecture knowledge, model selection reasoning, and metric-based evaluation within the Software Engineering Fundamentals domain for a Machine Learning Engineer role. It is commonly asked because it probes both conceptual understanding of architectures and pretraining paradigms and practical application of performance trade-offs—assessing conceptual understanding alongside practical application in threshold-based precision versus recall decisions.

Explain Transformer, GPT vs BERT, and PR metrics

Company: TikTok

Role: Machine Learning Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

Answer the following conceptual questions: 1. **Transformer architecture** - Describe the main components of a Transformer block and what each part does. 2. **GPT vs BERT** - Explain the key differences in architecture usage and pretraining objectives. - When would you prefer one over the other? 3. **Precision and recall** - Define precision and recall. - Give an example of how changing a threshold can trade off precision vs recall. - Mention at least one scenario where you prioritize precision and one where you prioritize recall.

Quick Answer: This question evaluates understanding of modern NLP model architecture and evaluation metrics, specifically Transformer block components, key distinctions between GPT and BERT including pretraining objectives and usage, and precision/recall interpretation, testing competencies in deep learning architecture knowledge, model selection reasoning, and metric-based evaluation within the Software Engineering Fundamentals domain for a Machine Learning Engineer role. It is commonly asked because it probes both conceptual understanding of architectures and pretraining paradigms and practical application of performance trade-offs—assessing conceptual understanding alongside practical application in threshold-based precision versus recall decisions.

|Home/Software Engineering Fundamentals/TikTok
TikTok logo
TikTok
Dec 15, 2025, 12:00 AM
mediumMachine Learning EngineerTechnical ScreenSoftware Engineering Fundamentals
5
0

Answer the following conceptual questions:

  1. Transformer architecture
    • Describe the main components of a Transformer block and what each part does.
  2. GPT vs BERT
    • Explain the key differences in architecture usage and pretraining objectives.
    • When would you prefer one over the other?
  3. Precision and recall
    • Define precision and recall.
    • Give an example of how changing a threshold can trade off precision vs recall.
    • Mention at least one scenario where you prioritize precision and one where you prioritize recall.
Loading comments...