Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

308 bites

Test yourself: Top 30 advanced AI & ML interview questionsMultiple choice, with the correct answer and why it is correct on every question. Free, no sign-in.

Advanced everything in AI & ML, page 2

advanced2 min read

Differential privacy, epsilon, and noisy aggregates

Define DP as bounded output change when one record is added or removed, explain epsilon as the privacy-accuracy knob, add calibrated noise scaled to sensitivity.

advanced2 min read

Minimizing model prediction latency end to end

Shrink the model via quantization, pruning, distillation, compilation; cut infra latency via caching, edge, faster runtimes.

advanced2 min read

Zero-downtime model updates with blue-green or canary

Blue-green swaps full traffic after validation, canary ramps a small slice; both need health, latency, and quality monitoring plus instant rollback.

advanced2 min read

Diagnosing Spark executor OutOfMemoryError

Check the Spark UI for skew and spills, inspect executor memory and partition count, find culprits like wide collect, huge shuffles, or skewed keys, and fix via more partitions, memory tuning, or…

advanced1 min read

Mode collapse in GANs and how to fix it

Mode collapse is the generator producing few similar outputs, missing data diversity to fool the discriminator; fixes include Wasserstein loss, minibatch discrimination, unrolled GANs, and feature…

advanced1 min read

Why Transformers use multi-head attention

A single head averages into one representation subspace; multiple heads attend in parallel to different subspaces, letting the model capture diverse relations like syntax and coreference at once, then…

advanced2 min read

Exploration versus exploitation: epsilon-greedy and UCB

Exploit current best to earn reward, explore to discover better options; epsilon-greedy explores randomly with probability epsilon; UCB explores by an uncertainty bonus…

advanced1 min read

Interpreting a black-box gradient boosting model

Global tools like permutation importance or aggregated SHAP rank overall feature influence; local tools like per-instance SHAP or LIME explain one prediction; SHAP unifies both via additive…

advanced1 min read

Stemming versus lemmatization in text preprocessing

Stemming chops affixes fast but crudely, yielding non-words; lemmatization maps to real dictionary base forms using POS, slower but accurate; skip both for embedding or transformer models.

advanced1 min read

MLE versus MAP estimation and the role of priors

MLE maximizes likelihood alone; MAP maximizes likelihood times a prior, acting as regularization that shrinks toward prior beliefs; with abundant data they converge.

advanced1 min read

Eigenvalues, eigenvectors, and their role in PCA

An eigenvector keeps direction under a matrix, its eigenvalue scales it; PCA finds eigenvectors of the covariance matrix as principal axes.

advanced2 min read

Framing ad-load tradeoffs: revenue versus retention

Define revenue plus guardrail engagement metrics, run a long-enough experiment to see retention effects, and weigh short-term lift against lifetime-value erosion.

advanced2 min read

Does forcing profile completion cause retention?

Name the confounder (engaged users self-select into completing profiles), warn that forcing it may not transfer the effect, and propose a randomized experiment.

advanced2 min read

Transformer Architecture

The Transformer replaces recurrence with self-attention, letting every token directly attend to every other token in parallel. This enables long-range context and fast training on GPUs, making it the backbone of modern large language models and much of…

advanced1 min read

Design drift detection and retraining for a CV model.

Monitor input and prediction distributions plus delayed labels, detect data and concept drift, trigger an automated retrain-validate-deploy pipeline with versioning and rollback.

advanced1 min read

Design a cashierless retail checkout vision system.

Multi-camera coverage, person tracking and re-ID, product detection plus action recognition for take or return, sensor fusion, edge-cloud split, and failure handling.

advanced1 min read

How does focus stacking build an all-in-focus image?

Align frames, measure local sharpness as a focus metric, select or blend the sharpest source per region, then composite.

advanced1 min read

Why merge a burst instead of one long low-light exposure?

Short frames avoid motion blur and clipping while averaging cuts noise; align frames and merge robustly, rejecting misaligned regions to avoid ghosting.

advanced1 min read

How does a plenoptic camera enable post-capture refocus?

Light field records ray direction plus position via a microlens array, refocusing shears and integrates the 4D data to choose a virtual focal plane.

advanced1 min read

How do BYOL and Barlow Twins avoid representation collapse?

Collapse is embeddings shrinking to a constant or low-rank subspace; BYOL uses predictor plus momentum target plus stop-gradient, Barlow Twins decorrelates feature dimensions.

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles