ByteDance Intern Machine Learning Engineer Interview Experience: LC Hard and a Deep RAG Dive, Got the Offer

ByteDance·Machine Learning Engineer·Aug 2025
Technical ScreenInternOfferhard

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.

Published

Curated and edited by PracHub

Practice the questions from this interview

Discussion

Sign in to join the discussion. The author is notified of every comment.

Loading comments…

Interview at a glance

Company
ByteDance
Role
Machine Learning Engineer
Level
Intern
Rounds
Technical Screen
Outcome
Offer
Difficulty
hard
Interview date
Aug 2025
Questions from this interview
4 questions

Related interview experiences

Explore more interview rounds, questions, and outcomes.

Browse interview experiences