Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

298 bites

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

Intermediate interview questions in AI & ML, page 11

intermediate2 min read

Designing an autonomous research-and-report agent

Planner that decomposes goals, short-term scratchpad plus long-term vector memory, structured tool calls, and a reflect-retry loop for error correction.

intermediate1 min read

Improving small object detection

Raise input resolution and tile, use feature pyramids for high-res features, tune anchors and copy-paste augmentation.

Explain dynamic batching in inference servers and its trade-off
intermediate2 min read

Explain dynamic batching in inference servers and its trade-off

Dynamic batching launches when a time window or max size is met, improving throughput over static batching, but short ones wait for the slowest.

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.

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.

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.

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