<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Educatum — AI/ML &amp; LLM Interview Questions</title><description>Curated AI engineering, LLM, classic machine learning, and behavioral interview questions with direct answers.</description><link>https://www.educatum.com/</link><language>en-us</language><lastBuildDate>Fri, 27 Nov 2026 01:01:14 GMT</lastBuildDate><atom:link href="https://www.educatum.com/rss.xml" rel="self" type="application/rss+xml"/><item><title>How do RoPE and ALiBi approach positional encoding for long-context generation, and what are their trade-offs?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-do-rope-and-alibi-approach-positional-encoding-for-long-context-generation/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-do-rope-and-alibi-approach-positional-encoding-for-long-context-generation/</guid><description>RoPE (Rotary Position Embedding) rotates Query and Key vectors in 2D subspaces by position-dependent angles so their dot product naturally depends on relative token distance (n - m), whereas ALiBi eliminates positional embeddings altogether and subtracts a fixed, head-specific linear distance penalty from attention logits. RoPE preserves content-driven attention and dominates modern LLMs, though extending beyond training length requires frequency-scaling techniques such as PI, NTK-aware scaling, or YaRN. ALiBi extrapolates smoothly without tuning, at the cost of a fixed locality bias that can weaken long-range retrieval.</description><pubDate>Sun, 19 Jul 2026 00:00:00 GMT</pubDate><category>LLM Architecture</category><category>Positional Encoding &amp; Long Context</category><category>Transformer</category></item><item><title>Why is Post-Training Quantization (PTQ) the standard paradigm for deploying extreme-scale LLMs?</title><link>https://www.educatum.com/interview-questions/ai-engineering/why-is-post-training-quantization-ptq-the-standard-paradigm-for-deploying/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/why-is-post-training-quantization-ptq-the-standard-paradigm-for-deploying/</guid><description>Post-Training Quantization (PTQ) compresses pretrained weights (and optionally activations) from FP16/BF16 to low-bit formats such as INT8 or INT4 without expensive retraining, making it the standard paradigm for extreme-scale LLMs. By reducing memory footprint and HBM traffic per token, PTQ directly alleviates the memory-bandwidth bottleneck of autoregressive decoding using at most a small calibration set. Modern PTQ methods such as GPTQ, AWQ, and SmoothQuant preserve model quality even in the presence of systematic activation outliers.</description><pubDate>Sun, 31 May 2026 00:00:00 GMT</pubDate><category>Inference</category></item><item><title>How does CLIP establish a joint multimodal embedding space, and what are its inherent trade-offs?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-does-clip-establish-a-joint-multimodal-embedding-space-and-what-are-its/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-does-clip-establish-a-joint-multimodal-embedding-space-and-what-are-its/</guid><description>CLIP (Contrastive Language-Image Pretraining) trains dual image and text encoders jointly with a symmetric InfoNCE contrastive loss over batches of paired web images and captions, pulling matching pairs together in a normalized cosine-similarity space while pushing mismatched pairs apart. This enables zero-shot, open-vocabulary recognition by comparing image embeddings against text-prompted class labels without task-specific fine-tuning. However, CLIP exhibits bag-of-concepts behavior on compositional queries, struggles with fine-grained counting or OCR, and relies on huge batch sizes for hard negatives.</description><pubDate>Sat, 25 Apr 2026 00:00:00 GMT</pubDate><category>Pretraining</category></item><item><title>How does model quantization reduce inference bottlenecks, and what are the inherent trade-offs between precision and performance?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-does-model-quantization-reduce-inference-bottlenecks-and-what-are-the/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-does-model-quantization-reduce-inference-bottlenecks-and-what-are-the/</guid><description>Model quantization maps high-precision floating-point weights and optionally activations (FP32/FP16/BF16) onto low-bit representations such as INT8 or INT4, directly alleviating the memory-bandwidth and VRAM capacity bottlenecks of autoregressive LLM decoding. Weight-only quantization (e.g., W4A16) shrinks model footprint and HBM traffic, while weight-activation quantization (e.g., W8A8) unlocks integer Tensor Core acceleration when paired with outlier-mitigation techniques like SmoothQuant. These gains trade off against quantization rounding error, dequantization overhead, and heightened sensitivity in outlier-heavy channels.</description><pubDate>Sun, 19 Apr 2026 00:00:00 GMT</pubDate><category>Hardware</category><category>Inference</category></item><item><title>How does PagedAttention resolve KV Cache memory fragmentation, and what are its serving trade-offs?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-does-pagedattention-resolve-kv-cache-memory-fragmentation-and-what-are-its/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-does-pagedattention-resolve-kv-cache-memory-fragmentation-and-what-are-its/</guid><description>PagedAttention resolves KV cache fragmentation in autoregressive LLM serving by partitioning each sequence&apos;s keys and values into fixed-size physical memory blocks (e.g., 16 tokens) managed via a logical-to-physical Block Table, analogous to OS virtual memory paging. Because blocks are allocated on demand rather than contiguously for the maximum sequence length, external fragmentation is eliminated and internal fragmentation is bounded to less than one block per sequence, while identical prompt prefixes can be shared via copy-on-write. This reclaimed VRAM unlocks much higher serving concurrency and throughput, at the cost of custom block-indexed attention kernels and slight non-contiguous memory access overhead.</description><pubDate>Sun, 05 Apr 2026 00:00:00 GMT</pubDate><category>Hardware</category><category>Inference</category></item><item><title>How does FlashAttention optimize self-attention, and what are its hardware trade-offs?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-does-flashattention-optimize-self-attention-and-what-are-its-hardware/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-does-flashattention-optimize-self-attention-and-what-are-its-hardware/</guid><description>Standard self-attention materializes the full N×N attention matrix in slow High Bandwidth Memory (HBM), creating a severe memory-bandwidth bottleneck. FlashAttention restructures attention into an IO-aware tiled kernel that keeps Q, K, and V blocks in fast on-chip SRAM, computes exact attention incrementally via online softmax, and recomputes the attention matrix during backpropagation instead of storing it. This reduces HBM accesses to Θ(N²d²/M) and memory footprint from O(N²) to O(N) without changing the mathematical output.</description><pubDate>Sun, 29 Mar 2026 00:00:00 GMT</pubDate><category>Hardware</category><category>Inference</category></item><item><title>What is Speculative Decoding, and how does it improve LLM inference throughput without changing model outputs?</title><link>https://www.educatum.com/interview-questions/ai-engineering/what-is-speculative-decoding-and-how-does-it-improve-llm-inference-throughput/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/what-is-speculative-decoding-and-how-does-it-improve-llm-inference-throughput/</guid><description>Speculative Decoding accelerates memory-bandwidth-bound LLM inference by using a small, fast draft model to propose γ candidate tokens autoregressively, which the large target model verifies in a single parallel forward pass. Because processing γ tokens in parallel uses nearly the same HBM weight-loading bandwidth as a single decoding step, multiple tokens can be generated per target-model call. Modified rejection sampling accepts or corrects drafted tokens so the final output follows the exact mathematical distribution of the target model alone.</description><pubDate>Sat, 21 Mar 2026 00:00:00 GMT</pubDate><category>Inference</category></item><item><title>What are the primary bottlenecks in auto-regressive LLM inference, and how do standard optimizations mitigate them?</title><link>https://www.educatum.com/interview-questions/ai-engineering/what-are-the-primary-bottlenecks-in-auto-regressive-llm-inference-and-how-do/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/what-are-the-primary-bottlenecks-in-auto-regressive-llm-inference-and-how-do/</guid><description>Autoregressive LLM inference splits into a compute-bound prefill phase that processes all prompt tokens in parallel, and a memory-bandwidth-bound decoding phase that generates one token per step while repeatedly loading model weights and the KV cache from HBM. Because decoding has very low arithmetic intensity, Tensor Cores sit underutilized waiting on memory transfers. Standard engines mitigate these bottlenecks with KV caching to avoid O(L²) recomputation, weight quantization to cut HBM bytes transferred, and continuous batching with PagedAttention to raise concurrency and eliminate KV memory fragmentation.</description><pubDate>Sat, 14 Mar 2026 00:00:00 GMT</pubDate><category>Hardware</category><category>Inference</category></item><item><title>How do the phases of Pretraining, SFT, and Alignment shape LLM, and how does DPO simplify this pipeline?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-do-the-phases-of-pretraining-sft-and-alignment-shape-llm-and-how-does-dpo/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-do-the-phases-of-pretraining-sft-and-alignment-shape-llm-and-how-does-dpo/</guid><description>Modern LLM training follows three stages: Pretraining learns world knowledge and language modeling via next-token prediction, Supervised Fine-Tuning (SFT) teaches instruction-following formats from curated demonstrations, and Alignment optimizes human preferences for helpfulness and harmlessness. Traditional RLHF trains a separate reward model and optimizes the policy with PPO. Direct Preference Optimization (DPO) reparameterizes the optimal RLHF policy to eliminate both the explicit reward model and online RL sampling, optimizing preferences directly with a binary cross-entropy objective.</description><pubDate>Sun, 08 Mar 2026 00:00:00 GMT</pubDate><category>Alignment</category><category>Pretraining</category><category>SFT</category></item><item><title>Why has ReAct become a foundational prompting paradigm for LLM Agents?</title><link>https://www.educatum.com/interview-questions/ai-engineering/why-has-react-become-a-foundational-prompting-paradigm-for-llm-agents/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/why-has-react-become-a-foundational-prompting-paradigm-for-llm-agents/</guid><description>ReAct (Reasoning and Acting) transforms language models into interactive agents by interleaving natural-language reasoning traces (Thought), structured tool calls (Action), and external environment responses (Observation) inside a unified autoregressive context. Rather than introducing a new neural architecture, it pairs Chain-of-Thought planning with non-parametric tool execution, enabling hypothesis updates and error recovery when tool outputs are unexpected. While grounding reduces hallucination relative to parametric-only reasoning, ReAct remains token-heavy and sensitive to prompt formatting.</description><pubDate>Fri, 06 Mar 2026 00:00:00 GMT</pubDate><category>Agent Architectures</category></item><item><title>Why has LoRA become the dominant choice for Parameter-Efficient Fine-Tuning?</title><link>https://www.educatum.com/interview-questions/ai-engineering/why-has-lora-become-the-dominant-choice-for-parameter-efficient-fine-tuning/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/why-has-lora-become-the-dominant-choice-for-parameter-efficient-fine-tuning/</guid><description>LoRA (Low-Rank Adaptation) freezes pretrained weight matrices W₀ and learns a parallel low-rank update ΔW = (α/r)BA, dramatically shrinking trainable parameters and optimizer-state VRAM during fine-tuning. Because the update is purely linear, (α/r)BA can be merged directly into W₀ after training for zero added inference latency, or swapped dynamically across tenants. Extensions like QLoRA (4-bit NF4 base weights) and DoRA (magnitude-direction decomposition) push memory efficiency and fine-tuning accuracy even closer to full fine-tuning.</description><pubDate>Fri, 20 Feb 2026 00:00:00 GMT</pubDate><category>Lora</category></item><item><title>What is the fundamental innovation of the Transformer, and how does Self-Attention solve the &quot;sequential bottleneck&quot;?</title><link>https://www.educatum.com/interview-questions/ai-engineering/what-is-the-fundamental-innovation-of-the-transformer-and-how-does-self/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/what-is-the-fundamental-innovation-of-the-transformer-and-how-does-self/</guid><description>The Transformer replaces sequential recurrence (RNNs/LSTMs) with parallelized Self-Attention, allowing all tokens in a sequence to interact directly in O(1) path length rather than O(n) sequential steps. By turning sequence modeling into parallelizable matrix multiplications over Queries, Keys, and Values—augmented by √d_k scaling, Multi-Head Attention, and Positional Encodings—it mitigates vanishing gradients across long contexts and unlocks GPU-scale training. The trade-off is quadratic O(n²·d) self-attention complexity with respect to sequence length.</description><pubDate>Thu, 19 Feb 2026 00:00:00 GMT</pubDate><category>Transformer</category></item><item><title>How does Masked Language Modeling (MLM) loss work?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-does-masked-language-modeling-mlm-loss-work/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-does-masked-language-modeling-mlm-loss-work/</guid><description>Masked Language Modeling (MLM) is a self-supervised denoising objective that enables encoder Transformers such as BERT to learn bidirectional representations. During training, roughly 15% of input tokens are selected—typically corrupted via an 80/10/10 rule (80% [MASK], 10% random token, 10% unchanged)—and the model minimizes cross-entropy reconstruction loss solely over those selected positions using both left and right context. Because standard MLM predicts masked tokens independently given the corrupted input, Span Masking and Permutation Language Modeling extend it to model multi-token dependencies.</description><pubDate>Wed, 18 Feb 2026 00:00:00 GMT</pubDate><category>Masked Language Modeling</category></item><item><title>How does Self-Supervised Learning solve the data scalability challenge in Foundation Models?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-does-self-supervised-learning-solve-the-data-scalability-challenge-in/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-does-self-supervised-learning-solve-the-data-scalability-challenge-in/</guid><description>Self-Supervised Learning (SSL) overcomes the human annotation bottleneck by deriving supervisory signals directly from unlabeled data through pretext tasks such as next-token prediction, masked reconstruction, or multi-view contrast. This enables foundation models to train on internet-scale text and visual corpora, learning generalizable representations that transfer across diverse downstream tasks. Modern SSL spans generative/predictive methods (GPT, BERT, MAE), contrastive learning (SimCLR, MoCo), and non-contrastive collapse-prevention methods (BYOL, VICReg).</description><pubDate>Wed, 18 Feb 2026 00:00:00 GMT</pubDate><category>Bert</category></item><item><title>What is the Memory Hierarchy and why does it bottleneck AI workload scaling?</title><link>https://www.educatum.com/interview-questions/ai-engineering/what-is-the-memory-hierarchy-and-why-does-it-bottleneck-ai-workload-scaling/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/what-is-the-memory-hierarchy-and-why-does-it-bottleneck-ai-workload-scaling/</guid><description>Modern AI accelerators face the Memory Wall because peak compute (TFLOPS) has scaled far faster than memory bandwidth, leaving workloads like autoregressive LLM decoding memory-bandwidth-bound rather than compute-bound. The GPU memory hierarchy trades capacity for speed—moving from ultra-fast, tiny on-chip SRAM (registers and L1/L2 caches) to high-capacity on-package HBM, off-chip system DRAM, and multi-GPU NVLink interconnects. When an operation&apos;s arithmetic intensity falls below the hardware&apos;s ridge point in the Roofline Model, Tensor Cores stall waiting for weights and KV-cache data from HBM.</description><pubDate>Tue, 17 Feb 2026 00:00:00 GMT</pubDate><category>Hardware</category></item><item><title>How do Prompting Paradigms evolve from simple Zero-Shot instructions to complex Tree-of-Thought search?</title><link>https://www.educatum.com/interview-questions/ai-engineering/how-do-prompting-paradigms-evolve-from-simple-zero-shot-instructions-to/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/ai-engineering/how-do-prompting-paradigms-evolve-from-simple-zero-shot-instructions-to/</guid><description>Prompting paradigms evolve from direct input-to-output mapping in Zero-Shot and Few-Shot prompting to deliberate, multi-step reasoning in Chain-of-Thought (CoT) and Tree-of-Thought (ToT). Rather than committing to an answer in a single forward pass, CoT allocates additional test-time compute by generating intermediate reasoning tokens sequentially. ToT generalizes this linear trace into a structured state-space search with branching, heuristic state evaluation, and backtracking over candidate thought paths.</description><pubDate>Wed, 11 Feb 2026 00:00:00 GMT</pubDate><category>Prompt Engineering</category></item><item><title>How do you approach crafting a strategy?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-crafting-a-strategy/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-crafting-a-strategy/</guid><description>Use the SMART framework to anchor your strategy in concrete metrics, milestones, and business alignment. Interviewers evaluate strategic thinking, data-driven planning, and execution discipline, so avoid vague goals or ignoring engineering constraints.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🧠 Strategic Thinking</category><category>🎯 Strategic Thinking</category></item><item><title>How do you approach decision-making?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-decision-making/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-decision-making/</guid><description>Apply the 5 Whys framework to uncover root causes before committing to an architecture or technology choice. Interviewers evaluate analytical rigor, risk judgment, and stakeholder buy-in, so avoid impulsive picks or analysis paralysis.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>⚖️ Decision Making</category><category>👔 Leadership Philosophy</category></item><item><title>How do you approach feedback?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-feedback/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-feedback/</guid><description>Use the SBI (Situation, Behavior, Impact) framework to share how you seek, process, and act on constructive feedback. Interviewers evaluate growth mindset, communication maturity, and self-awareness, watching for defensiveness or blame-shifting.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>💬 Communication</category><category>🏢 Company Knowledge</category></item><item><title>How do you approach innovation?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-innovation/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-innovation/</guid><description>Use IDEO Design Thinking (Empathize, Define, Ideate, Prototype, Test) to show how your ideas translate user pain points into validated prototypes. Interviewers evaluate creativity, calculated risk-taking, and execution rather than novelty for its own sake.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>💡 Innovation</category><category>👔 Leadership Philosophy</category></item><item><title>How do you approach people management?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-people-management/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-approach-people-management/</guid><description>Use the GROW (Goal, Reality, Options, Way Forward) coaching framework to align individual career growth with team delivery. Interviewers evaluate leadership style, mentorship, and interpersonal judgment, watching for micromanagement or rigid one-size-fits-all habits.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>👤 People Management</category><category>👥 People Management</category></item><item><title>How do you build and maintain relationships?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-build-and-maintain-relationships/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-build-and-maintain-relationships/</guid><description>Use the STAR framework to demonstrate how you build lasting cross-functional trust through shared goals and consistent follow-through. Interviewers evaluate interpersonal effectiveness, active listening, and influence beyond purely transactional interactions.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>💬 Communication</category><category>👔 Leadership Philosophy</category></item><item><title>How do you handle ambiguity?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-ambiguity/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-ambiguity/</guid><description>Use the 5 Whys framework to decompose unclear requirements, surface root unknowns, and turn uncertainty into an iterative plan. Interviewers evaluate structured thinking, adaptability, and ownership under incomplete information.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🔄 Adaptability</category><category>🏋️ Challenge Management</category></item><item><title>How do you handle conflict?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-conflict/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-conflict/</guid><description>Use the SBI framework to explain how you de-escalate disagreements by grounding discussions in observable facts, data, and shared goals. Interviewers evaluate conflict resolution, active listening, and fairness rather than avoidance or taking sides.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🤝 Conflict Resolution</category><category>👥 People Management</category></item><item><title>How do you handle difficult conversations?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-difficult-conversations/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-difficult-conversations/</guid><description>Use the SBI (Situation, Behavior, Impact) framework to deliver candid, respectful feedback focused on observable behaviors rather than personal traits. Interviewers evaluate emotional intelligence, preparation, and constructive conflict resolution.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>👤 People Management</category><category>👥 People Management</category></item><item><title>How do you handle missed deadlines?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-missed-deadlines/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-missed-deadlines/</guid><description>Use the PAR (Problem, Action, Result) framework to emphasize early risk escalation, transparent stakeholder communication, and a concrete recovery plan. Interviewers evaluate accountability, scope prioritization, and systemic fixes that prevent repeat delays.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>📊 Project Management</category><category>🏋️ Challenge Management</category></item><item><title>How do you handle pressure?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-pressure/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-pressure/</guid><description>Use the PAR framework to show how you triage high-stakes situations into clear workstreams while keeping stakeholders informed. Interviewers evaluate composure under stress, prioritization, and accountability when timelines tighten.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🔄 Adaptability</category><category>🏋️ Challenge Management</category></item><item><title>How do you handle resource constraints?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-resource-constraints/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-handle-resource-constraints/</guid><description>Use the PAR framework to highlight pragmatic engineering trade-offs, bottleneck analysis, and high-leverage optimizations within tight budgets. Interviewers evaluate resourcefulness, creative problem-solving, and maintaining quality without unnecessary spend.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🎯 Problem Solving</category><category>🏋️ Challenge Management</category></item><item><title>How do you identify problems?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-identify-problems/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-identify-problems/</guid><description>Use the 5 Whys framework to show how you spot recurring bottlenecks through metrics and dig past surface symptoms to root causes. Interviewers evaluate analytical rigor, proactivity, and pattern recognition rather than reactive firefighting.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🎯 Problem Solving</category><category>💻 Technical Expertise</category></item><item><title>How do you manage technical teams?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-manage-technical-teams/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-manage-technical-teams/</guid><description>Use the GROW framework to show how you balance architectural standards, clear ownership, and individual career development across engineering teams. Interviewers evaluate technical leadership, delegation, and team empowerment over top-down control.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>👥 Leadership</category><category>👥 People Management</category></item><item><title>How do you manage work-life balance?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-manage-work-life-balance/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-manage-work-life-balance/</guid><description>Use the PAR framework to highlight sustainable habits—such as clear focus blocks, realistic scoping, and healthy boundaries—that protect long-term output. Interviewers evaluate self-management and burnout prevention rather than reactive overwork.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🔄 Adaptability</category><category>🎭 Personal Reflection</category></item><item><title>How do you measure success?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-measure-success/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-measure-success/</guid><description>Use the SMART framework to connect technical reliability and team velocity metrics directly to measurable customer and business outcomes. Interviewers evaluate goal clarity and business alignment while watching out for vanity metrics.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🧠 Strategic Thinking</category><category>🏢 Company Knowledge</category></item><item><title>How do you motivate others?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-motivate-others/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-motivate-others/</guid><description>Use the STAR framework to show how you build intrinsic motivation through meaningful ownership, growth opportunities, and clear milestones. Interviewers evaluate emotional intelligence, active listening, and tailored leadership rather than one-size-fits-all tactics.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>👥 Leadership</category><category>👔 Leadership Philosophy</category></item><item><title>How do you prioritize work?</title><link>https://www.educatum.com/interview-questions/behavioral/how-do-you-prioritize-work/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/how-do-you-prioritize-work/</guid><description>Use the SMART framework alongside an impact-versus-effort matrix to weigh technical dependencies, operational risk, and business value. Interviewers evaluate structured decision-making, stakeholder alignment, and disciplined focus over reactive multitasking.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>📊 Project Management</category><category>🏋️ Challenge Management</category></item><item><title>Tell me about a significant challenge you overcame</title><link>https://www.educatum.com/interview-questions/behavioral/tell-me-about-a-significant-challenge-you-overcame/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/tell-me-about-a-significant-challenge-you-overcame/</guid><description>Use the STAR framework to walk through a genuinely high-stakes technical obstacle, highlighting your diagnosis, engineering trade-offs, and measurable recovery. Interviewers evaluate resilience, ownership, and the lasting process improvements you put in place.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🎯 Problem Solving</category><category>🏋️ Challenge Management</category></item><item><title>Tell me about an ethical challenge</title><link>https://www.educatum.com/interview-questions/behavioral/tell-me-about-an-ethical-challenge/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/tell-me-about-an-ethical-challenge/</guid><description>Use the STAR framework to explain an ethical dilemma involving data privacy, compliance, or product integrity, emphasizing transparent escalation and principled action. Interviewers evaluate judgment, accountability, and willingness to uphold standards under pressure.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>⚖️ Decision Making</category><category>🏋️ Challenge Management</category></item><item><title>Tell me about going above and beyond</title><link>https://www.educatum.com/interview-questions/behavioral/tell-me-about-going-above-and-beyond/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/tell-me-about-going-above-and-beyond/</guid><description>Use the STAR framework to showcase self-directed initiative that solved a systemic bottleneck or created reusable leverage beyond your immediate task. Interviewers evaluate ownership and quantifiable impact rather than routine effort or extra hours.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>⚡ Initiative</category><category>🎭 Personal Reflection</category></item><item><title>Tell me about mentoring others</title><link>https://www.educatum.com/interview-questions/behavioral/tell-me-about-mentoring-others/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/tell-me-about-mentoring-others/</guid><description>Use the STAR framework to demonstrate structured coaching—such as design reviews, pairing, and calibrated stretch goals—that grew a teammate&apos;s independence. Interviewers evaluate teaching clarity, patience, and measurable skill progression.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>👥 Leadership</category><category>👔 Leadership Philosophy</category></item><item><title>Tell me about your biggest impact</title><link>https://www.educatum.com/interview-questions/behavioral/tell-me-about-your-biggest-impact/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/tell-me-about-your-biggest-impact/</guid><description>Use the STAR framework to frame your most consequential project around clear before-and-after metrics, architectural ownership, and cross-team leverage. Interviewers evaluate impact scale, leadership initiative, and rigorous evidence of results.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>⚡ Initiative</category><category>🎭 Personal Reflection</category></item><item><title>Tell me about your leadership experience</title><link>https://www.educatum.com/interview-questions/behavioral/tell-me-about-your-leadership-experience/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/tell-me-about-your-leadership-experience/</guid><description>Use the PAR framework to explain how you set technical direction, empower sub-team owners, and scale engineering quality as teams grow. Interviewers evaluate leadership style, influence without micromanagement, and measurable team growth.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>👥 Leadership</category><category>👔 Leadership Philosophy</category></item><item><title>What are your career goals?</title><link>https://www.educatum.com/interview-questions/behavioral/what-are-your-career-goals/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/what-are-your-career-goals/</guid><description>Use the SMART framework to connect your current technical trajectory with concrete short-term milestones and long-term growth in the target role. Interviewers evaluate self-awareness, realistic planning, and genuine alignment with the company&apos;s roadmap.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🧠 Strategic Thinking</category><category>🎯 Career Goals</category></item><item><title>What are your development areas?</title><link>https://www.educatum.com/interview-questions/behavioral/what-are-your-development-areas/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/what-are-your-development-areas/</guid><description>Use the PAR framework to name a genuine, non-disqualifying skill gap along with concrete actions you have taken and measurable progress so far. Interviewers evaluate honesty, self-awareness, and a proactive growth mindset rather than disguised-strength cliches.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>💬 Communication</category><category>🎭 Personal Reflection</category></item><item><title>What are your strengths?</title><link>https://www.educatum.com/interview-questions/behavioral/what-are-your-strengths/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/what-are-your-strengths/</guid><description>Use the STAR framework to pair two or three role-relevant strengths with concrete project metrics rather than generic adjectives. Interviewers evaluate self-awareness, relevance to the team&apos;s needs, and verifiable evidence of impact.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>💬 Communication</category><category>🎭 Personal Reflection</category></item><item><title>What questions do you have for me?</title><link>https://www.educatum.com/interview-questions/behavioral/what-questions-do-you-have-for-me/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/what-questions-do-you-have-for-me/</guid><description>Use the 3P (Product, People, Potential) framework to ask specific, research-backed questions about technical challenges, team dynamics, and role growth. Interviewers evaluate preparation, genuine curiosity, and strategic thinking rather than easily searchable trivia.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>💬 Communication</category><category>🏢 Company Knowledge</category></item><item><title>What would be your first 90 days?</title><link>https://www.educatum.com/interview-questions/behavioral/what-would-be-your-first-90-days/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/what-would-be-your-first-90-days/</guid><description>Use the SMART framework to divide your first 90 days into listening and architecture discovery (Month 1), scoped quick wins (Month 2), and strategic initiatives (Month 3). Interviewers evaluate onboarding pragmatism, stakeholder mapping, and balancing learning with execution.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>🧠 Strategic Thinking</category><category>🎯 Career Goals</category></item><item><title>Why this company?</title><link>https://www.educatum.com/interview-questions/behavioral/why-this-company/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/behavioral/why-this-company/</guid><description>Use the 3P (Product, People, Potential) framework to connect specific technical products, engineering culture, and growth opportunities to your background. Interviewers evaluate research depth, authentic motivation, and mutual alignment.</description><pubDate>Tue, 18 Mar 2025 00:00:00 GMT</pubDate><category>💬 Communication</category><category>🏢 Company Knowledge</category></item><item><title>Adam Optimizer</title><link>https://www.educatum.com/interview-questions/machine-learning/adam-optimizer/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/adam-optimizer/</guid><description>Adam (Adaptive Moment Estimation) is a first-order gradient optimization algorithm that maintains exponential moving averages of both the gradients (first moment, like Momentum) and squared gradients (second raw moment, like RMSProp). By applying bias correction to counter zero initialization in early steps, Adam adapts the effective step size per parameter, converging rapidly on noisy or sparse-gradient problems.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Avoid overfitting in NN</title><link>https://www.educatum.com/interview-questions/machine-learning/avoid-overfitting-in-nn/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/avoid-overfitting-in-nn/</guid><description>Overfitting occurs when a neural network memorizes training noise rather than generalizable patterns, causing high training accuracy alongside degraded validation and test performance. Common defenses include L1/L2 weight regularization, dropout, label-preserving data augmentation, early stopping monitored on a held-out validation split, and constraining model capacity.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category></item><item><title>Bagging VS boosting</title><link>https://www.educatum.com/interview-questions/machine-learning/bagging-vs-boosting/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/bagging-vs-boosting/</guid><description>Bagging and boosting are ensemble methods that combine multiple base models into a stronger predictor, but they target opposite sources of error. Bagging trains low-bias, high-variance learners independently in parallel on bootstrapped subsets and averages their outputs to reduce variance, whereas boosting trains weak learners sequentially—each correcting errors or residuals from earlier models—to primarily reduce bias.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Batch size</title><link>https://www.educatum.com/interview-questions/machine-learning/batch-size/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/batch-size/</guid><description>Batch size determines how many training examples are processed in one forward and backward pass to compute a gradient update. Larger batches reduce gradient variance and maximize GPU throughput but require more memory and careful learning rate scaling, whereas smaller batches save memory and introduce gradient noise that often acts as implicit regularization for better generalization.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>Bias and Variance</title><link>https://www.educatum.com/interview-questions/machine-learning/bias-and-variance/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/bias-and-variance/</guid><description>Bias and variance decompose a model&apos;s reducible prediction error into two competing sources. High bias stems from overly simplistic model assumptions that cause underfitting, whereas high variance stems from excessive sensitivity to training sample fluctuations that causes overfitting, making total generalization error lowest at an intermediate model complexity.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Bias of linear regression</title><link>https://www.educatum.com/interview-questions/machine-learning/bias-of-linear-regression/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/bias-of-linear-regression/</guid><description>Under classical Gauss-Markov assumptions where the true relationship is linear and correctly specified, ordinary least squares (OLS) is statistically unbiased. However, linear regression carries strong inductive bias by restricting hypotheses to linear hyperplanes, causing high approximation bias and systematic underfitting whenever the true target function is non-linear or omits key interaction terms.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Can logistic regression handle unbalanced classes?</title><link>https://www.educatum.com/interview-questions/machine-learning/can-logistic-regression-handle-unbalanced-classes/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/can-logistic-regression-handle-unbalanced-classes/</guid><description>Logistic regression can handle imbalanced classes, though using the default 0.5 probability threshold often causes low recall on the minority class. Adjusting the decision threshold, applying class weighting (class_weight=&apos;balanced&apos;), or resampling training folds restores minority detection, though weighting and resampling shift predicted probabilities away from true base rates.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Choosing k in k-means Clustering</title><link>https://www.educatum.com/interview-questions/machine-learning/choosing-k-in-k-means-clustering/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/choosing-k-in-k-means-clustering/</guid><description>Selecting the optimal number of clusters k in k-means balances intra-cluster compactness against inter-cluster separation because raw within-cluster variance decreases monotonically as k grows. Common empirical techniques include the Elbow method on WCSS, Silhouette analysis (defined for k &gt;= 2), and the Gap statistic, complemented by downstream domain constraints.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Choosing k in k-Nearest Neighbors (k-NN)</title><link>https://www.educatum.com/interview-questions/machine-learning/choosing-k-in-k-nearest-neighbors-k-nn/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/choosing-k-in-k-nearest-neighbors-k-nn/</guid><description>Choosing k in k-Nearest Neighbors directly controls the bias-variance tradeoff: small k (such as k = 1) fits local noise with high variance, while overly large k oversmooths decision boundaries and increases bias. Practitioners select k empirically using k-fold cross-validation inside a scaled pipeline, often preferring odd values in binary classification to prevent voting ties.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Comparing Two Classifiers: Logistic Regression vs. Support Vector Machines (SVM)</title><link>https://www.educatum.com/interview-questions/machine-learning/comparing-two-classifiers-logistic-regression-vs-support-vector-machines-svm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/comparing-two-classifiers-logistic-regression-vs-support-vector-machines-svm/</guid><description>Logistic Regression models conditional class probabilities via the sigmoid function and minimizes binary cross-entropy (log loss), yielding calibrated probabilities and interpretable linear weights. Support Vector Machines minimize hinge loss with an L2 margin penalty to find a maximum-margin hyperplane, supporting non-linear boundaries via kernel functions while requiring Platt scaling for probability estimates.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Confusion matrix</title><link>https://www.educatum.com/interview-questions/machine-learning/confusion-matrix/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/confusion-matrix/</guid><description>A confusion matrix is a cross-tabulation of actual class labels against predicted class labels in supervised classification. For binary tasks it records True Positives, True Negatives, False Positives, and False Negatives, forming the exact foundation for derived metrics such as precision, recall, specificity, accuracy, and F1-score.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category><category>Metrics</category></item><item><title>Count based VS Prediction models for word embeddings</title><link>https://www.educatum.com/interview-questions/machine-learning/count-based-vs-prediction-models-for-word-embeddings/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/count-based-vs-prediction-models-for-word-embeddings/</guid><description>Count-based embedding methods construct word vectors from global corpus co-occurrence statistics using weighting and factorization techniques such as PPMI, truncated SVD, and GloVe&apos;s log-bilinear regression. Prediction-based methods like Word2Vec (CBOW and Skip-gram) learn dense embeddings incrementally by predicting target or context words within local sliding windows, scaling cleanly to massive streaming corpora.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>DBSCAN</title><link>https://www.educatum.com/interview-questions/machine-learning/dbscan/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/dbscan/</guid><description>DBSCAN (Density-Based Spatial Clustering of Applications with Noise) groups points in high-density neighborhoods into clusters of arbitrary shape while labeling isolated points in sparse regions as noise. Using two parameters—neighborhood radius epsilon and minimum point count minPoints—it classifies points as core, border, or noise without requiring the number of clusters k in advance.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Derivation of Ridge and Lasso Regularization</title><link>https://www.educatum.com/interview-questions/machine-learning/derivation-of-ridge-and-lasso-regularization/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/derivation-of-ridge-and-lasso-regularization/</guid><description>Ridge and Lasso augment ordinary least squares (OLS) with squared L2 and L1 coefficient penalties, respectively. Setting the Ridge gradient to zero yields a closed-form solution that adds lambda I to X-transpose X, ensuring invertibility; Lasso&apos;s non-differentiable L1 penalty is solved via subdifferential KKT conditions and coordinate descent, producing soft-thresholding that zeroes small coefficients.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Regularization Techniques</category><category>Regularization</category></item><item><title>Difference between generative and discriminative model</title><link>https://www.educatum.com/interview-questions/machine-learning/difference-between-generative-and-discriminative-model/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/difference-between-generative-and-discriminative-model/</guid><description>Generative models learn the full joint probability distribution P(X, Y) = P(X|Y)P(Y), enabling them to synthesize new examples and classify via Bayes&apos; theorem. Discriminative models learn the conditional distribution P(Y|X) or a direct decision boundary without modeling the input distribution P(X), often achieving higher predictive accuracy when labeled data is abundant.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Does NN fit data better than logistic regression?</title><link>https://www.educatum.com/interview-questions/machine-learning/does-nn-fit-data-better-than-logistic-regression/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/does-nn-fit-data-better-than-logistic-regression/</guid><description>Multi-layer neural networks with non-linear activations can fit complex non-linear data far better than logistic regression, which is restricted to linear decision boundaries in input space (and is itself equivalent to a single-layer sigmoid network). However, on small, noisy, or linearly separable tabular datasets, logistic regression often generalizes better due to lower variance and convex optimization.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>Effect of k on variance and bias in KNN</title><link>https://www.educatum.com/interview-questions/machine-learning/effect-of-k-on-variance-and-bias-in-knn/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/effect-of-k-on-variance-and-bias-in-knn/</guid><description>In k-Nearest Neighbors (k-NN), the neighborhood size k acts inversely to model complexity. A small k yields low bias and high variance because predictions closely follow individual noisy training points (overfitting), while a larger k averages over broader neighborhoods to reduce variance at the expense of higher bias and smoother decision boundaries (underfitting).</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Effects of feature scaling on logistic regression</title><link>https://www.educatum.com/interview-questions/machine-learning/effects-of-feature-scaling-on-logistic-regression/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/effects-of-feature-scaling-on-logistic-regression/</guid><description>Feature scaling does not alter the optimal decision boundary of unregularized logistic regression once converged, because weights rescale inversely with feature units. However, scaling dramatically improves gradient-based optimization convergence by conditioning the Hessian, and it is strictly essential whenever L1 or L2 regularization is applied so large-weight penalties treat all features fairly.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Entropy</title><link>https://www.educatum.com/interview-questions/machine-learning/entropy/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/entropy/</guid><description>Shannon entropy measures the average uncertainty or expected surprise (information content) of a random variable&apos;s probability distribution. Zero entropy corresponds to a deterministic outcome, whereas entropy reaches its maximum under a uniform distribution; in machine learning it underpins decision tree information gain and cross-entropy loss.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category><category>Loss</category></item><item><title>Evaluate k means</title><link>https://www.educatum.com/interview-questions/machine-learning/evaluate-k-means/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/evaluate-k-means/</guid><description>Evaluating k-means clustering relies primarily on internal metrics that measure intra-cluster compactness and inter-cluster separation without ground-truth labels. Standard internal metrics include Within-Cluster Sum of Squares (WCSS / inertia), Silhouette score, Calinski-Harabasz index, and Davies-Bouldin index; when reference labels exist, external metrics such as Adjusted Rand Index (ARI) and Normalized Mutual Information (NMI) apply.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Explain the two steps of EM algorithm?</title><link>https://www.educatum.com/interview-questions/machine-learning/explain-the-two-steps-of-em-algorithm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/explain-the-two-steps-of-em-algorithm/</guid><description>Expectation-Maximization (EM) is an iterative algorithm for finding maximum likelihood (or MAP) parameter estimates in statistical models with latent variables or missing data. The E-step computes the posterior distribution over latent variables to form the expected complete-data log-likelihood, and the M-step updates parameters to maximize that expectation, monotonically increasing observed log-likelihood toward a local optimum.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Exploding Gradient</title><link>https://www.educatum.com/interview-questions/machine-learning/exploding-gradient/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/exploding-gradient/</guid><description>Exploding gradients arise during backpropagation when repeated multiplication of layer weight matrices and activation derivatives causes error gradients to grow exponentially across deep layers or long sequences. This produces huge parameter updates, loss oscillations, or NaN overflow, and is mitigated using gradient norm clipping, proper initialization (Xavier/He), normalization layers, residual connections, and gated RNNs.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>Feature selection methods</title><link>https://www.educatum.com/interview-questions/machine-learning/feature-selection-methods/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/feature-selection-methods/</guid><description>Feature selection identifies the most informative subset of original input features to improve generalization, interpretability, and computational efficiency. Methods fall into three families: filter methods (model-agnostic statistical scores such as ANOVA F-test, chi-squared, or mutual information), wrapper methods (model-in-the-loop search like RFE), and embedded methods (built into training, such as L1/Lasso penalties and tree splits).</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Grid Search vs. Random Search</title><link>https://www.educatum.com/interview-questions/machine-learning/grid-search-vs-random-search/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/grid-search-vs-random-search/</guid><description>Grid search exhaustively evaluates every point on a fixed Cartesian grid of hyperparameter values, whereas random search samples a specified budget of combinations from prior distributions. Random search is generally far more sample-efficient in higher dimensions—especially when only a subset of hyperparameters strongly affects validation performance—because every trial tests distinct values along important axes.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How does bagging work?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-does-bagging-work/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-does-bagging-work/</guid><description>Bagging (Bootstrap Aggregating) reduces variance by training multiple instances of a high-variance base model independently on bootstrap datasets sampled with replacement from the training set. Averaging their predictions for regression or taking majority votes for classification cancels out sample-specific noise and yields more stable generalization.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How does boosting work?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-does-boosting-work/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-does-boosting-work/</guid><description>Boosting is a sequential ensemble technique that converts weak learners (such as shallow decision stumps) into an accurate strong learner. Each subsequent model focuses on correcting prior ensemble mistakes—either by increasing weights on misclassified points (AdaBoost) or fitting negative gradients of a loss function (Gradient Boosting)—primarily reducing bias.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How does Cross Validation work?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-does-cross-validation-work/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-does-cross-validation-work/</guid><description>Cross-validation evaluates generalization by partitioning training data into k disjoint folds, iteratively fitting the model (and any preprocessing steps) on k-1 folds while validating on the remaining fold, and averaging performance across all k splits. Using stratified folds for classification and wrapping scalers inside a pipeline prevents validation variance and data leakage.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How does KNN classification work?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-does-knn-classification-work/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-does-knn-classification-work/</guid><description>k-Nearest Neighbors (k-NN) classification is a non-parametric, instance-based algorithm that stores labeled training data without learning parametric weights. To classify a query point, it computes distances to training samples, selects the k closest neighbors, and predicts the majority (or inverse-distance-weighted) class label.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How does KNN regression work?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-does-knn-regression-work/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-does-knn-regression-work/</guid><description>k-Nearest Neighbors (k-NN) regression is a non-parametric, lazy algorithm that predicts a continuous value by averaging the target values of the k closest training samples in feature space. Predictions can use uniform averages or inverse-distance weighting, producing flexible piecewise-constant approximations that cannot extrapolate beyond the training target range.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How is Naive Bayes classifier naive?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-is-naive-bayes-classifier-naive/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-is-naive-bayes-classifier-naive/</guid><description>The Naive Bayes classifier is called naive because it assumes every input feature is conditionally independent of all other features given the class label. This strong assumption collapses the joint likelihood into a product of single-feature probabilities, making training extremely fast and data-efficient while still ranking class predictions accurately even when features correlate.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How to avoid overfitting?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-to-avoid-overfitting/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-to-avoid-overfitting/</guid><description>Overfitting happens when a model memorizes training noise and sample-specific quirks rather than generalizable patterns, causing strong training scores alongside poor test accuracy. Key defenses include collecting more diverse data, applying data augmentation, reducing model complexity, adding L1/L2 regularization or dropout, using early stopping on a validation set, and combining models via ensembles.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>How to choose number of features in random forest?</title><link>https://www.educatum.com/interview-questions/machine-learning/how-to-choose-number-of-features-in-random-forest/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/how-to-choose-number-of-features-in-random-forest/</guid><description>The max_features hyperparameter controls how many random features are evaluated at each node split in a Random Forest, governing the tradeoff between individual-tree bias and inter-tree correlation. Standard heuristics are sqrt(p) for classification and p/3 for regression, while tuning via cross-validation or Out-of-Bag (OOB) error identifies the optimal dataset-specific value.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Importance of feature selection</title><link>https://www.educatum.com/interview-questions/machine-learning/importance-of-feature-selection/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/importance-of-feature-selection/</guid><description>Feature selection retains the most informative predictors and discards irrelevant or redundant inputs before or during modeling. Doing so reduces overfitting and model variance in high-dimensional datasets, improves human interpretability, lowers training and inference costs, and mitigates multicollinearity.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Initializing weights with 0s for NN?</title><link>https://www.educatum.com/interview-questions/machine-learning/initializing-weights-with-0s-for-nn/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/initializing-weights-with-0s-for-nn/</guid><description>Initializing all weights to zero in a multi-layer neural network fails because it destroys symmetry breaking and can trap hidden layers with zero gradients. Every neuron in a layer receives identical pre-activations and identical updates—effectively collapsing the layer to a single unit—and zero downstream weights or ReLU at zero can stall gradients completely, making random Xavier or He initialization essential.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category></item><item><title>Intuition of Gradient Boosting</title><link>https://www.educatum.com/interview-questions/machine-learning/intuition-of-gradient-boosting/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/intuition-of-gradient-boosting/</guid><description>Gradient boosting builds a strong predictive model as an additive sum of shallow trees via functional gradient descent. At each step, instead of adjusting model parameters directly, a new tree is trained to fit the negative gradient (pseudo-residuals) of the loss function with respect to current predictions, stepping toward the minimum scaled by a learning rate.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>k-means steps</title><link>https://www.educatum.com/interview-questions/machine-learning/k-means-steps/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/k-means-steps/</guid><description>K-means clustering partitions data into k clusters by minimizing the within-cluster sum of squares. After choosing k and initializing k centroids, Lloyd&apos;s algorithm alternates between assigning each point to its nearest centroid and recomputing each centroid as the mean of its assigned points until assignments stabilize.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>K-means vs Gaussian Mixture Models (GMM)</title><link>https://www.educatum.com/interview-questions/machine-learning/k-means-vs-gaussian-mixture-models-gmm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/k-means-vs-gaussian-mixture-models-gmm/</guid><description>K-means partitions data into non-overlapping clusters using hard assignments based on Euclidean distance to centroids, implicitly assuming spherical clusters of similar variance. Gaussian Mixture Models (GMMs) model data as a mixture of multivariate Gaussian distributions via Expectation-Maximization, providing soft probabilistic assignments and full covariance matrices to capture elliptical clusters of varying sizes and orientations.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>L1 VS L2</title><link>https://www.educatum.com/interview-questions/machine-learning/l1-vs-l2/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/l1-vs-l2/</guid><description>L1 (Lasso) and L2 (Ridge) regularization prevent overfitting by adding a weight penalty to the training loss. L1 penalizes the sum of absolute weights and drives irrelevant coefficients to exactly zero for automatic feature selection, whereas L2 penalizes the sum of squared weights to shrink all coefficients smoothly toward zero without eliminating them.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Regularization Techniques</category><category>Regularization</category></item><item><title>Learning Rate in Machine Learning</title><link>https://www.educatum.com/interview-questions/machine-learning/learning-rate-in-machine-learning/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/learning-rate-in-machine-learning/</guid><description>The learning rate is a hyperparameter that scales the magnitude of parameter updates during gradient-based optimization. Too small a learning rate causes slow convergence and risks stalling, whereas too large a learning rate causes overshooting, oscillation, or divergence, making careful tuning and learning rate schedules essential.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>Linear Support Vector Machine (SVM)</title><link>https://www.educatum.com/interview-questions/machine-learning/linear-support-vector-machine-svm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/linear-support-vector-machine-svm/</guid><description>A Linear Support Vector Machine (SVM) is a supervised classification algorithm that finds the linear hyperplane maximizing the geometric margin between classes. For data that is not strictly linearly separable, a soft-margin Linear SVM introduces slack variables and a regularization parameter C to balance margin width against margin violations and misclassifications.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Log Loss</title><link>https://www.educatum.com/interview-questions/machine-learning/log-loss/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/log-loss/</guid><description>Log loss, also known as binary cross-entropy or logistic loss, evaluates a binary classifier&apos;s predicted probabilities against true 0/1 labels. Lower log loss indicates better calibration and accuracy, while confident but wrong predictions incur an exponentially growing penalty that approaches infinity as the predicted probability of the true class approaches zero.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Logistic regression</title><link>https://www.educatum.com/interview-questions/machine-learning/logistic-regression/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/logistic-regression/</guid><description>Logistic regression is a linear classification algorithm that maps a weighted sum of input features through the sigmoid function to predict probabilities between 0 and 1. Its parameters are learned via Maximum Likelihood Estimation (minimizing binary cross-entropy loss), yielding an interpretable linear decision boundary and log-odds feature weights.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Loss function of logistic regression</title><link>https://www.educatum.com/interview-questions/machine-learning/loss-function-of-logistic-regression/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/loss-function-of-logistic-regression/</guid><description>Logistic regression uses binary cross-entropy (log loss) rather than mean squared error. Derived directly from Maximum Likelihood Estimation under a Bernoulli likelihood, binary cross-entropy is convex with respect to the model weights and bias, ensuring gradient-based optimizers avoid spurious local minima.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category><category>Loss</category></item><item><title>Loss function of SVM</title><link>https://www.educatum.com/interview-questions/machine-learning/loss-function-of-svm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/loss-function-of-svm/</guid><description>Support Vector Machines optimize an L2-regularized hinge loss objective. Hinge loss is zero for any sample classified on the correct side of the margin with functional margin at least 1, and grows linearly for points inside the margin or on the wrong side of the decision boundary, focusing optimization on the support vectors.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category><category>Loss</category></item><item><title>Machine Learning (ML) vs. Deep Learning (DL)</title><link>https://www.educatum.com/interview-questions/machine-learning/machine-learning-ml-vs-deep-learning-dl/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/machine-learning-ml-vs-deep-learning-dl/</guid><description>Machine Learning encompasses algorithms that learn predictive patterns from data, while Deep Learning is a specialized subfield that uses multi-layer neural networks to learn hierarchical feature representations automatically. Traditional ML (such as gradient-boosted trees) often excels on small-to-medium tabular datasets with engineered features, whereas Deep Learning dominates large-scale unstructured data such as images, audio, and natural language.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Methods to Avoid Overfitting</title><link>https://www.educatum.com/interview-questions/machine-learning/methods-to-avoid-overfitting/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/methods-to-avoid-overfitting/</guid><description>Overfitting occurs when a model memorizes noise and spurious patterns in the training set, leading to poor generalization on unseen data. Common remedies include collecting more diverse data, adding L1/L2 regularization, constraining model capacity (e.g., tree pruning or shallower networks), applying dropout or early stopping, using cross-validation for hyperparameter tuning, and combining models through bagging ensembles.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Motivation of Recurrent Neural Networks (RNNs)</title><link>https://www.educatum.com/interview-questions/machine-learning/motivation-of-recurrent-neural-networks-rnns/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/motivation-of-recurrent-neural-networks-rnns/</guid><description>Recurrent Neural Networks (RNNs) were motivated by the inability of standard feedforward networks to handle variable-length sequences and share parameters across time. By maintaining a recurrent hidden state updated at every time step with shared weights, RNNs preserve context from prior inputs when modeling time series, audio, and language.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category></item><item><title>Non-linear SVM</title><link>https://www.educatum.com/interview-questions/machine-learning/non-linear-svm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/non-linear-svm/</guid><description>Non-linear Support Vector Machines extend linear SVMs to curved decision boundaries by using kernel functions such as the Radial Basis Function (RBF) or polynomial kernels. Via the kernel trick, the dual optimization computes inner products in a potentially infinite-dimensional feature space implicitly, avoiding explicit coordinate transformations.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Optimal k in k means</title><link>https://www.educatum.com/interview-questions/machine-learning/optimal-k-in-k-means/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/optimal-k-in-k-means/</guid><description>Selecting the optimal number of clusters k in K-means commonly combines the Elbow Method and Silhouette Analysis. The Elbow Method looks for diminishing returns in within-cluster sum of squares (WCSS) as k grows, while Silhouette Analysis selects the k maximizing average cluster cohesion relative to separation across all data points.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Precision, recall and F1 score</title><link>https://www.educatum.com/interview-questions/machine-learning/precision-recall-and-f1-score/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/precision-recall-and-f1-score/</guid><description>Precision, recall, and F1 score evaluate classification performance beyond raw accuracy, particularly on imbalanced datasets. Precision measures the fraction of predicted positives that are truly positive, recall measures the fraction of actual positives successfully detected, and the F1 score takes their harmonic mean to penalize extreme imbalance between the two.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Precision/recall tradeoff</title><link>https://www.educatum.com/interview-questions/machine-learning/precision-recall-tradeoff/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/precision-recall-tradeoff/</guid><description>The precision-recall tradeoff occurs because shifting a classifier&apos;s decision threshold moves false positives and false negatives in opposite directions. Raising the threshold makes positive predictions stricter—typically increasing precision while decreasing recall—whereas lowering the threshold captures more true positives (higher recall) at the expense of more false alarms (lower precision).</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category><category>Metrics</category></item><item><title>Prior of Lasso and Ridge</title><link>https://www.educatum.com/interview-questions/machine-learning/prior-of-lasso-and-ridge/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/prior-of-lasso-and-ridge/</guid><description>From a Bayesian Maximum a Posteriori (MAP) perspective under Gaussian observation noise, Ridge regression assumes a zero-mean Gaussian prior on the weights while Lasso assumes a zero-mean Laplace prior. The Gaussian log-prior produces the quadratic L2 penalty that shrinks coefficients smoothly, whereas the sharp peak of the Laplace prior at zero produces the L1 penalty whose MAP mode drives weak weights to exact zero.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Pros and cons of k-means</title><link>https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-k-means/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-k-means/</guid><description>K-means clustering is popular because it is simple, fast, and scales linearly in sample count with time complexity O(n * k * d * i). However, it requires specifying k upfront, converges only to local minima sensitive to initialization, struggles with non-convex clusters or varying sizes and densities, and is sensitive to outliers and feature scales.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Pros and Cons of Linear Regression</title><link>https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-linear-regression/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-linear-regression/</guid><description>Linear regression offers simplicity, high interpretability via direct coefficient weights, low variance, and an exact closed-form Ordinary Least Squares solution. Its primary drawbacks are the assumption of a linear relationship in features, strong sensitivity to outliers under squared error loss, coefficient instability under multicollinearity, and unreliable extrapolation beyond the training range.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Pros and Cons of Random Forest</title><link>https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-random-forest/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-random-forest/</guid><description>Random Forest excels on tabular data by combining bootstrap aggregation and random feature subsampling to drastically reduce decision tree variance while resisting overfitting and outliers. Its main drawbacks are larger memory footprints, slower inference across many trees, reduced interpretability, biased impurity-based feature importances toward high-cardinality features, and an inability to extrapolate beyond training target bounds.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Pros and Cons of Tanh Activation Function</title><link>https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-tanh-activation-function/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-tanh-activation-function/</guid><description>The hyperbolic tangent (tanh) activation function maps inputs smoothly to (-1, 1), offering zero-centered outputs and a steeper maximum gradient of 1.0 compared to sigmoid&apos;s 0.25. While zero-centering improves optimization dynamics, tanh still saturates for large magnitude inputs, causing vanishing gradients that make ReLU-family activations preferable in deep feedforward networks.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Pros and Cons of the Sigmoid Function</title><link>https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-the-sigmoid-function/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/pros-and-cons-of-the-sigmoid-function/</guid><description>The sigmoid function maps real inputs smoothly into (0, 1), making it ideal for binary classification outputs and multiplicative gates where values represent probabilities or fractions. However, as a hidden-layer activation in deep networks it suffers from severe vanishing gradients (maximum derivative is 0.25), non-zero-centered outputs that slow optimization, and higher exponential compute cost.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category></item><item><title>Random Forest</title><link>https://www.educatum.com/interview-questions/machine-learning/random-forest/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/random-forest/</guid><description>Random Forest is an ensemble learning algorithm that aggregates predictions across many decision trees trained independently to improve generalization and stability. It mitigates single-tree overfitting through two sources of randomness: bootstrap sampling of training instances (bagging) and random feature subsampling at every split, which decorrelates trees and lowers ensemble variance.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Random forest VS Adaboost</title><link>https://www.educatum.com/interview-questions/machine-learning/random-forest-vs-adaboost/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/random-forest-vs-adaboost/</guid><description>Random Forest and AdaBoost are both tree-based ensemble methods, but they follow opposite strategies. Random Forest trains deep decision trees independently in parallel via bagging and feature subsampling to reduce variance, whereas AdaBoost trains shallow learners (typically decision stumps) sequentially while reweighting misclassified examples to reduce bias.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Relation between logistic regression and neural network?</title><link>https://www.educatum.com/interview-questions/machine-learning/relation-between-logistic-regression-and-neural-network/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/relation-between-logistic-regression-and-neural-network/</guid><description>Logistic regression is mathematically equivalent to a single-layer neural network with one output neuron using a sigmoid activation and binary cross-entropy loss. Deep neural networks generalize this building block by stacking multiple hidden layers with non-linear activations, transforming linearly inseparable inputs into separable latent representations.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>relative-entropy VS cross-entropy</title><link>https://www.educatum.com/interview-questions/machine-learning/relative-entropy-vs-cross-entropy/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/relative-entropy-vs-cross-entropy/</guid><description>Cross-entropy H(P, Q) measures the average code length when encoding events from true distribution P using a model distribution Q, while KL divergence (relative entropy) D_KL(P || Q) measures the extra information lost beyond P&apos;s intrinsic entropy H(P). Because H(P, Q) = H(P) + D_KL(P || Q) and H(P) does not depend on model parameters, minimizing cross-entropy with respect to Q is mathematically equivalent to minimizing KL divergence.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category><category>Loss</category></item><item><title>ReLU (Rectified Linear Unit)</title><link>https://www.educatum.com/interview-questions/machine-learning/relu-rectified-linear-unit/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/relu-rectified-linear-unit/</guid><description>ReLU (Rectified Linear Unit) is a piecewise-linear activation function defined as f(x) = max(0, x), passing positive inputs unchanged and clamping negative inputs to zero. Its constant derivative of 1 for positive values preserves gradient flow and speeds up training compared to sigmoid or tanh, though units can suffer from the dying ReLU problem when pre-activations stay persistently negative.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Ridge and Lasso</title><link>https://www.educatum.com/interview-questions/machine-learning/ridge-and-lasso/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/ridge-and-lasso/</guid><description>Ridge and Lasso regression regularize linear regression to prevent overfitting by adding norm penalties on the weights. Ridge adds an L2 squared penalty that yields a unique closed-form solution and shrinks correlated weights evenly toward zero, whereas Lasso adds an L1 absolute penalty solved numerically that drives weak coefficients to exact zero for automatic feature selection.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>RMSprop Optimizer</title><link>https://www.educatum.com/interview-questions/machine-learning/rmsprop-optimizer/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/rmsprop-optimizer/</guid><description>RMSprop (Root Mean Square Propagation) is an adaptive gradient-based optimizer that normalizes each parameter&apos;s update by the root of an exponentially weighted moving average (EWMA) of its squared gradients. Unlike AdaGrad, whose monotonically growing gradient accumulation prematurely shrinks learning rates toward zero, RMSprop&apos;s moving average forgets distant history, dampening oscillations in steep directions while sustaining progress along flatter dimensions.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>ROC curve</title><link>https://www.educatum.com/interview-questions/machine-learning/roc-curve/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/roc-curve/</guid><description>An ROC curve evaluates a binary classifier across all classification thresholds by plotting True Positive Rate (TPR, recall) against False Positive Rate (FPR). The Area Under the ROC Curve (AUC-ROC) measures pure ranking discrimination—the probability that a randomly selected positive example receives a higher predicted score than a randomly selected negative example.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Standardization VS Normalization</title><link>https://www.educatum.com/interview-questions/machine-learning/standardization-vs-normalization/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/standardization-vs-normalization/</guid><description>Standardization (z-score scaling) centers each feature to zero mean and unit variance, while normalization (min-max scaling) rescales features into a fixed interval such as [0, 1]. Standardization is generally preferred for gradient-based models, SVMs, and PCA because it preserves zero-centered distributions and handles moderate outliers better, whereas normalization is useful when bounded inputs like image pixels are explicitly required.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Steps of Principal Component Analysis (PCA)</title><link>https://www.educatum.com/interview-questions/machine-learning/steps-of-principal-component-analysis-pca/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/steps-of-principal-component-analysis-pca/</guid><description>Principal Component Analysis (PCA) reduces dimensionality by projecting centered (and typically standardized) data onto orthogonal directions of maximum variance. The core steps are centering and scaling features, computing the covariance matrix, finding its eigenvectors and eigenvalues (or SVD), selecting the top k components by explained variance, and projecting the data onto that subspace.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Stochastic Gradient Descent (SGD)</title><link>https://www.educatum.com/interview-questions/machine-learning/stochastic-gradient-descent-sgd/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/stochastic-gradient-descent-sgd/</guid><description>Stochastic Gradient Descent (SGD) optimizes model parameters using noisy gradient estimates computed from a single training sample or a small mini-batch rather than the entire dataset. This lowers per-step computation from O(m) to O(batch_size), enables out-of-core streaming on massive datasets, and introduces stochastic noise that can help escape shallow saddle points or sharp local minima when paired with shuffling and learning rate decay.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Supervised vs. Unsupervised Learning</title><link>https://www.educatum.com/interview-questions/machine-learning/supervised-vs-unsupervised-learning/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/supervised-vs-unsupervised-learning/</guid><description>Supervised learning trains models on labeled input-output pairs to predict targets or classify new observations. Unsupervised learning operates on unlabeled inputs without explicit target labels to uncover latent patterns, clusters, low-dimensional manifolds, or anomalies within the data itself.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>t-SNE VS PCA</title><link>https://www.educatum.com/interview-questions/machine-learning/t-sne-vs-pca/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/t-sne-vs-pca/</guid><description>PCA is a deterministic linear dimensionality reduction method that preserves global variance and learns an explicit projection matrix for transforming unseen test data in ML pipelines. t-SNE is a stochastic, non-linear visualization technique that preserves local neighborhood similarities in 2D or 3D, but it is non-parametric (cannot directly transform new points) and does not reliably preserve global cluster distances or sizes.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Vanishing Gradient Problem</title><link>https://www.educatum.com/interview-questions/machine-learning/vanishing-gradient-problem/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/vanishing-gradient-problem/</guid><description>The vanishing gradient problem occurs during backpropagation when gradients shrink exponentially as they propagate from later layers back to earlier layers, starving early weights of meaningful updates. It arises through the chain rule when repeated Jacobian products involve small weight singular values and saturating activations like sigmoid or tanh whose derivatives approach zero. Common mitigations include non-saturating activations such as ReLU, He or Xavier initialization, normalization layers, residual skip connections, and gating in LSTMs or GRUs.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>What is a Language Model?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-a-language-model/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-a-language-model/</guid><description>A language model defines a probability distribution over sequences of tokens or words, scoring how plausible a sequence is in a language. Autoregressive language models factorize sequence probability via the chain rule into next-token predictions conditioned on prior context, whereas masked language models predict hidden tokens from bidirectional context. Evaluated commonly by perplexity, modern language models built on Transformers power text generation, translation, speech recognition, and reasoning tasks.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>NLP</category></item><item><title>What is AUC - ROC Curve?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-auc-roc-curve/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-auc-roc-curve/</guid><description>The ROC (Receiver Operating Characteristic) curve plots a binary classifier&apos;s True Positive Rate against its False Positive Rate across all classification thresholds from 0 to 1. AUC (Area Under the ROC Curve) summarizes this curve as a scalar between 0 and 1, equal to the probability that the model ranks a randomly chosen positive instance higher than a randomly chosen negative instance. A higher AUC indicates stronger threshold-independent class separation, with 1.0 representing perfect ranking and 0.5 representing random guessing.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Model Evaluation</category></item><item><title>What is backpropagation?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-backpropagation/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-backpropagation/</guid><description>Backpropagation is the reverse-mode automatic differentiation algorithm used to compute exact gradients of a loss function with respect to every weight and bias in a neural network. After a forward pass caches intermediate activations, backpropagation applies the chain rule from output to input in time proportional to a single forward pass. Optimization algorithms such as SGD or Adam then use these gradients to update parameters and minimize the loss.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>What is batch normalization?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-batch-normalization/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-batch-normalization/</guid><description>Batch Normalization standardizes each layer&apos;s pre-activations or activations across the current mini-batch to zero mean and unit variance, then applies learned per-channel scale (gamma) and shift (beta) parameters. Originally proposed to reduce internal covariate shift, subsequent research showed its main benefit comes from smoothing the optimization landscape so higher learning rates train reliably. During inference, it uses fixed exponential moving averages of training mean and variance rather than batch statistics.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is density estimation in ML?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-density-estimation-in-ml/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-density-estimation-in-ml/</guid><description>Density estimation is the unsupervised task of estimating the underlying probability density function (PDF) of a dataset from observed samples. Parametric approaches fit fixed-form distributions such as Gaussians or Gaussian Mixture Models, whereas non-parametric methods such as histograms and Kernel Density Estimation infer smooth densities directly from local sample concentrations. It underpins anomaly detection, Bayesian inference, and probabilistic generative modeling.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is dropout?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-dropout/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-dropout/</guid><description>Dropout is a neural network regularization technique that randomly sets each hidden unit&apos;s activation to zero with probability p during each training forward pass. Modern implementations use inverted dropout, scaling surviving activations by 1/(1-p) during training so the network requires no rescaling at inference time. By breaking feature co-adaptation, dropout approximates training and averaging an exponential ensemble of thinned sub-networks.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category></item><item><title>What is EM algorithm?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-em-algorithm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-em-algorithm/</guid><description>The Expectation-Maximization (EM) algorithm is an iterative optimization method for finding maximum likelihood (or MAP) parameter estimates in statistical models with latent variables or missing data. It alternates between an E-step, which computes the posterior distribution over latent variables to form the expected complete-data log-likelihood, and an M-step, which maximizes that expectation with respect to the model parameters. By Jensen&apos;s inequality, each EM iteration guarantees that the observed-data log-likelihood never decreases.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is GMM?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-gmm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-gmm/</guid><description>A Gaussian Mixture Model (GMM) is a probabilistic latent-variable model that represents a data distribution as a convex combination of K multivariate Gaussian components, each with its own weight, mean vector, and covariance matrix. Unlike hard clustering methods such as K-means, GMMs compute soft posterior probabilities assigning every point partially to each cluster and can capture elliptical cluster shapes. Model parameters are typically learned via the Expectation-Maximization (EM) algorithm.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is hierarchical clustering?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-hierarchical-clustering/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-hierarchical-clustering/</guid><description>Hierarchical clustering is an unsupervised learning method that organizes data into a nested tree of clusters without requiring a fixed cluster count up front. It operates either bottom-up (agglomerative, merging closest pairs from individual points) or top-down (divisive, recursively splitting one global cluster), visualizing merges in a dendrogram. While flexible in cluster shape via linkage choice, standard agglomerative clustering requires O(n^2) memory and O(n^2 log n) to O(n^3) time, limiting scale to large datasets.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is Inception Network in Deep Learning?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-inception-network-in-deep-learning/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-inception-network-in-deep-learning/</guid><description>The Inception network (originally introduced as GoogLeNet / Inception-v1) is a deep CNN architecture built around parallel multi-scale Inception modules instead of uniform sequential convolutions. Each module runs 1x1, 3x3, and 5x5 convolutions alongside a 3x3 max-pooling branch, using 1x1 bottleneck convolutions to compress channel dimensionality before expensive spatial filters and concatenating all branch outputs. Combined with Global Average Pooling instead of heavy fully connected layers, Inception achieved high ImageNet accuracy with far fewer parameters than VGG.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is Inception-ResNet-V2?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-inception-resnet-v2/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-inception-resnet-v2/</guid><description>Inception-ResNet-v2 is a deep convolutional neural network from Google Research that merges multi-branch Inception modules with ResNet-style identity skip connections. By combining factorized, computationally cheaper Inception blocks, Batch Normalization on convolutional layers, and scaled residual additions, it trains much faster and avoids optimization degradation in very deep networks. Upon release in 2016, it achieved state-of-the-art ImageNet accuracy and remains a widely used vision backbone.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is kernel method?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-kernel-method/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-kernel-method/</guid><description>Kernel methods are machine learning algorithms that learn non-linear patterns by implicitly mapping inputs into a high- or infinite-dimensional Reproducing Kernel Hilbert Space (RKHS) using a positive semi-definite kernel function. Via the kernel trick, algorithms evaluate pairwise inner products in the transformed space directly in input space without explicitly computing high-dimensional feature coordinates. Classic examples include kernel Support Vector Machines, Gaussian Processes, Kernel Ridge Regression, and Kernel PCA.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is leaky ReLU?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-leaky-relu/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-leaky-relu/</guid><description>Leaky ReLU is a modified Rectified Linear Unit activation function that retains a small positive slope alpha (such as 0.01 or 0.2) for negative inputs instead of outputting zero. By keeping the gradient non-zero everywhere except at zero, it prevents neurons from becoming permanently stuck in an inactive state (the dying ReLU problem). While preserving ReLU&apos;s computational speed, it helps stabilize training in architectures prone to dead units, such as GANs or unnormalized deep networks.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is regularization?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-regularization/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-regularization/</guid><description>Regularization is any technique that constrains a model&apos;s effective capacity or training dynamics to prevent overfitting and improve generalization on unseen data. Most classically, it adds a complexity penalty such as L1 (Lasso) or L2 (Ridge) weight norms to the empirical training loss, trading a small increase in bias for a larger reduction in variance. Beyond explicit parameter penalties, regularization encompasses dropout, early stopping, data augmentation, and architectural constraints.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Regularization Techniques</category></item><item><title>What is relative entropy?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-relative-entropy/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-relative-entropy/</guid><description>Relative entropy, commonly known as Kullback-Leibler (KL) divergence, quantifies how one probability distribution Q diverges from a reference distribution P, measuring the extra expected bits or nats required when coding samples from P using Q. KL divergence is always non-negative and equals zero if and only if P and Q match almost everywhere, but it is asymmetric and diverges to infinity whenever Q assigns zero probability to an event with positive probability under P. It links cross-entropy to entropy and underpins variational inference, VAEs, and policy-gradient regularization.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is ResNet?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-resnet/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-resnet/</guid><description>ResNet (Residual Neural Network) is a deep learning architecture introduced in 2015 that adds identity skip connections bypassing one or more layers. Instead of fitting a direct mapping H(x) from scratch, each block learns a residual mapping F(x) = H(x) - x so the block outputs F(x) + x, making identity transformations trivial when extra layers are unneeded. This resolves the deep network degradation problem and creates an unobstructed additive gradient highway during backpropagation, enabling networks with hundreds of layers.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is t-SNE (t-distributed Stochastic Neighbor Embedding)</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-t-sne-t-distributed-stochastic-neighbor-embedding/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-t-sne-t-distributed-stochastic-neighbor-embedding/</guid><description>t-SNE (t-distributed Stochastic Neighbor Embedding) is a non-linear dimensionality reduction technique built primarily for visualizing high-dimensional datasets in 2D or 3D. It converts pairwise high-dimensional distances into Gaussian neighbor probabilities and matches them in low dimensions using a heavy-tailed Student-t distribution by minimizing KL divergence, preserving local neighborhoods while avoiding crowding. Because t-SNE optimizes a non-convex objective focused on local structure, cluster sizes and distances between distant clusters should not be interpreted literally.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is U-Net?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-u-net/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-u-net/</guid><description>U-Net is a fully convolutional encoder-decoder architecture originally built for biomedical semantic segmentation that pairs a downsampling contracting path with a symmetric upsampling expansive path. At each resolution stage, skip connections concatenate high-resolution encoder feature maps directly onto the corresponding decoder maps, combining coarse semantic context with sharp spatial boundaries. Its efficiency and strong inductive bias make it effective even with limited annotated data, as well as a standard backbone in diffusion models.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What is underfitting and overfitting?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-is-underfitting-and-overfitting/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-is-underfitting-and-overfitting/</guid><description>Underfitting happens when a model lacks the capacity to learn the underlying data structure, causing high error on both training and validation sets (high bias). Overfitting happens when an overly flexible model memorizes noise and training-set quirks, producing near-zero training error alongside poor generalization on unseen test data (high variance). Good machine learning practice balances model complexity, regularization, and data size to hit the validation-error minimum between these regimes.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What Makes a Random Forest Random?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-makes-a-random-forest-random/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-makes-a-random-forest-random/</guid><description>A Random Forest introduces randomness in two complementary ways during training: bagging (bootstrap aggregating) and random feature subsampling at each split. Bagging trains each decision tree on a distinct bootstrap sample drawn with replacement from the training set, while split-level feature randomness restricts each node split to a random subset of candidate features (such as sqrt(p) in classification). Together, these mechanisms decorrelate individual low-bias, high-variance trees so averaging their predictions sharply lowers ensemble variance.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>What&apos;s the motivation behind LSTM?</title><link>https://www.educatum.com/interview-questions/machine-learning/what-s-the-motivation-behind-lstm/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/what-s-the-motivation-behind-lstm/</guid><description>Long Short-Term Memory (LSTM) networks were designed to overcome the vanishing gradient problem that prevents standard Recurrent Neural Networks (RNNs) from learning long-range dependencies during Backpropagation Through Time (BPTT). Standard RNNs repeatedly multiply hidden states by recurrent weight matrices and tanh derivatives at every step, causing gradients from distant inputs to decay exponentially. LSTMs introduce an additive cell-state highway controlled by input, forget, and output gates, enabling gradients and memory signals to persist across many time steps.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>NLP</category></item><item><title>Why 1x1 convolutional layer?</title><link>https://www.educatum.com/interview-questions/machine-learning/why-1x1-convolutional-layer/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-1x1-convolutional-layer/</guid><description>A 1x1 convolutional layer applies a learned linear combination across channels at every spatial pixel independently, followed by a non-linear activation. Its primary uses are channel dimensionality reduction (bottlenecks before expensive 3x3 or 5x5 convolutions), channel expansion in residual blocks, and adding cheap depth with far fewer parameters than spatial kernels. It acts as a parameter-sharing MLP across the channel dimension without altering height or width.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Computer Vision and CNN</category></item><item><title>Why AUC is a Desirable Metric</title><link>https://www.educatum.com/interview-questions/machine-learning/why-auc-is-a-desirable-metric/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-auc-is-a-desirable-metric/</guid><description>AUC (Area Under the ROC Curve) is a desirable classification metric because it evaluates a model&apos;s ranking ability across all possible decision thresholds rather than at a single arbitrary cutoff. It equals the probability that a randomly selected positive example receives a higher predicted score than a randomly selected negative example, avoiding accuracy&apos;s trap on moderately imbalanced data. However, because ROC-AUC ignores calibration and can look overly optimistic when negatives vastly outnumber positives, Precision-Recall AUC and calibration metrics should complement it.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Why does decision tree have high variance?</title><link>https://www.educatum.com/interview-questions/machine-learning/why-does-decision-tree-have-high-variance/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-does-decision-tree-have-high-variance/</guid><description>Decision trees have high variance because small perturbations in the training data can trigger different greedy splits near the root, cascading into radically different tree structures and predictions. Unconstrained trees partition feature space down to tiny, near-pure leaf subsets that memorize noise and local outliers. Variance is typically controlled by limiting tree depth and leaf size, pruning branches, or averaging many decorrelated trees via bagging and Random Forests.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Why doesn&apos;t MSE work with logistic regression?</title><link>https://www.educatum.com/interview-questions/machine-learning/why-doesn-t-mse-work-with-logistic-regression/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-doesn-t-mse-work-with-logistic-regression/</guid><description>Mean Squared Error (MSE) is poorly suited for logistic regression for two fundamental optimization reasons: non-convexity and vanishing gradients. Composing the non-linear sigmoid function with squared error produces a non-convex loss landscape with flat plateaus and local minima, whereas Binary Cross-Entropy (Log Loss) is convex in the weights. Furthermore, MSE&apos;s gradient includes the sigmoid derivative y_hat(1 - y_hat), which approaches zero precisely when predictions are confidently wrong, stalling gradient descent.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Why is bias used in NN?</title><link>https://www.educatum.com/interview-questions/machine-learning/why-is-bias-used-in-nn/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-is-bias-used-in-nn/</guid><description>A bias term adds a learnable scalar offset to a neuron&apos;s weighted sum before applying the non-linear activation function, playing the same role as the intercept in linear regression. Without bias, the pre-activation hyperplane w^T x = 0 must pass through the origin and the zero-input response stays fixed at phi(0) (such as 0.5 for sigmoid). Including bias lets every neuron shift its activation threshold freely, dramatically expanding representational flexibility.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Basic Concepts</category></item><item><title>Why is L1 supposed to lead to sparsity than L2?</title><link>https://www.educatum.com/interview-questions/machine-learning/why-is-l1-supposed-to-lead-to-sparsity-than-l2/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-is-l1-supposed-to-lead-to-sparsity-than-l2/</guid><description>L1 regularization induces sparsity because its constraint region is a cross-polytope (a diamond in 2D) with sharp corners lying directly on the coordinate axes, where one or more weights equal zero. Expanding elliptical loss contours are much more likely to hit a sharp axial corner of the L1 diamond than to intersect a smooth L2 hypersphere exactly on an axis. Analytically, L1&apos;s constant subgradient magnitude pushes small weights all the way to zero, whereas L2&apos;s gradient fades proportionally toward zero.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Regularization Techniques</category></item><item><title>Why is non linear activation function needed?</title><link>https://www.educatum.com/interview-questions/machine-learning/why-is-non-linear-activation-function-needed/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-is-non-linear-activation-function-needed/</guid><description>Non-linear activation functions are essential because composing any number of purely linear layers algebraically collapses into a single affine transformation, giving a deep linear network no more expressive power than linear regression. Introducing non-linear, non-polynomial activations such as ReLU, GELU, sigmoid, or tanh breaks this collapse, enabling hierarchical feature composition and curved decision boundaries. By the Universal Approximation Theorem, even a single hidden layer with enough non-polynomial units can approximate any continuous function on a compact domain.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Neural Networks and Deep Learning</category><category>NN</category></item><item><title>Why L1 and L2 are Commonly Used for Regularization</title><link>https://www.educatum.com/interview-questions/machine-learning/why-l1-and-l2-are-commonly-used-for-regularization/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-l1-and-l2-are-commonly-used-for-regularization/</guid><description>L1 and L2 norms dominate regularization because they strike the optimal balance between statistical usefulness, convexity, and computational tractability. Ideal sparsity (L0 pseudo-norm) requires NP-hard combinatorial subset search, whereas L1 is its tightest convex relaxation and yields sparse models efficiently, and squared L2 is strictly convex, smooth everywhere, and admits a closed-form linear solution in Ridge regression. Probabilistically, L1 and L2 correspond directly to Laplace and Gaussian MAP priors.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Regularization Techniques</category><category>Regularization</category></item><item><title>Why Regularization Reduces Overfitting</title><link>https://www.educatum.com/interview-questions/machine-learning/why-regularization-reduces-overfitting/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/why-regularization-reduces-overfitting/</guid><description>Regularization reduces overfitting by constraining a model&apos;s effective hypothesis space so it cannot fit random noise in the training data with extreme weights. Shrinking weight magnitudes bounds the function&apos;s Lipschitz constant—making predictions smoother across neighboring inputs—and damps unstable directions associated with small singular values. In doing so, regularization accepts a modest bias increase in exchange for a much larger drop in variance, improving test generalization.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Regularization Techniques</category></item><item><title>Word Embeddings</title><link>https://www.educatum.com/interview-questions/machine-learning/word-embeddings/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/word-embeddings/</guid><description>Word embeddings are dense, low-dimensional vector representations of words learned from text corpora so that semantically and syntactically similar words lie close together in vector space. Grounded in the distributional hypothesis, methods like Word2Vec, GloVe, and FastText replace sparse, orthogonal one-hot vectors with continuous representations that support similarity search and analogical reasoning. Unlike static embeddings that assign one fixed vector per word, modern Transformers produce contextualized embeddings that vary with surrounding words.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>NLP</category></item><item><title>Zero padding in CNN</title><link>https://www.educatum.com/interview-questions/machine-learning/zero-padding-in-cnn/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/machine-learning/zero-padding-in-cnn/</guid><description>Zero-padding appends borders of zeros around an input feature map before applying a convolutional kernel. It prevents spatial dimensions from shrinking across deep stacks of convolutional layers (&apos;same&apos; padding) and ensures edge pixels participate in multiple receptive fields rather than being under-sampled. While simple and computationally cheap, zero-padding introduces artificial step edges at borders and can leak absolute spatial position cues compared with reflection or replication padding.</description><pubDate>Fri, 22 Nov 2024 00:00:00 GMT</pubDate><category>Computer Vision and CNN</category></item><item><title>Can you articulate the distinctions between generative models, designed to produce novel data instances, and discriminative models, which aim to classify or categorize data?</title><link>https://www.educatum.com/interview-questions/llm-genai/can-you-articulate-the-distinctions-between-generative-models-designed-to/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/can-you-articulate-the-distinctions-between-generative-models-designed-to/</guid><description>Generative models learn the data distribution p(x) or joint distribution p(x, y) to model how data is generated and synthesize new instances. Discriminative models directly learn the conditional distribution p(y|x) or a decision boundary to classify inputs without modeling p(x). Generative models support sampling, density estimation, and Bayes-rule classification, whereas discriminative models focus capacity on the decision boundary and typically achieve lower asymptotic error on supervised tasks.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Generative Models</category></item><item><title>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.</title><link>https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-the-impact-of-using-sparse-e-g-cross-entropy-and-dense-e/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-the-impact-of-using-sparse-e-g-cross-entropy-and-dense-e/</guid><description>Sparse cross-entropy takes integer token indices (O(1) target memory) instead of dense O(V) one-hot vectors, though computing softmax normalization over vocabulary V still costs O(V) per token unless approximated. Compared with MSE over softmax probabilities, cross-entropy avoids vanishing gradients from the softmax Jacobian p(1 - p) and gradient dilution across V - 1 negative classes. Because cross-entropy directly minimizes negative log-likelihood and aligns with perplexity, it trains language models faster and produces sharper probability distributions.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Loss Functions</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-the-use-of-l1-and-l2-loss-functions-in-the-context-of/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-the-use-of-l1-and-l2-loss-functions-in-the-context-of/</guid><description>L1 (MAE) and L2 (MSE) losses measure pixel or feature reconstruction error in generative models, corresponding to Laplace and Gaussian noise assumptions. Minimizing L2 yields the conditional mean, which averages across ambiguous modes and causes blurry reconstructions while penalizing outliers quadratically. Minimizing L1 yields the conditional median with constant gradient magnitude, improving outlier robustness and preserving sharper edges in tasks like image-to-image translation.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Loss Functions</category></item><item><title>Compare and contrast word embeddings and sentence embeddings. How do their applications differ, and what considerations come into play when choosing between them?</title><link>https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-word-embeddings-and-sentence-embeddings-how-do-their/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/compare-and-contrast-word-embeddings-and-sentence-embeddings-how-do-their/</guid><description>Word embeddings map individual word types to static dense vectors that capture lexical similarity but collapse polysemous senses into a single representation. Sentence embeddings encode entire sentences or passages into fixed-dimensional vectors that reflect word order, syntax, and compositional semantics. Word embeddings suit lexical tasks or sequence model inputs, whereas contrastively trained sentence embeddings power semantic search, clustering, and retrieval-augmented generation.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>Describe the concept of learning rate scheduling and its role in optimizing the training process of generative models over time.</title><link>https://www.educatum.com/interview-questions/llm-genai/describe-the-concept-of-learning-rate-scheduling-and-its-role-in-optimizing/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/describe-the-concept-of-learning-rate-scheduling-and-its-role-in-optimizing/</guid><description>Learning rate scheduling adjusts the optimizer step size over training—typically via an initial linear warmup followed by cosine or Warmup-Stable-Decay annealing—to stabilize early updates and enable fine-grained convergence. In large language models and diffusion models trained per step rather than per epoch, schedules prevent early gradient divergence from large batch sizes or uninitialized layers. For GANs, pairing schedules with separate generator and discriminator learning rates (TTUR) further stabilizes adversarial dynamics.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Training Techniques</category></item><item><title>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.</title><link>https://www.educatum.com/interview-questions/llm-genai/describe-the-fundamental-components-of-a-generative-adversarial-network-gan/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/describe-the-fundamental-components-of-a-generative-adversarial-network-gan/</guid><description>A Generative Adversarial Network (GAN) pairs a generator network that maps latent noise z to synthetic samples with a discriminator network that distinguishes real data from generated fakes. Theoretically formulated as a two-player minimax game minimizing Jensen-Shannon divergence, practical GANs typically train the generator with a non-saturating log-likelihood loss to prevent vanishing gradients early in training. Iterative alternating updates drive the generator toward realistic samples while challenging the discriminator to refine its decision boundary.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Generative Adversarial Networks (GANs)</category></item><item><title>Discuss common metrics and approaches used to evaluate the quality of text generated by Large Language Models (LLMs).</title><link>https://www.educatum.com/interview-questions/llm-genai/discuss-common-metrics-and-approaches-used-to-evaluate-the-quality-of-text/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/discuss-common-metrics-and-approaches-used-to-evaluate-the-quality-of-text/</guid><description>Evaluating LLM-generated text combines intrinsic likelihood metrics (perplexity), reference-based overlap or embedding metrics (BLEU, ROUGE, METEOR, BERTScore), and task-specific execution or accuracy benchmarks. Because n-gram metrics correlate poorly with open-ended instruction quality and perplexity cannot be compared across different tokenizers, modern pipelines rely heavily on human preference ratings and calibrated LLM-as-a-Judge evaluations. A rigorous evaluation framework balances automatic scalability with human or judge audits for factuality, coherence, and safety.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>Discuss common regularization techniques used during the training of embeddings to prevent overfitting and enhance the generalization ability of models.</title><link>https://www.educatum.com/interview-questions/llm-genai/discuss-common-regularization-techniques-used-during-the-training-of/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/discuss-common-regularization-techniques-used-during-the-training-of/</guid><description>Regularizing embedding layers prevents high-capacity lookup tables from overfitting rare tokens or noise in finite training datasets. Common techniques include L1/L2 penalties or decoupled weight decay (AdamW), element-wise or word-level embedding dropout, hyperspherical L2 normalization, and validation-based early stopping. When training large vocabularies, practitioners must also account for dense weight decay updating unseen embedding rows versus sparse optimization updates.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>Discuss effective strategies for training generative models when the available dataset is limited in size.</title><link>https://www.educatum.com/interview-questions/llm-genai/discuss-effective-strategies-for-training-generative-models-when-the-available/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/discuss-effective-strategies-for-training-generative-models-when-the-available/</guid><description>Training generative models on scarce datasets risks memorization, discriminator overfitting, and mode collapse. Effective remedies include transfer learning from large pre-trained backbones, parameter-efficient fine-tuning (LoRA/DreamBooth), differentiable augmentation (DiffAugment/ADA) applied to both real and generated samples, and strong regularization. When evaluating small-data regimes, Kernel Inception Distance (KID) avoids the sample-size bias of FID.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Training Techniques</category></item><item><title>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.</title><link>https://www.educatum.com/interview-questions/llm-genai/discuss-the-challenges-and-strategies-involved-in-generating-cross-modal/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/discuss-the-challenges-and-strategies-involved-in-generating-cross-modal/</guid><description>Generating cross-modal embeddings requires mapping heterogeneous inputs such as text, images, and audio into a shared geometric space where semantically matching pairs align closely. Key challenges include structural disparities across modalities, noisy web pairs, false negatives, and the modality gap where embeddings cluster into modality-specific cones. Effective strategies include dual encoders or cross-attention fusion trained with temperature-scaled symmetric InfoNCE contrastive loss and evaluated via Recall@K.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/discuss-the-challenges-related-to-overfitting-in-large-language-models-llms/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/discuss-the-challenges-related-to-overfitting-in-large-language-models-llms/</guid><description>In large language models, overfitting manifests differently across phases: pre-training on massive corpora mainly suffers from verbatim memorization of duplicated passages, whereas downstream fine-tuning on small datasets can rapidly degrade generalization and instruction diversity. Mitigation relies on aggressive pre-training deduplication and decoupled weight decay (AdamW), while fine-tuning benefits from LoRA, lower learning rates, dropout, data replay, and early stopping on held-out validation loss.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>Discuss the concept of transfer learning in natural language processing and explain how pre-trained language models enhance various NLP tasks.</title><link>https://www.educatum.com/interview-questions/llm-genai/discuss-the-concept-of-transfer-learning-in-natural-language-processing-and/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/discuss-the-concept-of-transfer-learning-in-natural-language-processing-and/</guid><description>Transfer learning in NLP reuses representations learned by pre-trained language models on broad corpora to solve downstream tasks with far less labeled data and compute. Adaptation ranges from frozen feature extraction and full fine-tuning to parameter-efficient fine-tuning (LoRA) and zero- or few-shot in-context prompting. By preserving general syntactic and semantic representations while specializing task heads or low-rank adapters, transfer learning improves generalization and convergence speed.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transfer Learning</category></item><item><title>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.</title><link>https://www.educatum.com/interview-questions/llm-genai/discuss-the-role-of-cross-attention-in-transformer-based-encoder-decoder/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/discuss-the-role-of-cross-attention-in-transformer-based-encoder-decoder/</guid><description>Cross-attention bridges the encoder and decoder in sequence-to-sequence Transformers by projecting decoder hidden states into queries (Q) and encoder outputs into keys (K) and values (V). Unlike causal decoder self-attention, cross-attention uses only a source padding mask so every decoding step can dynamically retrieve context from any non-padded input position. Because encoder outputs stay fixed during generation, cross-attention keys and values can be cached once per sequence to accelerate autoregressive decoding.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>Evaluating LLM Embeddings</title><link>https://www.educatum.com/interview-questions/llm-genai/evaluating-llm-embeddings/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/evaluating-llm-embeddings/</guid><description>Evaluating LLM embeddings assesses how faithfully dense vectors preserve semantic similarity and support downstream tasks such as retrieval, clustering, and reranking. Intrinsic evaluations measure cosine alignment via Spearman&apos;s rho on STS datasets alongside geometric uniformity diagnostics, while retrieval benchmarks report Recall@k, MRR, MAP, and NDCG@k. Comprehensive suites like MTEB combine these signals because strong sentence-similarity correlation alone does not guarantee strong RAG retrieval performance.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>Explain some of the pre-training mechanisms used for Large Language Models (LLMs).</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-some-of-the-pre-training-mechanisms-used-for-large-language-models-llms/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-some-of-the-pre-training-mechanisms-used-for-large-language-models-llms/</guid><description>Pre-training objectives teach language models syntax, reasoning, and world knowledge from unlabeled text without human annotations. Major objectives include Causal Language Modeling (next-token prediction in GPT/LLaMA), Masked Language Modeling (bidirectional reconstruction in BERT), Span Corruption (T5), Fill-in-the-Middle for code, and Permuted Language Modeling (randomized autoregressive factorization in XLNet). Modern frontier LLMs largely standardize on CLM because every token yields a training gradient and directly matches autoregressive inference.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>Explain the application of curriculum learning in the training of generative models and discuss the benefits it offers.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-application-of-curriculum-learning-in-the-training-of-generative/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-application-of-curriculum-learning-in-the-training-of-generative/</guid><description>Curriculum learning orders training examples or modeling tasks from simple to complex using an explicit difficulty metric and pacing schedule, stabilizing early optimization and improving convergence. In generative modeling, prominent examples include progressive resolution growing in ProGAN/StyleGAN, diffusion noise scheduling, and context-length or data-complexity curricula in LLM pre-training. Starting with easier structure allows models to form coherent coarse representations before tackling high-variance details or long-range dependencies.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Training Techniques</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-contextual-embeddings-how-do-models-like-bert-generate/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-contextual-embeddings-how-do-models-like-bert-generate/</guid><description>Contextual embeddings assign a dynamic vector representation to each subword token based on its surrounding sentence or document rather than a single static lookup vector. Encoder models like BERT compute these representations through stacked bidirectional self-attention layers, integrating syntax and semantic cues from both left and right context. This resolves polysemy and enables superior performance on tasks like question answering, named entity recognition, and natural language inference.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>Explain the concept of gradient clipping and how it contributes to the stability of the training process in generative models.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-gradient-clipping-and-how-it-contributes-to-the/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-gradient-clipping-and-how-it-contributes-to-the/</guid><description>Gradient clipping prevents exploding gradients by capping gradient magnitudes whenever they exceed a threshold theta during backpropagation. Global L2 norm clipping rescales the entire model gradient vector proportionally so update direction is preserved while step size stays bounded. Even when using adaptive optimizers like AdamW, modern LLMs routinely clip global gradient norms (typically at 1.0) to absorb sudden loss spikes.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Training Techniques</category></item><item><title>Explain the concept of masked language-image modeling and its role in training multimodal models.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-masked-language-image-modeling-and-its-role-in-training/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-masked-language-image-modeling-and-its-role-in-training/</guid><description>Masked language-image modeling (MLIM) is a self-supervised multimodal pre-training objective that corrupts input text tokens and image patches and trains a joint fusion Transformer to reconstruct them from cross-modal context. Unlike dual-encoder contrastive models, MLIM fuses modalities via shared self-attention or cross-attention before prediction, forcing fine-grained alignment between visual regions and words. Models such as ViLT, FLAVA, and BEiT-3 use MLIM to boost downstream VQA, grounding, and captioning.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>Explain the concept of Mixture of Experts (MoE) models and their potential benefits in the context of LLMs.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-mixture-of-experts-moe-models-and-their-potential/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-mixture-of-experts-moe-models-and-their-potential/</guid><description>Mixture of Experts (MoE) models replace dense Transformer feed-forward layers with multiple parallel FFN experts and a learned router that dispatches each token to only the top-k experts. This conditional computation scales total parameter capacity without proportionally increasing active FLOPs per token, improving training and inference compute efficiency. However, MoEs require load-balancing mechanisms to prevent routing collapse and still incur full VRAM capacity and distributed all-to-all communication costs.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>Explain the concept of Reinforcement Learning from Human Feedback (RLHF) and its application in fine-tuning language models.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-reinforcement-learning-from-human-feedback-rlhf-and-its/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-reinforcement-learning-from-human-feedback-rlhf-and-its/</guid><description>Reinforcement Learning from Human Feedback (RLHF) aligns language models with human preferences via a three-stage pipeline: supervised fine-tuning (SFT), training a Bradley-Terry reward model on pairwise comparisons, and optimizing the policy using PPO with a KL penalty against the reference model. Because sampling discrete tokens is non-differentiable, RL policy gradients adjust token probabilities based on expected reward while the KL term curbs reward hacking. Modern pipelines also adopt simpler alternatives like Direct Preference Optimization (DPO) and GRPO.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>Explain the concept of triplet loss in the context of embedding learning.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-triplet-loss-in-the-context-of-embedding-learning/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-triplet-loss-in-the-context-of-embedding-learning/</guid><description>Triplet loss trains metric embedding spaces using (anchor, positive, negative) triplets so that anchor-positive distance stays smaller than anchor-negative distance by at least a margin alpha. L2-normalizing embeddings onto a unit hypersphere prevents trivial norm inflation and stabilizes margin geometry, while semi-hard negative mining focuses updates on informative negatives without collapsing training. While foundational in face recognition and retrieval, modern embedding pipelines often generalize triplet loss to multi-negative InfoNCE.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>Explain the concept of Vision-Language Pre-training (VLP) and its significance in developing robust vision-language models.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-vision-language-pre-training-vlp-and-its-significance/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-concept-of-vision-language-pre-training-vlp-and-its-significance/</guid><description>Vision-Language Pre-training (VLP) learns aligned multimodal representations from large datasets of image-text pairs across dual-encoder, fusion-encoder, and generative VLM paradigms. Contrastive objectives like CLIP&apos;s temperature-scaled InfoNCE align visual and textual spaces for zero-shot classification and fast retrieval, while fusion encoders and VLM connectors (BLIP, LLaVA) enable detailed captioning and visual reasoning. Pre-training dramatically improves data efficiency and zero-shot generalization on downstream multimodal tasks.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>Explain the core principles of a Variational Autoencoder (VAE) and how it integrates latent variables into its architectural design.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-core-principles-of-a-variational-autoencoder-vae-and-how-it/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-core-principles-of-a-variational-autoencoder-vae-and-how-it/</guid><description>A Variational Autoencoder (VAE) is a probabilistic latent-variable generative model whose encoder outputs mean and log-variance parameters of an approximate Gaussian posterior q(z|x), rather than a single deterministic vector. Using the reparameterization trick (z = mu + sigma * epsilon), gradients backpropagate through latent sampling while maximizing the Evidence Lower Bound (ELBO), balancing reconstruction likelihood against KL regularization toward a standard normal prior. Properly scaling reconstruction and KL losses prevents posterior collapse and ensures a smooth, generative latent space.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Variational Autoencoders (VAEs)</category></item><item><title>Explain the crucial role of positional encoding in transformer models and the specific issue it addresses in the context of self-attention operations.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-crucial-role-of-positional-encoding-in-transformer-models-and-the/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-crucial-role-of-positional-encoding-in-transformer-models-and-the/</guid><description>Positional encoding injects token order information into Transformer representations because unencoded self-attention is permutation-equivariant and cannot distinguish word order on its own. Classical sinusoidal encodings use multi-frequency sine and cosine waves so fixed relative offsets correspond to linear rotations, while learned embeddings map positions directly to vectors. Modern LLMs favor relative methods like Rotary Position Embeddings (RoPE) and ALiBi to improve length extrapolation.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>Explain the fundamental concept of embeddings in machine learning and how they represent information in a more compact form compared to raw input data.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-fundamental-concept-of-embeddings-in-machine-learning-and-how-they/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-fundamental-concept-of-embeddings-in-machine-learning-and-how-they/</guid><description>Embeddings map discrete, high-dimensional inputs—such as words, subwords, users, or items—into low-dimensional, dense continuous vectors learned directly from data. Unlike orthogonal one-hot vectors that treat every category as equidistant, embeddings place semantically related items at smaller Euclidean distances and higher cosine similarities. This compact representation captures latent structure and enables neural networks to generalize across rare or related entities.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>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.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-mechanics-of-self-attention-and-how-it-allows-models-to-weigh-the/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-mechanics-of-self-attention-and-how-it-allows-models-to-weigh-the/</guid><description>Self-attention computes contextual token representations by projecting inputs into Query (Q), Key (K), and Value (V) vectors and taking a softmax-weighted sum over values using scaled dot products QK^T / sqrt(d_k). Dividing by sqrt(d_k) keeps dot-product variance near 1 so softmax does not saturate with vanishing gradients at large head dimensions. While enabling O(1) parallel path length across any distance, full self-attention scales at O(n^2 d) compute and O(n^2) memory.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>Explain the phenomenon of catastrophic forgetting in the context of Large Language Models (LLMs).</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-phenomenon-of-catastrophic-forgetting-in-the-context-of-large/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-phenomenon-of-catastrophic-forgetting-in-the-context-of-large/</guid><description>Catastrophic forgetting occurs when fine-tuning an LLM on new tasks or domains overwrites shared parameters critical to previously learned knowledge, causing rapid capability degradation (often seen as an alignment tax). Unlike isolated task heads, gradient updates shift shared attention and FFN weights globally unless constrained. Key mitigations include experience replay (mixing prior data), parameter-efficient LoRA adapters, Elastic Weight Consolidation (EWC), and KL regularization against a reference model.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>Explain the phenomenon of mode collapse in the context of Generative Adversarial Networks (GANs) and outline strategies to address it during the training process.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-phenomenon-of-mode-collapse-in-the-context-of-generative/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-phenomenon-of-mode-collapse-in-the-context-of-generative/</guid><description>Mode collapse is a GAN training failure where the generator maps diverse latent noise inputs to a narrow subset of high-confidence outputs, ignoring other modes of the true data distribution. It stems from alternating non-convex optimization and mode-seeking loss dynamics whenever fooling the current discriminator rewards repeating one safe output. Effective remedies include Wasserstein/hinge losses with gradient penalties, minibatch discrimination, PacGAN sample packing, feature matching, and unrolled optimization.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Generative Adversarial Networks (GANs)</category></item><item><title>Explain the purpose and benefits of using multi-head attention in transformer models.</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-purpose-and-benefits-of-using-multi-head-attention-in-transformer/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-purpose-and-benefits-of-using-multi-head-attention-in-transformer/</guid><description>Multi-head attention splits queries, keys, and values into h parallel lower-dimensional heads (d_k = d_model / h) with distinct learned projections, allowing each head to attend to different syntactic, positional, or semantic subspaces simultaneously. Because each head operates in a reduced d_k dimension, multi-head attention captures richer relational patterns at roughly the same compute cost as full-dimension single-head attention. Modern LLMs also use Multi-Query (MQA) and Grouped-Query Attention (GQA) to shrink KV-cache memory.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-the-role-of-cross-modal-attention-mechanisms-in-models-like-visualbert/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-the-role-of-cross-modal-attention-mechanisms-in-models-like-visualbert/</guid><description>Multimodal vision-language models fuse visual and textual information through distinct attention architectures rather than a single uniform mechanism. Two-stream models like ViLBERT, LXMERT, and Flamingo use explicit cross-attention layers (text queries attending to visual keys/values), while single-stream models like VisualBERT concatenate image regions and text tokens into joint self-attention. By contrast, CLIP is a dual-encoder with no cross-attention, aligning independent image and text embeddings via a late cosine dot product.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/explain-why-simply-increasing-context-length-is-not-a-straightforward-solution/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/explain-why-simply-increasing-context-length-is-not-a-straightforward-solution/</guid><description>Increasing context length in standard transformers causes self-attention compute to scale quadratically as O(n^2 d) and naive attention-matrix memory to grow as O(B H n^2). Even when IO-aware kernels like FlashAttention reduce activation memory to O(n), autoregressive inference remains bottlenecked by linear O(L n) KV-cache memory growth and positional generalization limits such as attention dilution.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/for-tasks-like-image-text-matching-how-is-the-training-data-typically/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/for-tasks-like-image-text-matching-how-is-the-training-data-typically/</guid><description>Image-text matching datasets are constructed either through curated human captioning (such as MS-COCO or Flickr30k) or large-scale web scraping of naturally co-occurring image alt-text followed by quality, deduplication, and CLIP-score filtering. Key design considerations include handling many-to-many alignments, preventing false-negative collisions when sampling negatives, incorporating hard negatives, and mitigating dataset bias.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>Hallucination is a known issue in Large Language Models (LLMs). How can you evaluate and mitigate it?</title><link>https://www.educatum.com/interview-questions/llm-genai/hallucination-is-a-known-issue-in-large-language-models-llms-how-can-you/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/hallucination-is-a-known-issue-in-large-language-models-llms-how-can-you/</guid><description>LLM hallucinations occur when models generate plausible-sounding claims that contradict provided context (intrinsic) or fabricate unverified real-world facts (extrinsic). Reliable evaluation relies on atomic claim decomposition, natural language inference (NLI) entailment against retrieved evidence, and self-consistency sampling rather than surface overlap metrics like BLEU. Mitigation combines retrieval-augmented generation (RAG), verification/constrained decoding, and post-training alignment that rewards grounded citations and calibrated abstention.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>Highlight the key differences between language models like GPT (Generative Pre-trained Transformer) and BERT (Bidirectional Encoder Representations from Transformers).</title><link>https://www.educatum.com/interview-questions/llm-genai/highlight-the-key-differences-between-language-models-like-gpt-generative-pre/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/highlight-the-key-differences-between-language-models-like-gpt-generative-pre/</guid><description>GPT is a decoder-only Transformer trained autoregressively with causal (masked) self-attention to predict the next token given left context, making it naturally suited for open-ended text generation and in-context learning. BERT is an encoder-only Transformer trained with bidirectional self-attention via Masked Language Modeling (and originally Next Sentence Prediction), allowing every token to attend to both left and right context for representation, classification, and span extraction tasks.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/how-can-pre-trained-embeddings-be-leveraged-for-transfer-learning-in/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/how-can-pre-trained-embeddings-be-leveraged-for-transfer-learning-in/</guid><description>Pre-trained embeddings transfer semantic and syntactic knowledge learned from massive unlabeled corpora into downstream models, either by initializing lookup tables with static vectors (such as GloVe or FastText) or by extracting contextualized representations from pre-trained Transformer encoders. Transfer learning speeds convergence, improves generalization on small labeled datasets, and reduces overfitting compared to training embeddings from scratch.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transfer Learning</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/how-can-reinforcement-learning-be-integrated-into-the-training-of-large/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/how-can-reinforcement-learning-be-integrated-into-the-training-of-large/</guid><description>Reinforcement learning treats the autoregressive LLM as a stochastic policy that generates token sequences evaluated by a learned reward model or programmatic verifier. Because discrete token sampling and sequence-level rewards are non-differentiable, policy gradient algorithms like PPO or GRPO optimize expected reward regularized by a KL penalty against the reference SFT policy. Key loss-design challenges include high gradient variance, sparse credit assignment, and reward hacking.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>How do attention mechanisms enhance the performance of vision-language models?</title><link>https://www.educatum.com/interview-questions/llm-genai/how-do-attention-mechanisms-enhance-the-performance-of-vision-language-models/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/how-do-attention-mechanisms-enhance-the-performance-of-vision-language-models/</guid><description>Attention mechanisms enhance vision-language models by dynamically weighting spatial image regions (or patch tokens) conditioned on textual context, rather than compressing an entire image into a single static vector. Self-attention models intra-modal global relationships (e.g., object-to-object layout and syntax), while cross-attention aligns specific words or queries directly with relevant visual regions for tasks like captioning, visual question answering, and grounding.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/how-do-attention-weights-obtained-from-the-cross-attention-mechanism-influence/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/how-do-attention-weights-obtained-from-the-cross-attention-mechanism-influence/</guid><description>Cross-attention weights act as dynamic routing coefficients that determine how strongly each element of a conditioning modality (such as image patches or text tokens) contributes to each step of the target generation stream. High normalized weights amplify pertinent conditioning features and suppress irrelevant background signals, though true modality importance also depends on value-vector norms and residual stream gating across layers.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>How do models like CLIP and DALL-E demonstrate the integration of vision and language modalities?</title><link>https://www.educatum.com/interview-questions/llm-genai/how-do-models-like-clip-and-dall-e-demonstrate-the-integration-of-vision-and/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/how-do-models-like-clip-and-dall-e-demonstrate-the-integration-of-vision-and/</guid><description>CLIP integrates vision and language by training dual image and text encoders with a symmetric contrastive InfoNCE loss to align matching pairs in a shared embedding space, enabling zero-shot classification and cross-modal retrieval. DALL-E (v1) demonstrates generative integration by compressing images into discrete dVAE tokens and autoregressively modeling the joint sequence of text and image tokens, while DALL-E 2 and modern diffusion systems replace autoregressive token decoding with CLIP-conditioned diffusion priors and decoders.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>How do multimodal generative models address the issue of data sparsity in training?</title><link>https://www.educatum.com/interview-questions/llm-genai/how-do-multimodal-generative-models-address-the-issue-of-data-sparsity-in/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/how-do-multimodal-generative-models-address-the-issue-of-data-sparsity-in/</guid><description>Multimodal generative models mitigate data sparsity by exploiting shared semantic structure across modalities, allowing dense signals in one modality (such as abundant unlabeled images or text) to compensate for sparse or missing annotations in another. Through modality-invariant latent posteriors (such as Product-of-Experts or Mixture-of-Experts VAEs), semi-supervised pseudo-labeling, and unimodal pre-training paired with limited aligned data, they learn robust joint distributions and impute missing modalities.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>How does overfitting manifest in generative models, and what techniques can be used to prevent it during the training process?</title><link>https://www.educatum.com/interview-questions/llm-genai/how-does-overfitting-manifest-in-generative-models-and-what-techniques-can-be/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/how-does-overfitting-manifest-in-generative-models-and-what-techniques-can-be/</guid><description>Overfitting in generative models manifests as training-data memorization—where the model reproduces near-exact training examples instead of novel samples—and as widening gaps between training and validation likelihood (NLL/ELBO) or FID. In GANs, discriminator overfitting is especially damaging because memorizing a small real set starves the generator of informative gradients. Mitigation combines dataset deduplication, Adaptive Discriminator Augmentation (ADA), spectral normalization or R1 gradient penalties, dropout, weight decay, and validation-based early stopping.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Generative Models</category></item><item><title>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.</title><link>https://www.educatum.com/interview-questions/llm-genai/in-a-transformer-based-sequence-to-sequence-model-describe-the-primary/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/in-a-transformer-based-sequence-to-sequence-model-describe-the-primary/</guid><description>In a sequence-to-sequence Transformer, the encoder applies bidirectional self-attention across the entire source sequence in parallel to produce contextualized memory hidden states. The decoder uses causal (masked) self-attention over target tokens combined with cross-attention (querying the encoder&apos;s final hidden states as keys and values) to generate the target sequence—processed in parallel via teacher forcing during training and autoregressively step-by-step with KV caching during inference.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/in-generative-adversarial-networks-gans-what-is-the-purpose-of-incorporating/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/in-generative-adversarial-networks-gans-what-is-the-purpose-of-incorporating/</guid><description>Gradient penalties stabilize GAN training by regularizing the norm of the discriminator&apos;s (or critic&apos;s) input gradients, enforcing Lipschitz continuity or smooth local decision boundaries. In WGAN-GP, penalizing deviations of the critic gradient norm from 1 along straight-line interpolations enforces the 1-Lipschitz constraint required for Wasserstein distance optimization without weight clipping pathologies. In standard GANs, zero-centered penalties like R1 prevent discriminator overconfidence and vanishing generator gradients.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Generative Adversarial Networks (GANs)</category></item><item><title>In loss functions like triplet loss or contrastive loss, what is the significance of the margin parameter?</title><link>https://www.educatum.com/interview-questions/llm-genai/in-loss-functions-like-triplet-loss-or-contrastive-loss-what-is-the/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/in-loss-functions-like-triplet-loss-or-contrastive-loss-what-is-the/</guid><description>The margin parameter in triplet and contrastive losses defines the minimum separation threshold between similar and dissimilar representations in the embedding space, preventing trivial collapse where all points map to the same vector. In pairwise contrastive loss, it specifies the radius beyond which negative pairs incur zero loss; in triplet loss, it specifies how much closer the positive must be to the anchor than the negative. Setting the margin properly depends on embedding normalization and balances intra-class compactness against optimization stability.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Loss Functions</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/in-multimodal-language-models-how-is-information-from-visual-and-textual/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/in-multimodal-language-models-how-is-information-from-visual-and-textual/</guid><description>Modern multimodal language models integrate visual and textual modalities either by projecting visual patch embeddings from a vision encoder directly into the LLM&apos;s token embedding space for unified self-attention (early/prefix fusion, as in LLaVA and PaliGemma), or by inserting gated cross-attention layers inside the LLM decoder to attend to visual features (as in Flamingo). When generating captions or VQA answers, the language decoder autoregressively predicts text conditioned on both modalities.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>In scenarios where an LLM encounters out-of-vocabulary words during embedding generation, propose strategies for handling such cases.</title><link>https://www.educatum.com/interview-questions/llm-genai/in-scenarios-where-an-llm-encounters-out-of-vocabulary-words-during-embedding/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/in-scenarios-where-an-llm-encounters-out-of-vocabulary-words-during-embedding/</guid><description>Modern LLMs largely eliminate true out-of-vocabulary (OOV) tokens by using subword tokenization (BPE, WordPiece, or Unigram) paired with byte-level fallback, which decomposes any arbitrary UTF-8 string into known subwords or raw byte tokens without emitting an unknown token. When legacy word-level or WordPiece models still encounter unrepresented symbols, strategies include character or subword composition (such as FastText n-grams), `[UNK]` fallback vectors, and retrieval-augmented context (RAG) for novel domain terms.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/in-what-ways-do-conditional-generative-models-diverge-from-their-unconditional/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/in-what-ways-do-conditional-generative-models-diverge-from-their-unconditional/</guid><description>Unconditional generative models learn the marginal data distribution p(x) to sample plausible outputs without user control, whereas conditional generative models learn p(x | y) to steer synthesis toward a specified attribute, label, or prompt y. Conditional architectures inject y via embedding concatenation, Adaptive LayerNorm (AdaLN/FiLM), cross-attention, or classifier-free guidance, trading unconditional sample diversity for controllability in tasks like text-to-image synthesis and super-resolution.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Generative Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/large-language-models-often-require-careful-tuning-of-learning-rates-how-do/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/large-language-models-often-require-careful-tuning-of-learning-rates-how-do/</guid><description>LLM training adapts learning rates across steps (rather than epochs) using linear warmup followed by cosine or Warmup-Stable-Decay (WSD) schedules, paired with AdamW for per-parameter adaptive scaling and decoupled weight decay. Warmup prevents early divergence before Adam&apos;s second-moment estimates stabilize and before residual/LayerNorm gradients settle, while decaying toward ~10% of peak learning rate and clipping global gradient norms ensures smooth convergence.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>What are the unique challenges in training multimodal generative models compared to unimodal generative models?</title><link>https://www.educatum.com/interview-questions/llm-genai/what-are-the-unique-challenges-in-training-multimodal-generative-models/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/what-are-the-unique-challenges-in-training-multimodal-generative-models/</guid><description>Training multimodal generative models is substantially harder than unimodal modeling because modalities differ sharply in dimensionality, noise structure, and representation format (such as continuous pixels vs. discrete tokens). This leads to modality imbalance and gradient dominance, heterogeneous loss scales that are difficult to balance, cross-modal misalignment or hallucination where outputs contradict the conditioning modality, and complex joint evaluation.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Multimodal Models</category></item><item><title>What challenges arise from the fixed and limited attention span in the vanilla Transformer model? How does this limitation affect the model&apos;s ability to capture long-term dependencies?</title><link>https://www.educatum.com/interview-questions/llm-genai/what-challenges-arise-from-the-fixed-and-limited-attention-span-in-the-vanilla/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/what-challenges-arise-from-the-fixed-and-limited-attention-span-in-the-vanilla/</guid><description>Within its maximum context length L_max, a vanilla Transformer computes all-to-all self-attention, but its fixed and bounded context span arises from O(n^2) attention compute/memory and fixed positional encodings. Any sequence exceeding L_max must be truncated or split into independent fixed-size chunks, causing context fragmentation where distant tokens across chunk boundaries can never attend to one another and positional encodings fail to extrapolate.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/what-is-perceptual-loss-and-how-is-it-utilized-in-image-generation-tasks-to/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/what-is-perceptual-loss-and-how-is-it-utilized-in-image-generation-tasks-to/</guid><description>Perceptual loss measures similarity between generated and target images in the intermediate feature space of a frozen pre-trained CNN (such as VGG), rather than comparing raw pixel intensities. Because CNN feature hierarchies encode edges, textures, and semantic object parts, perceptual loss preserves sharp visual structure and tolerates imperceptible pixel shifts, whereas pixel-wise L2/MSE losses often produce blurry averages.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Loss Functions</category></item><item><title>What is quantization in the context of embeddings, and how does it contribute to reducing the memory footprint of models while preserving representation quality?</title><link>https://www.educatum.com/interview-questions/llm-genai/what-is-quantization-in-the-context-of-embeddings-and-how-does-it-contribute/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/what-is-quantization-in-the-context-of-embeddings-and-how-does-it-contribute/</guid><description>Embedding quantization reduces the bit-width or representation precision of embedding vectors—for example, compressing 32-bit floats to int8 (4x reduction), int4 (8x), binary 1-bit codes (32x), or compact Product Quantization (PQ) codebook indices. Using per-vector scaling, quantization-aware training, or subspace codebooks preserves relative cosine geometry and nearest-neighbor rankings while shrinking RAM/VRAM footprints and accelerating retrieval.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>What limitations of RNNs are addressed by transformer models?</title><link>https://www.educatum.com/interview-questions/llm-genai/what-limitations-of-rnns-are-addressed-by-transformer-models/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/what-limitations-of-rnns-are-addressed-by-transformer-models/</guid><description>Transformers overcome the sequential computation bottleneck and O(n) maximum dependency path length of Recurrent Neural Networks (RNNs) by using self-attention to process all training tokens in parallel and connect any two positions in O(1) path length. This mitigates vanishing gradients across long sequences and removes the fixed-size hidden-state information bottleneck, though Transformers trade RNNs&apos; constant-memory O(1) inference state for O(n^2) prefill compute and an O(n) growing KV cache.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/when-dealing-with-high-cardinality-categorical-features-in-tabular-data-how/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/when-dealing-with-high-cardinality-categorical-features-in-tabular-data-how/</guid><description>High-cardinality categorical features in tabular neural networks are efficiently embedded using `nn.Embedding` with sparse gradient updates (`sparse=True` paired with `SparseAdam` or `Adagrad`) so only active rows in each mini-batch update. To bound table memory, handle unseen categories, and prevent overfitting rare IDs, practitioners combine frequency thresholding with an `&lt;UNK&gt;` bucket, feature hashing or Quotient-Remainder compositional embeddings, sublinear dimension heuristics, and embedding dropout or weight decay.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>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.</title><link>https://www.educatum.com/interview-questions/llm-genai/when-dealing-with-large-scale-embeddings-propose-and-implement-an-efficient/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/when-dealing-with-large-scale-embeddings-propose-and-implement-an-efficient/</guid><description>Large-scale nearest neighbor search over millions or billions of dense embeddings relies on Approximate Nearest Neighbor (ANN) algorithms such as Hierarchical Navigable Small World (HNSW) graphs, Inverted File with Product Quantization (IVF-PQ), and Locality-Sensitive Hashing (LSH) via libraries like Faiss or ScaNN. These methods trade a tiny drop in recall for sub-linear query latency and compressed RAM footprints, avoiding the O(N d) brute-force scan and the curse of dimensionality that cripples k-d trees above ~20–32 dimensions.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/when-fine-tuning-a-pre-trained-transformer-for-a-specific-nlp-task-using/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/when-fine-tuning-a-pre-trained-transformer-for-a-specific-nlp-task-using/</guid><description>Adapting pre-trained Transformers to domain-specific NLP tasks without catastrophic forgetting relies on Domain-Adaptive Pre-training (DAPT) on unlabeled domain text, discriminative layer-wise learning rates, gradual unfreezing, and parameter-efficient fine-tuning (PEFT) such as LoRA. Pairing these optimization strategies with warmup/cosine decay, weight decay, and domain-preserving augmentation stabilizes transfer when labeled target data is scarce.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transfer Learning</category></item><item><title>When generating sequences with LLMs, how can you handle long context lengths efficiently? Discuss techniques for managing long inputs during real-time inference.</title><link>https://www.educatum.com/interview-questions/llm-genai/when-generating-sequences-with-llms-how-can-you-handle-long-context-lengths/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/when-generating-sequences-with-llms-how-can-you-handle-long-context-lengths/</guid><description>Efficient long-context LLM inference addresses two distinct bottlenecks: quadratic O(n^2) prefill compute and linear O(L n) KV-cache HBM bandwidth/capacity during autoregressive decoding. Production systems combine FlashAttention and chunked prefill to bound prefill activation memory, GQA/MLA and KV-cache quantization (FP8/INT8) with PagedAttention to shrink and pack the KV cache, and Sliding Window Attention or StreamingLLM attention sinks when bounding cache size.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/when-training-a-generative-model-for-image-synthesis-what-are-common-loss/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/when-training-a-generative-model-for-image-synthesis-what-are-common-loss/</guid><description>Image synthesis models combine pixel-space, feature-space, latent, and adversarial losses depending on whether paired ground-truth targets exist. Diffusion models minimize denoising MSE (predicting noise or velocity v), paired image-to-image and VAE architectures combine L1/L2 reconstruction with perceptual losses (VGG/LPIPS) to avoid blurriness, and GANs optimize adversarial losses (non-saturating BCE, hinge, or Wasserstein) to push generated distributions toward the real image manifold.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Generative Models</category></item><item><title>When training word embeddings, how can models be designed to effectively capture representations for rare words with limited occurrences in the training data?</title><link>https://www.educatum.com/interview-questions/llm-genai/when-training-word-embeddings-how-can-models-be-designed-to-effectively/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/when-training-word-embeddings-how-can-models-be-designed-to-effectively/</guid><description>To learn high-quality representations for rare words despite limited co-occurrence counts, embedding models rely on parameter sharing across subword units (such as FastText character n-grams or BPE/WordPiece subwords), frequent-word subsampling paired with 3/4-power smoothed unigram negative sampling so rare words are not drowned out by stopwords, and contextualized encoders that pool subword hidden states from surrounding context.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Embeddings</category></item><item><title>Why is incorporating relative positional information crucial in transformer models? Discuss scenarios where relative position encoding is particularly beneficial.</title><link>https://www.educatum.com/interview-questions/llm-genai/why-is-incorporating-relative-positional-information-crucial-in-transformer/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/why-is-incorporating-relative-positional-information-crucial-in-transformer/</guid><description>While any positional encoding breaks self-attention&apos;s permutation equivariance to distinguish word order, incorporating relative positional information is specifically crucial for translation invariance, length generalization beyond training limits, and segment-level recurrence. Modern Transformers implement relative offsets via learned relative key/logit biases (Shaw RPE, T5, ALiBi) or Rotary Position Embeddings (RoPE), ensuring attention depends on signed distance (i - j) rather than arbitrary absolute indices.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Transformer Models</category></item><item><title>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?</title><link>https://www.educatum.com/interview-questions/llm-genai/why-might-over-reliance-on-perplexity-as-a-metric-be-problematic-in-evaluating/</link><guid isPermaLink="true">https://www.educatum.com/interview-questions/llm-genai/why-might-over-reliance-on-perplexity-as-a-metric-be-problematic-in-evaluating/</guid><description>Perplexity measures token-level cross-entropy on a fixed corpus, capturing surface fluency and calibration rather than factual truthfulness, multi-step reasoning, or instruction adherence. Relying solely on perplexity is problematic because single-token factual inversions barely alter sequence perplexity, degenerate repetition loops often achieve misleadingly low perplexity, RLHF alignment can raise raw-text perplexity while improving helpfulness, and perplexity cannot be compared across models with different tokenizers.</description><pubDate>Thu, 21 Nov 2024 00:00:00 GMT</pubDate><category>Large Language Models (LLMs)</category></item></channel></rss>