Background: undergrad, fall 2025 campus recruiting, TikTok Singapore Machine Learning Engineer intern. One round of video technical interview. I already got the offer.
Coding:
LeetCode 2449. Minimum Number of Operations to Make Arrays Similar (Hard)
My approach: split by odd and even, sort each side separately and match them up one to one, sum the positive differences, then divide by 4.
Project deep dive:
We talked about the search/retrieval pipeline I built in my previous internship.
Fine-tuning questions: the difference between LoRA and full SFT and the trade-offs.
The input and output format of the fine-tuning data, and what loss I used.
ML basics:
Transformer architecture, with the focus on the attention mechanism and the math behind it (QK^T / sqrt(d), softmax, multi-head).
Self-supervised objectives for LLMs: masked LM vs causal LM.
RAG / retrieval:
How the retrieval module in RAG works.
Bi-encoder vs cross-encoder (generally bi-encoder for recall plus cross-encoder for rerank).
Vector embeddings and similarity measures (cosine / dot product / L2).
The time complexity of brute-force vector search (O(Nd) per query), and how to optimize it: ANN (HNSW, IVF, PQ), and roughly how a vector database is implemented.
Summary:
Be sure to prepare the loss and data details of every project on your own resume. If you have retrieval-related experience on your resume, the embedding / ANN part will get asked in a lot of depth.
Discussion
Loading comments…