高频题型: 题型 典型问题 Array / HashMap Two Sum、Top K Frequent Sliding Window Longest Substring Heap Top K、Merge K Sorted Lists Graph / BFS / DFS Shortest Path、Connected Components Binary Tree Tree Traversal、LCA Dynamic Programming LIS、Coin Change Sorting Interval、Merge Sort Data Structure LRU Cache、Heap
重点是 Python 熟练度、算法复杂度、边界条件。
Meta 官方 ML 面试指南明确提到,初轮45分钟中有35分钟用于 Coding,通常需要解决两道算法题。 Cloudfront
ML Fundamentals(15%–25%) 这是传统 ML 知识考察。 知识点 典型问题 Regression Linear Regression、Logistic Regression Classification Precision、Recall、F1、ROC-AUC Regularization L1 vs L2 Model Evaluation Overfitting、Underfitting Optimization SGD、Adam、Gradient Descent Decision Trees Random Forest、XGBoost Clustering K-means Feature Engineering Missing Values、Normalization Deep Learning CNN、RNN、Transformer LLM Attention、Fine-tuning、RLHF
典型面试问题:
Explain bias-variance tradeoff.
Why does overfitting happen?
Why use cross-entropy instead of MSE for classification?
Explain L1 vs L2 regularization.
How does Adam optimizer work?
What is the difference between precision and recall?
Explain self-attention mathematically.
Why does Transformer use (1/\sqrt{d_k}) scaling?
ML System Design(15%–25%) 这是很多从普通后端转 MLE 的工程师最容易低估的部分。
典型题目: 设计题 主要考察 Design YouTube Recommendation Retrieval、Ranking Design TikTok Recommendation Feature、Ranking、Feedback Design Search Engine Embedding、Vector Search Design RAG System Chunking、Retrieval、Reranking Design LLM Inference Service GPU、Batching、KV Cache Design Feature Store Offline / Online Features Design Model Monitoring Drift、Metrics、Alerting Design Distributed Training Data Parallelism、AllReduce
例如:
Design a recommendation system for YouTube.
你需要解释:
数据如何收集?
如何构建用户和视频特征?
如何做 Candidate Retrieval?
如何做 Ranking?
如何处理实时用户反馈?
如何评价推荐质量?
如何部署和监控模型? 2026年 Microsoft 面试经验中,RAG、推荐系统、搜索、Fraud Detection 和 GenAI 评估系统都是反复出现的设计题。 LeetML
ML Coding / Implementation(8%–15%) 这类题目要求你真正写代码,而不只是解释算法。
例如:
Implement Logistic Regression using NumPy.
Implement K-means clustering.
Implement Softmax.
Implement Cross Entropy Loss.
Implement Backpropagation.
Implement Multi-head Attention.
Implement Precision / Recall.
Implement a simple PyTorch training loop. Microsoft 的公开面试经验中,K-means、Logistic Regression、2D Convolution 和 CNN 都有实际出现记录。 LeetML
Project Deep Dive(5%–15%) 面试官会深入问你以前做过的项目:
为什么选择这个模型?
为什么没有选择其他模型?
数据量是多少?
如何处理数据质量问题?
如何确定模型有效?
如何做 A/B Test?
模型上线后效果如何?
如果重新做一次,会如何改进? 对有工作经验的候选人,这一轮可能非常重要。
Statistics / Probability(5%–15%) 典型问题:
Bayes' Theorem
Conditional Probability
Expected Value
Normal Distribution
Hypothesis Testing
P-value
Confidence Interval
A/B Testing
Statistical Significance 纯 MLE 通常不如 Data Scientist 重视统计学;Applied Scientist 和 Research Scientist 会更深入。
Behavioral(5%–10%) 例如:
Tell me about a challenging project.
Tell me about a disagreement with your teammate.
Describe a production incident.
How did you handle a failed experiment?
How do you prioritize competing tasks?
三、ML Infrastructure / ML Platform 岗位的面试占比 这一部分我认为特别值得单独准备。
如果目标是 ML Infrastructure、ML Platform、Model Serving、Inference Engineer,面试结构会明显不同于传统 MLE。 建议重点准备的岗位方向 ML Infrastructure / ML Platform 岗位的建议备考时间分配,不是全行业统计值。
Backend / Distributed Systems
Behavioral
Coding / Algorithms
ML Coding / Python
ML Fundamentals
ML System Design / Infrastructure
Project Deep Dive
面试类别 建议占比 高频知识 ML System Design / Infrastructure 25% Training、Serving、Inference Backend / Distributed Systems 20% Kafka、Redis、RPC、Consistency Coding / Algorithms 20% LeetCode、Python ML Fundamentals 12% Transformer、Embedding、Loss ML Coding / Python 8% NumPy、PyTorch Project Deep Dive 10% 项目架构、性能优化 Behavioral 5% 协作、项目管理
这里最值得准备的是以下主题: 主题 高频面试问题 Distributed Training Data Parallelism vs Model Parallelism GPU GPU Memory、CUDA、GPU Utilization Model Serving How to design a model serving platform? Inference Continuous Batching、KV Cache Kubernetes GPU Scheduling、Autoscaling Feature Store Online vs Offline Feature Store Data Pipeline Kafka、Spark、Data Consistency Reliability Retry、Fault Tolerance、Checkpoint Model Monitoring Model Drift、Latency、Throughput LLM Infrastructure Quantization、Tensor Parallelism、vLLM