Katkat

Explain ML and LLM fundamentals

SalesforceMachine Learning Engineer · Onsite

Last updated

This question evaluates understanding of core machine learning and LLM competencies including evaluation metrics (F1 vs accuracy), differences between classification and regression, fair benchmarking, inference pipeline bottlenecks and optimization, productionization of AI services, and modern LLM concepts such as the Transformer architecture, context engineering, retrieval-augmented generation, grounding, and guardrails. It is commonly asked in Machine Learning interviews to assess both conceptual understanding and practical application, probing the candidate's ability to reason about evaluation trade-offs, system-level performance constraints, and deployment considerations rather than only algorithmic detail.

You are interviewing for an AI Engineer role. Explain the following concepts and how they affect real systems:

  1. What is F1 score, and when is it more useful than accuracy?
  2. How do classification and regression differ in objective, output, and evaluation?
  3. How would you benchmark an ML or LLM-based system fairly?
  4. What are common bottlenecks in model inference pipelines, and how can you optimize latency and throughput?
  5. How would you productionize an AI agent service?
  6. For modern LLM applications, explain:
  • the Transformer architecture at a high level
  • context engineering
  • retrieval-augmented generation
  • grounding
  • guardrails

Answer with practical examples and trade-offs.