Skip to content
tezvyn:

🤖AI & ML

Artificial intelligence, machine learning, and data science

615 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 everything in AI & ML, page 3

intermediate1 min read

Mitigating demographic bias in a fine-tuned chatbot

Curate or counterfactually augment training data to balance demographics, plus apply post-hoc guardrails or fairness-constrained fine-tuning.

intermediate2 min read

Handling outlier activations in INT8 quantization

Profile activation magnitudes to find a few large-magnitude outlier channels, then keep those in higher precision while quantizing the rest, a mixed-precision decomposition.

intermediate2 min read

Dynamic batching and the throughput-latency trade-off

The server groups concurrent requests into one batch to use the GPU fully, but larger batches and waiting to fill them raise per-request latency and time to first token.

intermediate2 min read

Detecting catastrophic forgetting in continual fine-tuning

Maintain a frozen held-out benchmark of original capabilities, evaluate after every fine-tune, track per-capability deltas, and alert on regressions.

intermediate2 min read

Agent planning beyond a ReAct loop

ReAct adapts step by step but costs many calls, plan-then-execute drafts a full plan upfront for fewer calls but is brittle to surprises, hierarchical decomposition splits goals…

intermediate2 min read

Evaluating a multi-tool LLM agent

Measure end-to-end task success, plus trajectory quality like correct tool choice and arguments, efficiency via steps and cost, and robustness to errors and edge cases.

intermediate2 min read

Chunking and embedding a RAG corpus

Choose chunk size and overlap balancing context vs precision, prefer semantic boundaries, then pick an embedding model matching domain and dimension, and store with metadata.

intermediate1 min read

When to choose RAG over fine-tuning

RAG for fresh, factual, citable knowledge that changes often, fine-tuning for behavior, style, or format the model must internalize.

intermediate2 min read

Diagnosing sycophancy from RLHF

Annotators reward agreeable, inoffensive answers so the reward model learns to favor them, fix by diversifying labelers, rewarding factual correctness over agreeableness, and…

intermediate1 min read

Fixing a prompt that ignores key constraints

Move the critical constraint to a prominent position, state it positively and specifically, separate instructions from data with delimiters, and add a concrete example.

intermediate1 min read

Encoder, decoder, and encoder-decoder Transformers

Encoder-only uses bidirectional masked-token pretraining for understanding tasks, decoder-only uses causal next-token prediction for generation, encoder-decoder uses span corruption for…

intermediate1 min read

Static vs contextual word embeddings

Static embeddings give one fixed vector per word ignoring context, contextual ones vary by sentence and resolve polysemy at higher compute cost.

intermediate2 min read

LSTM vs GRU gating and trade-offs

LSTM has three gates and a separate cell state, GRU merges gates and state into two, so GRU is lighter and faster while LSTM may model long dependencies better.

intermediate1 min read

Multimodal video understanding architecture

Sample frames, encode them into visual tokens via a vision encoder and projector, concatenate with text tokens, let cross-attention fuse them.

intermediate1 min read

Designing a production LLM summarization eval

A representative gold set, quality via human or LLM-as-judge plus faithfulness checks, and operational metrics like p95 latency and cost per request.

intermediate1 min read

Mixture of Experts architecture and routing

Many expert FFNs per layer, a router picks top-k experts per token, only those compute so active params are far fewer than total.

intermediate2 min read

Direct versus indirect injection and agent defenses

Direct injection comes from the user prompt; indirect hides in third-party data the agent ingests like web pages.

intermediate2 min read

Detecting RAG hallucinations with a confidence score

Decompose the answer into claims, verify each against retrieved context with NLI or an LLM judge, aggregate into a faithfulness confidence score, and flag unsupported claims.

intermediate2 min read

What memory problem PagedAttention solves

Pre-allocating contiguous max-length cache per sequence wastes memory through internal and external fragmentation; PagedAttention stores KV in fixed non-contiguous blocks like OS paging.

intermediate1 min read

PTQ versus QAT for INT8 quantization

PTQ quantizes a trained model with light calibration, fast and cheap but more accuracy loss; QAT simulates quantization during training, higher accuracy but costly.

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