Baidu ERNIE interview questions and rounds
How the Baidu ERNIE interview works
What public sources report about each round. Numbers in brackets link to the sources at the bottom of this page.
- 1Written test (not all roles)From Baidu ERNIE
Baidu's 2027 campus announcement, as reproduced on WonderCV, lists weekly batch written tests from mid July to mid October and says not every role or candidate takes one; the system notice decides. Content is not described. This is company-wide campus hiring, not specific to the ERNIE team.
- 2Technical rounds with hand coding (LLM algorithm)60 to 70 min per roundSeveral reports
Baidu LLM algorithm interviews usually end each technical round with a coding problem. Reported problems include writing a tokenizer (one ERNIE team report says a BPE tokenizer), trapping rain water, longest increasing subsequence, maximum subarray, word search, longest common subsequence, plus cross-entropy and an SQL query. Most reports do not name the team; one compilation entry names the ERNIE model team, so treat this as Baidu's general LLM algorithm loop.
- 3Paper, internship and LLM fundamentals deep diveSeveral reports
Interviewers dig into the candidate's paper and internships, sometimes like a reviewer (why only small models, could it ship, why not pruning or quantization), then into LLM training: PPO versus GRPO, DPO behavior and its length problem, SimPO, ZeRO communication, reasoning, mid-training versus SFT versus RL, multimodal architecture, and KV cache for MHA, MQA and GQA with PagedAttention. One ERNIE round 1 in a prep guide centered on agent post-training: reward and verifier design, reward hacking, PPO and GRPO.
- 4Open system or agent designSeveral reports
Some rounds include an open design problem. Reported examples are an index and matching design for a dataset of tens of millions of road segments, designing an agent from scratch, and an ERNIE round 2 on agent systems (context and memory, the harness loop, skills); a prep guide also notes an open system design round 2 for an LLM R&D role.
- 5Third round (senior interviewer)about 40 minSeveral reports
Third rounds tend to step back from fundamentals. Reports describe a round 3 focused on internship data synthesis details, one on building and cleaning a fine-tuning dataset and on how the candidate uses and reviews AI coding tools, and a compilation entry describing a 40 minute director round on what the candidate brings, the industry outlook and a recently read paper.
- 6HR interviewFrom Baidu ERNIE
The campus announcement says interviews include technical, business and HR interviews. No loaded report describes what the HR round asks.
Team labeling: only one compilation entry (a GitHub collection of public reports) and a prep guide name the ERNIE model team. Other reports say Baidu LLM algorithm without a team, and the Nowcoder roundup labels its themes as ERNIE Bot but gives no rounds. Treat the loop as Baidu's general LLM algorithm engineer loop with ERNIE examples. The process rounds (written test, technical, business and HR interviews) come from Baidu's company-wide 2027 campus announcement as reproduced on WonderCV, since the talent.baidu.com page failed to load. One 2026 report notes long gaps between rounds (round 1 in August, round 2 in November).
Practice by round
- Turn logits into probabilities without overflowOnline Assessment · Coding · 10 min · runs in browserEasy
- Hand-write the merge step of a BPE tokenizerOnsite Coding · Coding · 25 min · runs in browserMedium
- Total water trapped between barsOnsite Coding · Coding · 20 min · runs in browserMedium
- Longest common subsequence, used to score ROUGE-LOnsite Coding · Coding · 20 min · runs in browserMedium
- Batched LM cross-entropy with an ignore indexOnsite Coding · Coding · 30 min · runs in browserHard
- Write scaled dot-product attention with a causal maskOnsite Coding · Coding · 20 min · runs in browserMedium
- Talk through longest increasing subsequence and maximum subarrayOnsite Coding · Concept · 20 minProMedium
- Defend your paper as if facing a tough reviewerResearch · Research · 25 minProHard
- During DPO, does the chosen response get more likely?Research · Concept · 15 minProMedium
- Why DPO makes answers longer, and how SimPO respondsResearch · Concept · 20 minProHard
- What does each ZeRO stage communicate?Research · Concept · 15 minProMedium
- How would you improve reasoning in a base model?Research · Research · 25 minProHard
- What do mid-training, SFT and RL each solve?Research · Concept · 15 minProMedium
- Compare KV cache size for MHA, GQA and latent attentionResearch · Coding · 10 min · runs in browserEasy
- Connect a vision encoder to an LLM: projector or Q-Former?Research · Concept · 15 minProMedium
- Design rewards and verifiers for agent post-trainingResearch · ML design · 30 minProHard
- Build and denoise a chain-of-thought dataset automaticallyResearch · ML design · 20 minProMedium
- Index tens of millions of road segments for fast matchingSystem Design · System design · 30 minProHard
- Design an agent from scratchSystem Design · System design · 25 minProMedium
- Design the harness loop, memory and skills for a long-running agentSystem Design · System design · 30 minProHard
- Walk me through the data synthesis work from your internshipHiring Manager · Research · 20 minProMedium
- How do you use and review AI coding tools?Hiring Manager · Behavioral · 10 minEasy
- What would you bring to the team, and what have you read lately?Hiring Manager · Behavioral · 10 minEasy
- Tell me about yourself and why BaiduBehavioral · Behavioral · 10 minEasy
Baidu ERNIE practice set by the numbers
Counts from BlogLLM's own question bank for Baidu ERNIE, not the company's real mix of questions. Updated 2026-12-05.
By round
By difficulty
By type
Sources
- wondercv.com wondercv.com/xiaozhao/baidu-2027-campus-recruitment-12048-35751c/
- nowcoder.com nowcoder.com/feed/main/detail/5cdcf06a54e3453ea7f3283a1f066418
- mj.mianlingai.com mj.mianlingai.com/position/大模型算法/
- github.com github.com/zchary1106/agent-interview-hub/blob/HEAD/百度/真实面经-网络实录.md
- nowcoder.com nowcoder.com/feed/main/detail/8cab51ef9458459595cf81fda43da279?toCommentId=21476368
- keepkeen.github.io keepkeen.github.io/blog/china-agent-interview-guide-2025-2026/
- mj.mianlingai.com mj.mianlingai.com/tag/大模型/
More companies
Practice questions written by BlogLLM based on publicly reported interview formats. Not affiliated with or endorsed by Baidu ERNIE; real questions vary.