T0 Big tech Baidu Round 2
Baidu AI Infra second round
Real Baidu AI Infra second-round interview questions covering training optimization
Training optimization
Theory - Transformer and model structure
- Fully describe the Transformer compute path from input tokens to output logits.
- Why does the FFN expand then shrink dimension? How does that design affect model capacity?
- How do MHA, MQA, and GQA differ in KV Cache size and compute efficiency at inference?
- At inference, why does KV Cache store only K and V, not Q?
- What is the core idea of RoPE? What limits show up in long-context settings?
Theory - Fine-tuning and alignment
- In Instruction Tuning with multi-turn dialogue data, how should the Loss Mask be designed?
- After SFT, if a model gets stronger on a specific task but weaker generally, what do you do?
- Why can LoRA’s low-rank factorization approximate full fine-tuning?
- If LoRA Rank is set poorly, what symptoms show up?
- After DPO training, model outputs get clearly longer — how do you handle that in a real system?
- After alignment, the model becomes too conservative and refuses often — how do you adjust training?
- What usually causes the “repeater” / regurgitation failure mode in large models?
Theory - RAG systems
- What does knowledge-base cleaning and construction look like? How does inconsistent data quality hurt RAG?
- How do you design document chunking? How do Chunk Size and Overlap affect recall quality and generation?
- The answer exists in the knowledge base but the system fails to retrieve the right docs — how do you debug?
- You retrieved the right docs but the generated answer is still wrong — how do you localize the issue?
- Recall often looks semantically similar but factually unrelated — how do you improve retrieval?
- When one question needs multiple documents, how should RAG handle it?
- How do you tell whether a RAG failure is in retrieval or generation?
Project deep dive
- Deep questions around project content.