# Educatum (Educatum AI) > Free, structured AI/ML & LLM engineering interview questions, mathematical foundations, system design resources, and curated study plans (https://www.educatum.com). Educatum organizes interview preparation into direct-answer technical cards, mathematical derivations, company-reported interview prompts, coding problem trackers, and industry directories. ## Core Navigation & Hubs - [Educatum Home](https://www.educatum.com/): Dual-track entry for AI/ML interview prep and learning AI from scratch. - [Start Here: AI/ML Interview & Learning Roadmaps](https://www.educatum.com/start-here/): Guided 2–4 week interview intensive and 10-week beginner learning track. - [Interview Questions Hub](https://www.educatum.com/interview-questions/): Central index of all AI, LLM, ML, company, and behavioral Q&A banks. - [Study Plans Hub](https://www.educatum.com/learn/): Structured learning tracks including AI/ML Pathway, GenAI by Hand, and Free AI Courses. - [Resources & Directories Hub](https://www.educatum.com/resources/): Hiring AI companies, AI tools, visual cheatsheets, and launch directories. - [About Educatum](https://www.educatum.com/about/): Editorial methodology, citation standards, and direct contact. - [Contacts & Community](https://www.educatum.com/community/): Discord server, study groups, newsletter, and mentorship exchange. ## Section Pages - [AI Engineering & LLM Interview Questions and Answers](https://www.educatum.com/interview-questions/ai-engineering/): In-depth AI engineer interview questions and answers covering RoPE, ALiBi, FlashAttention, PagedAttention, quantization, CLIP, and DPO alignment. - [LLM & GenAI Advanced Interview Questions](https://www.educatum.com/interview-questions/llm-genai/): 62 advanced LLM and generative AI interview questions covering transformers, Mixture of Experts, RLHF, embeddings, RAG evaluation, GANs, VAEs, and safety. - [Classic Machine Learning Interview Questions](https://www.educatum.com/interview-questions/machine-learning/): 103 classic machine learning interview questions and answers covering bias-variance, regularization, optimization, trees, SVMs, probability, and deep learning. - [Top AI Companies Interview Prompts: OpenAI & Frontier Labs](https://www.educatum.com/interview-questions/top-ai-companies/): Curated real coding, concurrency, distributed systems, and engineering prompts reported from OpenAI alongside Anthropic, DeepMind, Meta MSL, and NVIDIA deep dives. - [Engineering Behavioral Interview Questions & Frameworks](https://www.educatum.com/interview-questions/behavioral/): 30 engineering behavioral interview study cards with interviewer intent analysis, STAR/SMART/GROW frameworks, and sample technical responses. - [AI & ML System Design Interview Guide](https://www.educatum.com/ml-system-design/): Curated ML system design interview resources, Stanford CS 329S notes, production architecture patterns, and 470+ company engineering blogs. - [AI & ML System Design Engineering Blogs (470+)](https://www.educatum.com/ml-system-design/engineering-blogs/): Searchable archive of 470+ engineering blog posts and papers detailing how tech companies build production ML, search, ranking, and LLM systems. - [LeetCode Top Questions: Blind 75, Grind 75 & Top 100](https://www.educatum.com/leetcode/): Searchable Blind 75, Grind 75, and Top 100 coding interview problem list organized by difficulty and algorithmic pattern, plus Notion tracker guide. - [Educatum LeetCode Notion Template (Blind 75 & Grind 75)](https://www.educatum.com/leetcode/notion-template/): 229 curated LeetCode Blind 75, Grind 75, and Top 100 problems structured around Ebbinghaus spaced-repetition review intervals. - [GenAI by Hand — 5 Week Visual Study Plan](https://www.educatum.com/learn/genai-by-hand/): A 5-week step-by-step study plan based on Prof. Tom Yeh’s AI by Hand series covering matrix multiplication, self-attention, Transformers, RAG, and diffusion. - [Top 24 Free AI & ML Courses from Stanford, MIT & More](https://www.educatum.com/learn/free-ai-courses/): Human-curated directory of 24 free machine learning, deep learning, NLP, RL, and GenAI courses from Stanford, MIT, NYU, Columbia, and leading labs. - [The Ultimate AI/ML Interview Prep Playbook](https://www.educatum.com/learn/ai-ml-interview-prep-playbook/): 74 vetted books, papers, Transformer walkthroughs, math prep guides, coding drills, and system design resources to prepare for AI/ML interviews. - [AI/ML Pathway Part I: Fundamentals Review](https://www.educatum.com/learn/ai-ml-pathway/): Structured 5-week AI/ML fundamentals curriculum covering calculus, linear algebra, probability, classical ML, neural networks, and PyTorch. - [Curated AI Tools Directory (175 Tools)](https://www.educatum.com/resources/ai-tools/): Filter 175 AI tools across coding, audio, research, writing, productivity, and API platforms with summaries, pricing tiers, and capabilities. - [AI Rising Stars: Growing & Hiring AI Companies (161)](https://www.educatum.com/resources/ai-companies-hiring/): Track 161 AI startups and labs—including frontier model labs, infra platforms, and vertical AI teams—with industry tags, locations, and hiring status. - [Visual AI, Career & Book Summary Cheatsheets](https://www.educatum.com/resources/cheatsheets/): High-resolution visual cheatsheets covering AI product management roadmaps, core ML concepts, communication skills, and book takeaways. - [Top 375 Places to Launch & Promote Your AI Startup](https://www.educatum.com/resources/ai-startup-launch-directories/): Directory of 375 launch platforms, AI tool aggregators, newsletters, communities, and media outlets with cost, region, and domain authority. - [Educatum Picks Archive: Reports, Talks & Study Guides](https://www.educatum.com/picks/): Archived Educatum featured picks including Kimi K2 technical report, Mary Meeker’s 2025 AI Trends Report, Terence Tao interviews, and LLM Q&A PDFs. ## Company Hubs - [OpenAI Interview Questions](https://www.educatum.com/interview-questions/by-company/openai/) - [Anthropic Interview Questions](https://www.educatum.com/interview-questions/by-company/anthropic/) - [DeepMind Interview Questions](https://www.educatum.com/interview-questions/by-company/deepmind/) - [Meta MSL Interview Questions](https://www.educatum.com/interview-questions/by-company/meta-msl/) - [NVIDIA Interview Questions](https://www.educatum.com/interview-questions/by-company/nvidia/) ## Interview Questions Index - [How do you approach crafting a strategy?](https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-crafting-a-strategy/): Use the SMART framework to explain how you craft data-driven technical strategies. Interviewers test strategic thinking, planning, and execution mindset. - [How do you approach decision-making?](https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-decision-making/): Apply the 5 Whys framework to structure technical decision-making. Interviewers assess analytical thinking, sound judgment, and stakeholder alignment. - [How do you approach feedback?](https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-feedback/): Use the SBI framework to discuss how you receive and apply feedback. Interviewers look for growth mindset, communication maturity, and self-awareness. - [How do you approach innovation?](https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-innovation/): Frame innovation answers with IDEO Design Thinking. Interviewers assess creative problem solving, calculated risk-taking, and disciplined execution. - [How do you approach people management?](https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-people-management/): Use the GROW framework to explain your people management style. Interviewers evaluate coaching ability, team development, and leadership empathy. - [How do you build and maintain relationships?](https://www.educatum.com/interview-questions/behavioral/how-do-you-build-and-maintain-relationships/): Use the STAR framework to show how you build cross-team trust and partnerships. Interviewers test collaboration, communication, and influence skills. - [How do you handle ambiguity?](https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-ambiguity/): Apply the 5 Whys framework to structure responses about navigating ambiguity. Interviewers test adaptability, critical thinking, and decisive action. - [How do you handle conflict?](https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-conflict/): Use the SBI framework to walk through resolving technical or team conflict. Interviewers evaluate mediation, objective communication, and team dynamics. - [How do you handle difficult conversations?](https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-difficult-conversations/): Structure difficult conversation examples with the SBI framework. Interviewers evaluate empathy, direct communication, and conflict resolution. - [How do you handle missed deadlines?](https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-missed-deadlines/): Use the PAR framework to explain how you recover from missed deadlines. Interviewers evaluate accountability, proactive communication, and prevention. - [How do you handle pressure?](https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-pressure/): Apply the PAR framework to show composure and prioritization under pressure. Interviewers evaluate stress management, calm execution, and ownership. - [How do you handle resource constraints?](https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-resource-constraints/): Use the PAR framework to demonstrate delivering results under resource constraints. Interviewers assess resourcefulness, prioritization, and trade-offs. - [How do you identify problems?](https://www.educatum.com/interview-questions/behavioral/how-do-you-identify-problems/): Use the 5 Whys framework to explain how you proactively uncover root problems. Interviewers test analytical rigor, observation, and initiative. - [How do you manage technical teams?](https://www.educatum.com/interview-questions/behavioral/how-do-you-manage-technical-teams/): Use the GROW framework to describe leading engineering and cross-functional teams. Interviewers evaluate technical leadership, delegation, and growth. - [How do you manage work-life balance?](https://www.educatum.com/interview-questions/behavioral/how-do-you-manage-work-life-balance/): Frame work-life balance answers with the PAR framework. Interviewers evaluate sustainable habits, boundary setting, and reliable prioritization. - [How do you measure success?](https://www.educatum.com/interview-questions/behavioral/how-do-you-measure-success/): Use the SMART framework to explain how you define and track success metrics. Interviewers test goal setting, business alignment, and data fluency. - [How do you motivate others?](https://www.educatum.com/interview-questions/behavioral/how-do-you-motivate-others/): Use the STAR framework to show how you inspire and engage engineering teams. Interviewers evaluate leadership impact, empathy, and mentorship. - [How do you prioritize work?](https://www.educatum.com/interview-questions/behavioral/how-do-you-prioritize-work/): Use the SMART framework to explain how you prioritize competing engineering work. Interviewers evaluate organization, trade-off judgment, and alignment. - [Tell me about a significant challenge you overcame](https://www.educatum.com/interview-questions/behavioral/tell-me-about-a-significant-challenge-you-overcame/): Structure stories about overcoming tough technical challenges with STAR. Interviewers test resilience, root-cause problem solving, and lessons learned. - [Tell me about an ethical challenge](https://www.educatum.com/interview-questions/behavioral/tell-me-about-an-ethical-challenge/): Use the STAR framework to share how you navigated an ethical dilemma. Interviewers evaluate integrity, sound judgment, and professional values. - [Tell me about going above and beyond](https://www.educatum.com/interview-questions/behavioral/tell-me-about-going-above-and-beyond/): Use the STAR framework to highlight initiative beyond your assigned scope. Interviewers evaluate proactivity, ownership, and multiplier impact. - [Tell me about mentoring others](https://www.educatum.com/interview-questions/behavioral/tell-me-about-mentoring-others/): Use the STAR framework to describe mentoring engineers to greater autonomy. Interviewers test coaching structure, teaching clarity, and growth impact. - [Tell me about your biggest impact](https://www.educatum.com/interview-questions/behavioral/tell-me-about-your-biggest-impact/): Use the STAR framework to communicate your highest-impact engineering project. Interviewers test scope, technical leadership, and measurable outcomes. - [Tell me about your leadership experience](https://www.educatum.com/interview-questions/behavioral/tell-me-about-your-leadership-experience/): Use the PAR framework to illustrate your engineering leadership philosophy. Interviewers evaluate team empowerment, execution, and technical influence. - [What are your career goals?](https://www.educatum.com/interview-questions/behavioral/what-are-your-career-goals/): Frame career goal answers with the SMART framework. Interviewers assess ambition, realistic planning, and long-term alignment with the role. - [What are your development areas?](https://www.educatum.com/interview-questions/behavioral/what-are-your-development-areas/): Use the PAR framework to discuss a real growth area honestly. Interviewers evaluate self-awareness, growth mindset, and concrete improvement steps. - [What are your strengths?](https://www.educatum.com/interview-questions/behavioral/what-are-your-strengths/): Use the STAR framework to back up your top engineering strengths with evidence. Interviewers test self-awareness, role relevance, and proven impact. - [What questions do you have for me?](https://www.educatum.com/interview-questions/behavioral/what-questions-do-you-have-for-me/): Use the 3P (Product, People, Potential) framework to ask thoughtful interview questions. Interviewers evaluate preparation, curiosity, and strategic fit. - [What would be your first 90 days?](https://www.educatum.com/interview-questions/behavioral/what-would-be-your-first-90-days/): Structure your 90-day onboarding plan with the SMART framework. Interviewers evaluate strategic prioritization, listening first, and early wins. - [Why this company?](https://www.educatum.com/interview-questions/behavioral/why-this-company/): Use the 3P (Product, People, Potential) framework to explain why this company fits you. Interviewers test research depth, authenticity, and motivation. - [How do Prompting Paradigms evolve from simple Zero-Shot instructions to complex Tree-of-Thought search?](https://www.educatum.com/interview-questions/ai-engineering/how-do-prompting-paradigms-evolve-from-simple-zero-shot-instructions-to/): How prompting evolves from direct zero-shot and few-shot mapping to deliberate multi-step reasoning in Chain-of-Thought and Tree-of-Thought search. - [How do RoPE and ALiBi approach positional encoding for long-context generation, and what are their trade-offs?](https://www.educatum.com/interview-questions/ai-engineering/how-do-rope-and-alibi-approach-positional-encoding-for-long-context-generation/): How RoPE and ALiBi encode relative positions directly in attention, their long-context scaling methods (PI, YaRN), and architectural trade-offs. - [How do the phases of Pretraining, SFT, and Alignment shape LLM, and how does DPO simplify this pipeline?](https://www.educatum.com/interview-questions/ai-engineering/how-do-the-phases-of-pretraining-sft-and-alignment-shape-llm-and-how-does-dpo/): How Pretraining, SFT, and RLHF shape modern LLMs, and how Direct Preference Optimization (DPO) replaces the reward model and PPO loop. - [How does CLIP establish a joint multimodal embedding space, and what are its inherent trade-offs?](https://www.educatum.com/interview-questions/ai-engineering/how-does-clip-establish-a-joint-multimodal-embedding-space-and-what-are-its/): How CLIP learns a joint image-text embedding space via symmetric InfoNCE, its batch-size and compositional limits, and how SigLIP improves scaling. - [How does FlashAttention optimize self-attention, and what are its hardware trade-offs?](https://www.educatum.com/interview-questions/ai-engineering/how-does-flashattention-optimize-self-attention-and-what-are-its-hardware/): How FlashAttention uses SRAM tiling, online softmax, and backward recomputation to cut attention HBM IO complexity to Θ(N²d²/M), plus FA-2 and FA-3. - [How does Masked Language Modeling (MLM) loss work?](https://www.educatum.com/interview-questions/ai-engineering/how-does-masked-language-modeling-mlm-loss-work/): How Masked Language Modeling (MLM) trains bidirectional Transformers via the 80/10/10 corruption strategy, cross-entropy loss, and span masking. - [How does model quantization reduce inference bottlenecks, and what are the inherent trade-offs between precision and performance?](https://www.educatum.com/interview-questions/ai-engineering/how-does-model-quantization-reduce-inference-bottlenecks-and-what-are-the/): How model quantization cuts LLM memory-bandwidth bottlenecks, PTQ vs. QAT mechanics, SmoothQuant W8A8 outlier migration, and precision trade-offs. - [How does PagedAttention resolve KV Cache memory fragmentation, and what are its serving trade-offs?](https://www.educatum.com/interview-questions/ai-engineering/how-does-pagedattention-resolve-kv-cache-memory-fragmentation-and-what-are-its/): How PagedAttention eliminates KV cache memory fragmentation via fixed-size blocks and Block Tables, its CUDA trade-offs, and RadixAttention. - [How does Self-Supervised Learning solve the data scalability challenge in Foundation Models?](https://www.educatum.com/interview-questions/ai-engineering/how-does-self-supervised-learning-solve-the-data-scalability-challenge-in/): How Self-Supervised Learning eliminates human label bottlenecks using pretext tasks, contrastive InfoNCE, masked prediction, and BYOL/VICReg. - [What are the primary bottlenecks in auto-regressive LLM inference, and how do standard optimizations mitigate them?](https://www.educatum.com/interview-questions/ai-engineering/what-are-the-primary-bottlenecks-in-auto-regressive-llm-inference-and-how-do/): How LLM inference splits into compute-bound prefill and memory-bound decoding, and how KV caching, quantization, and PagedAttention mitigate them. - [What is Speculative Decoding, and how does it improve LLM inference throughput without changing model outputs?](https://www.educatum.com/interview-questions/ai-engineering/what-is-speculative-decoding-and-how-does-it-improve-llm-inference-throughput/): How Speculative Decoding speeds up LLM inference via draft-and-verify rejection sampling while preserving the exact target distribution. - [What is the fundamental innovation of the Transformer, and how does Self-Attention solve the "sequential bottleneck"?](https://www.educatum.com/interview-questions/ai-engineering/what-is-the-fundamental-innovation-of-the-transformer-and-how-does-self/): How the Transformer replaces sequential RNN recurrence with parallel self-attention, O(1) token path length, √d_k scaling, and multi-head subspaces. - [What is the Memory Hierarchy and why does it bottleneck AI workload scaling?](https://www.educatum.com/interview-questions/ai-engineering/what-is-the-memory-hierarchy-and-why-does-it-bottleneck-ai-workload-scaling/): How GPU memory hierarchy (SRAM, HBM, DRAM, NVLink) creates the Memory Wall in LLM workloads, explained via the Roofline Model and Little's Law. - [Why has LoRA become the dominant choice for Parameter-Efficient Fine-Tuning?](https://www.educatum.com/interview-questions/ai-engineering/why-has-lora-become-the-dominant-choice-for-parameter-efficient-fine-tuning/): How LoRA freezes pretrained weights and trains low-rank adapters A and B for zero-latency merging, VRAM savings, and QLoRA/DoRA extensions. - [Why has ReAct become a foundational prompting paradigm for LLM Agents?](https://www.educatum.com/interview-questions/ai-engineering/why-has-react-become-a-foundational-prompting-paradigm-for-llm-agents/): How ReAct interleaves Thought, Action, and Observation traces to ground LLM agents in external tools, curb hallucinations, and recover from errors. - [Why is Post-Training Quantization (PTQ) the standard paradigm for deploying extreme-scale LLMs?](https://www.educatum.com/interview-questions/ai-engineering/why-is-post-training-quantization-ptq-the-standard-paradigm-for-deploying/): Why Post-Training Quantization (PTQ) dominates LLM deployment, W4A16 vs. W8A8 trade-offs, and how LLM.int8() and SmoothQuant handle outliers. - [Can you articulate the distinctions between generative models, designed to produce novel data instances, and discriminative models, which aim to classify or categorize data?](https://www.educatum.com/interview-questions/llm-genai/can-you-articulate-the-distinctions-between-generative-models-designed-to/): Distinctions between generative models (learning p(x) or p(x,y) to synthesize samples) and discriminative models (learning p(y|x) to classify data). - [Compare and contrast the impact of using sparse (e.g., cross-entropy) and dense (e.g., mean squared error) loss functions in training language models.](https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-the-impact-of-using-sparse-e-g-cross-entropy-and-dense-e/): Compare sparse-target cross-entropy and dense MSE loss in language models: target representation, O(V) softmax compute, and gradient dynamics. - [Compare and contrast the use of L1 and L2 loss functions in the context of generative models. When might one be preferred over the other?](https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-the-use-of-l1-and-l2-loss-functions-in-the-context-of/): Compare L1 (MAE) and L2 (MSE) loss in generative models: conditional median vs. mean, edge sharpness, outlier robustness, and gradient behavior. - [Compare and contrast word embeddings and sentence embeddings. How do their applications differ, and what considerations come into play when choosing between them?](https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-word-embeddings-and-sentence-embeddings-how-do-their/): Compare word embeddings and sentence embeddings across granularity, polysemy, pooling methods, and applications in retrieval and NLP. - [Describe the concept of learning rate scheduling and its role in optimizing the training process of generative models over time.](https://www.educatum.com/interview-questions/llm-genai/describe-the-concept-of-learning-rate-scheduling-and-its-role-in-optimizing/): Role of learning rate scheduling, linear warmup, cosine decay, and two-timescale updates (TTUR) in stabilizing generative model and LLM training. - [Describe the fundamental components of a Generative Adversarial Network (GAN) and elaborate on the dynamic interplay between its generator and discriminator during the training phase.](https://www.educatum.com/interview-questions/llm-genai/describe-the-fundamental-components-of-a-generative-adversarial-network-gan/): Core GAN architecture and minimax training dynamics between the generator and discriminator, including Jensen-Shannon divergence and non-saturating loss. - [Discuss common metrics and approaches used to evaluate the quality of text generated by Large Language Models (LLMs).](https://www.educatum.com/interview-questions/llm-genai/discuss-common-metrics-and-approaches-used-to-evaluate-the-quality-of-text/): Overview of LLM text evaluation methods: perplexity, n-gram overlap (BLEU, ROUGE, METEOR), semantic BERTScore, LLM-as-a-Judge, and human evaluation. - [Discuss common regularization techniques used during the training of embeddings to prevent overfitting and enhance the generalization ability of models.](https://www.educatum.com/interview-questions/llm-genai/discuss-common-regularization-techniques-used-during-the-training-of/): Regularization techniques for embedding training: decoupled weight decay (AdamW), L1/L2 penalties, embedding dropout, L2 normalization, and early stopping. - [Discuss effective strategies for training generative models when the available dataset is limited in size.](https://www.educatum.com/interview-questions/llm-genai/discuss-effective-strategies-for-training-generative-models-when-the-available/): Strategies for training generative models on limited data: transfer learning, LoRA fine-tuning, DiffAugment/ADA, regularization, and KID evaluation. - [Discuss the challenges and strategies involved in generating cross-modal embeddings, where information from multiple modalities, such as text and image, is represented in a shared embedding space.](https://www.educatum.com/interview-questions/llm-genai/discuss-the-challenges-and-strategies-involved-in-generating-cross-modal/): Challenges and strategies for cross-modal embeddings: aligning heterogeneous modalities, symmetric InfoNCE loss, mitigating the modality gap, and Recall@K. - [Discuss the challenges related to overfitting in Large Language Models (LLMs) during training. What strategies and regularization techniques are effective in preventing overfitting, especially when dealing with massive language corpora?](https://www.educatum.com/interview-questions/llm-genai/discuss-the-challenges-related-to-overfitting-in-large-language-models-llms/): Understanding and preventing LLM overfitting: pre-training memorization vs. fine-tuning overfitting, deduplication, weight decay, LoRA, and early stopping. - [Discuss the concept of transfer learning in natural language processing and explain how pre-trained language models enhance various NLP tasks.](https://www.educatum.com/interview-questions/llm-genai/discuss-the-concept-of-transfer-learning-in-natural-language-processing-and/): How NLP transfer learning leverages pre-trained language models via frozen feature extraction, full fine-tuning, LoRA/PEFT, and in-context learning. - [Discuss the role of cross-attention in transformer-based encoder-decoder models and how it facilitates the generation of output sequences based on information from the input sequence.](https://www.educatum.com/interview-questions/llm-genai/discuss-the-role-of-cross-attention-in-transformer-based-encoder-decoder/): How encoder-decoder cross-attention aligns generated tokens with encoded inputs, including scaled dot-product math, source padding masks, and KV caching. - [Evaluating LLM Embeddings](https://www.educatum.com/interview-questions/llm-genai/evaluating-llm-embeddings/): Evaluating LLM embeddings with cosine similarity, Spearman's rho, retrieval metrics (MAP, MRR, NDCG@k), MTEB benchmarks, and anisotropy diagnostics. - [Explain some of the pre-training mechanisms used for Large Language Models (LLMs).](https://www.educatum.com/interview-questions/llm-genai/explain-some-of-the-pre-training-mechanisms-used-for-large-language-models-llms/): Core LLM pre-training objectives: Causal Language Modeling (CLM), Masked LM (MLM), Span Corruption, Fill-in-the-Middle (FIM), and Permuted LM (XLNet). - [Explain the application of curriculum learning in the training of generative models and discuss the benefits it offers.](https://www.educatum.com/interview-questions/llm-genai/explain-the-application-of-curriculum-learning-in-the-training-of-generative/): Curriculum learning in generative models: difficulty scoring, pacing functions, progressive growing (ProGAN), and LLM context-length/complexity schedules. - [Explain the concept of contextual embeddings. How do models like BERT generate contextual embeddings, and in what scenarios are they advantageous compared to traditional word embeddings?](https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-contextual-embeddings-how-do-models-like-bert-generate/): How BERT and Transformers generate dynamic contextual embeddings via self-attention, resolving polysemy compared to static word embeddings. - [Explain the concept of gradient clipping and how it contributes to the stability of the training process in generative models.](https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-gradient-clipping-and-how-it-contributes-to-the/): How global L2 gradient norm clipping prevents exploding gradients and stabilizes LLM, RNN, and generative model training without altering update direction. - [Explain the concept of masked language-image modeling and its role in training multimodal models.](https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-masked-language-image-modeling-and-its-role-in-training/): How masked language-image modeling (MLIM) masks input text tokens and image patches before joint multimodal fusion to learn cross-modal alignment. - [Explain the concept of Mixture of Experts (MoE) models and their potential benefits in the context of LLMs.](https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-mixture-of-experts-moe-models-and-their-potential/): Mixture of Experts (MoE) in LLMs: sparse token-level FFN routing, top-k gating, load-balancing auxiliary loss, and active FLOPs vs. memory trade-offs. - [Explain the concept of Reinforcement Learning from Human Feedback (RLHF) and its application in fine-tuning language models.](https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-reinforcement-learning-from-human-feedback-rlhf-and-its/): The 3-stage RLHF pipeline (SFT, Bradley-Terry reward model, and KL-regularized PPO), plus reward hacking mitigation and DPO/GRPO alternatives. - [Explain the concept of triplet loss in the context of embedding learning.](https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-triplet-loss-in-the-context-of-embedding-learning/): How triplet loss trains embedding spaces using anchor-positive-negative triplets, L2 normalization, margin formulation, and semi-hard negative mining. - [Explain the concept of Vision-Language Pre-training (VLP) and its significance in developing robust vision-language models.](https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-vision-language-pre-training-vlp-and-its-significance/): Vision-Language Pre-training (VLP) paradigms: dual-encoder contrastive (CLIP), multimodal fusion (ALBEF/BLIP), and generative VLM connectors (LLaVA). - [Explain the core principles of a Variational Autoencoder (VAE) and how it integrates latent variables into its architectural design.](https://www.educatum.com/interview-questions/llm-genai/explain-the-core-principles-of-a-variational-autoencoder-vae-and-how-it/): Core principles of Variational Autoencoders (VAEs): ELBO objective, diagonal Gaussian KL divergence, reparameterization trick, and posterior collapse. - [Explain the crucial role of positional encoding in transformer models and the specific issue it addresses in the context of self-attention operations.](https://www.educatum.com/interview-questions/llm-genai/explain-the-crucial-role-of-positional-encoding-in-transformer-models-and-the/): Role of positional encoding in Transformers: breaking self-attention's permutation equivariance using sinusoidal, learned, RoPE, and ALiBi schemes. - [Explain the fundamental concept of embeddings in machine learning and how they represent information in a more compact form compared to raw input data.](https://www.educatum.com/interview-questions/llm-genai/explain-the-fundamental-concept-of-embeddings-in-machine-learning-and-how-they/): How dense learned embeddings compress sparse high-dimensional categorical data into compact continuous vector spaces that preserve semantic similarity. - [Explain the mechanics of self-attention and how it allows models to weigh the importance of different parts of the input data relative to each other.](https://www.educatum.com/interview-questions/llm-genai/explain-the-mechanics-of-self-attention-and-how-it-allows-models-to-weigh-the/): Mechanics of scaled dot-product self-attention: Q/K/V projections, 1/sqrt(d_k) variance scaling, O(n^2 d) complexity, and bidirectional vs. causal masks. - [Explain the phenomenon of catastrophic forgetting in the context of Large Language Models (LLMs).](https://www.educatum.com/interview-questions/llm-genai/explain-the-phenomenon-of-catastrophic-forgetting-in-the-context-of-large/): Catastrophic forgetting in LLMs: shared-weight drift during continual fine-tuning, alignment tax, and mitigations via replay, LoRA, EWC, and KL bounds. - [Explain the phenomenon of mode collapse in the context of Generative Adversarial Networks (GANs) and outline strategies to address it during the training process.](https://www.educatum.com/interview-questions/llm-genai/explain-the-phenomenon-of-mode-collapse-in-the-context-of-generative/): Mode collapse in GANs: causes (minimax instability, mode-seeking loss), detection (FID, Recall, diversity), and fixes like WGAN-GP and PacGAN. - [Explain the purpose and benefits of using multi-head attention in transformer models.](https://www.educatum.com/interview-questions/llm-genai/explain-the-purpose-and-benefits-of-using-multi-head-attention-in-transformer/): Why Transformers use multi-head attention: parallel subspace projections, preserving FLOPs via d_k = d_model / h, and MQA/GQA KV-cache optimizations. - [Explain the role of cross-modal attention mechanisms in models like VisualBERT or CLIP. How do these mechanisms enable the model to capture relationships between visual and textual elements?](https://www.educatum.com/interview-questions/llm-genai/explain-the-role-of-cross-modal-attention-mechanisms-in-models-like-visualbert/): Cross-modal fusion across VisualBERT (single-stream self-attention), LXMERT/Flamingo (cross-attention), and CLIP (dual-encoder cosine dot product). - [Explain why simply increasing context length is not a straightforward solution for handling longer contexts in transformer models. What computational and memory challenges does it pose?](https://www.educatum.com/interview-questions/llm-genai/explain-why-simply-increasing-context-length-is-not-a-straightforward-solution/): Increasing transformer context length faces O(n^2) attention FLOPs, attention and KV-cache memory growth, and positional generalization limits. - [For tasks like image-text matching, how is the training data typically annotated to create aligned pairs of visual and textual information, and what considerations should be taken into account?](https://www.educatum.com/interview-questions/llm-genai/for-tasks-like-image-text-matching-how-is-the-training-data-typically/): Image-text matching datasets pair visual and textual inputs via human captions, filtered web alt-text, hard negatives, and in-batch contrast. - [Hallucination is a known issue in Large Language Models (LLMs). How can you evaluate and mitigate it?](https://www.educatum.com/interview-questions/llm-genai/hallucination-is-a-known-issue-in-large-language-models-llms-how-can-you/): Evaluating and mitigating LLM hallucinations using claim verification, faithfulness checks, retrieval-augmented generation, and calibrated alignment. - [Highlight the key differences between language models like GPT (Generative Pre-trained Transformer) and BERT (Bidirectional Encoder Representations from Transformers).](https://www.educatum.com/interview-questions/llm-genai/highlight-the-key-differences-between-language-models-like-gpt-generative-pre/): Key differences between GPT and BERT: causal decoder-only vs. bidirectional encoder-only architectures, pre-training objectives, and task strengths. - [How can pre-trained embeddings be leveraged for transfer learning in downstream tasks, and what advantages does transfer learning offer in terms of embedding generation?](https://www.educatum.com/interview-questions/llm-genai/how-can-pre-trained-embeddings-be-leveraged-for-transfer-learning-in/): Leveraging static and contextual pre-trained embeddings for transfer learning via feature extraction, full fine-tuning, and parameter-efficient adapters. - [How can reinforcement learning be integrated into the training of large language models, and what challenges might arise in selecting suitable loss functions for RL-based approaches?](https://www.educatum.com/interview-questions/llm-genai/how-can-reinforcement-learning-be-integrated-into-the-training-of-large/): Integrating reinforcement learning into LLM training via policy gradients, PPO, KL regularization, reward modeling, and preference optimization. - [How do attention mechanisms enhance the performance of vision-language models?](https://www.educatum.com/interview-questions/llm-genai/how-do-attention-mechanisms-enhance-the-performance-of-vision-language-models/): How self-attention and cross-attention align visual patches with text tokens to improve grounding and reasoning in vision-language models. - [How do attention weights obtained from the cross-attention mechanism influence the generation process in multimodal models? What role do these weights play in determining the importance of different modalities?](https://www.educatum.com/interview-questions/llm-genai/how-do-attention-weights-obtained-from-the-cross-attention-mechanism-influence/): How cross-attention weights dynamically route modality features during multimodal generation, and how masking and value norms shape attribution. - [How do models like CLIP and DALL-E demonstrate the integration of vision and language modalities?](https://www.educatum.com/interview-questions/llm-genai/how-do-models-like-clip-and-dall-e-demonstrate-the-integration-of-vision-and/): How CLIP uses symmetric contrastive learning and DALL-E models combine visual-textual conditioning to bridge vision and language. - [How do multimodal generative models address the issue of data sparsity in training?](https://www.educatum.com/interview-questions/llm-genai/how-do-multimodal-generative-models-address-the-issue-of-data-sparsity-in/): How multimodal generative models overcome data sparsity via cross-modal transfer, semi-supervised alignment, and latent posterior aggregation. - [How does overfitting manifest in generative models, and what techniques can be used to prevent it during the training process?](https://www.educatum.com/interview-questions/llm-genai/how-does-overfitting-manifest-in-generative-models-and-what-techniques-can-be/): How overfitting and memorization manifest in GANs, VAEs, and diffusion models, and regularization techniques like ADA, dropout, and deduplication. - [In a transformer-based sequence-to-sequence model, describe the primary functions of the encoder and decoder and how information flows between them during both training and inference.](https://www.educatum.com/interview-questions/llm-genai/in-a-transformer-based-sequence-to-sequence-model-describe-the-primary/): Roles of the encoder and decoder in sequence-to-sequence Transformers, covering self-attention, causal masking, cross-attention, and teacher forcing. - [In Generative Adversarial Networks (GANs), what is the purpose of incorporating gradient penalties into the loss function, and how do they contribute to addressing training instability?](https://www.educatum.com/interview-questions/llm-genai/in-generative-adversarial-networks-gans-what-is-the-purpose-of-incorporating/): Why GANs use gradient penalties like WGAN-GP and R1 to enforce Lipschitz smoothness, prevent saturation, and stabilize adversarial training. - [In loss functions like triplet loss or contrastive loss, what is the significance of the margin parameter?](https://www.educatum.com/interview-questions/llm-genai/in-loss-functions-like-triplet-loss-or-contrastive-loss-what-is-the/): Role of the margin parameter in triplet and contrastive losses for balancing intra-class compactness, inter-class separation, and embedding geometry. - [In multimodal language models, how is information from visual and textual modalities effectively integrated to perform tasks such as image captioning or visual question answering?](https://www.educatum.com/interview-questions/llm-genai/in-multimodal-language-models-how-is-information-from-visual-and-textual/): How multimodal language models integrate visual and textual information via visual token projection, Q-Formers, and gated cross-attention. - [In scenarios where an LLM encounters out-of-vocabulary words during embedding generation, propose strategies for handling such cases.](https://www.educatum.com/interview-questions/llm-genai/in-scenarios-where-an-llm-encounters-out-of-vocabulary-words-during-embedding/): Strategies for handling out-of-vocabulary words in LLM embeddings, from subword and byte-level BPE fallback to character n-grams and RAG. - [In what ways do conditional generative models diverge from their unconditional counterparts, and can you provide a practical scenario where a conditional approach would be advantageous?](https://www.educatum.com/interview-questions/llm-genai/in-what-ways-do-conditional-generative-models-diverge-from-their-unconditional/): How conditional generative models differ from unconditional ones in modeling p(x|y), conditioning mechanisms, classifier-free guidance, and use cases. - [Large Language Models often require careful tuning of learning rates. How do you adapt learning rates during training to ensure stable convergence and efficient learning for LLMs?](https://www.educatum.com/interview-questions/llm-genai/large-language-models-often-require-careful-tuning-of-learning-rates-how-do/): Adapting LLM learning rates via linear warmup, cosine and WSD decay schedules, AdamW decoupled weight decay, gradient clipping, and muP scaling. - [What are the unique challenges in training multimodal generative models compared to unimodal generative models?](https://www.educatum.com/interview-questions/llm-genai/what-are-the-unique-challenges-in-training-multimodal-generative-models/): Unique challenges in training multimodal generative models: modality imbalance, heterogeneous likelihoods, alignment errors, and joint evaluation. - [What challenges arise from the fixed and limited attention span in the vanilla Transformer model? How does this limitation affect the model's ability to capture long-term dependencies?](https://www.educatum.com/interview-questions/llm-genai/what-challenges-arise-from-the-fixed-and-limited-attention-span-in-the-vanilla/): Challenges of the vanilla Transformer's fixed context window: O(n^2) scaling, cross-chunk context fragmentation, and positional extrapolation limits. - [What is perceptual loss, and how is it utilized in image generation tasks to measure the perceptual similarity between generated and target images? How does it differ from traditional pixel-wise loss functions?](https://www.educatum.com/interview-questions/llm-genai/what-is-perceptual-loss-and-how-is-it-utilized-in-image-generation-tasks-to/): How perceptual loss uses pre-trained CNN feature maps instead of pixel-wise MSE/L1 to preserve semantic structure and perceptual sharpness in synthesis. - [What is quantization in the context of embeddings, and how does it contribute to reducing the memory footprint of models while preserving representation quality?](https://www.educatum.com/interview-questions/llm-genai/what-is-quantization-in-the-context-of-embeddings-and-how-does-it-contribute/): How scalar, binary, and product quantization compress embedding tables and accelerate vector retrieval while preserving semantic similarity. - [What limitations of RNNs are addressed by transformer models?](https://www.educatum.com/interview-questions/llm-genai/what-limitations-of-rnns-are-addressed-by-transformer-models/): How Transformers overcome RNN sequential bottlenecks, O(n) path lengths, and vanishing gradients via parallel self-attention, and their trade-offs. - [When dealing with high-cardinality categorical features in tabular data, how would you efficiently implement and train embeddings using a neural network to capture meaningful representations?](https://www.educatum.com/interview-questions/llm-genai/when-dealing-with-high-cardinality-categorical-features-in-tabular-data-how/): Efficiently embedding high-cardinality tabular features using sparse updates, feature hashing, frequency bucketing, sizing rules, and regularization. - [When dealing with large-scale embeddings, propose and implement an efficient method for nearest neighbor search to quickly retrieve similar embeddings from a massive database.](https://www.educatum.com/interview-questions/llm-genai/when-dealing-with-large-scale-embeddings-propose-and-implement-an-efficient/): Scaling embedding retrieval via HNSW, IVF-PQ, and LSH approximate nearest neighbor search, plus why k-d trees fail in high dimensions. - [When fine-tuning a pre-trained transformer for a specific NLP task using transfer learning, what strategies can be employed to ensure effective knowledge transfer, especially when dealing with domain-specific data?](https://www.educatum.com/interview-questions/llm-genai/when-fine-tuning-a-pre-trained-transformer-for-a-specific-nlp-task-using/): Effective domain-specific Transformer fine-tuning strategies: DAPT, gradual unfreezing, discriminative learning rates, LoRA/PEFT, and augmentation. - [When generating sequences with LLMs, how can you handle long context lengths efficiently? Discuss techniques for managing long inputs during real-time inference.](https://www.educatum.com/interview-questions/llm-genai/when-generating-sequences-with-llms-how-can-you-handle-long-context-lengths/): Handling long context lengths during LLM inference via KV caching, PagedAttention, GQA, sliding-window attention, attention sinks, and RoPE scaling. - [When training a generative model for image synthesis, what are common loss functions used to evaluate the difference between generated and target images, and how do they contribute to the training process?](https://www.educatum.com/interview-questions/llm-genai/when-training-a-generative-model-for-image-synthesis-what-are-common-loss/): Common loss functions for image synthesis across diffusion models, GANs, VAEs, and paired translators: diffusion MSE, hinge/BCE, L1/L2, and LPIPS. - [When training word embeddings, how can models be designed to effectively capture representations for rare words with limited occurrences in the training data?](https://www.educatum.com/interview-questions/llm-genai/when-training-word-embeddings-how-can-models-be-designed-to-effectively/): Designing word embedding models for rare words via subword n-grams (FastText), frequent-word subsampling, smoothed unigram sampling, and subword pooling. - [Why is incorporating relative positional information crucial in transformer models? Discuss scenarios where relative position encoding is particularly beneficial.](https://www.educatum.com/interview-questions/llm-genai/why-is-incorporating-relative-positional-information-crucial-in-transformer/): Why relative positional encodings (Shaw RPE, T5 bias, RoPE, ALiBi) enable shift invariance, length generalization, and segment recurrence in Transformers. - [Why might over-reliance on perplexity as a metric be problematic in evaluating Large Language Models (LLMs)? What aspects of language understanding might it overlook?](https://www.educatum.com/interview-questions/llm-genai/why-might-over-reliance-on-perplexity-as-a-metric-be-problematic-in-evaluating/): Why perplexity alone misleads LLM evaluation: sensitivity to tokenization, repetition loops, alignment tax, and blind spots on reasoning and factuality. - [Adam Optimizer](https://www.educatum.com/interview-questions/machine-learning/adam-optimizer/): Adam combines Momentum and RMSProp with bias-corrected gradient moments to compute adaptive per-parameter learning rates for training neural networks. - [Avoid overfitting in NN](https://www.educatum.com/interview-questions/machine-learning/avoid-overfitting-in-nn/): Mitigate neural network overfitting using L1/L2 weight decay, dropout, data augmentation, early stopping on validation data, and simpler architectures. - [Bagging VS boosting](https://www.educatum.com/interview-questions/machine-learning/bagging-vs-boosting/): Bagging trains high-variance learners in parallel on bootstrap samples to cut variance, while boosting trains weak learners sequentially to reduce bias. - [Batch size](https://www.educatum.com/interview-questions/machine-learning/batch-size/): Batch size sets the samples per gradient update, trading memory and GPU parallelism against gradient noise, learning rate scaling, and generalization. - [Bias and Variance](https://www.educatum.com/interview-questions/machine-learning/bias-and-variance/): Bias measures error from overly simple model assumptions, while variance measures sensitivity to training data fluctuations in the bias-variance tradeoff. - [Bias of linear regression](https://www.educatum.com/interview-questions/machine-learning/bias-of-linear-regression/): Linear regression is unbiased when linearity holds, but suffers high approximation bias and underfits whenever the true relationship is non-linear. - [Can logistic regression handle unbalanced classes?](https://www.educatum.com/interview-questions/machine-learning/can-logistic-regression-handle-unbalanced-classes/): Logistic regression handles class imbalance using class weights, resampling, decision threshold tuning, and metrics like PR-AUC and F1 instead of accuracy. - [Choosing k in k-means Clustering](https://www.educatum.com/interview-questions/machine-learning/choosing-k-in-k-means-clustering/): Choose k in k-means clustering using the Elbow method, Silhouette analysis, the Gap statistic, and domain needs to balance compactness and separation. - [Choosing k in k-Nearest Neighbors (k-NN)](https://www.educatum.com/interview-questions/machine-learning/choosing-k-in-k-nearest-neighbors-k-nn/): Select k in k-NN via cross-validation and feature scaling to balance low-k variance (overfitting) against high-k bias (underfitting) on unseen data. - [Comparing Two Classifiers: Logistic Regression vs. Support Vector Machines (SVM)](https://www.educatum.com/interview-questions/machine-learning/comparing-two-classifiers-logistic-regression-vs-support-vector-machines-svm/): Compare Logistic Regression (log loss, calibrated probabilities) and SVMs (hinge loss, maximum margin, kernel trick) for linear and non-linear tasks. - [Confusion matrix](https://www.educatum.com/interview-questions/machine-learning/confusion-matrix/): A confusion matrix cross-tabulates true vs. predicted classes (TP, TN, FP, FN) to compute precision, recall, specificity, accuracy, and F1-score. - [Count based VS Prediction models for word embeddings](https://www.educatum.com/interview-questions/machine-learning/count-based-vs-prediction-models-for-word-embeddings/): Compare count-based embeddings (PPMI, SVD, GloVe) built from global co-occurrence statistics against prediction-based Word2Vec using local context. - [DBSCAN](https://www.educatum.com/interview-questions/machine-learning/dbscan/): DBSCAN discovers arbitrary-shaped clusters and flags outliers via epsilon and minPoints density thresholds, without needing to specify k upfront. - [Derivation of Ridge and Lasso Regularization](https://www.educatum.com/interview-questions/machine-learning/derivation-of-ridge-and-lasso-regularization/): Derive Ridge regression's closed-form L2 solution via calculus and Lasso's sparse L1 estimator via subgradients, KKT conditions, and soft-thresholding. - [Difference between generative and discriminative model](https://www.educatum.com/interview-questions/machine-learning/difference-between-generative-and-discriminative-model/): Generative models learn the joint distribution P(X, Y) and can sample data, while discriminative models learn P(Y|X) or decision boundaries directly. - [Does NN fit data better than logistic regression?](https://www.educatum.com/interview-questions/machine-learning/does-nn-fit-data-better-than-logistic-regression/): Neural networks model non-linear boundaries unlike linear logistic regression, though logistic regression often generalizes better on small tabular data. - [Effect of k on variance and bias in KNN](https://www.educatum.com/interview-questions/machine-learning/effect-of-k-on-variance-and-bias-in-knn/): In k-NN, small k yields low bias and high variance (overfitting), while larger k averages more neighbors to reduce variance at the cost of higher bias. - [Effects of feature scaling on logistic regression](https://www.educatum.com/interview-questions/machine-learning/effects-of-feature-scaling-on-logistic-regression/): Feature scaling speeds up gradient-based logistic regression by conditioning loss contours and ensures L1/L2 regularization penalizes weights fairly. - [Entropy](https://www.educatum.com/interview-questions/machine-learning/entropy/): Shannon entropy quantifies average uncertainty or information content (in bits or nats) of a probability distribution and measures split impurity in trees. - [Evaluate k means](https://www.educatum.com/interview-questions/machine-learning/evaluate-k-means/): Evaluate k-means clustering without labels using WCSS, Silhouette score, Calinski-Harabasz, and Davies-Bouldin indices, or ARI/NMI with ground truth. - [Explain the two steps of EM algorithm?](https://www.educatum.com/interview-questions/machine-learning/explain-the-two-steps-of-em-algorithm/): The EM algorithm alternates between computing latent-variable expectations (E-step) and maximizing the expected log-likelihood (M-step) to reach local MLE. - [Exploding Gradient](https://www.educatum.com/interview-questions/machine-learning/exploding-gradient/): Exploding gradients occur when repeated Jacobian multiplications during backpropagation grow exponentially, destabilizing training; fix with clipping. - [Feature selection methods](https://www.educatum.com/interview-questions/machine-learning/feature-selection-methods/): Feature selection filters, wraps, or embeds selection into training (such as L1/Lasso) to remove redundant features, cut overfitting, and speed inference. - [Grid Search vs. Random Search](https://www.educatum.com/interview-questions/machine-learning/grid-search-vs-random-search/): Grid search evaluates every combination on a fixed hyperparameter mesh, while random search samples distributions and scales better when few axes matter. - [How does bagging work?](https://www.educatum.com/interview-questions/machine-learning/how-does-bagging-work/): Bagging trains parallel models on bootstrap samples drawn with replacement and aggregates via voting or averaging to reduce variance and overfitting. - [How does boosting work?](https://www.educatum.com/interview-questions/machine-learning/how-does-boosting-work/): Boosting trains weak learners sequentially, focusing each new model on prior errors or gradients and combining them into a low-bias strong learner. - [How does Cross Validation work?](https://www.educatum.com/interview-questions/machine-learning/how-does-cross-validation-work/): Cross-validation splits data into k folds, iteratively training on k-1 folds and validating on the held-out fold to estimate generalization reliably. - [How does KNN classification work?](https://www.educatum.com/interview-questions/machine-learning/how-does-knn-classification-work/): k-NN classification assigns a query point the majority or distance-weighted vote of its k closest training neighbors in scaled feature space. - [How does KNN regression work?](https://www.educatum.com/interview-questions/machine-learning/how-does-knn-regression-work/): k-NN regression predicts continuous targets by taking the uniform or distance-weighted average of the k nearest training neighbors' values. - [How is Naive Bayes classifier naive?](https://www.educatum.com/interview-questions/machine-learning/how-is-naive-bayes-classifier-naive/): Naive Bayes is called naive because it assumes all features are conditionally independent given the class label, simplifying likelihood estimation. - [How to avoid overfitting?](https://www.educatum.com/interview-questions/machine-learning/how-to-avoid-overfitting/): Prevent overfitting using more diverse training data, data augmentation, L1/L2 weight decay, dropout, simpler models, ensembles, and early stopping. - [How to choose number of features in random forest?](https://www.educatum.com/interview-questions/machine-learning/how-to-choose-number-of-features-in-random-forest/): Tune max_features in Random Forests via cross-validation or OOB error to balance tree decorrelation (variance reduction) against single-tree bias. - [Importance of feature selection](https://www.educatum.com/interview-questions/machine-learning/importance-of-feature-selection/): Feature selection keeps informative predictors while removing noisy or redundant features to cut overfitting, boost interpretability, and save compute. - [Initializing weights with 0s for NN?](https://www.educatum.com/interview-questions/machine-learning/initializing-weights-with-0s-for-nn/): Initializing neural network weights to zero creates exact neuron symmetry and dead zero gradients; use random Xavier or He initialization instead. - [Intuition of Gradient Boosting](https://www.educatum.com/interview-questions/machine-learning/intuition-of-gradient-boosting/): Gradient boosting builds an additive ensemble via functional gradient descent, fitting each tree sequentially to the loss's negative pseudo-residuals. - [k-means steps](https://www.educatum.com/interview-questions/machine-learning/k-means-steps/): K-means clusters data into k groups by initializing centroids, assigning points to the nearest centroid, and updating centroids until convergence. - [K-means vs Gaussian Mixture Models (GMM)](https://www.educatum.com/interview-questions/machine-learning/k-means-vs-gaussian-mixture-models-gmm/): Compare K-means hard clustering with Gaussian Mixture Models (GMM), covering soft probabilistic assignments, covariance shapes, and the EM algorithm. - [L1 VS L2](https://www.educatum.com/interview-questions/machine-learning/l1-vs-l2/): Compare L1 (Lasso) and L2 (Ridge) regularization penalties, their effects on weight sparsity and shrinkage, and when to choose each method. - [Learning Rate in Machine Learning](https://www.educatum.com/interview-questions/machine-learning/learning-rate-in-machine-learning/): Learn how the learning rate controls gradient descent step sizes, why extreme values hurt convergence, and how schedules and batch sizes interact. - [Linear Support Vector Machine (SVM)](https://www.educatum.com/interview-questions/machine-learning/linear-support-vector-machine-svm/): Understand how a Linear Support Vector Machine finds the maximum-margin hyperplane and uses soft margins with parameter C for non-separable data. - [Log Loss](https://www.educatum.com/interview-questions/machine-learning/log-loss/): Log loss (binary cross-entropy) evaluates probabilistic binary classifiers by heavily penalizing confident incorrect predictions. - [Logistic regression](https://www.educatum.com/interview-questions/machine-learning/logistic-regression/): Logistic regression models binary class probabilities via the sigmoid of a linear score, trained via MLE with interpretable log-odds weights. - [Loss function of logistic regression](https://www.educatum.com/interview-questions/machine-learning/loss-function-of-logistic-regression/): Logistic regression minimizes convex binary cross-entropy (log loss), which matches maximum likelihood estimation and avoids MSE's non-convexity. - [Loss function of SVM](https://www.educatum.com/interview-questions/machine-learning/loss-function-of-svm/): Support Vector Machines minimize regularized hinge loss to penalize margin violations and misclassifications while maximizing the separating margin. - [Machine Learning (ML) vs. Deep Learning (DL)](https://www.educatum.com/interview-questions/machine-learning/machine-learning-ml-vs-deep-learning-dl/): Compare traditional Machine Learning and Deep Learning across feature engineering, data scale, tabular vs. unstructured data, and compute tradeoffs. - [Methods to Avoid Overfitting](https://www.educatum.com/interview-questions/machine-learning/methods-to-avoid-overfitting/): Explore practical methods to prevent overfitting, including more training data, cross-validation, regularization, pruning, early stopping, and ensembles. - [Motivation of Recurrent Neural Networks (RNNs)](https://www.educatum.com/interview-questions/machine-learning/motivation-of-recurrent-neural-networks-rnns/): Recurrent Neural Networks process sequential data by maintaining a shared hidden state across time steps to capture temporal context and dependencies. - [Non-linear SVM](https://www.educatum.com/interview-questions/machine-learning/non-linear-svm/): Non-linear SVMs classify non-linearly separable data using kernel functions like RBF to compute inner products implicitly in high-dimensional spaces. - [Optimal k in k means](https://www.educatum.com/interview-questions/machine-learning/optimal-k-in-k-means/): Learn how to select the optimal number of clusters (k) in K-means using the Elbow Method (WCSS), Silhouette Score, and Gap Statistic. - [Precision, recall and F1 score](https://www.educatum.com/interview-questions/machine-learning/precision-recall-and-f1-score/): Understand Precision, Recall, and F1 score formulas, how they evaluate imbalanced classification models, and how to trade off FP vs. FN errors. - [Precision/recall tradeoff](https://www.educatum.com/interview-questions/machine-learning/precision-recall-tradeoff/): Understand why adjusting classification thresholds creates a precision-recall tradeoff and how PR curves guide threshold selection. - [Prior of Lasso and Ridge](https://www.educatum.com/interview-questions/machine-learning/prior-of-lasso-and-ridge/): Understand the Bayesian MAP priors behind Lasso and Ridge regression: a Laplace prior yields L1 sparsity while a Gaussian prior yields L2 shrinkage. - [Pros and cons of k-means](https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-k-means/): Review the strengths and limitations of K-means clustering, including scalability, initialization sensitivity, outliers, and cluster shape assumptions. - [Pros and Cons of Linear Regression](https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-linear-regression/): Explore the pros and cons of linear regression, including interpretability and closed-form speed versus linearity assumptions, outliers, and collinearity. - [Pros and Cons of Random Forest](https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-random-forest/): Review Random Forest strengths and limitations, including variance reduction, accuracy, poor extrapolation, memory footprint, and feature importance bias. - [Pros and Cons of Tanh Activation Function](https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-tanh-activation-function/): Compare pros and cons of the tanh activation function, including zero-centered (-1, 1) outputs, steeper gradients than sigmoid, and saturation limits. - [Pros and Cons of the Sigmoid Function](https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-the-sigmoid-function/): Examine the sigmoid activation function: probability outputs vs. vanishing gradients (max derivative 0.25) and non-zero-centered outputs. - [Random Forest](https://www.educatum.com/interview-questions/machine-learning/random-forest/): Random Forest reduces variance by averaging diverse decision trees trained on bootstrap samples with random feature subsampling at each split. - [Random forest VS Adaboost](https://www.educatum.com/interview-questions/machine-learning/random-forest-vs-adaboost/): Compare Random Forest (parallel bagging of deep trees reducing variance) with AdaBoost (sequential weighted boosting of shallow learners reducing bias). - [Relation between logistic regression and neural network?](https://www.educatum.com/interview-questions/machine-learning/relation-between-logistic-regression-and-neural-network/): Learn how logistic regression corresponds to a single-layer neural network with sigmoid activation and how hidden layers enable non-linear representations. - [relative-entropy VS cross-entropy](https://www.educatum.com/interview-questions/machine-learning/relative-entropy-vs-cross-entropy/): Understand the relationship between KL divergence (relative entropy) and cross-entropy, and why minimizing cross-entropy optimizes KL divergence. - [ReLU (Rectified Linear Unit)](https://www.educatum.com/interview-questions/machine-learning/relu-rectified-linear-unit/): Understand ReLU (max(0, x)), how it speeds up training and reduces vanishing gradients on positive inputs, and how dying ReLU happens and is mitigated. - [Ridge and Lasso](https://www.educatum.com/interview-questions/machine-learning/ridge-and-lasso/): Compare Ridge (L2) and Lasso (L1) regression objectives, closed-form solvability, coefficient shrinkage vs. sparsity, and handling of correlated features. - [RMSprop Optimizer](https://www.educatum.com/interview-questions/machine-learning/rmsprop-optimizer/): Understand the RMSprop optimizer, its exponentially weighted moving average of squared gradients, per-parameter scaling, and advantage over AdaGrad. - [ROC curve](https://www.educatum.com/interview-questions/machine-learning/roc-curve/): Understand ROC curves (TPR vs. FPR across thresholds), rank-based AUC interpretation, and when to prefer Precision-Recall curves on imbalanced data. - [Standardization VS Normalization](https://www.educatum.com/interview-questions/machine-learning/standardization-vs-normalization/): Compare standardization (z-score) and normalization (min-max scaling), their formulas, outlier sensitivity, data leakage rules, and model suitability. - [Steps of Principal Component Analysis (PCA)](https://www.educatum.com/interview-questions/machine-learning/steps-of-principal-component-analysis-pca/): Learn the steps of Principal Component Analysis (PCA): centering and scaling, covariance matrix, eigendecomposition, component selection, and projection. - [Stochastic Gradient Descent (SGD)](https://www.educatum.com/interview-questions/machine-learning/stochastic-gradient-descent-sgd/): Understand Stochastic Gradient Descent (SGD), how mini-batch sampling speeds up large-scale optimization, and why shuffling and LR decay matter. - [Supervised vs. Unsupervised Learning](https://www.educatum.com/interview-questions/machine-learning/supervised-vs-unsupervised-learning/): Compare supervised learning on labeled input-output pairs with unsupervised learning for discovering structure in unlabeled data, plus self-supervision. - [t-SNE VS PCA](https://www.educatum.com/interview-questions/machine-learning/t-sne-vs-pca/): Compare t-SNE and PCA across local vs. global structure preservation, non-linear manifold visualization, parametric out-of-sample projection, and scaling. - [Vanishing Gradient Problem](https://www.educatum.com/interview-questions/machine-learning/vanishing-gradient-problem/): Learn why gradients vanish exponentially in deep neural networks, how saturating activations trigger it, and how ReLU and skip connections mitigate it. - [What is a Language Model?](https://www.educatum.com/interview-questions/machine-learning/what-is-a-language-model/): Understand language models, autoregressive probability factorization, perplexity evaluation, and how n-gram, RNN, and Transformer models work. - [What is AUC - ROC Curve?](https://www.educatum.com/interview-questions/machine-learning/what-is-auc-roc-curve/): Understand the ROC curve and AUC score, how TPR and FPR trade off across thresholds, the ranking interpretation of AUC, and key imbalance caveats. - [What is backpropagation?](https://www.educatum.com/interview-questions/machine-learning/what-is-backpropagation/): Learn how backpropagation uses reverse-mode automatic differentiation and the chain rule to compute parameter gradients across neural network layers. - [What is batch normalization?](https://www.educatum.com/interview-questions/machine-learning/what-is-batch-normalization/): Understand how Batch Normalization standardizes mini-batch activations, smooths optimization landscapes, and differs between training and inference. - [What is density estimation in ML?](https://www.educatum.com/interview-questions/machine-learning/what-is-density-estimation-in-ml/): Learn how density estimation recovers probability density functions from data using parametric models, GMMs, histograms, and Kernel Density Estimation. - [What is dropout?](https://www.educatum.com/interview-questions/machine-learning/what-is-dropout/): Understand how dropout regularizes neural networks by zeroing random hidden activations during training and scaling kept units with inverted dropout. - [What is EM algorithm?](https://www.educatum.com/interview-questions/machine-learning/what-is-em-algorithm/): Learn how the Expectation-Maximization (EM) algorithm finds maximum likelihood estimates for latent-variable models by alternating E-steps and M-steps. - [What is GMM?](https://www.educatum.com/interview-questions/machine-learning/what-is-gmm/): Understand Gaussian Mixture Models (GMMs), how weighted Gaussian components model multimodal distributions, EM parameter fitting, and links to K-means. - [What is hierarchical clustering?](https://www.educatum.com/interview-questions/machine-learning/what-is-hierarchical-clustering/): Learn how agglomerative and divisive hierarchical clustering build dendrograms, how linkage criteria differ, and their quadratic time-space complexity. - [What is Inception Network in Deep Learning?](https://www.educatum.com/interview-questions/machine-learning/what-is-inception-network-in-deep-learning/): Understand the Inception (GoogLeNet) architecture, how parallel multi-scale filters with 1x1 bottlenecks cut FLOPs, and why Global Average Pooling is used. - [What is Inception-ResNet-V2?](https://www.educatum.com/interview-questions/machine-learning/what-is-inception-resnet-v2/): Learn how Inception-ResNet-v2 combines multi-scale Inception blocks with residual skip connections, residual scaling, and BatchNorm for faster training. - [What is kernel method?](https://www.educatum.com/interview-questions/machine-learning/what-is-kernel-method/): Understand kernel methods and the kernel trick, how Mercer kernels compute inner products in implicit feature spaces, and their sample-scaling tradeoffs. - [What is leaky ReLU?](https://www.educatum.com/interview-questions/machine-learning/what-is-leaky-relu/): Learn how Leaky ReLU mitigates the dying ReLU problem using a small negative slope, its piecewise derivative, and how it compares to ReLU and PReLU. - [What is regularization?](https://www.educatum.com/interview-questions/machine-learning/what-is-regularization/): Understand regularization in machine learning, how L1 and L2 penalties constrain model complexity to prevent overfitting, and how to tune them. - [What is relative entropy?](https://www.educatum.com/interview-questions/machine-learning/what-is-relative-entropy/): Learn what relative entropy (KL divergence) measures, its asymmetry and link to cross-entropy, forward vs. reverse KL behavior, and Python computation. - [What is ResNet?](https://www.educatum.com/interview-questions/machine-learning/what-is-resnet/): Understand ResNet, how identity skip connections solve deep network degradation and preserve gradient flow, and how residual blocks are built. - [What is t-SNE (t-distributed Stochastic Neighbor Embedding)](https://www.educatum.com/interview-questions/machine-learning/what-is-t-sne-t-distributed-stochastic-neighbor-embedding/): Learn how t-SNE visualizes high-dimensional data using Gaussian and Student-t neighbor distributions, perplexity tuning, and interpretation caveats. - [What is U-Net?](https://www.educatum.com/interview-questions/machine-learning/what-is-u-net/): Understand U-Net's symmetric encoder-decoder architecture, how skip concatenations preserve spatial localization for segmentation, and its Keras design. - [What is underfitting and overfitting?](https://www.educatum.com/interview-questions/machine-learning/what-is-underfitting-and-overfitting/): Learn the difference between underfitting (high bias) and overfitting (high variance), how to diagnose both from train/test error, and how to fix them. - [What Makes a Random Forest Random?](https://www.educatum.com/interview-questions/machine-learning/what-makes-a-random-forest-random/): Understand the two sources of randomness in Random Forests—bootstrap sampling (bagging) and random feature splits—and how decorrelation lowers variance. - [What's the motivation behind LSTM?](https://www.educatum.com/interview-questions/machine-learning/what-s-the-motivation-behind-lstm/): Learn why LSTMs were designed to solve vanishing gradients in standard RNNs using additive cell states and forget, input, and output gating mechanisms. - [Why 1x1 convolutional layer?](https://www.educatum.com/interview-questions/machine-learning/why-1x1-convolutional-layer/): Learn how 1x1 convolutions project channels, cut FLOPs and parameters as bottlenecks before 3x3 or 5x5 layers, and add cheap non-linear depth in CNNs. - [Why AUC is a Desirable Metric](https://www.educatum.com/interview-questions/machine-learning/why-auc-is-a-desirable-metric/): Understand why ROC-AUC is valued for threshold-independent ranking across imbalanced datasets, its probabilistic meaning, and when PR-AUC is preferable. - [Why does decision tree have high variance?](https://www.educatum.com/interview-questions/machine-learning/why-does-decision-tree-have-high-variance/): Learn why decision trees exhibit high variance due to greedy top-down splitting and noise memorization, and how pruning or bagging stabilizes them. - [Why doesn't MSE work with logistic regression?](https://www.educatum.com/interview-questions/machine-learning/why-doesn-t-mse-work-with-logistic-regression/): Learn why MSE fails for logistic regression: sigmoid turns MSE non-convex and crushes gradients on confident errors, unlike convex log loss. - [Why is bias used in NN?](https://www.educatum.com/interview-questions/machine-learning/why-is-bias-used-in-nn/): Understand why neural networks use bias terms to shift affine hyperplanes off the origin, enable logic gates like AND, and when BatchNorm replaces bias. - [Why is L1 supposed to lead to sparsity than L2?](https://www.educatum.com/interview-questions/machine-learning/why-is-l1-supposed-to-lead-to-sparsity-than-l2/): Learn why L1 regularization induces exact sparsity while L2 only shrinks weights smoothly, using diamond vs. circle geometry and subgradient KKT math. - [Why is non linear activation function needed?](https://www.educatum.com/interview-questions/machine-learning/why-is-non-linear-activation-function-needed/): Understand why non-linear activations prevent deep neural networks from collapsing into a single linear map and enable universal function approximation. - [Why L1 and L2 are Commonly Used for Regularization](https://www.educatum.com/interview-questions/machine-learning/why-l1-and-l2-are-commonly-used-for-regularization/): Learn why L1 and L2 dominate regularization: convexity, tractable solvers vs. NP-hard L0, Ridge closed-form solutions, and Laplace vs. Gaussian priors. - [Why Regularization Reduces Overfitting](https://www.educatum.com/interview-questions/machine-learning/why-regularization-reduces-overfitting/): Understand how regularization reduces overfitting by bounding model capacity, smoothing functions via Lipschitz control, and damping noisy SVD directions. - [Word Embeddings](https://www.educatum.com/interview-questions/machine-learning/word-embeddings/): Understand word embeddings, how dense vectors encode distributional semantics via Word2Vec and GloVe, and how static vectors differ from BERT/GPT. - [Zero padding in CNN](https://www.educatum.com/interview-questions/machine-learning/zero-padding-in-cnn/): Learn how zero-padding preserves spatial dimensions and border features in CNNs via the output size formula, and its tradeoffs vs. reflect padding. ## Study Plan Modules - [Autoencoder](https://www.educatum.com/learn/genai-by-hand/autoencoder/): Learn how autoencoders compress inputs through a bottleneck latent space and reconstruct them via self-supervised loss, plus links to masking and CLIP. - [Batch Normalization](https://www.educatum.com/learn/genai-by-hand/batch-normalization/): Step-by-step walkthrough of Batch Normalization: computing per-feature mini-batch mean and variance, normalizing activations, and learning scale and shift. - [CLIP](https://www.educatum.com/learn/genai-by-hand/clip/): Walk through CLIP contrastive pretraining: image and text encoders, shared embedding projection, InfoNCE softmax loss, and the (p - y) logit gradient. - [Dropout](https://www.educatum.com/learn/genai-by-hand/dropout/): Understand how dropout prevents co-adaptation, why inverted dropout scales active neurons by 1/(1-p) during training, and the expected-value derivation. - [Generative Adversarial Network](https://www.educatum.com/learn/genai-by-hand/generative-adversarial-network/): Step-by-step derivation of the binary cross-entropy and sigmoid logit gradient (p - y) for GAN discriminator training, plus generator objective intuition. - [OpenAI Strawberry (RLHF + CoT)](https://www.educatum.com/learn/genai-by-hand/openai-strawberry-rlhf-cot/): How OpenAI o1 (Strawberry) pairs reinforcement learning with Chain-of-Thought reasoning and test-time compute, compared with traditional RLHF. - [Reinforcement Learning with Human Feedback (RLHF)](https://www.educatum.com/learn/genai-by-hand/reinforcement-learning-with-human-feedback-rlhf/): Step-by-step walkthrough of RLHF: collecting human preference pairs, training a Bradley-Terry reward model, and updating the LLM policy with RL. - [Self Attention](https://www.educatum.com/learn/genai-by-hand/self-attention/): Intuitive and mathematical guide to Self-Attention: how Query, Key, and Value vectors compute scaled dot-product weights across tokens in parallel. - [Sora's Diffusion Transformer](https://www.educatum.com/learn/genai-by-hand/sora-s-diffusion-transformer/): Step-by-step walkthrough of Sora's Diffusion Transformer (DiT): spacetime latent patches, noise schedule, adaLN conditioning, and iterative denoising. - [SVM](https://www.educatum.com/learn/genai-by-hand/svm/): Compare linear vs. RBF kernel SVMs, understand why support vectors uniquely determine the maximum-margin boundary, and see the Gaussian Taylor expansion. - [Transformer](https://www.educatum.com/learn/genai-by-hand/transformer/): Trace how a Transformer layer combines horizontal token mixing via attention with vertical feature transformation via a position-wise FFN. - [Variational Auto Encoder (VAE)](https://www.educatum.com/learn/genai-by-hand/variational-auto-encoder-vae/): Understand VAE backpropagation: how ELBO splits gradients between reconstruction loss and KL divergence using the reparameterization trick. - [Vector Database](https://www.educatum.com/learn/genai-by-hand/vector-database/): Step-by-step walkthrough of how vector databases encode text into embeddings, index vectors with HNSW, and retrieve nearest neighbors via dot product. - [Week 1: Foundational Mathematics for AI](https://www.educatum.com/learn/ai-ml-pathway/week-1-foundational-mathematics-for-ai/): Week 1 AI/ML study module covering essential calculus (gradients and chain rule), linear algebra (matrices), and probability foundations. - [Week 2: Core Concepts of AI/ML](https://www.educatum.com/learn/ai-ml-pathway/week-2-core-concepts-of-ai-ml/): Week 2 AI/ML module covering regression and classification, core loss functions (MSE and cross-entropy), and optimization algorithms including Adam. - [Week 3: Model Training and Evaluation](https://www.educatum.com/learn/ai-ml-pathway/week-3-model-training-and-evaluation/): Week 3 AI/ML module covering underfitting and overfitting, the bias-variance tradeoff, L1/L2 regularization, and cross-validation. - [Week 4: Introduction to Neural Networks](https://www.educatum.com/learn/ai-ml-pathway/week-4-introduction-to-neural-networks/): Week 4 AI/ML module introducing neural network architectures, non-linear activation functions (ReLU, Sigmoid, SELU), and backpropagation. - [Week 5: Bridging to Deep Learning and Hands-on](https://www.educatum.com/learn/ai-ml-pathway/week-5-bridging-to-deep-learning-and-hands-on/): Week 5 AI/ML module bridging theory to practice with Karpathy's micrograd, PyTorch and Google Colab tutorials, CNNs, and a DNN training recipe.