Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

546 bites

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

Interview questions in AI & ML, page 23

intermediate1 min read

Concept drift vs data drift in production models

Data drift is a shift in input distribution P(X); concept drift is a shift in the relationship P(Y|X).

intermediate2 min read

Why RAG persists despite million-token context windows

Cost and latency scale with context, attention degrades in the middle, and RAG adds freshness, access control, and citations.

intermediate2 min read

Right to be forgotten and machine unlearning

Delete raw data everywhere, then remove influence via full retraining, SISA sharded retraining, or approximate unlearning; note cost and verification.

intermediate1 min read

Deploying segmentation on edge devices

Pick efficient architectures, apply INT8 quantization, distill from a large teacher.

intermediate1 min read

Why design ML pipeline steps to be idempotent?

Re-running a step with the same input yields the same result and no duplicate side effects; enables safe retries and backfills.

intermediate2 min read

Self-attention and the Query, Key, Value matrices

Queries score against keys via scaled dot product, softmax yields weights, and those weight the values into the output.

intermediate2 min read

k-anonymity and its limits against linkage attacks

Define k-anonymity via indistinguishable quasi-identifier groups, apply generalization and suppression, then show homogeneity or linkage attacks break it.

intermediate1 min read

Adapting a 2D CNN for video action recognition

Run the 2D CNN per frame, pool features over time, optionally add two-stream or 3D conv.

intermediate1 min read

How Transformers encode token position

Attention is permutation-invariant, so positional encodings (sinusoidal, learned, or rotary) are added or applied.

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.

intermediate1 min read

Core components of visual SLAM

Tracking estimates per-frame pose, mapping builds and refines the 3D map, loop closure detects revisits and corrects drift.

Compare and contrast Apache Airflow versus Kubeflow Pipelines for ML orchestration
intermediate2 min read

Compare and contrast Apache Airflow versus Kubeflow Pipelines for ML orchestration

This tests matching orchestrators to ML constraints. A strong answer contrasts Airflow's task scheduling and backfills with Kubeflow's K8s-native GPU scaling, choosing based on team skills.

intermediate1 min read

Cross-attention versus self-attention in encoder-decoder Transformers

Cross-attention draws Queries from the decoder and Keys/Values from the encoder, letting the decoder condition on the source.

advanced2 min read

Federated learning architecture, risks, and defenses

Devices train locally and send updates not data, a server aggregates; gradients still leak, enabling inversion or membership inference; defend with secure aggregation and DP.

intermediate1 min read

The data association problem in SLAM

Matching observations to landmarks, why wrong matches corrupt the map, robust techniques like RANSAC and descriptor matching.

intermediate2 min read

Design an ML workflow that masks PII from scientists

This tests privacy-preserving pipeline design and least-privilege access for ML teams. Propose automated de-identification before experimentation, restrict re-identification to production jobs, and enforce role-based access with audit logs.

intermediate2 min read

Tokens and vocabulary-size tradeoffs

A token is a subword unit; larger vocab shortens sequences but bloats the embedding matrix, smaller vocab generalizes but lengthens sequences.

intermediate1 min read

Risks of optimizing recommendations only for CTR

CTR-only invites clickbait, low satisfaction, and long-term churn; add counter-metrics like dwell time, satisfaction, retention, and diversity.

intermediate1 min read

Cross-attention in transformer VQA models

Text queries attend over image regions, learning alignment that grounds words to visual content.

Low GPU utilization on multi-GPU instance: diagnose and right-size
intermediate2 min read

Low GPU utilization on multi-GPU instance: diagnose and right-size

Tests distributed bottleneck triage. Strong answers profile CPU/GPU/disk, compare gradient sync time to compute, validate per-GPU batch size, and check NVLink vs PCIe. Red flag: suggesting more GPUs before ruling out data starvation or all-reduce overhead.

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