PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Software Engineering Fundamentals/TikTok

Explain Transformer, GPT vs BERT, and PR metrics

Last updated: Mar 29, 2026

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.

  • medium
  • TikTok
  • Software Engineering Fundamentals
  • Machine Learning Engineer

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.

Related Interview Questions

  • Design automated regression tests for an API - TikTok (easy)
  • Plan QA testing for a new feature - TikTok (easy)
  • Explain how Kafka works - TikTok (medium)
  • Answer core Python, CS, DB, and testing questions - TikTok (medium)
  • Explain C++ containers, segfaults, and virtual dispatch - TikTok (medium)
TikTok logo
TikTok
Dec 15, 2025, 12:00 AM
Machine Learning Engineer
Technical Screen
Software Engineering Fundamentals
1
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.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More TikTok•More Machine Learning Engineer•TikTok Machine Learning Engineer•TikTok Software Engineering Fundamentals•Machine Learning Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.